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
|
|---|---|---|---|---|---|---|---|---|---|---|---|
18,100
|
Item_args::excl_dep_on_table(unsigned long long)
|
eloqsql/sql/item.h
|
bool excl_dep_on_table(table_map tab_map)
{
for (uint i= 0; i < arg_count; i++)
{
if (args[i]->const_item())
continue;
if (!args[i]->excl_dep_on_table(tab_map))
return false;
}
return true;
}
|
O0
|
c
|
Item_args::excl_dep_on_table(unsigned long long):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x28(%rbp), %rcx
movl -0x1c(%rbp), %eax
cmpl 0x18(%rcx), %eax
jae 0xefcc
movq -0x28(%rbp), %rax
movq (%rax), %rax
movl -0x1c(%rbp), %ecx
movq (%rax,%rcx,8), %rdi
movq (%rdi), %rax
callq *0x208(%rax)
testb $0x1, %al
jne 0xef98
jmp 0xef9a
jmp 0xefc1
movq -0x28(%rbp), %rax
movq (%rax), %rax
movl -0x1c(%rbp), %ecx
movq (%rax,%rcx,8), %rdi
movq -0x18(%rbp), %rsi
movq (%rdi), %rax
callq *0x428(%rax)
testb $0x1, %al
jne 0xefbf
movb $0x0, -0x1(%rbp)
jmp 0xefd0
jmp 0xefc1
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xef6f
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
_ZN9Item_args17excl_dep_on_tableEy:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov [rbp+var_1C], 0
loc_EF6F:
mov rcx, [rbp+var_28]
mov eax, [rbp+var_1C]
cmp eax, [rcx+18h]
jnb short loc_EFCC
mov rax, [rbp+var_28]
mov rax, [rax]
mov ecx, [rbp+var_1C]
mov rdi, [rax+rcx*8]
mov rax, [rdi]
call qword ptr [rax+208h]
test al, 1
jnz short loc_EF98
jmp short loc_EF9A
loc_EF98:
jmp short loc_EFC1
loc_EF9A:
mov rax, [rbp+var_28]
mov rax, [rax]
mov ecx, [rbp+var_1C]
mov rdi, [rax+rcx*8]
mov rsi, [rbp+var_18]
mov rax, [rdi]
call qword ptr [rax+428h]
test al, 1
jnz short loc_EFBF
mov [rbp+var_1], 0
jmp short loc_EFD0
loc_EFBF:
jmp short $+2
loc_EFC1:
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
jmp short loc_EF6F
loc_EFCC:
mov [rbp+var_1], 1
loc_EFD0:
mov al, [rbp+var_1]
and al, 1
add rsp, 30h
pop rbp
retn
|
char Item_args::excl_dep_on_table(Item_args *this, long long a2)
{
long long v2; // rdi
long long v3; // rdi
unsigned int i; // [rsp+14h] [rbp-1Ch]
for ( i = 0; i < *((_DWORD *)this + 6); ++i )
{
v2 = *(_QWORD *)(*(_QWORD *)this + 8LL * i);
if ( ((*(long long ( **)(long long))(*(_QWORD *)v2 + 520LL))(v2) & 1) == 0 )
{
v3 = *(_QWORD *)(*(_QWORD *)this + 8LL * i);
if ( ((*(long long ( **)(long long, long long))(*(_QWORD *)v3 + 1064LL))(v3, a2) & 1) == 0 )
return 0;
}
}
return 1;
}
|
excl_dep_on_table:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV dword ptr [RBP + -0x1c],0x0
LAB_0010ef6f:
MOV RCX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RBP + -0x1c]
CMP EAX,dword ptr [RCX + 0x18]
JNC 0x0010efcc
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RBP + -0x1c]
MOV RDI,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x208]
TEST AL,0x1
JNZ 0x0010ef98
JMP 0x0010ef9a
LAB_0010ef98:
JMP 0x0010efc1
LAB_0010ef9a:
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RBP + -0x1c]
MOV RDI,qword ptr [RAX + RCX*0x8]
MOV RSI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x428]
TEST AL,0x1
JNZ 0x0010efbf
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0010efd0
LAB_0010efbf:
JMP 0x0010efc1
LAB_0010efc1:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x0010ef6f
LAB_0010efcc:
MOV byte ptr [RBP + -0x1],0x1
LAB_0010efd0:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x30
POP RBP
RET
|
/* Item_args::excl_dep_on_table(unsigned long long) */
int1 __thiscall Item_args::excl_dep_on_table(Item_args *this,ulonglong param_1)
{
long *plVar1;
ulong uVar2;
uint local_24;
local_24 = 0;
while( true ) {
if (*(uint *)(this + 0x18) <= local_24) {
return 1;
}
uVar2 = (**(code **)(**(long **)(*(long *)this + (ulong)local_24 * 8) + 0x208))();
if (((uVar2 & 1) == 0) &&
(plVar1 = *(long **)(*(long *)this + (ulong)local_24 * 8),
uVar2 = (**(code **)(*plVar1 + 0x428))(plVar1,param_1), (uVar2 & 1) == 0)) break;
local_24 = local_24 + 1;
}
return 0;
}
|
|
18,101
|
my_uca_coll_init_utf8mb4
|
eloqsql/strings/ctype-uca.c
|
static my_bool
my_uca_coll_init_utf8mb4(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_utf8mb4,
&my_uca_package_no_contractions_utf8mb4);
return FALSE;
}
|
O3
|
c
|
my_uca_coll_init_utf8mb4:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0xb84fc
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0xbb20d
movzbl 0xb2(%rbx), %ecx
testq %rcx, %rcx
je 0xbb1bc
movq 0x60(%rbx), %rax
imulq $0x38, %rcx, %rcx
xorl %edx, %edx
cmpq $0x0, 0x18(%rax,%rdx)
jne 0xbb20b
addq $0x38, %rdx
cmpq %rdx, %rcx
jne 0xbb1ab
movq 0xc0(%rbx), %rcx
leaq 0x2fd3a6(%rip), %rdx # 0x3b8570
cmpq (%rdx), %rcx
je 0xbb1ee
leaq 0x2fd3ba(%rip), %rax # 0x3b8590
cmpq 0x8(%rdx), %rcx
je 0xbb1f7
cmpq 0x10(%rdx), %rcx
je 0xbb1fd
cmpq 0x18(%rdx), %rcx
jne 0xbb20b
addq $0x18, %rax
jmp 0xbb201
leaq 0x2fd39b(%rip), %rax # 0x3b8590
jmp 0xbb201
addq $0x8, %rax
jmp 0xbb201
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_utf8mb4:
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_BB20D
movzx ecx, byte ptr [rbx+0B2h]
test rcx, rcx
jz short loc_BB1BC
mov rax, [rbx+60h]
imul rcx, 38h ; '8'
xor edx, edx
loc_BB1AB:
cmp qword ptr [rax+rdx+18h], 0
jnz short loc_BB20B
add rdx, 38h ; '8'
cmp rcx, rdx
jnz short loc_BB1AB
loc_BB1BC:
mov rcx, [rbx+0C0h]
lea rdx, my_uca_package_utf8mb4
cmp rcx, [rdx]
jz short loc_BB1EE
lea rax, my_uca_package_no_contractions_utf8mb4
cmp rcx, [rdx+8]
jz short loc_BB1F7
cmp rcx, [rdx+10h]
jz short loc_BB1FD
cmp rcx, [rdx+18h]
jnz short loc_BB20B
add rax, 18h
jmp short loc_BB201
loc_BB1EE:
lea rax, my_uca_package_no_contractions_utf8mb4
jmp short loc_BB201
loc_BB1F7:
add rax, 8
jmp short loc_BB201
loc_BB1FD:
add rax, 10h
loc_BB201:
mov rax, [rax]
mov [rbx+0C0h], rax
loc_BB20B:
xor eax, eax
loc_BB20D:
add rsp, 8
pop rbx
pop rbp
retn
|
char my_uca_coll_init_utf8mb4(
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_utf8mb4[0] )
{
v6 = my_uca_package_no_contractions_utf8mb4;
}
else if ( v5 == my_uca_package_utf8mb4[1] )
{
v6 = &my_uca_package_no_contractions_utf8mb4[1];
}
else if ( v5 == my_uca_package_utf8mb4[2] )
{
v6 = &my_uca_package_no_contractions_utf8mb4[2];
}
else
{
if ( v5 != my_uca_package_utf8mb4[3] )
return 0;
v6 = &my_uca_package_no_contractions_utf8mb4[3];
}
*(_QWORD *)(a1 + 192) = *v6;
return 0;
}
return result;
}
|
my_uca_coll_init_utf8mb4:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x001b84fc
MOV ECX,EAX
MOV AL,0x1
TEST CL,CL
JNZ 0x001bb20d
MOVZX ECX,byte ptr [RBX + 0xb2]
TEST RCX,RCX
JZ 0x001bb1bc
MOV RAX,qword ptr [RBX + 0x60]
IMUL RCX,RCX,0x38
XOR EDX,EDX
LAB_001bb1ab:
CMP qword ptr [RAX + RDX*0x1 + 0x18],0x0
JNZ 0x001bb20b
ADD RDX,0x38
CMP RCX,RDX
JNZ 0x001bb1ab
LAB_001bb1bc:
MOV RCX,qword ptr [RBX + 0xc0]
LEA RDX,[0x4b8570]
CMP RCX,qword ptr [RDX]
JZ 0x001bb1ee
LEA RAX,[0x4b8590]
CMP RCX,qword ptr [RDX + 0x8]
JZ 0x001bb1f7
CMP RCX,qword ptr [RDX + 0x10]
JZ 0x001bb1fd
CMP RCX,qword ptr [RDX + 0x18]
JNZ 0x001bb20b
ADD RAX,0x18
JMP 0x001bb201
LAB_001bb1ee:
LEA RAX,[0x4b8590]
JMP 0x001bb201
LAB_001bb1f7:
ADD RAX,0x8
JMP 0x001bb201
LAB_001bb1fd:
ADD RAX,0x10
LAB_001bb201:
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBX + 0xc0],RAX
LAB_001bb20b:
XOR EAX,EAX
LAB_001bb20d:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int8 my_uca_coll_init_utf8mb4(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_utf8mb4) {
ppuVar3 = &my_uca_package_no_contractions_utf8mb4;
}
else if (puVar1 == PTR_my_uca_collation_handler_nopad_utf8mb4_004b8578) {
ppuVar3 = &PTR_my_uca_collation_handler_nopad_no_contractions_utf8mb4_004b8598;
}
else if (puVar1 == PTR_my_uca_collation_handler_multilevel_utf8mb4_004b8580) {
ppuVar3 = &PTR_my_uca_collation_handler_multilevel_no_contractions_utf8mb4_004b85a0;
}
else {
if (puVar1 != PTR_my_uca_collation_handler_nopad_multilevel_utf8mb4_004b8588) {
return 0;
}
ppuVar3 = &PTR_my_uca_collation_handler_nopad_multilevel_no_contractions_utf8mb4_004b85a8;
}
*(int **)(param_1 + 0xc0) = *ppuVar3;
return 0;
}
|
|
18,102
|
void intx::throw_<std::invalid_argument>(char const*)
|
corpus-core[P]colibri-stateless/build_O3/_deps/intx-src/include/intx/intx.hpp
|
[[noreturn]] inline void throw_(const char* what)
{
#if __cpp_exceptions
throw T{what};
#else
std::fputs(what, stderr);
std::abort();
#endif
}
|
O3
|
cpp
|
void intx::throw_<std::invalid_argument>(char const*):
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x10, %edi
callq 0x221f0
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x22130
movq 0x73fcd(%rip), %rsi # 0xc0fb0
movq 0x73fbe(%rip), %rdx # 0xc0fa8
movq %rbx, %rdi
callq 0x22300
movq %rax, %r14
movq %rbx, %rdi
callq 0x22410
movq %r14, %rdi
callq 0x22310
nop
|
_ZN4intx6throw_ISt16invalid_argumentEEvPKc:
push r14
push rbx
push rax
mov r14, rdi
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, rax; this
mov rsi, r14; char *
call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
mov rdi, r14
call __Unwind_Resume
|
void __noreturn intx::throw_<std::invalid_argument>(char *a1)
{
std::invalid_argument *exception; // rbx
exception = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL);
std::invalid_argument::invalid_argument(exception, a1);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::invalid_argument,
(void (*)(void *))&std::invalid_argument::~invalid_argument);
}
|
throw_<std::invalid_argument>:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDI
MOV EDI,0x10
CALL 0x001221f0
MOV RBX,RAX
LAB_0014cfd1:
MOV RDI,RAX
MOV RSI,R14
CALL 0x00122130
LAB_0014cfdc:
MOV RSI,qword ptr [0x001c0fb0]
MOV RDX,qword ptr [0x001c0fa8]
MOV RDI,RBX
CALL 0x00122300
|
/* void intx::throw_<std::invalid_argument>(char const*) */
void intx::throw_<std::invalid_argument>(char *param_1)
{
invalid_argument *this;
this = (invalid_argument *)__cxa_allocate_exception(0x10);
/* try { // try from 0014cfd1 to 0014cfdb has its CatchHandler @ 0014cff2 */
std::invalid_argument::invalid_argument(this,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001c0fb0,PTR__invalid_argument_001c0fa8);
}
|
|
18,103
|
ma_net_write_command
|
eloqsql/libmariadb/libmariadb/ma_net.c
|
int ma_net_write_command(NET *net, uchar command,
const char *packet, size_t len,
my_bool disable_flush)
{
uchar buff[NET_HEADER_SIZE+1];
size_t buff_size= NET_HEADER_SIZE + 1;
size_t length= 1 + len; /* 1 extra byte for command */
int rc;
buff[NET_HEADER_SIZE]= 0;
buff[4]=command;
if (length >= MAX_PACKET_LENGTH)
{
len= MAX_PACKET_LENGTH - 1;
do
{
int3store(buff, MAX_PACKET_LENGTH);
buff[3]= (net->compress) ? 0 : (uchar) (net->pkt_nr++);
if (ma_net_write_buff(net, (char *)buff, buff_size) ||
ma_net_write_buff(net, packet, len))
return(1);
packet+= len;
length-= MAX_PACKET_LENGTH;
len= MAX_PACKET_LENGTH;
buff_size= NET_HEADER_SIZE; /* don't send command for further packets */
} while (length >= MAX_PACKET_LENGTH);
len= length;
}
int3store(buff,length);
buff[3]= (net->compress) ? 0 :(uchar) (net->pkt_nr++);
rc= test (ma_net_write_buff(net,(char *)buff, buff_size) ||
ma_net_write_buff(net,packet,len));
if (!rc && !disable_flush)
return test(ma_net_flush(net));
return rc;
}
|
O0
|
c
|
ma_net_write_command:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movb %r8b, %al
movq %fs:0x28, %r8
movq %r8, -0x8(%rbp)
movq %rdi, -0x20(%rbp)
movb %sil, -0x21(%rbp)
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movb %al, -0x39(%rbp)
movq $0x5, -0x48(%rbp)
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
movb $0x0, -0x9(%rbp)
movb -0x21(%rbp), %al
movb %al, -0x9(%rbp)
cmpq $0xffffff, -0x50(%rbp) # imm = 0xFFFFFF
jb 0x47047
movq $0xfffffe, -0x38(%rbp) # imm = 0xFFFFFE
jmp 0x46f91
movb $-0x1, -0xd(%rbp)
movb $-0x1, -0xc(%rbp)
movb $-0x1, -0xb(%rbp)
movq -0x20(%rbp), %rax
movsbl 0x84(%rax), %eax
cmpl $0x0, %eax
je 0x46fb4
xorl %eax, %eax
movl %eax, -0x58(%rbp)
jmp 0x46fc9
movq -0x20(%rbp), %rcx
movl 0x60(%rcx), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x60(%rcx)
movzbl %al, %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
movb %al, -0xa(%rbp)
movq -0x20(%rbp), %rdi
leaq -0xd(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x46d50
cmpl $0x0, %eax
jne 0x46ffb
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x46d50
cmpl $0x0, %eax
je 0x47007
movl $0x1, -0x14(%rbp)
jmp 0x47111
movq -0x38(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x50(%rbp), %rax
subq $0xffffff, %rax # imm = 0xFFFFFF
movq %rax, -0x50(%rbp)
movq $0xffffff, -0x38(%rbp) # imm = 0xFFFFFF
movq $0x4, -0x48(%rbp)
cmpq $0xffffff, -0x50(%rbp) # imm = 0xFFFFFF
jae 0x46f8f
movq -0x50(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x47049
movq -0x50(%rbp), %rax
movb %al, -0xd(%rbp)
movq -0x50(%rbp), %rax
shrq $0x8, %rax
movb %al, -0xc(%rbp)
movq -0x50(%rbp), %rax
shrq $0x10, %rax
movb %al, -0xb(%rbp)
movq -0x20(%rbp), %rax
movsbl 0x84(%rax), %eax
cmpl $0x0, %eax
je 0x4707d
xorl %eax, %eax
movl %eax, -0x5c(%rbp)
jmp 0x47092
movq -0x20(%rbp), %rcx
movl 0x60(%rcx), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x60(%rcx)
movzbl %al, %eax
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
movb %al, -0xa(%rbp)
movq -0x20(%rbp), %rdi
leaq -0xd(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x46d50
movl %eax, %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x5d(%rbp)
jne 0x470cf
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x46d50
cmpl $0x0, %eax
setne %al
movb %al, -0x5d(%rbp)
movb -0x5d(%rbp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x54(%rbp)
cmpl $0x0, -0x54(%rbp)
jne 0x4710b
cmpb $0x0, -0x39(%rbp)
jne 0x4710b
movq -0x20(%rbp), %rdi
callq 0x467e0
movl %eax, %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0x14(%rbp)
jmp 0x47111
movl -0x54(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x64(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x47132
movl -0x64(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
callq 0x134b0
nopw (%rax,%rax)
|
ma_net_write_command:
push rbp
mov rbp, rsp
sub rsp, 70h
mov al, r8b
mov r8, fs:28h
mov [rbp+var_8], r8
mov [rbp+var_20], rdi
mov [rbp+var_21], sil
mov [rbp+var_30], rdx
mov [rbp+var_38], rcx
mov [rbp+var_39], al
mov [rbp+var_48], 5
mov rax, [rbp+var_38]
add rax, 1
mov [rbp+var_50], rax
mov [rbp+var_9], 0
mov al, [rbp+var_21]
mov [rbp+var_9], al
cmp [rbp+var_50], 0FFFFFFh
jb loc_47047
mov [rbp+var_38], 0FFFFFEh
loc_46F8F:
jmp short $+2
loc_46F91:
mov [rbp+var_D], 0FFh
mov [rbp+var_C], 0FFh
mov [rbp+var_B], 0FFh
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax+84h]
cmp eax, 0
jz short loc_46FB4
xor eax, eax
mov [rbp+var_58], eax
jmp short loc_46FC9
loc_46FB4:
mov rcx, [rbp+var_20]
mov eax, [rcx+60h]
mov edx, eax
add edx, 1
mov [rcx+60h], edx
movzx eax, al
mov [rbp+var_58], eax
loc_46FC9:
mov eax, [rbp+var_58]
mov [rbp+var_A], al
mov rdi, [rbp+var_20]
lea rsi, [rbp+var_D]
mov rdx, [rbp+var_48]
call ma_net_write_buff
cmp eax, 0
jnz short loc_46FFB
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_38]
call ma_net_write_buff
cmp eax, 0
jz short loc_47007
loc_46FFB:
mov [rbp+var_14], 1
jmp loc_47111
loc_47007:
mov rax, [rbp+var_38]
add rax, [rbp+var_30]
mov [rbp+var_30], rax
mov rax, [rbp+var_50]
sub rax, 0FFFFFFh
mov [rbp+var_50], rax
mov [rbp+var_38], 0FFFFFFh
mov [rbp+var_48], 4
cmp [rbp+var_50], 0FFFFFFh
jnb loc_46F8F
mov rax, [rbp+var_50]
mov [rbp+var_38], rax
loc_47047:
jmp short $+2
loc_47049:
mov rax, [rbp+var_50]
mov [rbp+var_D], al
mov rax, [rbp+var_50]
shr rax, 8
mov [rbp+var_C], al
mov rax, [rbp+var_50]
shr rax, 10h
mov [rbp+var_B], al
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax+84h]
cmp eax, 0
jz short loc_4707D
xor eax, eax
mov [rbp+var_5C], eax
jmp short loc_47092
loc_4707D:
mov rcx, [rbp+var_20]
mov eax, [rcx+60h]
mov edx, eax
add edx, 1
mov [rcx+60h], edx
movzx eax, al
mov [rbp+var_5C], eax
loc_47092:
mov eax, [rbp+var_5C]
mov [rbp+var_A], al
mov rdi, [rbp+var_20]
lea rsi, [rbp+var_D]
mov rdx, [rbp+var_48]
call ma_net_write_buff
mov ecx, eax
mov al, 1
cmp ecx, 0
mov [rbp+var_5D], al
jnz short loc_470CF
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_38]
call ma_net_write_buff
cmp eax, 0
setnz al
mov [rbp+var_5D], al
loc_470CF:
mov dl, [rbp+var_5D]
xor eax, eax
mov ecx, 1
test dl, 1
cmovnz eax, ecx
mov [rbp+var_54], eax
cmp [rbp+var_54], 0
jnz short loc_4710B
cmp [rbp+var_39], 0
jnz short loc_4710B
mov rdi, [rbp+var_20]
call ma_net_flush
mov edx, eax
xor eax, eax
mov ecx, 1
cmp edx, 0
cmovnz eax, ecx
mov [rbp+var_14], eax
jmp short loc_47111
loc_4710B:
mov eax, [rbp+var_54]
mov [rbp+var_14], eax
loc_47111:
mov eax, [rbp+var_14]
mov [rbp+var_64], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_47132
mov eax, [rbp+var_64]
add rsp, 70h
pop rbp
retn
loc_47132:
call ___stack_chk_fail
|
_BOOL8 ma_net_write_command(long long a1, char a2, long long a3, unsigned long long a4, char a5)
{
int v5; // eax
int v6; // eax
bool v8; // [rsp+13h] [rbp-5Dh]
char v9; // [rsp+14h] [rbp-5Ch]
char v10; // [rsp+18h] [rbp-58h]
unsigned long long v11; // [rsp+20h] [rbp-50h]
unsigned long long v12; // [rsp+28h] [rbp-48h]
unsigned long long v14; // [rsp+38h] [rbp-38h]
unsigned long long v15; // [rsp+38h] [rbp-38h]
__int16 v18; // [rsp+63h] [rbp-Dh] BYREF
char v19; // [rsp+65h] [rbp-Bh]
char v20; // [rsp+66h] [rbp-Ah]
char v21; // [rsp+67h] [rbp-9h]
unsigned long long v22; // [rsp+68h] [rbp-8h]
v22 = __readfsqword(0x28u);
v14 = a4;
v12 = 5LL;
v11 = a4 + 1;
v21 = a2;
if ( a4 + 1 >= 0xFFFFFF )
{
v15 = 16777214LL;
do
{
v18 = -1;
v19 = -1;
if ( *(_BYTE *)(a1 + 132) )
{
v10 = 0;
}
else
{
v5 = *(_DWORD *)(a1 + 96);
*(_DWORD *)(a1 + 96) = v5 + 1;
v10 = v5;
}
v20 = v10;
if ( ma_net_write_buff(a1, (long long)&v18, v12) || ma_net_write_buff(a1, a3, v15) )
return 1;
a3 += v15;
v11 -= 0xFFFFFFLL;
v15 = 0xFFFFFFLL;
v12 = 4LL;
}
while ( v11 >= 0xFFFFFF );
v14 = v11;
}
v18 = v11;
v19 = BYTE2(v11);
if ( *(_BYTE *)(a1 + 132) )
{
v9 = 0;
}
else
{
v6 = *(_DWORD *)(a1 + 96);
*(_DWORD *)(a1 + 96) = v6 + 1;
v9 = v6;
}
v20 = v9;
v8 = 1;
if ( !ma_net_write_buff(a1, (long long)&v18, v12) )
v8 = ma_net_write_buff(a1, a3, v14);
if ( v8 || a5 )
return v8;
else
return ma_net_flush(a1) != 0;
}
|
ma_net_write_command:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV AL,R8B
MOV R8,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],R8
MOV qword ptr [RBP + -0x20],RDI
MOV byte ptr [RBP + -0x21],SIL
MOV qword ptr [RBP + -0x30],RDX
MOV qword ptr [RBP + -0x38],RCX
MOV byte ptr [RBP + -0x39],AL
MOV qword ptr [RBP + -0x48],0x5
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x1
MOV qword ptr [RBP + -0x50],RAX
MOV byte ptr [RBP + -0x9],0x0
MOV AL,byte ptr [RBP + -0x21]
MOV byte ptr [RBP + -0x9],AL
CMP qword ptr [RBP + -0x50],0xffffff
JC 0x00147047
MOV qword ptr [RBP + -0x38],0xfffffe
LAB_00146f8f:
JMP 0x00146f91
LAB_00146f91:
MOV byte ptr [RBP + -0xd],0xff
MOV byte ptr [RBP + -0xc],0xff
MOV byte ptr [RBP + -0xb],0xff
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX + 0x84]
CMP EAX,0x0
JZ 0x00146fb4
XOR EAX,EAX
MOV dword ptr [RBP + -0x58],EAX
JMP 0x00146fc9
LAB_00146fb4:
MOV RCX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RCX + 0x60]
MOV EDX,EAX
ADD EDX,0x1
MOV dword ptr [RCX + 0x60],EDX
MOVZX EAX,AL
MOV dword ptr [RBP + -0x58],EAX
LAB_00146fc9:
MOV EAX,dword ptr [RBP + -0x58]
MOV byte ptr [RBP + -0xa],AL
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0xd]
MOV RDX,qword ptr [RBP + -0x48]
CALL 0x00146d50
CMP EAX,0x0
JNZ 0x00146ffb
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x00146d50
CMP EAX,0x0
JZ 0x00147007
LAB_00146ffb:
MOV dword ptr [RBP + -0x14],0x1
JMP 0x00147111
LAB_00147007:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x50]
SUB RAX,0xffffff
MOV qword ptr [RBP + -0x50],RAX
MOV qword ptr [RBP + -0x38],0xffffff
MOV qword ptr [RBP + -0x48],0x4
CMP qword ptr [RBP + -0x50],0xffffff
JNC 0x00146f8f
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x38],RAX
LAB_00147047:
JMP 0x00147049
LAB_00147049:
MOV RAX,qword ptr [RBP + -0x50]
MOV byte ptr [RBP + -0xd],AL
MOV RAX,qword ptr [RBP + -0x50]
SHR RAX,0x8
MOV byte ptr [RBP + -0xc],AL
MOV RAX,qword ptr [RBP + -0x50]
SHR RAX,0x10
MOV byte ptr [RBP + -0xb],AL
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX + 0x84]
CMP EAX,0x0
JZ 0x0014707d
XOR EAX,EAX
MOV dword ptr [RBP + -0x5c],EAX
JMP 0x00147092
LAB_0014707d:
MOV RCX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RCX + 0x60]
MOV EDX,EAX
ADD EDX,0x1
MOV dword ptr [RCX + 0x60],EDX
MOVZX EAX,AL
MOV dword ptr [RBP + -0x5c],EAX
LAB_00147092:
MOV EAX,dword ptr [RBP + -0x5c]
MOV byte ptr [RBP + -0xa],AL
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0xd]
MOV RDX,qword ptr [RBP + -0x48]
CALL 0x00146d50
MOV ECX,EAX
MOV AL,0x1
CMP ECX,0x0
MOV byte ptr [RBP + -0x5d],AL
JNZ 0x001470cf
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x00146d50
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x5d],AL
LAB_001470cf:
MOV DL,byte ptr [RBP + -0x5d]
XOR EAX,EAX
MOV ECX,0x1
TEST DL,0x1
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x54],EAX
CMP dword ptr [RBP + -0x54],0x0
JNZ 0x0014710b
CMP byte ptr [RBP + -0x39],0x0
JNZ 0x0014710b
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001467e0
MOV EDX,EAX
XOR EAX,EAX
MOV ECX,0x1
CMP EDX,0x0
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x14],EAX
JMP 0x00147111
LAB_0014710b:
MOV EAX,dword ptr [RBP + -0x54]
MOV dword ptr [RBP + -0x14],EAX
LAB_00147111:
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x64],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00147132
MOV EAX,dword ptr [RBP + -0x64]
ADD RSP,0x70
POP RBP
RET
LAB_00147132:
CALL 0x001134b0
|
bool ma_net_write_command(long param_1,int1 param_2,long param_3,ulong param_4,char param_5)
{
ulong uVar1;
int iVar2;
long in_FS_OFFSET;
bool bVar3;
int1 local_64;
int1 local_60;
ulong local_58;
int8 local_50;
ulong local_40;
long local_38;
int1 local_15;
int1 local_14;
int1 local_13;
int1 local_12;
int1 local_11;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_50 = 5;
local_58 = param_4 + 1;
uVar1 = param_4;
local_38 = param_3;
local_11 = param_2;
if (0xfffffe < local_58) {
local_40 = 0xfffffe;
do {
local_15 = 0xff;
local_14 = 0xff;
local_13 = 0xff;
if (*(char *)(param_1 + 0x84) == '\0') {
iVar2 = *(int *)(param_1 + 0x60);
*(int *)(param_1 + 0x60) = iVar2 + 1;
local_60 = (int1)iVar2;
}
else {
local_60 = 0;
}
local_12 = local_60;
iVar2 = ma_net_write_buff(param_1,&local_15,local_50);
if ((iVar2 != 0) || (iVar2 = ma_net_write_buff(param_1,local_38,local_40), iVar2 != 0)) {
bVar3 = true;
goto LAB_00147111;
}
local_38 = local_40 + local_38;
local_58 = local_58 - 0xffffff;
local_40 = 0xffffff;
local_50 = 4;
uVar1 = local_58;
} while (0xfffffe < local_58);
}
local_40 = uVar1;
local_15 = (int1)local_58;
local_14 = (int1)(local_58 >> 8);
local_13 = (int1)(local_58 >> 0x10);
if (*(char *)(param_1 + 0x84) == '\0') {
iVar2 = *(int *)(param_1 + 0x60);
*(int *)(param_1 + 0x60) = iVar2 + 1;
local_64 = (int1)iVar2;
}
else {
local_64 = 0;
}
local_12 = local_64;
iVar2 = ma_net_write_buff(param_1,&local_15,local_50);
bVar3 = true;
if (iVar2 == 0) {
iVar2 = ma_net_write_buff(param_1,local_38,local_40);
bVar3 = iVar2 != 0;
}
if ((bVar3 == false) && (param_5 == '\0')) {
iVar2 = ma_net_flush(param_1);
bVar3 = iVar2 != 0;
}
LAB_00147111:
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return bVar3;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
18,104
|
func_uni_gbk_onechar
|
eloqsql/strings/ctype-gbk.c
|
static int func_uni_gbk_onechar(int code){
if ((code>=0x00A4)&&(code<=0x0451))
return(tab_uni_gbk0[code-0x00A4]);
if ((code>=0x2010)&&(code<=0x2312))
return(tab_uni_gbk1[code-0x2010]);
if ((code>=0x2460)&&(code<=0x2642))
return(tab_uni_gbk2[code-0x2460]);
if ((code>=0x3000)&&(code<=0x3129))
return(tab_uni_gbk3[code-0x3000]);
if ((code>=0x3220)&&(code<=0x32A3))
return(tab_uni_gbk4[code-0x3220]);
if ((code>=0x338E)&&(code<=0x33D5))
return(tab_uni_gbk5[code-0x338E]);
if ((code>=0x4E00)&&(code<=0x9FA5))
return(tab_uni_gbk6[code-0x4E00]);
if ((code>=0xF92C)&&(code<=0xFA29))
return(tab_uni_gbk7[code-0xF92C]);
if ((code>=0xFE30)&&(code<=0xFFE5))
return(tab_uni_gbk8[code-0xFE30]);
return(0);
}
|
O0
|
c
|
func_uni_gbk_onechar:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
cmpl $0xa4, -0x8(%rbp)
jl 0xbd0f7
cmpl $0x451, -0x8(%rbp) # imm = 0x451
jg 0xbd0f7
movl -0x8(%rbp), %eax
subl $0xa4, %eax
movslq %eax, %rcx
leaq 0xf1d05(%rip), %rax # 0x1aedf0
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x4(%rbp)
jmp 0xbd275
cmpl $0x2010, -0x8(%rbp) # imm = 0x2010
jl 0xbd127
cmpl $0x2312, -0x8(%rbp) # imm = 0x2312
jg 0xbd127
movl -0x8(%rbp), %eax
subl $0x2010, %eax # imm = 0x2010
movslq %eax, %rcx
leaq 0xf2435(%rip), %rax # 0x1af550
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x4(%rbp)
jmp 0xbd275
cmpl $0x2460, -0x8(%rbp) # imm = 0x2460
jl 0xbd157
cmpl $0x2642, -0x8(%rbp) # imm = 0x2642
jg 0xbd157
movl -0x8(%rbp), %eax
subl $0x2460, %eax # imm = 0x2460
movslq %eax, %rcx
leaq 0xf2a15(%rip), %rax # 0x1afb60
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x4(%rbp)
jmp 0xbd275
cmpl $0x3000, -0x8(%rbp) # imm = 0x3000
jl 0xbd187
cmpl $0x3129, -0x8(%rbp) # imm = 0x3129
jg 0xbd187
movl -0x8(%rbp), %eax
subl $0x3000, %eax # imm = 0x3000
movslq %eax, %rcx
leaq 0xf2db5(%rip), %rax # 0x1aff30
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x4(%rbp)
jmp 0xbd275
cmpl $0x3220, -0x8(%rbp) # imm = 0x3220
jl 0xbd1b7
cmpl $0x32a3, -0x8(%rbp) # imm = 0x32A3
jg 0xbd1b7
movl -0x8(%rbp), %eax
subl $0x3220, %eax # imm = 0x3220
movslq %eax, %rcx
leaq 0xf2fe5(%rip), %rax # 0x1b0190
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x4(%rbp)
jmp 0xbd275
cmpl $0x338e, -0x8(%rbp) # imm = 0x338E
jl 0xbd1e7
cmpl $0x33d5, -0x8(%rbp) # imm = 0x33D5
jg 0xbd1e7
movl -0x8(%rbp), %eax
subl $0x338e, %eax # imm = 0x338E
movslq %eax, %rcx
leaq 0xf30c5(%rip), %rax # 0x1b02a0
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x4(%rbp)
jmp 0xbd275
cmpl $0x4e00, -0x8(%rbp) # imm = 0x4E00
jl 0xbd214
cmpl $0x9fa5, -0x8(%rbp) # imm = 0x9FA5
jg 0xbd214
movl -0x8(%rbp), %eax
subl $0x4e00, %eax # imm = 0x4E00
movslq %eax, %rcx
leaq 0xf3125(%rip), %rax # 0x1b0330
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x4(%rbp)
jmp 0xbd275
cmpl $0xf92c, -0x8(%rbp) # imm = 0xF92C
jl 0xbd241
cmpl $0xfa29, -0x8(%rbp) # imm = 0xFA29
jg 0xbd241
movl -0x8(%rbp), %eax
subl $0xf92c, %eax # imm = 0xF92C
movslq %eax, %rcx
leaq 0xfd448(%rip), %rax # 0x1ba680
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x4(%rbp)
jmp 0xbd275
cmpl $0xfe30, -0x8(%rbp) # imm = 0xFE30
jl 0xbd26e
cmpl $0xffe5, -0x8(%rbp) # imm = 0xFFE5
jg 0xbd26e
movl -0x8(%rbp), %eax
subl $0xfe30, %eax # imm = 0xFE30
movslq %eax, %rcx
leaq 0xfd61b(%rip), %rax # 0x1ba880
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x4(%rbp)
jmp 0xbd275
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw (%rax,%rax)
|
func_uni_gbk_onechar:
push rbp
mov rbp, rsp
mov [rbp+var_8], edi
cmp [rbp+var_8], 0A4h
jl short loc_BD0F7
cmp [rbp+var_8], 451h
jg short loc_BD0F7
mov eax, [rbp+var_8]
sub eax, 0A4h
movsxd rcx, eax
lea rax, tab_uni_gbk0
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_4], eax
jmp loc_BD275
loc_BD0F7:
cmp [rbp+var_8], 2010h
jl short loc_BD127
cmp [rbp+var_8], 2312h
jg short loc_BD127
mov eax, [rbp+var_8]
sub eax, 2010h
movsxd rcx, eax
lea rax, tab_uni_gbk1
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_4], eax
jmp loc_BD275
loc_BD127:
cmp [rbp+var_8], 2460h
jl short loc_BD157
cmp [rbp+var_8], 2642h
jg short loc_BD157
mov eax, [rbp+var_8]
sub eax, 2460h
movsxd rcx, eax
lea rax, tab_uni_gbk2
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_4], eax
jmp loc_BD275
loc_BD157:
cmp [rbp+var_8], 3000h
jl short loc_BD187
cmp [rbp+var_8], 3129h
jg short loc_BD187
mov eax, [rbp+var_8]
sub eax, 3000h
movsxd rcx, eax
lea rax, tab_uni_gbk3
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_4], eax
jmp loc_BD275
loc_BD187:
cmp [rbp+var_8], 3220h
jl short loc_BD1B7
cmp [rbp+var_8], 32A3h
jg short loc_BD1B7
mov eax, [rbp+var_8]
sub eax, 3220h
movsxd rcx, eax
lea rax, tab_uni_gbk4
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_4], eax
jmp loc_BD275
loc_BD1B7:
cmp [rbp+var_8], 338Eh
jl short loc_BD1E7
cmp [rbp+var_8], 33D5h
jg short loc_BD1E7
mov eax, [rbp+var_8]
sub eax, 338Eh
movsxd rcx, eax
lea rax, tab_uni_gbk5
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_4], eax
jmp loc_BD275
loc_BD1E7:
cmp [rbp+var_8], 4E00h
jl short loc_BD214
cmp [rbp+var_8], 9FA5h
jg short loc_BD214
mov eax, [rbp+var_8]
sub eax, 4E00h
movsxd rcx, eax
lea rax, tab_uni_gbk6
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_4], eax
jmp short loc_BD275
loc_BD214:
cmp [rbp+var_8], 0F92Ch
jl short loc_BD241
cmp [rbp+var_8], 0FA29h
jg short loc_BD241
mov eax, [rbp+var_8]
sub eax, 0F92Ch
movsxd rcx, eax
lea rax, tab_uni_gbk7
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_4], eax
jmp short loc_BD275
loc_BD241:
cmp [rbp+var_8], 0FE30h
jl short loc_BD26E
cmp [rbp+var_8], 0FFE5h
jg short loc_BD26E
mov eax, [rbp+var_8]
sub eax, 0FE30h
movsxd rcx, eax
lea rax, tab_uni_gbk8
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_4], eax
jmp short loc_BD275
loc_BD26E:
mov [rbp+var_4], 0
loc_BD275:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long func_uni_gbk_onechar(int a1)
{
if ( a1 < 164 || a1 > 1105 )
{
if ( a1 < 8208 || a1 > 8978 )
{
if ( a1 < 9312 || a1 > 9794 )
{
if ( a1 < 12288 || a1 > 12585 )
{
if ( a1 < 12832 || a1 > 12963 )
{
if ( a1 < 13198 || a1 > 13269 )
{
if ( a1 < 19968 || a1 > 40869 )
{
if ( a1 < 63788 || a1 > 64041 )
{
if ( a1 < 65072 || a1 > 65509 )
return 0;
else
return tab_uni_gbk8[a1 - 65072];
}
else
{
return tab_uni_gbk7[a1 - 63788];
}
}
else
{
return tab_uni_gbk6[a1 - 19968];
}
}
else
{
return tab_uni_gbk5[a1 - 13198];
}
}
else
{
return tab_uni_gbk4[a1 - 12832];
}
}
else
{
return tab_uni_gbk3[a1 - 12288];
}
}
else
{
return tab_uni_gbk2[a1 - 9312];
}
}
else
{
return tab_uni_gbk1[a1 - 8208];
}
}
else
{
return tab_uni_gbk0[a1 - 164];
}
}
|
func_uni_gbk_onechar:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0x8],EDI
CMP dword ptr [RBP + -0x8],0xa4
JL 0x001bd0f7
CMP dword ptr [RBP + -0x8],0x451
JG 0x001bd0f7
MOV EAX,dword ptr [RBP + -0x8]
SUB EAX,0xa4
MOVSXD RCX,EAX
LEA RAX,[0x2aedf0]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001bd275
LAB_001bd0f7:
CMP dword ptr [RBP + -0x8],0x2010
JL 0x001bd127
CMP dword ptr [RBP + -0x8],0x2312
JG 0x001bd127
MOV EAX,dword ptr [RBP + -0x8]
SUB EAX,0x2010
MOVSXD RCX,EAX
LEA RAX,[0x2af550]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001bd275
LAB_001bd127:
CMP dword ptr [RBP + -0x8],0x2460
JL 0x001bd157
CMP dword ptr [RBP + -0x8],0x2642
JG 0x001bd157
MOV EAX,dword ptr [RBP + -0x8]
SUB EAX,0x2460
MOVSXD RCX,EAX
LEA RAX,[0x2afb60]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001bd275
LAB_001bd157:
CMP dword ptr [RBP + -0x8],0x3000
JL 0x001bd187
CMP dword ptr [RBP + -0x8],0x3129
JG 0x001bd187
MOV EAX,dword ptr [RBP + -0x8]
SUB EAX,0x3000
MOVSXD RCX,EAX
LEA RAX,[0x2aff30]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001bd275
LAB_001bd187:
CMP dword ptr [RBP + -0x8],0x3220
JL 0x001bd1b7
CMP dword ptr [RBP + -0x8],0x32a3
JG 0x001bd1b7
MOV EAX,dword ptr [RBP + -0x8]
SUB EAX,0x3220
MOVSXD RCX,EAX
LEA RAX,[0x2b0190]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001bd275
LAB_001bd1b7:
CMP dword ptr [RBP + -0x8],0x338e
JL 0x001bd1e7
CMP dword ptr [RBP + -0x8],0x33d5
JG 0x001bd1e7
MOV EAX,dword ptr [RBP + -0x8]
SUB EAX,0x338e
MOVSXD RCX,EAX
LEA RAX,[0x2b02a0]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001bd275
LAB_001bd1e7:
CMP dword ptr [RBP + -0x8],0x4e00
JL 0x001bd214
CMP dword ptr [RBP + -0x8],0x9fa5
JG 0x001bd214
MOV EAX,dword ptr [RBP + -0x8]
SUB EAX,0x4e00
MOVSXD RCX,EAX
LEA RAX,[0x2b0330]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001bd275
LAB_001bd214:
CMP dword ptr [RBP + -0x8],0xf92c
JL 0x001bd241
CMP dword ptr [RBP + -0x8],0xfa29
JG 0x001bd241
MOV EAX,dword ptr [RBP + -0x8]
SUB EAX,0xf92c
MOVSXD RCX,EAX
LEA RAX,[0x2ba680]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001bd275
LAB_001bd241:
CMP dword ptr [RBP + -0x8],0xfe30
JL 0x001bd26e
CMP dword ptr [RBP + -0x8],0xffe5
JG 0x001bd26e
MOV EAX,dword ptr [RBP + -0x8]
SUB EAX,0xfe30
MOVSXD RCX,EAX
LEA RAX,[0x2ba880]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001bd275
LAB_001bd26e:
MOV dword ptr [RBP + -0x4],0x0
LAB_001bd275:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int2 func_uni_gbk_onechar(int param_1)
{
int2 uVar1;
if ((param_1 < 0xa4) || (0x451 < param_1)) {
if ((param_1 < 0x2010) || (0x2312 < param_1)) {
if ((param_1 < 0x2460) || (0x2642 < param_1)) {
if ((param_1 < 0x3000) || (0x3129 < param_1)) {
if ((param_1 < 0x3220) || (0x32a3 < param_1)) {
if ((param_1 < 0x338e) || (0x33d5 < param_1)) {
if ((param_1 < 0x4e00) || (0x9fa5 < param_1)) {
if ((param_1 < 0xf92c) || (0xfa29 < param_1)) {
if ((param_1 < 0xfe30) || (0xffe5 < param_1)) {
uVar1 = 0;
}
else {
uVar1 = *(int2 *)(tab_uni_gbk8 + (long)(param_1 + -0xfe30) * 2);
}
}
else {
uVar1 = *(int2 *)(tab_uni_gbk7 + (long)(param_1 + -0xf92c) * 2);
}
}
else {
uVar1 = *(int2 *)(tab_uni_gbk6 + (long)(param_1 + -0x4e00) * 2);
}
}
else {
uVar1 = *(int2 *)(tab_uni_gbk5 + (long)(param_1 + -0x338e) * 2);
}
}
else {
uVar1 = *(int2 *)(tab_uni_gbk4 + (long)(param_1 + -0x3220) * 2);
}
}
else {
uVar1 = *(int2 *)(tab_uni_gbk3 + (long)(param_1 + -0x3000) * 2);
}
}
else {
uVar1 = *(int2 *)(tab_uni_gbk2 + (long)(param_1 + -0x2460) * 2);
}
}
else {
uVar1 = *(int2 *)(tab_uni_gbk1 + (long)(param_1 + -0x2010) * 2);
}
}
else {
uVar1 = *(int2 *)(tab_uni_gbk0 + (long)(param_1 + -0xa4) * 2);
}
return uVar1;
}
|
|
18,105
|
string_view::operator[](unsigned long) const
|
monkey531[P]llama/common/json-schema-to-grammar.cpp
|
char operator[](size_t pos) const {
auto index = _start + pos;
if (index >= _end) {
throw std::out_of_range("string_view index out of range");
}
return _str[_start + pos];
}
|
O3
|
cpp
|
string_view::operator[](unsigned long) const:
pushq %r14
pushq %rbx
pushq %rax
addq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
jae 0xa5bb7
movq (%rdi), %rax
movq (%rax), %rax
movb (%rax,%rsi), %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x18360
movq %rax, %rbx
leaq 0xc9ba(%rip), %rsi # 0xb2585
movq %rax, %rdi
callq 0x180f0
movq 0x373d6(%rip), %rsi # 0xdcfb0
movq 0x373b7(%rip), %rdx # 0xdcf98
movq %rbx, %rdi
callq 0x18b30
movq %rax, %r14
movq %rbx, %rdi
callq 0x184f0
movq %r14, %rdi
callq 0x18b90
|
_ZNK11string_viewixEm:
push r14
push rbx
push rax
add rsi, [rdi+8]
cmp rsi, [rdi+10h]
jnb short loc_A5BB7
mov rax, [rdi]
mov rax, [rax]
mov al, [rax+rsi]
add rsp, 8
pop rbx
pop r14
retn
loc_A5BB7:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aStringViewInde; "string_view index out of range"
mov rdi, rax; this
call __ZNSt12out_of_rangeC1EPKc; std::out_of_range::out_of_range(char const*)
mov rsi, cs:_ZTISt12out_of_range_ptr; lptinfo
mov rdx, cs:_ZNSt12out_of_rangeD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
mov rdi, r14
call __Unwind_Resume
|
char string_view::operator[](long long a1, long long a2)
{
unsigned long long v2; // rsi
std::out_of_range *exception; // rbx
v2 = *(_QWORD *)(a1 + 8) + a2;
if ( v2 >= *(_QWORD *)(a1 + 16) )
{
exception = (std::out_of_range *)__cxa_allocate_exception(0x10uLL);
std::out_of_range::out_of_range(exception, "string_view index out of range");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::out_of_range,
(void (*)(void *))&std::out_of_range::~out_of_range);
}
return *(_BYTE *)(**(_QWORD **)a1 + v2);
}
|
operator[]:
PUSH R14
PUSH RBX
PUSH RAX
ADD RSI,qword ptr [RDI + 0x8]
CMP RSI,qword ptr [RDI + 0x10]
JNC 0x001a5bb7
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX]
MOV AL,byte ptr [RAX + RSI*0x1]
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_001a5bb7:
MOV EDI,0x10
CALL 0x00118360
MOV RBX,RAX
LAB_001a5bc4:
LEA RSI,[0x1b2585]
MOV RDI,RAX
CALL 0x001180f0
LAB_001a5bd3:
MOV RSI,qword ptr [0x001dcfb0]
MOV RDX,qword ptr [0x001dcf98]
MOV RDI,RBX
CALL 0x00118b30
|
/* string_view::operator[](unsigned long) const */
int8 __thiscall string_view::operator[](string_view *this,ulong param_1)
{
out_of_range *this_00;
if (param_1 + *(long *)(this + 8) < *(ulong *)(this + 0x10)) {
return CONCAT71((int7)((ulong)**(long **)this >> 8),
*(int1 *)(**(long **)this + param_1 + *(long *)(this + 8)));
}
this_00 = (out_of_range *)__cxa_allocate_exception(0x10);
/* try { // try from 001a5bc4 to 001a5bd2 has its CatchHandler @ 001a5be9 */
std::out_of_range::out_of_range(this_00,"string_view index out of range");
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_001dcfb0,PTR__out_of_range_001dcf98);
}
|
|
18,106
|
js_std_eval_binary
|
bluesky950520[P]quickjs/quickjs-libc.c
|
void js_std_eval_binary(JSContext *ctx, const uint8_t *buf, size_t buf_len,
int load_only)
{
JSValue obj, val;
obj = JS_ReadObject(ctx, buf, buf_len, JS_READ_OBJ_BYTECODE);
if (JS_IsException(obj))
goto exception;
if (load_only) {
if (JS_VALUE_GET_TAG(obj) == JS_TAG_MODULE) {
js_module_set_import_meta(ctx, obj, FALSE, FALSE);
}
} else {
if (JS_VALUE_GET_TAG(obj) == JS_TAG_MODULE) {
if (JS_ResolveModule(ctx, obj) < 0) {
JS_FreeValue(ctx, obj);
goto exception;
}
js_module_set_import_meta(ctx, obj, FALSE, TRUE);
val = JS_EvalFunction(ctx, obj);
val = js_std_await(ctx, val);
} else {
val = JS_EvalFunction(ctx, obj);
}
if (JS_IsException(val)) {
exception:
js_std_dump_error(ctx);
exit(1);
}
JS_FreeValue(ctx, val);
}
}
|
O2
|
c
|
js_std_eval_binary:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdi, %rbx
pushq $0x1
popq %rcx
callq 0x2ffa7
movq %rax, %r14
movq %rdx, %r15
movl %r15d, %eax
cmpq $0x6, %rax
je 0x14780
testl %ebp, %ebp
je 0x146ff
cmpl $-0x3, %eax
jne 0x14742
movq %rbx, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x133c8
movq %rbx, %rdi
cmpl $-0x3, %eax
jne 0x1474d
movq %r14, %rsi
movq %r15, %rdx
callq 0x2d5df
testl %eax, %eax
js 0x14772
pushq $0x1
popq %r8
movq %rbx, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x133c8
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2d2e9
movq %rbx, %rdi
movq %rax, %rsi
callq 0x145e4
jmp 0x14758
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rsi
movq %r15, %rdx
callq 0x2d2e9
cmpl $0x6, %edx
je 0x14780
movq %rbx, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1bbce
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1bbce
movq %rbx, %rdi
callq 0x1404c
pushq $0x1
popq %rdi
callq 0xe960
|
js_std_eval_binary:
push rbp
push r15
push r14
push rbx
push rax
mov ebp, ecx
mov rbx, rdi
push 1
pop rcx
call JS_ReadObject
mov r14, rax
mov r15, rdx
mov eax, r15d
cmp rax, 6
jz loc_14780
test ebp, ebp
jz short loc_146FF
cmp eax, 0FFFFFFFDh
jnz short loc_14742
mov rdi, rbx
mov rsi, r14
xor ecx, ecx
xor r8d, r8d
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp js_module_set_import_meta
loc_146FF:
mov rdi, rbx
cmp eax, 0FFFFFFFDh
jnz short loc_1474D
mov rsi, r14
mov rdx, r15
call JS_ResolveModule
test eax, eax
js short loc_14772
push 1
pop r8
mov rdi, rbx
mov rsi, r14
xor ecx, ecx
call js_module_set_import_meta
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call JS_EvalFunction
mov rdi, rbx
mov rsi, rax
call js_std_await
jmp short loc_14758
loc_14742:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_1474D:
mov rsi, r14
mov rdx, r15
call JS_EvalFunction
loc_14758:
cmp edx, 6
jz short loc_14780
mov rdi, rbx
mov rsi, rax
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp JS_FreeValue
loc_14772:
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call JS_FreeValue
loc_14780:
mov rdi, rbx
call js_std_dump_error
push 1
pop rdi
call _exit
|
long long js_std_eval_binary(long long a1, long long a2, long long a3, int a4)
{
long long v5; // rdx
long long Object; // r14
long long v7; // r15
long long result; // rax
long long v9; // rdx
long long v10; // rax
long long v11; // rdx
long long v12; // rax
int v13; // edx
Object = JS_ReadObject(a1, a2, a3, 1LL);
v7 = v5;
result = (unsigned int)v5;
if ( (unsigned int)v5 == 6LL )
goto LABEL_13;
if ( !a4 )
{
if ( (_DWORD)v5 == -3 )
{
if ( (int)JS_ResolveModule(a1, Object, v5) < 0 )
{
JS_FreeValue(a1, Object);
goto LABEL_13;
}
js_module_set_import_meta(a1, Object, v9, 0, 1);
v10 = JS_EvalFunction(a1, Object, v7);
v12 = js_std_await(a1, v10, v11);
}
else
{
v12 = JS_EvalFunction(a1, Object, v5);
}
if ( v13 != 6 )
return JS_FreeValue(a1, v12);
LABEL_13:
js_std_dump_error(a1);
exit(1LL);
}
if ( (_DWORD)v5 == -3 )
return js_module_set_import_meta(a1, Object, v5, 0, 0);
return result;
}
|
js_std_eval_binary:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBP,ECX
MOV RBX,RDI
PUSH 0x1
POP RCX
CALL 0x0012ffa7
MOV R14,RAX
MOV R15,RDX
MOV EAX,R15D
CMP RAX,0x6
JZ 0x00114780
TEST EBP,EBP
JZ 0x001146ff
CMP EAX,-0x3
JNZ 0x00114742
MOV RDI,RBX
MOV RSI,R14
XOR ECX,ECX
XOR R8D,R8D
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x001133c8
LAB_001146ff:
MOV RDI,RBX
CMP EAX,-0x3
JNZ 0x0011474d
MOV RSI,R14
MOV RDX,R15
CALL 0x0012d5df
TEST EAX,EAX
JS 0x00114772
PUSH 0x1
POP R8
MOV RDI,RBX
MOV RSI,R14
XOR ECX,ECX
CALL 0x001133c8
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL 0x0012d2e9
MOV RDI,RBX
MOV RSI,RAX
CALL 0x001145e4
JMP 0x00114758
LAB_00114742:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0011474d:
MOV RSI,R14
MOV RDX,R15
CALL 0x0012d2e9
LAB_00114758:
CMP EDX,0x6
JZ 0x00114780
MOV RDI,RBX
MOV RSI,RAX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0011bbce
LAB_00114772:
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL 0x0011bbce
LAB_00114780:
MOV RDI,RBX
CALL 0x0011404c
PUSH 0x1
POP RDI
CALL 0x0010e960
|
void js_std_eval_binary(int8 param_1,int8 param_2,int8 param_3,int param_4)
{
int iVar1;
int8 uVar2;
ulong uVar3;
int8 extraout_RDX;
int1 auVar4 [16];
int1 auVar5 [12];
auVar4 = JS_ReadObject();
uVar3 = auVar4._8_8_;
uVar2 = auVar4._0_8_;
if ((uVar3 & 0xffffffff) != 6) {
if (param_4 != 0) {
if (auVar4._8_4_ == -3) {
js_module_set_import_meta(param_1,uVar2,uVar3,0,0);
return;
}
return;
}
if (auVar4._8_4_ == -3) {
iVar1 = JS_ResolveModule(param_1,uVar2,uVar3);
if (iVar1 < 0) {
JS_FreeValue(param_1,uVar2,uVar3);
goto LAB_00114780;
}
js_module_set_import_meta(param_1,uVar2,extraout_RDX,0,1);
uVar2 = JS_EvalFunction(param_1,uVar2,uVar3);
auVar5 = js_std_await(param_1,uVar2);
}
else {
auVar5 = JS_EvalFunction(param_1,uVar2,uVar3);
}
if (auVar5._8_4_ != 6) {
JS_FreeValue(param_1,auVar5._0_8_);
return;
}
}
LAB_00114780:
js_std_dump_error(param_1);
/* WARNING: Subroutine does not return */
exit(1);
}
|
|
18,107
|
bf_acos
|
bluesky950520[P]quickjs/libbf.c
|
int bf_acos(bf_t *r, const bf_t *a, limb_t prec, bf_flags_t flags)
{
bf_context_t *s = r->ctx;
bf_t T_s, *T = &T_s;
int res;
if (a->len == 0) {
if (a->expn == BF_EXP_NAN) {
bf_set_nan(r);
return 0;
} else if (a->expn == BF_EXP_INF) {
bf_set_nan(r);
return BF_ST_INVALID_OP;
} else {
bf_const_pi(r, prec, flags);
bf_mul_2exp(r, -1, BF_PREC_INF, BF_RNDZ);
return BF_ST_INEXACT;
}
}
bf_init(s, T);
bf_set_ui(T, 1);
res = bf_cmpu(a, T);
bf_delete(T);
if (res > 0) {
bf_set_nan(r);
return BF_ST_INVALID_OP;
} else if (res == 0 && a->sign == 0) {
bf_set_zero(r, 0);
return 0;
}
return bf_ziv_rounding(r, a, prec, flags, bf_asin_internal, (void *)TRUE);
}
|
O2
|
c
|
bf_acos:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
cmpq $0x0, 0x18(%rsi)
je 0x7626d
movq (%rbx), %rax
movq %rsp, %r12
movq %rax, (%r12)
andl $0x0, 0x8(%r12)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x10(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r12)
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x6f556
movq %r15, %rdi
movq %r12, %rsi
callq 0x6fd66
movl %eax, %r13d
movq %r12, %rdi
callq 0x7145e
testl %r13d, %r13d
jg 0x7629b
jne 0x76244
cmpl $0x0, 0x8(%r15)
je 0x762e0
leaq -0x162(%rip), %r8 # 0x760e9
pushq $0x1
popq %r9
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebp, %ecx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x74484
movq 0x10(%r15), %rax
movabsq $0x7ffffffffffffffe, %rcx # imm = 0x7FFFFFFFFFFFFFFE
cmpq %rcx, %rax
je 0x7629b
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rcx, %rax
jne 0x762b7
movq %rbx, %rdi
callq 0x6f5cd
xorl %ebp, %ebp
jmp 0x762a6
movq %rbx, %rdi
callq 0x6f5cd
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x740f8
pushq $-0x1
popq %rsi
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
pushq $0x1
popq %rcx
movq %rbx, %rdi
callq 0x70fe2
pushq $0x10
jmp 0x762a5
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %esi, %esi
callq 0x6f612
jmp 0x762a6
|
bf_acos:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov ebp, ecx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
cmp qword ptr [rsi+18h], 0
jz loc_7626D
mov rax, [rbx]
mov r12, rsp
mov [r12], rax
and dword ptr [r12+8], 0
mov rax, 8000000000000000h
mov [r12+10h], rax
xorps xmm0, xmm0
movups xmmword ptr [r12+18h], xmm0
push 1
pop rsi
mov rdi, r12
call bf_set_ui
mov rdi, r15
mov rsi, r12
call bf_cmpu
mov r13d, eax
mov rdi, r12
call bf_delete_0
test r13d, r13d
jg short loc_7629B
jnz short loc_76244
cmp dword ptr [r15+8], 0
jz loc_762E0
loc_76244:
lea r8, bf_asin_internal
push 1
pop r9
mov rdi, rbx
mov rsi, r15
mov rdx, r14
mov ecx, ebp
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp bf_ziv_rounding
loc_7626D:
mov rax, [r15+10h]
mov rcx, 7FFFFFFFFFFFFFFEh
cmp rax, rcx
jz short loc_7629B
mov rcx, 7FFFFFFFFFFFFFFFh
cmp rax, rcx
jnz short loc_762B7
mov rdi, rbx
call bf_set_nan
xor ebp, ebp
jmp short loc_762A6
loc_7629B:
mov rdi, rbx
call bf_set_nan
push 1
loc_762A5:
pop rbp
loc_762A6:
mov eax, ebp
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_762B7:
mov rdi, rbx
mov rsi, r14
mov edx, ebp
call bf_const_pi
push 0FFFFFFFFFFFFFFFFh
pop rsi
mov rdx, 3FFFFFFFFFFFFFFFh
push 1
pop rcx
mov rdi, rbx
call bf_mul_2exp
push 10h
jmp short loc_762A5
loc_762E0:
xor ebp, ebp
mov rdi, rbx
xor esi, esi
call bf_set_zero
jmp short loc_762A6
|
long long bf_acos(long long *a1, long long a2, long long a3, unsigned int a4)
{
int v6; // r13d
long long v8; // rax
unsigned int v9; // ebp
long long v11; // [rsp+0h] [rbp-58h] BYREF
int v12; // [rsp+8h] [rbp-50h]
unsigned long long v13; // [rsp+10h] [rbp-48h]
__int128 v14; // [rsp+18h] [rbp-40h]
if ( !*(_QWORD *)(a2 + 24) )
{
v8 = *(_QWORD *)(a2 + 16);
if ( v8 != 0x7FFFFFFFFFFFFFFELL )
{
if ( v8 == 0x7FFFFFFFFFFFFFFFLL )
{
bf_set_nan((long long)a1);
return 0;
}
bf_const_pi((long long)a1, a3, a4);
bf_mul_2exp((long long)a1, -1LL, 0x3FFFFFFFFFFFFFFFLL, 1u);
return 16;
}
LABEL_9:
bf_set_nan((long long)a1);
return 1;
}
v11 = *a1;
v12 = 0;
v13 = 0x8000000000000000LL;
v14 = 0LL;
bf_set_ui((long long)&v11, 1uLL);
v6 = bf_cmpu((_QWORD *)a2, &v11);
bf_delete_0(&v11);
if ( v6 > 0 )
goto LABEL_9;
if ( v6 || *(_DWORD *)(a2 + 8) )
return bf_ziv_rounding(
a1,
a2,
a3,
a4,
(void ( *)(_QWORD *, long long, long long, long long))bf_asin_internal,
1LL);
v9 = 0;
bf_set_zero((long long)a1, 0);
return v9;
}
|
bf_acos:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBP,ECX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
CMP qword ptr [RSI + 0x18],0x0
JZ 0x0017626d
MOV RAX,qword ptr [RBX]
MOV R12,RSP
MOV qword ptr [R12],RAX
AND dword ptr [R12 + 0x8],0x0
MOV RAX,-0x8000000000000000
MOV qword ptr [R12 + 0x10],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R12 + 0x18],XMM0
PUSH 0x1
POP RSI
MOV RDI,R12
CALL 0x0016f556
MOV RDI,R15
MOV RSI,R12
CALL 0x0016fd66
MOV R13D,EAX
MOV RDI,R12
CALL 0x0017145e
TEST R13D,R13D
JG 0x0017629b
JNZ 0x00176244
CMP dword ptr [R15 + 0x8],0x0
JZ 0x001762e0
LAB_00176244:
LEA R8,[0x1760e9]
PUSH 0x1
POP R9
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV ECX,EBP
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00174484
LAB_0017626d:
MOV RAX,qword ptr [R15 + 0x10]
MOV RCX,0x7ffffffffffffffe
CMP RAX,RCX
JZ 0x0017629b
MOV RCX,0x7fffffffffffffff
CMP RAX,RCX
JNZ 0x001762b7
MOV RDI,RBX
CALL 0x0016f5cd
XOR EBP,EBP
JMP 0x001762a6
LAB_0017629b:
MOV RDI,RBX
CALL 0x0016f5cd
PUSH 0x1
LAB_001762a5:
POP RBP
LAB_001762a6:
MOV EAX,EBP
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001762b7:
MOV RDI,RBX
MOV RSI,R14
MOV EDX,EBP
CALL 0x001740f8
PUSH -0x1
POP RSI
MOV RDX,0x3fffffffffffffff
PUSH 0x1
POP RCX
MOV RDI,RBX
CALL 0x00170fe2
PUSH 0x10
JMP 0x001762a5
LAB_001762e0:
XOR EBP,EBP
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0016f612
JMP 0x001762a6
|
int8 bf_acos(int8 *param_1,long param_2,int8 param_3,int4 param_4)
{
int iVar1;
int8 uVar2;
int8 local_58;
int4 local_50;
int8 local_48;
int8 local_40;
int8 uStack_38;
if (*(long *)(param_2 + 0x18) == 0) {
if (*(long *)(param_2 + 0x10) != 0x7ffffffffffffffe) {
if (*(long *)(param_2 + 0x10) != 0x7fffffffffffffff) {
bf_const_pi(param_1,param_3,param_4);
bf_mul_2exp(param_1,0xffffffffffffffff,0x3fffffffffffffff,1);
return 0x10;
}
bf_set_nan(param_1);
return 0;
}
}
else {
local_58 = *param_1;
local_50 = 0;
local_48 = 0x8000000000000000;
local_40 = 0;
uStack_38 = 0;
bf_set_ui(&local_58,1);
iVar1 = bf_cmpu(param_2,&local_58);
bf_delete(&local_58);
if (iVar1 < 1) {
if ((iVar1 == 0) && (*(int *)(param_2 + 8) == 0)) {
bf_set_zero(param_1,0);
return 0;
}
uVar2 = bf_ziv_rounding(param_1,param_2,param_3,param_4,bf_asin_internal,1);
return uVar2;
}
}
bf_set_nan(param_1);
return 1;
}
|
|
18,108
|
my_wc_mb_utf8mb4_no_range
|
eloqsql/strings/ctype-utf8.c
|
static int
my_wc_mb_utf8mb4_no_range(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *r)
{
int count;
if (wc < 0x80)
count= 1;
else if (wc < 0x800)
count= 2;
else if (wc < 0x10000)
count= 3;
else if (wc < 0x200000)
count= 4;
else
return MY_CS_ILUNI;
switch (count)
{
case 4: r[3]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0x10000;
/* fall through */
case 3: r[2]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0x800;
/* fall through */
case 2: r[1]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0xc0;
/* fall through */
case 1: r[0]= (uchar) wc;
}
return count;
}
|
O3
|
c
|
my_wc_mb_utf8mb4_no_range:
pushq %rbp
movq %rsp, %rbp
movl $0x1, %eax
cmpq $0x80, %rdi
jb 0x58ab9
movl $0x2, %eax
cmpq $0x800, %rdi # imm = 0x800
jb 0x58aa3
movl $0x3, %eax
cmpq $0x10000, %rdi # imm = 0x10000
jb 0x58a8d
xorl %eax, %eax
cmpq $0x1fffff, %rdi # imm = 0x1FFFFF
ja 0x58abc
movl %edi, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x3(%rsi)
shrq $0x6, %rdi
orq $0x10000, %rdi # imm = 0x10000
movl $0x4, %eax
movl %edi, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x2(%rsi)
shrq $0x6, %rdi
orq $0x800, %rdi # imm = 0x800
movl %edi, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x1(%rsi)
shrq $0x6, %rdi
orq $0xc0, %rdi
movb %dil, (%rsi)
popq %rbp
retq
|
my_wc_mb_utf8mb4_no_range:
push rbp
mov rbp, rsp
mov eax, 1
cmp rdi, 80h
jb short loc_58AB9
mov eax, 2
cmp rdi, 800h
jb short loc_58AA3
mov eax, 3
cmp rdi, 10000h
jb short loc_58A8D
xor eax, eax
cmp rdi, offset unk_1FFFFF
ja short loc_58ABC
mov eax, edi
and al, 3Fh
or al, 80h
mov [rsi+3], al
shr rdi, 6
or rdi, 10000h
mov eax, 4
loc_58A8D:
mov ecx, edi
and cl, 3Fh
or cl, 80h
mov [rsi+2], cl
shr rdi, 6
or rdi, 800h
loc_58AA3:
mov ecx, edi
and cl, 3Fh
or cl, 80h
mov [rsi+1], cl
shr rdi, 6
or rdi, 0C0h
loc_58AB9:
mov [rsi], dil
loc_58ABC:
pop rbp
retn
|
long long my_wc_mb_utf8mb4_no_range(unsigned long long a1, _BYTE *a2)
{
long long result; // rax
result = 1LL;
if ( a1 >= 0x80 )
{
result = 2LL;
if ( a1 >= 0x800 )
{
result = 3LL;
if ( a1 >= 0x10000 )
{
result = 0LL;
if ( a1 > (unsigned long long)&unk_1FFFFF )
return result;
a2[3] = a1 & 0x3F | 0x80;
a1 = (a1 >> 6) | 0x10000;
result = 4LL;
}
a2[2] = a1 & 0x3F | 0x80;
a1 = (a1 >> 6) | 0x800;
}
a2[1] = a1 & 0x3F | 0x80;
a1 = (a1 >> 6) | 0xC0;
}
*a2 = a1;
return result;
}
|
my_wc_mb_utf8mb4_no_range:
PUSH RBP
MOV RBP,RSP
MOV EAX,0x1
CMP RDI,0x80
JC 0x00158ab9
MOV EAX,0x2
CMP RDI,0x800
JC 0x00158aa3
MOV EAX,0x3
CMP RDI,0x10000
JC 0x00158a8d
XOR EAX,EAX
CMP RDI,0x1fffff
JA 0x00158abc
MOV EAX,EDI
AND AL,0x3f
OR AL,0x80
MOV byte ptr [RSI + 0x3],AL
SHR RDI,0x6
OR RDI,0x10000
MOV EAX,0x4
LAB_00158a8d:
MOV ECX,EDI
AND CL,0x3f
OR CL,0x80
MOV byte ptr [RSI + 0x2],CL
SHR RDI,0x6
OR RDI,0x800
LAB_00158aa3:
MOV ECX,EDI
AND CL,0x3f
OR CL,0x80
MOV byte ptr [RSI + 0x1],CL
SHR RDI,0x6
OR RDI,0xc0
LAB_00158ab9:
MOV byte ptr [RSI],DIL
LAB_00158abc:
POP RBP
RET
|
int8 my_wc_mb_utf8mb4_no_range(ulong param_1,int1 *param_2)
{
int8 uVar1;
uVar1 = 1;
if (0x7f < param_1) {
uVar1 = 2;
if (0x7ff < param_1) {
uVar1 = 3;
if (0xffff < param_1) {
if (0x1fffff < param_1) {
return 0;
}
param_2[3] = (byte)param_1 & 0x3f | 0x80;
param_1 = param_1 >> 6 | 0x10000;
uVar1 = 4;
}
param_2[2] = (byte)param_1 & 0x3f | 0x80;
param_1 = param_1 >> 6 | 0x800;
}
param_2[1] = (byte)param_1 & 0x3f | 0x80;
param_1 = param_1 >> 6 | 0xc0;
}
*param_2 = (char)param_1;
return uVar1;
}
|
|
18,109
|
mi_decrement_open_count
|
eloqsql/storage/myisam/mi_locking.c
|
int _mi_decrement_open_count(MI_INFO *info)
{
uchar buff[2];
register MYISAM_SHARE *share=info->s;
int lock_error=0,write_error=0;
if (share->global_changed)
{
uint old_lock=info->lock_type;
share->global_changed=0;
lock_error= my_disable_locking ? 0 : mi_lock_database(info,F_WRLCK);
/* Its not fatal even if we couldn't get the lock ! */
if (share->state.open_count > 0)
{
share->state.open_count--;
mi_int2store(buff,share->state.open_count);
write_error= (mysql_file_pwrite(share->kfile, buff, sizeof(buff),
sizeof(share->state.header),
MYF(MY_NABP)) != 0);
}
if (!lock_error && !my_disable_locking)
lock_error=mi_lock_database(info,old_lock);
}
return MY_TEST(lock_error || write_error);
}
|
O0
|
c
|
mi_decrement_open_count:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpb $0x0, 0x380(%rax)
je 0xb173c
movq -0x8(%rbp), %rax
movl 0x1f4(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
movb $0x0, 0x380(%rax)
leaq 0xbd1c33(%rip), %rax # 0xc832a8
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0xb1684
xorl %eax, %eax
movl %eax, -0x2c(%rbp)
jmp 0xb1695
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0xaffb0
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, 0xec(%rax)
jbe 0xb1719
movq -0x18(%rbp), %rax
movl 0xec(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0xec(%rax)
movq -0x18(%rbp), %rax
movl 0xec(%rax), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
movb %al, -0x9(%rbp)
movl -0x28(%rbp), %eax
shrl $0x8, %eax
movb %al, -0xa(%rbp)
movq -0x18(%rbp), %rax
movl 0x350(%rax), %edx
leaq -0xa(%rbp), %rcx
leaq 0xa2408(%rip), %rdi # 0x153af4
movl $0x28c, %esi # imm = 0x28C
movl $0x2, %r8d
movl $0x18, %r9d
movq $0x4, (%rsp)
callq 0xb14b0
cmpq $0x0, %rax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x20(%rbp)
cmpl $0x0, -0x1c(%rbp)
jne 0xb173a
leaq 0xbd1b82(%rip), %rax # 0xc832a8
cmpb $0x0, (%rax)
jne 0xb173a
movq -0x8(%rbp), %rdi
movl -0x24(%rbp), %esi
callq 0xaffb0
movl %eax, -0x1c(%rbp)
jmp 0xb173c
movb $0x1, %al
cmpl $0x0, -0x1c(%rbp)
movb %al, -0x2d(%rbp)
jne 0xb1751
cmpl $0x0, -0x20(%rbp)
setne %al
movb %al, -0x2d(%rbp)
movb -0x2d(%rbp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
_mi_decrement_open_count:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_18], rax
mov [rbp+var_1C], 0
mov [rbp+var_20], 0
mov rax, [rbp+var_18]
cmp byte ptr [rax+380h], 0
jz loc_B173C
mov rax, [rbp+var_8]
mov eax, [rax+1F4h]
mov [rbp+var_24], eax
mov rax, [rbp+var_18]
mov byte ptr [rax+380h], 0
lea rax, my_disable_locking
movsx eax, byte ptr [rax]
cmp eax, 0
jz short loc_B1684
xor eax, eax
mov [rbp+var_2C], eax
jmp short loc_B1695
loc_B1684:
mov rdi, [rbp+var_8]
mov esi, 1
call mi_lock_database
mov [rbp+var_2C], eax
loc_B1695:
mov eax, [rbp+var_2C]
mov [rbp+var_1C], eax
mov rax, [rbp+var_18]
cmp dword ptr [rax+0ECh], 0
jbe short loc_B1719
mov rax, [rbp+var_18]
mov ecx, [rax+0ECh]
add ecx, 0FFFFFFFFh
mov [rax+0ECh], ecx
mov rax, [rbp+var_18]
mov eax, [rax+0ECh]
mov [rbp+var_28], eax
mov eax, [rbp+var_28]
mov [rbp+var_9], al
mov eax, [rbp+var_28]
shr eax, 8
mov [rbp+var_A], al
mov rax, [rbp+var_18]
mov edx, [rax+350h]
lea rcx, [rbp+var_A]
lea rdi, aWorkspaceLlm4b_27; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 28Ch
mov r8d, 2
mov r9d, 18h
mov [rsp+40h+var_40], 4
call inline_mysql_file_pwrite_1
cmp rax, 0
setnz al
and al, 1
movzx eax, al
mov [rbp+var_20], eax
loc_B1719:
cmp [rbp+var_1C], 0
jnz short loc_B173A
lea rax, my_disable_locking
cmp byte ptr [rax], 0
jnz short loc_B173A
mov rdi, [rbp+var_8]
mov esi, [rbp+var_24]
call mi_lock_database
mov [rbp+var_1C], eax
loc_B173A:
jmp short $+2
loc_B173C:
mov al, 1
cmp [rbp+var_1C], 0
mov [rbp+var_2D], al
jnz short loc_B1751
cmp [rbp+var_20], 0
setnz al
mov [rbp+var_2D], al
loc_B1751:
mov dl, [rbp+var_2D]
xor eax, eax
mov ecx, 1
test dl, 1
cmovnz eax, ecx
add rsp, 40h
pop rbp
retn
|
_BOOL8 mi_decrement_open_count(_DWORD *a1)
{
__int16 v1; // kr00_2
bool v3; // [rsp+13h] [rbp-2Dh]
int v4; // [rsp+14h] [rbp-2Ch]
unsigned int v5; // [rsp+1Ch] [rbp-24h]
BOOL v6; // [rsp+20h] [rbp-20h]
int v7; // [rsp+24h] [rbp-1Ch]
long long v8; // [rsp+28h] [rbp-18h]
_BYTE v9[2]; // [rsp+36h] [rbp-Ah] BYREF
_DWORD *v10; // [rsp+38h] [rbp-8h]
v10 = a1;
v8 = *(_QWORD *)a1;
v7 = 0;
v6 = 0;
if ( *(_BYTE *)(*(_QWORD *)a1 + 896LL) )
{
v5 = v10[125];
*(_BYTE *)(v8 + 896) = 0;
if ( my_disable_locking )
v4 = 0;
else
v4 = mi_lock_database(v10, (_BYTE *)&dword_0 + 1);
v7 = v4;
if ( *(_DWORD *)(v8 + 236) )
{
v1 = --*(_DWORD *)(v8 + 236);
v9[0] = HIBYTE(v1);
v9[1] = v1;
v6 = inline_mysql_file_pwrite_1(
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_locking.c",
0x28Cu,
*(_DWORD *)(v8 + 848),
(long long)v9,
2LL,
24LL,
4LL) != 0;
}
if ( !v4 && !my_disable_locking )
v7 = mi_lock_database(v10, (const char *)v5);
}
v3 = 1;
if ( !v7 )
return v6;
return v3;
}
|
_mi_decrement_open_count:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV dword ptr [RBP + -0x1c],0x0
MOV dword ptr [RBP + -0x20],0x0
MOV RAX,qword ptr [RBP + -0x18]
CMP byte ptr [RAX + 0x380],0x0
JZ 0x001b173c
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x1f4]
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x380],0x0
LEA RAX,[0xd832a8]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x001b1684
XOR EAX,EAX
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x001b1695
LAB_001b1684:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x1
CALL 0x001affb0
MOV dword ptr [RBP + -0x2c],EAX
LAB_001b1695:
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0xec],0x0
JBE 0x001b1719
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RAX + 0xec]
ADD ECX,-0x1
MOV dword ptr [RAX + 0xec],ECX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0xec]
MOV dword ptr [RBP + -0x28],EAX
MOV EAX,dword ptr [RBP + -0x28]
MOV byte ptr [RBP + -0x9],AL
MOV EAX,dword ptr [RBP + -0x28]
SHR EAX,0x8
MOV byte ptr [RBP + -0xa],AL
MOV RAX,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RAX + 0x350]
LEA RCX,[RBP + -0xa]
LEA RDI,[0x253af4]
MOV ESI,0x28c
MOV R8D,0x2
MOV R9D,0x18
MOV qword ptr [RSP],0x4
CALL 0x001b14b0
CMP RAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0x20],EAX
LAB_001b1719:
CMP dword ptr [RBP + -0x1c],0x0
JNZ 0x001b173a
LEA RAX,[0xd832a8]
CMP byte ptr [RAX],0x0
JNZ 0x001b173a
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0x24]
CALL 0x001affb0
MOV dword ptr [RBP + -0x1c],EAX
LAB_001b173a:
JMP 0x001b173c
LAB_001b173c:
MOV AL,0x1
CMP dword ptr [RBP + -0x1c],0x0
MOV byte ptr [RBP + -0x2d],AL
JNZ 0x001b1751
CMP dword ptr [RBP + -0x20],0x0
SETNZ AL
MOV byte ptr [RBP + -0x2d],AL
LAB_001b1751:
MOV DL,byte ptr [RBP + -0x2d]
XOR EAX,EAX
MOV ECX,0x1
TEST DL,0x1
CMOVNZ EAX,ECX
ADD RSP,0x40
POP RBP
RET
|
bool _mi_decrement_open_count(long *param_1)
{
int4 uVar1;
long lVar2;
bool bVar3;
int local_34;
int local_24;
int1 local_12;
int1 local_11;
long *local_10;
lVar2 = *param_1;
local_24 = 0;
bVar3 = false;
if (*(char *)(lVar2 + 0x380) != '\0') {
uVar1 = *(int4 *)((long)param_1 + 500);
*(int1 *)(lVar2 + 0x380) = 0;
local_10 = param_1;
if (my_disable_locking == '\0') {
local_34 = mi_lock_database(param_1,1);
}
else {
local_34 = 0;
}
local_24 = local_34;
if (*(int *)(lVar2 + 0xec) != 0) {
*(int *)(lVar2 + 0xec) = *(int *)(lVar2 + 0xec) + -1;
local_11 = (int1)*(int4 *)(lVar2 + 0xec);
local_12 = (int1)((uint)*(int4 *)(lVar2 + 0xec) >> 8);
lVar2 = inline_mysql_file_pwrite
("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_locking.c",
0x28c,*(int4 *)(lVar2 + 0x350),&local_12,2,0x18,4);
bVar3 = lVar2 != 0;
}
if ((local_34 == 0) && (my_disable_locking == '\0')) {
local_24 = mi_lock_database(local_10,uVar1);
}
}
return local_24 != 0 || bVar3;
}
|
|
18,110
|
bool nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&) const
|
llama.cpp/common/json.hpp
|
bool operator==(const IterImpl& other) const
{
// if objects are not the same, the comparison is undefined
if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
{
JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", m_object));
}
JSON_ASSERT(m_object != nullptr);
switch (m_object->m_data.m_type)
{
case value_t::object:
return (m_it.object_iterator == other.m_it.object_iterator);
case value_t::array:
return (m_it.array_iterator == other.m_it.array_iterator);
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
return (m_it.primitive_iterator == other.m_it.primitive_iterator);
}
}
|
O3
|
cpp
|
bool nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::operator==<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, nullptr>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movq (%rdi), %rax
cmpq (%rsi), %rax
jne 0x8dc5f
testq %rax, %rax
je 0x8dcbd
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x8dc3f
cmpl $0x1, %eax
jne 0x8dc49
movq 0x8(%r14), %rax
cmpq 0x8(%rsi), %rax
jmp 0x8dc51
movq 0x10(%r14), %rax
cmpq 0x10(%rsi), %rax
jmp 0x8dc51
movq 0x18(%r14), %rax
cmpq 0x18(%rsi), %rax
sete %al
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x20680
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x900f3(%rip), %rsi # 0x11dd6f
leaq 0x9011c(%rip), %rdx # 0x11dd9f
leaq 0x8(%rsp), %rdi
callq 0x2a262
movq (%r14), %rcx
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xd4, %esi
callq 0x8dd12
xorl %ebp, %ebp
leaq 0xd6352(%rip), %rsi # 0x164000
leaq -0x13cbd(%rip), %rdx # 0x79ff8
movq %rbx, %rdi
callq 0x20ab0
leaq 0x8f0bc(%rip), %rdi # 0x11cd80
leaq 0x874e0(%rip), %rdx # 0x1151ab
leaq 0x952d6(%rip), %rcx # 0x122fa8
movl $0x3422, %esi # imm = 0x3422
xorl %eax, %eax
callq 0x20ed0
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x8dcf8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x20180
testb %bpl, %bpl
jne 0x8dd02
jmp 0x8dd0a
movq %rax, %r14
movq %rbx, %rdi
callq 0x20f60
movq %r14, %rdi
callq 0x20b50
|
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_:
push rbp; void *
push r15; int
push r14; __int64
push rbx; int
sub rsp, 28h
mov r14, rdi
mov rax, [rdi]
cmp rax, [rsi]
jnz short loc_8DC5F
test rax, rax
jz loc_8DCBD
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_8DC3F
cmp eax, 1
jnz short loc_8DC49
mov rax, [r14+8]
cmp rax, [rsi+8]
jmp short loc_8DC51
loc_8DC3F:
mov rax, [r14+10h]
cmp rax, [rsi+10h]
jmp short loc_8DC51
loc_8DC49:
mov rax, [r14+18h]
cmp rax, [rsi+18h]
loc_8DC51:
setz al
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_8DC5F:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea r15, [rsp+48h+var_30]
mov [r15-10h], r15
lea rsi, aCannotCompareI; "cannot compare iterators of different c"...
lea rdx, aCannotCompareI+30h; ""
lea rdi, [rsp+48h+var_40]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rcx, [r14]
mov bpl, 1
lea rdx, [rsp+48h+var_40]
mov rdi, rbx; this
mov esi, 0D4h; int
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_8DCBD:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN+7; "m_object != nullptr"
mov esi, 3422h
xor eax, eax
call _ggml_abort
mov r14, rax
mov rdi, [rsp+48h+var_40]; void *
cmp rdi, r15
jz short loc_8DCF8
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8DCF8:
test bpl, bpl
jnz short loc_8DD02
jmp short loc_8DD0A
mov r14, rax
loc_8DD02:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_8DD0A:
mov rdi, r14
call __Unwind_Resume
|
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV R14,RDI
MOV RAX,qword ptr [RDI]
CMP RAX,qword ptr [RSI]
JNZ 0x0018dc5f
TEST RAX,RAX
JZ 0x0018dcbd
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x2
JZ 0x0018dc3f
CMP EAX,0x1
JNZ 0x0018dc49
MOV RAX,qword ptr [R14 + 0x8]
CMP RAX,qword ptr [RSI + 0x8]
JMP 0x0018dc51
LAB_0018dc3f:
MOV RAX,qword ptr [R14 + 0x10]
CMP RAX,qword ptr [RSI + 0x10]
JMP 0x0018dc51
LAB_0018dc49:
MOV RAX,qword ptr [R14 + 0x18]
CMP RAX,qword ptr [RSI + 0x18]
LAB_0018dc51:
SETZ AL
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0018dc5f:
MOV EDI,0x20
CALL 0x00120680
MOV RBX,RAX
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
LAB_0018dc75:
LEA RSI,[0x21dd6f]
LEA RDX,[0x21dd9f]
LEA RDI,[RSP + 0x8]
CALL 0x0012a262
MOV RCX,qword ptr [R14]
MOV BPL,0x1
LAB_0018dc93:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0xd4
CALL 0x0018dd12
XOR EBP,EBP
LEA RSI,[0x264000]
LEA RDX,[0x179ff8]
MOV RDI,RBX
CALL 0x00120ab0
LAB_0018dcbd:
LEA RDI,[0x21cd80]
LEA RDX,[0x2151ab]
LEA RCX,[0x222fa8]
MOV ESI,0x3422
XOR EAX,EAX
CALL 0x00120ed0
|
int8
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
(int8 *param_1,int8 *param_2)
{
char *pcVar1;
long lVar2;
int8 uVar3;
bool bVar4;
int1 *local_40 [2];
int1 local_30 [16];
pcVar1 = (char *)*param_1;
if (pcVar1 != (char *)*param_2) {
uVar3 = __cxa_allocate_exception(0x20);
local_40[0] = local_30;
/* try { // try from 0018dc75 to 0018dc8c has its CatchHandler @ 0018dcff */
std::__cxx11::string::_M_construct<char_const*>
(local_40,"cannot compare iterators of different containers","");
/* try { // try from 0018dc93 to 0018dcbc has its CatchHandler @ 0018dcde */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar3,0xd4,local_40,*param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
if (pcVar1 != (char *)0x0) {
if (*pcVar1 == '\x02') {
lVar2 = param_1[2];
bVar4 = lVar2 == param_2[2];
}
else if (*pcVar1 == '\x01') {
lVar2 = param_1[1];
bVar4 = lVar2 == param_2[1];
}
else {
lVar2 = param_1[3];
bVar4 = lVar2 == param_2[3];
}
return CONCAT71((int7)((ulong)lVar2 >> 8),bVar4);
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",0x3422,
"GGML_ASSERT(%s) failed","m_object != nullptr");
}
|
||
18,111
|
nglog::LogDestination::FlushLogFiles(int)
|
ng-log[P]ng-log/src/logging.cc
|
inline void LogDestination::FlushLogFiles(int min_severity) {
// Prevent any subtle race conditions by wrapping a mutex lock around
// all this stuff.
std::lock_guard<std::mutex> l{log_mutex};
for (int i = min_severity; i < NUM_SEVERITIES; i++) {
LogDestination* log = log_destination(static_cast<LogSeverity>(i));
if (log != nullptr) {
log->logger_->Flush();
}
}
}
|
O3
|
cpp
|
nglog::LogDestination::FlushLogFiles(int):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edi, %ebx
leaq 0x2f5b4(%rip), %rdi # 0x41d18
callq 0x77d0
testl %eax, %eax
jne 0x12806
cmpl $0x3, %ebx
jg 0x127ec
leaq 0x204e3(%rip), %r13 # 0x32c60
leaq 0x8(%rsp), %r14
movl %ebx, %r12d
movq (%r13,%r12,8), %rax
testq %rax, %rax
jne 0x127d8
movl $0xd0, %edi
callq 0x8e90
movq %rax, %r15
movq %rax, %rdi
movl %ebx, %esi
xorl %edx, %edx
callq 0xb300
leaq (,%r12,8), %r12
addq %r13, %r12
movq $0x0, 0x8(%rsp)
movq %r12, %rdi
movq %r15, %rsi
callq 0x135f6
movq %r14, %rdi
callq 0x12210
movq (%r12), %rax
testq %rax, %rax
je 0x127e5
movq 0xc8(%rax), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
incl %ebx
cmpl $0x4, %ebx
jne 0x12782
leaq 0x2f525(%rip), %rdi # 0x41d18
callq 0x73c0
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl %eax, %edi
callq 0x7330
movq %rax, %rbx
movl $0xd0, %esi
movq %r15, %rdi
callq 0x8edc
jmp 0x12822
movq %rax, %rbx
leaq 0x2f4ef(%rip), %rdi # 0x41d18
callq 0x73c0
movq %rbx, %rdi
callq 0x7930
|
_ZN5nglog14LogDestination13FlushLogFilesEi:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov ebx, edi
lea rdi, _ZN5nglogL9log_mutexE; nglog::log_mutex
call _pthread_mutex_lock
test eax, eax
jnz loc_12806
cmp ebx, 3
jg short loc_127EC
lea r13, _ZN5nglog14LogDestination17log_destinations_E; nglog::LogDestination::log_destinations_
lea r14, [rsp+38h+var_30]
loc_12782:
mov r12d, ebx
mov rax, [r13+r12*8+0]
test rax, rax
jnz short loc_127D8
mov edi, 0D0h; unsigned __int64
call _Znwm; operator new(ulong)
mov r15, rax
mov rdi, rax
mov esi, ebx
xor edx, edx
call _ZN5nglog14LogDestinationC2ENS_11LogSeverityEPKc; nglog::LogDestination::LogDestination(nglog::LogSeverity,char const*)
lea r12, ds:0[r12*8]
add r12, r13
mov [rsp+38h+var_30], 0
mov rdi, r12
mov rsi, r15
call _ZNSt15__uniq_ptr_implIN5nglog14LogDestinationESt14default_deleteIS1_EE5resetEPS1_; std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset(nglog::LogDestination*)
mov rdi, r14
call _ZNSt10unique_ptrIN5nglog14LogDestinationESt14default_deleteIS1_EED2Ev; std::unique_ptr<nglog::LogDestination>::~unique_ptr()
mov rax, [r12]
test rax, rax
jz short loc_127E5
loc_127D8:
mov rdi, [rax+0C8h]
mov rax, [rdi]
call qword ptr [rax+18h]
loc_127E5:
inc ebx
cmp ebx, 4
jnz short loc_12782
loc_127EC:
lea rdi, _ZN5nglogL9log_mutexE; nglog::log_mutex
call _pthread_mutex_unlock
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
loc_12806:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
mov rbx, rax
mov esi, 0D0h; unsigned __int64
mov rdi, r15; void *
call _ZdlPvm; operator delete(void *,ulong)
jmp short loc_12822
mov rbx, rax
loc_12822:
lea rdi, _ZN5nglogL9log_mutexE; nglog::log_mutex
call _pthread_mutex_unlock
mov rdi, rbx
call __Unwind_Resume
|
long long nglog::LogDestination::FlushLogFiles(nglog::LogDestination *this)
{
int v1; // ebx
int v2; // eax
long long v3; // rax
long long v4; // r15
nglog::LogDestination *v6; // [rsp+8h] [rbp-30h] BYREF
v1 = (int)this;
v2 = pthread_mutex_lock(&nglog::log_mutex);
if ( v2 )
std::__throw_system_error(v2);
if ( (int)this <= 3 )
{
do
{
v3 = nglog::LogDestination::log_destinations_[v1];
if ( v3
|| (v4 = operator new(208LL),
nglog::LogDestination::LogDestination(v4, v1, 0LL),
v6 = 0LL,
std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset(
&nglog::LogDestination::log_destinations_[v1],
v4),
std::unique_ptr<nglog::LogDestination>::~unique_ptr(&v6),
(v3 = nglog::LogDestination::log_destinations_[v1]) != 0) )
{
(*(void ( **)(_QWORD))(**(_QWORD **)(v3 + 200) + 24LL))(*(_QWORD *)(v3 + 200));
}
++v1;
}
while ( v1 != 4 );
}
return pthread_mutex_unlock(&nglog::log_mutex);
}
|
FlushLogFiles:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV EBX,EDI
LEA RDI,[0x141d18]
CALL 0x001077d0
TEST EAX,EAX
JNZ 0x00112806
CMP EBX,0x3
JG 0x001127ec
LEA R13,[0x132c60]
LEA R14,[RSP + 0x8]
LAB_00112782:
MOV R12D,EBX
MOV RAX,qword ptr [R13 + R12*0x8]
TEST RAX,RAX
JNZ 0x001127d8
LAB_0011278f:
MOV EDI,0xd0
CALL 0x00108e90
LAB_00112799:
MOV R15,RAX
MOV RDI,RAX
MOV ESI,EBX
XOR EDX,EDX
CALL 0x0010b300
LEA R12,[R12*0x8]
ADD R12,R13
MOV qword ptr [RSP + 0x8],0x0
MOV RDI,R12
MOV RSI,R15
CALL 0x001135f6
MOV RDI,R14
CALL 0x00112210
MOV RAX,qword ptr [R12]
TEST RAX,RAX
JZ 0x001127e5
LAB_001127d8:
MOV RDI,qword ptr [RAX + 0xc8]
MOV RAX,qword ptr [RDI]
LAB_001127e2:
CALL qword ptr [RAX + 0x18]
LAB_001127e5:
INC EBX
CMP EBX,0x4
JNZ 0x00112782
LAB_001127ec:
LEA RDI,[0x141d18]
CALL 0x001073c0
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
LAB_00112806:
MOV EDI,EAX
CALL 0x00107330
|
/* nglog::LogDestination::FlushLogFiles(int) */
void nglog::LogDestination::FlushLogFiles(int param_1)
{
int iVar1;
LogDestination *pLVar2;
long lVar3;
uint uVar4;
int8 local_30;
ulong uVar5;
uVar5 = (ulong)(uint)param_1;
iVar1 = pthread_mutex_lock((pthread_mutex_t *)log_mutex);
if (iVar1 != 0) {
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar1);
}
if (param_1 < 4) {
do {
lVar3 = (&log_destinations_)[uVar5];
if (lVar3 == 0) {
/* try { // try from 0011278f to 00112798 has its CatchHandler @ 0011281f */
pLVar2 = (LogDestination *)operator_new(0xd0);
/* try { // try from 00112799 to 001127a7 has its CatchHandler @ 0011280d */
LogDestination(pLVar2,uVar5,0);
local_30 = 0;
std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::
reset((__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>> *)
(&log_destinations_ + uVar5),pLVar2);
std::unique_ptr<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::
~unique_ptr((unique_ptr<nglog::LogDestination,std::default_delete<nglog::LogDestination>> *)
&local_30);
lVar3 = *(long *)(&log_destinations_ + uVar5);
if (lVar3 != 0) goto LAB_001127d8;
}
else {
LAB_001127d8:
/* try { // try from 001127e2 to 001127e4 has its CatchHandler @ 0011281f */
(**(code **)(**(long **)(lVar3 + 200) + 0x18))();
}
uVar4 = (int)uVar5 + 1;
uVar5 = (ulong)uVar4;
} while (uVar4 != 4);
}
pthread_mutex_unlock((pthread_mutex_t *)log_mutex);
return;
}
|
|
18,112
|
js_string_charAt
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_string_charAt(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue val, ret;
JSString *p;
int idx, c;
val = JS_ToStringCheckObject(ctx, this_val);
if (JS_IsException(val))
return val;
p = JS_VALUE_GET_STRING(val);
if (JS_ToInt32Sat(ctx, &idx, argv[0])) {
JS_FreeValue(ctx, val);
return JS_EXCEPTION;
}
if (idx < 0 || idx >= p->len) {
ret = JS_AtomToString(ctx, JS_ATOM_empty_string);
} else {
c = string_get(p, idx);
ret = js_new_string_char(ctx, c);
}
JS_FreeValue(ctx, val);
return ret;
}
|
O3
|
c
|
js_string_charAt:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %r12
movq %rdi, %r15
callq 0x4350b
movq %rax, %r14
movq %rdx, %rbx
cmpl $0x6, %ebx
jne 0x7cd6d
movq %r14, %r12
movq %rbx, %r13
jmp 0x7ce3d
movq (%r12), %rdx
movq 0x8(%r12), %rcx
cmpl $-0x9, %ecx
jb 0x7cd7d
incl (%rdx)
leaq 0xc(%rsp), %rsi
movq %r15, %rdi
callq 0x27161
testl %eax, %eax
je 0x7cdb7
cmpl $-0x9, %ebx
jb 0x7cddd
movq 0x18(%r15), %rdi
movl (%r14), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%r14)
movl $0x6, %r13d
xorl %r12d, %r12d
cmpl $0x2, %eax
jl 0x7ce32
jmp 0x7ce3d
movslq 0xc(%rsp), %rax
testq %rax, %rax
js 0x7cde8
movq 0x4(%r14), %rcx
movl %ecx, %edx
andl $0x7fffffff, %edx # imm = 0x7FFFFFFF
cmpl %edx, %eax
jae 0x7cde8
testl %ecx, %ecx
js 0x7ce04
movzbl 0x18(%r14,%rax), %eax
jmp 0x7ce0a
movl $0x6, %r13d
xorl %r12d, %r12d
jmp 0x7ce3d
movq 0x18(%r15), %rdi
movq 0x68(%rdi), %rax
movq 0x178(%rax), %r12
incl (%r12)
movq $-0x7, %r13
jmp 0x7ce1f
movzwl 0x18(%r14,%rax,2), %eax
movzwl %ax, %esi
movq %r15, %rdi
callq 0x3df42
movq %rax, %r12
movq %rdx, %r13
movq 0x18(%r15), %rdi
cmpl $-0x9, %ebx
jb 0x7ce3d
movl (%r14), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%r14)
cmpl $0x1, %eax
jg 0x7ce3d
movq %r14, %rsi
movq %rbx, %rdx
callq 0x20d90
movq %r12, %rax
movq %r13, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
|
js_string_charAt:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov r12, r8
mov r15, rdi
call JS_ToStringCheckObject
mov r14, rax
mov rbx, rdx
cmp ebx, 6
jnz short loc_7CD6D
mov r12, r14
mov r13, rbx
jmp loc_7CE3D
loc_7CD6D:
mov rdx, [r12]
mov rcx, [r12+8]
cmp ecx, 0FFFFFFF7h
jb short loc_7CD7D
inc dword ptr [rdx]
loc_7CD7D:
lea rsi, [rsp+38h+var_2C]
mov rdi, r15
call JS_ToInt32SatFree
test eax, eax
jz short loc_7CDB7
cmp ebx, 0FFFFFFF7h
jb short loc_7CDDD
mov rdi, [r15+18h]
mov eax, [r14]
lea ecx, [rax-1]
mov [r14], ecx
mov r13d, 6
xor r12d, r12d
cmp eax, 2
jl loc_7CE32
jmp loc_7CE3D
loc_7CDB7:
movsxd rax, [rsp+38h+var_2C]
test rax, rax
js short loc_7CDE8
mov rcx, [r14+4]
mov edx, ecx
and edx, 7FFFFFFFh
cmp eax, edx
jnb short loc_7CDE8
test ecx, ecx
js short loc_7CE04
movzx eax, byte ptr [r14+rax+18h]
jmp short loc_7CE0A
loc_7CDDD:
mov r13d, 6
xor r12d, r12d
jmp short loc_7CE3D
loc_7CDE8:
mov rdi, [r15+18h]
mov rax, [rdi+68h]
mov r12, [rax+178h]
inc dword ptr [r12]
mov r13, 0FFFFFFFFFFFFFFF9h
jmp short loc_7CE1F
loc_7CE04:
movzx eax, word ptr [r14+rax*2+18h]
loc_7CE0A:
movzx esi, ax
mov rdi, r15
call js_new_string_char
mov r12, rax
mov r13, rdx
mov rdi, [r15+18h]
loc_7CE1F:
cmp ebx, 0FFFFFFF7h
jb short loc_7CE3D
mov eax, [r14]
lea ecx, [rax-1]
mov [r14], ecx
cmp eax, 1
jg short loc_7CE3D
loc_7CE32:
mov rsi, r14
mov rdx, rbx
call js_free_value_rt
loc_7CE3D:
mov rax, r12
mov rdx, r13
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
|
_DWORD * js_string_charAt(
long long a1,
_DWORD *a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
unsigned long long v15; // rax
_QWORD *v16; // r14
long long v17; // rdx
long long v18; // rbx
_DWORD *v19; // r12
_DWORD *v20; // rdx
long long v21; // rcx
long long v22; // r8
long long v23; // r9
long long v24; // rdi
int v25; // eax
long long v26; // rcx
unsigned __int16 v27; // ax
int v28; // eax
unsigned int v30[11]; // [rsp+Ch] [rbp-2Ch] BYREF
v15 = JS_ToStringCheckObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v16 = (_QWORD *)v15;
v18 = v17;
if ( (_DWORD)v17 == 6 )
return (_DWORD *)v15;
v20 = *(_DWORD **)a5;
v21 = *(_QWORD *)(a5 + 8);
if ( (unsigned int)v21 >= 0xFFFFFFF7 )
++*v20;
if ( (unsigned int)JS_ToInt32SatFree(a1, (int *)v30, (long long)v20, v21) )
{
if ( (unsigned int)v18 < 0xFFFFFFF7 )
return 0LL;
v24 = *(_QWORD *)(a1 + 24);
v25 = *(_DWORD *)v16;
v26 = (unsigned int)(*(_DWORD *)v16 - 1);
*(_DWORD *)v16 = v26;
v19 = 0LL;
if ( v25 >= 2 )
return v19;
LABEL_19:
js_free_value_rt(v24, v16, v18, v26, v22, v23);
return v19;
}
if ( (v30[0] & 0x80000000) != 0 || v30[0] >= (*((_DWORD *)v16 + 1) & 0x7FFFFFFFu) )
{
v24 = *(_QWORD *)(a1 + 24);
v19 = *(_DWORD **)(*(_QWORD *)(v24 + 104) + 376LL);
++*v19;
}
else
{
if ( (int)*(_QWORD *)((char *)v16 + 4) < 0 )
v27 = *((_WORD *)v16 + (int)v30[0] + 12);
else
v27 = *((unsigned __int8 *)v16 + (int)v30[0] + 24);
v19 = (_DWORD *)js_new_string_char(a1, v27);
v24 = *(_QWORD *)(a1 + 24);
}
if ( (unsigned int)v18 >= 0xFFFFFFF7 )
{
v28 = *(_DWORD *)v16;
v26 = (unsigned int)(*(_DWORD *)v16 - 1);
*(_DWORD *)v16 = v26;
if ( v28 <= 1 )
goto LABEL_19;
}
return v19;
}
|
js_string_charAt:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R12,R8
MOV R15,RDI
CALL 0x0014350b
MOV R14,RAX
MOV RBX,RDX
CMP EBX,0x6
JNZ 0x0017cd6d
MOV R12,R14
MOV R13,RBX
JMP 0x0017ce3d
LAB_0017cd6d:
MOV RDX,qword ptr [R12]
MOV RCX,qword ptr [R12 + 0x8]
CMP ECX,-0x9
JC 0x0017cd7d
INC dword ptr [RDX]
LAB_0017cd7d:
LEA RSI,[RSP + 0xc]
MOV RDI,R15
CALL 0x00127161
TEST EAX,EAX
JZ 0x0017cdb7
CMP EBX,-0x9
JC 0x0017cddd
MOV RDI,qword ptr [R15 + 0x18]
MOV EAX,dword ptr [R14]
LEA ECX,[RAX + -0x1]
MOV dword ptr [R14],ECX
MOV R13D,0x6
XOR R12D,R12D
CMP EAX,0x2
JL 0x0017ce32
JMP 0x0017ce3d
LAB_0017cdb7:
MOVSXD RAX,dword ptr [RSP + 0xc]
TEST RAX,RAX
JS 0x0017cde8
MOV RCX,qword ptr [R14 + 0x4]
MOV EDX,ECX
AND EDX,0x7fffffff
CMP EAX,EDX
JNC 0x0017cde8
TEST ECX,ECX
JS 0x0017ce04
MOVZX EAX,byte ptr [R14 + RAX*0x1 + 0x18]
JMP 0x0017ce0a
LAB_0017cddd:
MOV R13D,0x6
XOR R12D,R12D
JMP 0x0017ce3d
LAB_0017cde8:
MOV RDI,qword ptr [R15 + 0x18]
MOV RAX,qword ptr [RDI + 0x68]
MOV R12,qword ptr [RAX + 0x178]
INC dword ptr [R12]
MOV R13,-0x7
JMP 0x0017ce1f
LAB_0017ce04:
MOVZX EAX,word ptr [R14 + RAX*0x2 + 0x18]
LAB_0017ce0a:
MOVZX ESI,AX
MOV RDI,R15
CALL 0x0013df42
MOV R12,RAX
MOV R13,RDX
MOV RDI,qword ptr [R15 + 0x18]
LAB_0017ce1f:
CMP EBX,-0x9
JC 0x0017ce3d
MOV EAX,dword ptr [R14]
LEA ECX,[RAX + -0x1]
MOV dword ptr [R14],ECX
CMP EAX,0x1
JG 0x0017ce3d
LAB_0017ce32:
MOV RSI,R14
MOV RDX,RBX
CALL 0x00120d90
LAB_0017ce3d:
MOV RAX,R12
MOV RDX,R13
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
int1 [16] js_string_charAt(long param_1)
{
int *piVar1;
int1 auVar2 [16];
ushort uVar3;
int iVar4;
long lVar6;
uint uVar7;
int8 *in_R8;
int1 auVar8 [16];
uint local_2c;
int *piVar5;
auVar8 = JS_ToStringCheckObject();
auVar8._8_8_ = auVar8._8_8_;
piVar5 = auVar8._0_8_;
uVar7 = auVar8._8_4_;
if (uVar7 != 6) {
if (0xfffffff6 < (uint)in_R8[1]) {
*(int *)*in_R8 = *(int *)*in_R8 + 1;
}
iVar4 = JS_ToInt32SatFree(param_1,&local_2c);
if (iVar4 == 0) {
lVar6 = (long)(int)local_2c;
if ((lVar6 < 0) || (((uint)*(int8 *)(piVar5 + 1) & 0x7fffffff) <= local_2c)) {
lVar6 = *(long *)(param_1 + 0x18);
piVar1 = *(int **)(*(long *)(lVar6 + 0x68) + 0x178);
*piVar1 = *piVar1 + 1;
auVar8._8_8_ = 0xfffffffffffffff9;
auVar8._0_8_ = piVar1;
}
else {
if ((int)(uint)*(int8 *)(piVar5 + 1) < 0) {
uVar3 = *(ushort *)((long)piVar5 + lVar6 * 2 + 0x18);
}
else {
uVar3 = (ushort)*(byte *)((long)piVar5 + lVar6 + 0x18);
}
auVar8 = js_new_string_char(param_1,uVar3);
lVar6 = *(long *)(param_1 + 0x18);
}
if (uVar7 < 0xfffffff7) {
return auVar8;
}
iVar4 = *piVar5;
*piVar5 = iVar4 + -1;
auVar2 = auVar8;
}
else {
if (uVar7 < 0xfffffff7) {
return ZEXT816(6) << 0x40;
}
lVar6 = *(long *)(param_1 + 0x18);
iVar4 = *piVar5;
*piVar5 = iVar4 + -1;
auVar2 = ZEXT816(6) << 0x40;
auVar8 = ZEXT816(6) << 0x40;
}
if (iVar4 < 2) {
js_free_value_rt(lVar6,piVar5,auVar8._8_8_);
auVar8 = auVar2;
}
}
return auVar8;
}
|
|
18,113
|
my_error
|
eloqsql/mysys/my_error.c
|
void my_error(uint nr, myf MyFlags, ...)
{
const char *format;
va_list args;
char ebuff[ERRMSGSIZE];
DBUG_ENTER("my_error");
DBUG_PRINT("my", ("nr: %d MyFlags: %lu errno: %d", nr, MyFlags, errno));
if (!(format = my_get_err_msg(nr)))
(void) my_snprintf(ebuff, sizeof(ebuff), "Unknown error %d", nr);
else
{
va_start(args,MyFlags);
(void) my_vsnprintf_ex(&my_charset_utf8mb3_general_ci, ebuff,
sizeof(ebuff), format, args);
va_end(args);
}
(*error_handler_hook)(nr, ebuff, MyFlags);
DBUG_VOID_RETURN;
}
|
O0
|
c
|
my_error:
pushq %rbp
movq %rsp, %rbp
subq $0x2f0, %rsp # imm = 0x2F0
testb %al, %al
je 0x2e0a7
movaps %xmm0, -0x2c0(%rbp)
movaps %xmm1, -0x2b0(%rbp)
movaps %xmm2, -0x2a0(%rbp)
movaps %xmm3, -0x290(%rbp)
movaps %xmm4, -0x280(%rbp)
movaps %xmm5, -0x270(%rbp)
movaps %xmm6, -0x260(%rbp)
movaps %xmm7, -0x250(%rbp)
movq %r9, -0x2c8(%rbp)
movq %r8, -0x2d0(%rbp)
movq %rcx, -0x2d8(%rbp)
movq %rdx, -0x2e0(%rbp)
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movl %edi, -0x214(%rbp)
movq %rsi, -0x220(%rbp)
jmp 0x2e0df
movl -0x214(%rbp), %edi
callq 0x2dfb0
movq %rax, -0x228(%rbp)
cmpq $0x0, %rax
jne 0x2e119
leaq -0x210(%rbp), %rdi
movl -0x214(%rbp), %ecx
movl $0x200, %esi # imm = 0x200
leaq 0x4bf9d(%rip), %rdx # 0x7a0ad
movb $0x0, %al
callq 0x76430
jmp 0x2e16d
leaq -0x240(%rbp), %rax
leaq -0x2f0(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
leaq -0x210(%rbp), %rsi
movq -0x228(%rbp), %rcx
leaq -0x240(%rbp), %r8
leaq 0x352a64(%rip), %rdi # 0x380bc0
movl $0x200, %edx # imm = 0x200
callq 0x73e10
leaq -0x240(%rbp), %rax
leaq 0x19f2bc(%rip), %rax # 0x1cd430
movq (%rax), %rax
movl -0x214(%rbp), %edi
leaq -0x210(%rbp), %rsi
movq -0x220(%rbp), %rdx
callq *%rax
jmp 0x2e18f
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x2e1aa
addq $0x2f0, %rsp # imm = 0x2F0
popq %rbp
retq
callq 0x242e0
nop
|
my_error:
push rbp
mov rbp, rsp
sub rsp, 2F0h
test al, al
jz short loc_2E0A7
movaps [rbp+var_2C0], xmm0
movaps [rbp+var_2B0], xmm1
movaps [rbp+var_2A0], xmm2
movaps [rbp+var_290], xmm3
movaps [rbp+var_280], xmm4
movaps [rbp+var_270], xmm5
movaps [rbp+var_260], xmm6
movaps [rbp+var_250], xmm7
loc_2E0A7:
mov [rbp+var_2C8], r9
mov [rbp+var_2D0], r8
mov [rbp+var_2D8], rcx
mov [rbp+var_2E0], rdx
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_214], edi
mov [rbp+var_220], rsi
jmp short $+2
loc_2E0DF:
mov edi, [rbp+var_214]
call my_get_err_msg
mov [rbp+var_228], rax
cmp rax, 0
jnz short loc_2E119
lea rdi, [rbp+var_210]
mov ecx, [rbp+var_214]
mov esi, 200h
lea rdx, aUnknownErrorD; "Unknown error %d"
mov al, 0
call my_snprintf
jmp short loc_2E16D
loc_2E119:
lea rax, [rbp+var_240]
lea rcx, [rbp+var_2F0]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 10h
lea rsi, [rbp+var_210]
mov rcx, [rbp+var_228]
lea r8, [rbp+var_240]
lea rdi, my_charset_utf8mb3_general_ci
mov edx, 200h
call my_vsnprintf_ex
lea rax, [rbp+var_240]
loc_2E16D:
lea rax, error_handler_hook
mov rax, [rax]
mov edi, [rbp+var_214]
lea rsi, [rbp+var_210]
mov rdx, [rbp+var_220]
call rax
jmp short $+2
loc_2E18F:
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_2E1AA
add rsp, 2F0h
pop rbp
retn
loc_2E1AA:
call ___stack_chk_fail
|
unsigned long long my_error(unsigned int a1, long long a2, ...)
{
int v2; // r8d
int v3; // r9d
va_list va; // [rsp+B0h] [rbp-240h] BYREF
_BYTE *err_msg; // [rsp+C8h] [rbp-228h]
long long v7; // [rsp+D0h] [rbp-220h]
unsigned int v8; // [rsp+DCh] [rbp-214h]
_BYTE v9[520]; // [rsp+E0h] [rbp-210h] BYREF
unsigned long long v10; // [rsp+2E8h] [rbp-8h]
va_start(va, a2);
va_arg(va, _QWORD);
va_arg(va, _QWORD);
va_arg(va, _QWORD);
va_arg(va, _QWORD);
va_end(va);
v10 = __readfsqword(0x28u);
v8 = a1;
v7 = a2;
err_msg = my_get_err_msg(a1);
if ( err_msg )
{
va_start(va, a2);
my_vsnprintf_ex(&my_charset_utf8mb3_general_ci, v9, 512LL, err_msg, va);
}
else
{
my_snprintf((unsigned int)v9, 512, (unsigned int)"Unknown error %d", v8, v2, v3);
}
error_handler_hook(v8, (long long)v9, v7);
return __readfsqword(0x28u);
}
|
my_error:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x2f0
TEST AL,AL
JZ 0x0012e0a7
MOVAPS xmmword ptr [RBP + -0x2c0],XMM0
MOVAPS xmmword ptr [RBP + -0x2b0],XMM1
MOVAPS xmmword ptr [RBP + -0x2a0],XMM2
MOVAPS xmmword ptr [RBP + -0x290],XMM3
MOVAPS xmmword ptr [RBP + -0x280],XMM4
MOVAPS xmmword ptr [RBP + -0x270],XMM5
MOVAPS xmmword ptr [RBP + -0x260],XMM6
MOVAPS xmmword ptr [RBP + -0x250],XMM7
LAB_0012e0a7:
MOV qword ptr [RBP + -0x2c8],R9
MOV qword ptr [RBP + -0x2d0],R8
MOV qword ptr [RBP + -0x2d8],RCX
MOV qword ptr [RBP + -0x2e0],RDX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV dword ptr [RBP + -0x214],EDI
MOV qword ptr [RBP + -0x220],RSI
JMP 0x0012e0df
LAB_0012e0df:
MOV EDI,dword ptr [RBP + -0x214]
CALL 0x0012dfb0
MOV qword ptr [RBP + -0x228],RAX
CMP RAX,0x0
JNZ 0x0012e119
LEA RDI,[RBP + -0x210]
MOV ECX,dword ptr [RBP + -0x214]
MOV ESI,0x200
LEA RDX,[0x17a0ad]
MOV AL,0x0
CALL 0x00176430
JMP 0x0012e16d
LAB_0012e119:
LEA RAX,[RBP + -0x240]
LEA RCX,[RBP + -0x2f0]
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],0x10
LEA RSI,[RBP + -0x210]
MOV RCX,qword ptr [RBP + -0x228]
LEA R8,[RBP + -0x240]
LEA RDI,[0x480bc0]
MOV EDX,0x200
CALL 0x00173e10
LEA RAX,[RBP + -0x240]
LAB_0012e16d:
LEA RAX,[0x2cd430]
MOV RAX,qword ptr [RAX]
MOV EDI,dword ptr [RBP + -0x214]
LEA RSI,[RBP + -0x210]
MOV RDX,qword ptr [RBP + -0x220]
CALL RAX
JMP 0x0012e18f
LAB_0012e18f:
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0012e1aa
ADD RSP,0x2f0
POP RBP
RET
LAB_0012e1aa:
CALL 0x001242e0
|
void my_error(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 in_FS_OFFSET;
int1 local_2f8 [16];
int8 local_2e8;
int8 local_2e0;
int8 local_2d8;
int8 local_2d0;
int8 local_2c8;
int8 local_2b8;
int8 local_2a8;
int8 local_298;
int8 local_288;
int8 local_278;
int8 local_268;
int8 local_258;
int4 local_248;
int4 local_244;
int1 *local_240;
int1 *local_238;
long local_230;
int8 local_228;
int4 local_21c;
int1 local_218 [520];
long local_10;
if (in_AL != '\0') {
local_2c8 = param_1;
local_2b8 = param_2;
local_2a8 = param_3;
local_298 = param_4;
local_288 = param_5;
local_278 = param_6;
local_268 = param_7;
local_258 = param_8;
}
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_2e8 = param_11;
local_2e0 = param_12;
local_2d8 = param_13;
local_2d0 = param_14;
local_228 = param_10;
local_21c = param_9;
local_230 = my_get_err_msg(param_9);
if (local_230 == 0) {
my_snprintf(local_218,0x200,"Unknown error %d",local_21c);
}
else {
local_238 = local_2f8;
local_240 = &stack0x00000008;
local_244 = 0x30;
local_248 = 0x10;
my_vsnprintf_ex(my_charset_utf8mb3_general_ci,local_218,0x200,local_230,&local_248);
}
(*(code *)error_handler_hook)(local_21c,local_218,local_228);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
18,114
|
minja::ForTemplateToken::ForTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, bool)
|
monkey531[P]llama/common/minja.hpp
|
ForTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, const std::vector<std::string> & vns, std::shared_ptr<Expression> && iter,
std::shared_ptr<Expression> && c, bool r)
: TemplateToken(Type::For, location, pre, post), var_names(vns), iterable(std::move(iter)), condition(std::move(c)), recursive(r) {}
|
O3
|
cpp
|
minja::ForTemplateToken::ForTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, bool):
pushq %r15
pushq %r14
pushq %rbx
movq %r9, %r14
movq %rdi, %rbx
leaq 0x9817c(%rip), %r15 # 0x1542d8
addq $0x10, %r15
movq %r15, (%rdi)
movl $0x6, 0x8(%rdi)
movq (%rsi), %rax
movq %rax, 0x10(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x18(%rdi)
testq %rax, %rax
je 0xbc193
movq 0x99dfb(%rip), %rdi # 0x155f80
cmpb $0x0, (%rdi)
je 0xbc18f
incl 0x8(%rax)
jmp 0xbc193
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x20(%rbx)
movl %edx, 0x28(%rbx)
movl %ecx, 0x2c(%rbx)
leaq 0x98a58(%rip), %rax # 0x154c00
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x30(%rbx), %rdi
movq %r8, %rsi
callq 0x4c060
movb 0x28(%rsp), %al
movq 0x20(%rsp), %rcx
xorl %edx, %edx
movq %rdx, 0x50(%rbx)
movups (%r14), %xmm0
movq %rdx, 0x8(%r14)
movups %xmm0, 0x48(%rbx)
movq %rdx, (%r14)
movq %rdx, 0x60(%rbx)
movups (%rcx), %xmm0
movq %rdx, 0x8(%rcx)
movups %xmm0, 0x58(%rbx)
movq %rdx, (%rcx)
movb %al, 0x68(%rbx)
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %r15, (%rbx)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0xbc208
callq 0x516f8
movq %r14, %rdi
callq 0x1e660
|
_ZN5minja16ForTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_RKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISB_EEOSt10shared_ptrINS_10ExpressionEESJ_b:
push r15
push r14
push rbx
mov r14, r9
mov rbx, rdi
lea r15, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken
add r15, 10h
mov [rdi], r15
mov dword ptr [rdi+8], 6
mov rax, [rsi]
mov [rdi+10h], rax
mov rax, [rsi+8]
mov [rdi+18h], rax
test rax, rax
jz short loc_BC193
mov rdi, cs:__libc_single_threaded_ptr
cmp byte ptr [rdi], 0
jz short loc_BC18F
inc dword ptr [rax+8]
jmp short loc_BC193
loc_BC18F:
lock inc dword ptr [rax+8]
loc_BC193:
mov rax, [rsi+10h]
mov [rbx+20h], rax
mov [rbx+28h], edx
mov [rbx+2Ch], ecx
lea rax, _ZTVN5minja16ForTemplateTokenE; `vtable for'minja::ForTemplateToken
add rax, 10h
mov [rbx], rax
lea rdi, [rbx+30h]
mov rsi, r8
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
mov al, [rsp+18h+arg_8]
mov rcx, [rsp+18h+arg_0]
xor edx, edx
mov [rbx+50h], rdx
movups xmm0, xmmword ptr [r14]
mov [r14+8], rdx
movups xmmword ptr [rbx+48h], xmm0
mov [r14], rdx
mov [rbx+60h], rdx
movups xmm0, xmmword ptr [rcx]
mov [rcx+8], rdx
movups xmmword ptr [rbx+58h], xmm0
mov [rcx], rdx
mov [rbx+68h], al
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov [rbx], r15
mov rdi, [rbx+18h]
test rdi, rdi
jz short loc_BC208
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_BC208:
mov rdi, r14
call __Unwind_Resume
|
char minja::ForTemplateToken::ForTemplateToken(
long long a1,
_QWORD *a2,
int a3,
int a4,
_QWORD *a5,
__int128 *a6,
__int128 *a7,
char a8)
{
long long v9; // rax
char result; // al
__int128 v11; // xmm0
__int128 v12; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::TemplateToken + 2;
*(_DWORD *)(a1 + 8) = 6;
*(_QWORD *)(a1 + 16) = *a2;
v9 = a2[1];
*(_QWORD *)(a1 + 24) = v9;
if ( v9 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v9 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v9 + 8));
}
*(_QWORD *)(a1 + 32) = a2[2];
*(_DWORD *)(a1 + 40) = a3;
*(_DWORD *)(a1 + 44) = a4;
*(_QWORD *)a1 = &`vtable for'minja::ForTemplateToken + 2;
std::vector<std::string>::vector(a1 + 48, a5);
result = a8;
*(_QWORD *)(a1 + 80) = 0LL;
v11 = *a6;
*((_QWORD *)a6 + 1) = 0LL;
*(_OWORD *)(a1 + 72) = v11;
*(_QWORD *)a6 = 0LL;
*(_QWORD *)(a1 + 96) = 0LL;
v12 = *a7;
*((_QWORD *)a7 + 1) = 0LL;
*(_OWORD *)(a1 + 88) = v12;
*(_QWORD *)a7 = 0LL;
*(_BYTE *)(a1 + 104) = a8;
return result;
}
|
ForTemplateToken:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,R9
MOV RBX,RDI
LEA R15,[0x2542d8]
ADD R15,0x10
MOV qword ptr [RDI],R15
MOV dword ptr [RDI + 0x8],0x6
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x10],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x18],RAX
TEST RAX,RAX
JZ 0x001bc193
MOV RDI,qword ptr [0x00255f80]
CMP byte ptr [RDI],0x0
JZ 0x001bc18f
INC dword ptr [RAX + 0x8]
JMP 0x001bc193
LAB_001bc18f:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001bc193:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RBX + 0x20],RAX
MOV dword ptr [RBX + 0x28],EDX
MOV dword ptr [RBX + 0x2c],ECX
LEA RAX,[0x254c00]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LEA RDI,[RBX + 0x30]
LAB_001bc1b3:
MOV RSI,R8
CALL 0x0014c060
LAB_001bc1bb:
MOV AL,byte ptr [RSP + 0x28]
MOV RCX,qword ptr [RSP + 0x20]
XOR EDX,EDX
MOV qword ptr [RBX + 0x50],RDX
MOVUPS XMM0,xmmword ptr [R14]
MOV qword ptr [R14 + 0x8],RDX
MOVUPS xmmword ptr [RBX + 0x48],XMM0
MOV qword ptr [R14],RDX
MOV qword ptr [RBX + 0x60],RDX
MOVUPS XMM0,xmmword ptr [RCX]
MOV qword ptr [RCX + 0x8],RDX
MOVUPS xmmword ptr [RBX + 0x58],XMM0
MOV qword ptr [RCX],RDX
MOV byte ptr [RBX + 0x68],AL
POP RBX
POP R14
POP R15
RET
|
/* minja::ForTemplateToken::ForTemplateToken(minja::Location const&, minja::SpaceHandling,
minja::SpaceHandling, std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > >
const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, bool) */
void __thiscall
minja::ForTemplateToken::ForTemplateToken
(ForTemplateToken *this,int8 *param_1,int4 param_3,int4 param_4,
vector *param_5,int8 *param_6,int8 *param_7,ForTemplateToken param_8)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR__TemplateToken_002542e8;
*(int4 *)(this + 8) = 6;
*(int8 *)(this + 0x10) = *param_1;
lVar1 = param_1[1];
*(long *)(this + 0x18) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_00255f80 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x20) = param_1[2];
*(int4 *)(this + 0x28) = param_3;
*(int4 *)(this + 0x2c) = param_4;
*(int ***)this = &PTR__ForTemplateToken_00254c10;
/* try { // try from 001bc1b3 to 001bc1ba has its CatchHandler @ 001bc1f4 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x30),
param_5);
*(int8 *)(this + 0x50) = 0;
uVar2 = param_6[1];
param_6[1] = 0;
*(int8 *)(this + 0x48) = *param_6;
*(int8 *)(this + 0x50) = uVar2;
*param_6 = 0;
*(int8 *)(this + 0x60) = 0;
uVar2 = param_7[1];
param_7[1] = 0;
*(int8 *)(this + 0x58) = *param_7;
*(int8 *)(this + 0x60) = uVar2;
*param_7 = 0;
this[0x68] = param_8;
return;
}
|
|
18,115
|
ma_bitmap_reset_cache
|
eloqsql/storage/maria/ma_bitmap.c
|
void _ma_bitmap_reset_cache(MARIA_SHARE *share)
{
MARIA_FILE_BITMAP *bitmap= &share->bitmap;
if (bitmap->map) /* If using bitmap */
{
/* Forget changes in current bitmap page */
bitmap->changed= 0;
/*
We can't read a page yet, as in some case we don't have an active
page cache yet.
Pretend we have a dummy, full and not changed bitmap page in memory.
We set bitmap->page to a value so that if we use it in
move_to_next_bitmap() it will point to page 0.
(This can only happen if writing to a bitmap page fails)
*/
bitmap->page= ((pgcache_page_no_t) 0) - bitmap->pages_covered;
bitmap->used_size= bitmap->total_size= bitmap->max_total_size;
bitmap->full_head_size= bitmap->full_tail_size= bitmap->max_total_size;
bfill(bitmap->map, share->block_size, 255);
#ifndef DBUG_OFF
memcpy(bitmap->map + bitmap->block_size, bitmap->map, bitmap->block_size);
#endif
/* Start scanning for free space from start of file */
share->state.first_bitmap_with_space = 0;
}
}
|
O0
|
c
|
ma_bitmap_reset_cache:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa10, %rax # imm = 0xA10
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x5e3f2
movq -0x10(%rbp), %rax
movb $0x0, 0x20(%rax)
movq -0x10(%rbp), %rax
xorl %ecx, %ecx
subq 0x138(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movl 0x12c(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x128(%rax)
movq -0x10(%rbp), %rax
movl %ecx, 0x24(%rax)
movq -0x10(%rbp), %rax
movl 0x12c(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x2c(%rax)
movq -0x10(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x8(%rbp), %rax
movl 0x7bc(%rax), %eax
movl %eax, %edx
movl $0xff, %esi
callq 0x2a2b0
movq -0x8(%rbp), %rax
movq $0x0, 0xd0(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
_ma_bitmap_reset_cache:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
add rax, 0A10h
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
cmp qword ptr [rax+8], 0
jz short loc_5E3F2
mov rax, [rbp+var_10]
mov byte ptr [rax+20h], 0
mov rax, [rbp+var_10]
xor ecx, ecx
sub rcx, [rax+138h]
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov rax, [rbp+var_10]
mov ecx, [rax+12Ch]
mov rax, [rbp+var_10]
mov [rax+128h], ecx
mov rax, [rbp+var_10]
mov [rax+24h], ecx
mov rax, [rbp+var_10]
mov ecx, [rax+12Ch]
mov rax, [rbp+var_10]
mov [rax+2Ch], ecx
mov rax, [rbp+var_10]
mov [rax+28h], ecx
mov rax, [rbp+var_10]
mov rdi, [rax+8]
mov rax, [rbp+var_8]
mov eax, [rax+7BCh]
mov edx, eax
mov esi, 0FFh
call _memset
mov rax, [rbp+var_8]
mov qword ptr [rax+0D0h], 0
loc_5E3F2:
add rsp, 10h
pop rbp
retn
|
long long ma_bitmap_reset_cache(long long a1)
{
long long result; // rax
int v2; // ecx
int v3; // ecx
result = a1 + 2576;
if ( *(_QWORD *)(a1 + 2584) )
{
*(_BYTE *)(a1 + 2608) = 0;
*(_QWORD *)(a1 + 2592) = -*(_QWORD *)(a1 + 2888);
v2 = *(_DWORD *)(a1 + 2876);
*(_DWORD *)(a1 + 2872) = v2;
*(_DWORD *)(a1 + 2612) = v2;
v3 = *(_DWORD *)(a1 + 2876);
*(_DWORD *)(a1 + 2620) = v3;
*(_DWORD *)(a1 + 2616) = v3;
memset(*(_QWORD *)(a1 + 2584), 255LL, *(unsigned int *)(a1 + 1980));
result = a1;
*(_QWORD *)(a1 + 208) = 0LL;
}
return result;
}
|
_ma_bitmap_reset_cache:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0xa10
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x0015e3f2
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x20],0x0
MOV RAX,qword ptr [RBP + -0x10]
XOR ECX,ECX
SUB RCX,qword ptr [RAX + 0x138]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x12c]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x128],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x24],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x12c]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x2c],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x28],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x7bc]
MOV EDX,EAX
MOV ESI,0xff
CALL 0x0012a2b0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xd0],0x0
LAB_0015e3f2:
ADD RSP,0x10
POP RBP
RET
|
void _ma_bitmap_reset_cache(long param_1)
{
if (*(long *)(param_1 + 0xa18) != 0) {
*(int1 *)(param_1 + 0xa30) = 0;
*(long *)(param_1 + 0xa20) = -*(long *)(param_1 + 0xb48);
*(int4 *)(param_1 + 0xb38) = *(int4 *)(param_1 + 0xb3c);
*(int4 *)(param_1 + 0xa34) = *(int4 *)(param_1 + 0xb3c);
*(int4 *)(param_1 + 0xa3c) = *(int4 *)(param_1 + 0xb3c);
*(int4 *)(param_1 + 0xa38) = *(int4 *)(param_1 + 0xb3c);
memset(*(void **)(param_1 + 0xa18),0xff,(ulong)*(uint *)(param_1 + 0x7bc));
*(int8 *)(param_1 + 0xd0) = 0;
}
return;
}
|
|
18,116
|
test_prepare_multi_statements
|
eloqsql/tests/mysql_client_test.c
|
static void test_prepare_multi_statements()
{
MYSQL *mysql_local;
MYSQL_STMT *stmt;
char query[MAX_TEST_QUERY_LENGTH];
myheader("test_prepare_multi_statements");
if (!(mysql_local= mysql_client_init(NULL)))
{
fprintf(stderr, "\n mysql_client_init() failed");
exit(1);
}
if (!(mysql_real_connect(mysql_local, opt_host, opt_user,
opt_password, current_db, opt_port,
opt_unix_socket, CLIENT_MULTI_STATEMENTS)))
{
fprintf(stderr, "\n connection failed(%s)", mysql_error(mysql_local));
exit(1);
}
mysql_options(mysql_local, MYSQL_OPT_RECONNECT, &my_true);
strmov(query, "select 1; select 'another value'");
stmt= mysql_simple_prepare(mysql_local, query);
check_stmt_r(stmt);
mysql_close(mysql_local);
}
|
O0
|
c
|
test_prepare_multi_statements:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp # imm = 0x170
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
jmp 0x52aaa
movsbl 0x417a20(%rip), %eax # 0x46a4d1
cmpl $0x2, %eax
jge 0x52b32
movq 0x25c51b(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
leaq 0xdb85d(%rip), %rsi # 0x12e324
movb $0x0, %al
callq 0x3a1c0
movq 0x25c503(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
movl 0x417c3e(%rip), %edx # 0x46a71c
movl %edx, %eax
addl $0x1, %eax
movl %eax, 0x417c33(%rip) # 0x46a71c
movl 0x417c29(%rip), %ecx # 0x46a718
movl 0x417a06(%rip), %r8d # 0x46a4fc
leaq 0xdcb2f(%rip), %rsi # 0x12f62c
leaq 0xdbdb7(%rip), %r9 # 0x12e8bb
movb $0x0, %al
callq 0x3a1c0
movq 0x25c4c6(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
leaq 0xdb840(%rip), %rsi # 0x12e35c
movb $0x0, %al
callq 0x3a1c0
movq 0x25c4ae(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
callq 0x3a4a0
xorl %eax, %eax
movl %eax, %edi
callq 0x3e6a0
movq %rax, -0x148(%rbp)
cmpq $0x0, %rax
jne 0x52b6a
movq 0x25c491(%rip), %rax # 0x2aefe0
movq (%rax), %rdi
leaq 0xe2006(%rip), %rsi # 0x134b5f
movb $0x0, %al
callq 0x3a1c0
movl $0x1, %edi
callq 0x3a660
movq -0x148(%rbp), %rdi
movq 0x417bc8(%rip), %rsi # 0x46a740
movq 0x418bf9(%rip), %rdx # 0x46b778
movq 0x417bb2(%rip), %rcx # 0x46a738
movl 0x418bdb(%rip), %r9d # 0x46b768
movq 0x418bdc(%rip), %rax # 0x46b770
leaq 0x25ce79(%rip), %r8 # 0x2afa14
movq %rax, (%rsp)
movq $0x10000, 0x8(%rsp) # imm = 0x10000
callq 0x3ad60
cmpq $0x0, %rax
jne 0x52bf2
movq 0x25c426(%rip), %rax # 0x2aefe0
movq (%rax), %rax
movq %rax, -0x158(%rbp)
movq -0x148(%rbp), %rdi
callq 0xaa230
movq -0x158(%rbp), %rdi
movq %rax, %rdx
leaq 0xe1f9b(%rip), %rsi # 0x134b7c
movb $0x0, %al
callq 0x3a1c0
movl $0x1, %edi
callq 0x3a660
movq -0x148(%rbp), %rdi
movl $0x14, %esi
leaq 0xda56f(%rip), %rdx # 0x12d174
callq 0xa9fb0
leaq -0x140(%rbp), %rdi
leaq 0xe2095(%rip), %rsi # 0x134cad
callq 0x3a9c0
movq -0x148(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x3be90
movq %rax, -0x150(%rbp)
cmpq $0x0, -0x150(%rbp)
jne 0x52c4a
xorl %eax, %eax
movl %eax, %edi
callq 0x3bf10
cmpq $0x0, -0x150(%rbp)
jne 0x52c56
jmp 0x52c6e
leaq 0xdafaf(%rip), %rdi # 0x12dc0c
movl $0x161f, %esi # imm = 0x161F
leaq 0xdf64e(%rip), %rdx # 0x1322b7
callq 0x3c010
movq -0x148(%rbp), %rdi
callq 0x3b2e0
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x52c95
addq $0x170, %rsp # imm = 0x170
popq %rbp
retq
callq 0x3a2a0
nopw (%rax,%rax)
|
test_prepare_multi_statements:
push rbp
mov rbp, rsp
sub rsp, 170h
mov rax, fs:28h
mov [rbp+var_8], rax
jmp short $+2
loc_52AAA:
movsx eax, cs:opt_silent
cmp eax, 2
jge short loc_52B32
mov rax, cs:stdout_ptr
mov rdi, [rax]
lea rsi, asc_12E324; "\n\n###################################"...
mov al, 0
call _fprintf
mov rax, cs:stdout_ptr
mov rdi, [rax]
mov edx, cs:test_count
mov eax, edx
add eax, 1
mov cs:test_count, eax
mov ecx, cs:iter_count
mov r8d, cs:opt_count
lea rsi, aUOfUUS; "%u of (%u/%u): %s"
lea r9, aTestPrepareMul; "test_prepare_multi_statements"
mov al, 0
call _fprintf
mov rax, cs:stdout_ptr
mov rdi, [rax]
lea rsi, asc_12E35C; " \n###################################"...
mov al, 0
call _fprintf
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
loc_52B32:
xor eax, eax
mov edi, eax
call mysql_client_init
mov [rbp+var_148], rax
cmp rax, 0
jnz short loc_52B6A
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aMysqlClientIni; "\n mysql_client_init() failed"
mov al, 0
call _fprintf
mov edi, 1
call _exit
loc_52B6A:
mov rdi, [rbp+var_148]
mov rsi, cs:opt_host
mov rdx, cs:opt_user
mov rcx, cs:opt_password
mov r9d, cs:opt_port
mov rax, cs:opt_unix_socket
lea r8, current_db; "client_test_db"
mov [rsp+170h+var_170], rax
mov [rsp+170h+var_168], 10000h
call wrap_mysql_real_connect
cmp rax, 0
jnz short loc_52BF2
mov rax, cs:stderr_ptr
mov rax, [rax]
mov [rbp+var_158], rax
mov rdi, [rbp+var_148]
call mysql_error
mov rdi, [rbp+var_158]
mov rdx, rax
lea rsi, aConnectionFail_0; "\n connection failed(%s)"
mov al, 0
call _fprintf
mov edi, 1
call _exit
loc_52BF2:
mov rdi, [rbp+var_148]
mov esi, 14h
lea rdx, my_true
call mysql_options
lea rdi, [rbp+var_140]
lea rsi, aSelect1SelectA; "select 1; select 'another value'"
call _stpcpy
mov rdi, [rbp+var_148]
lea rsi, [rbp+var_140]
call mysql_simple_prepare
mov [rbp+var_150], rax
cmp [rbp+var_150], 0
jnz short loc_52C4A
xor eax, eax
mov edi, eax
call print_error
loc_52C4A:
cmp [rbp+var_150], 0
jnz short loc_52C56
jmp short loc_52C6E
loc_52C56:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 161Fh
lea rdx, aStmt0_0; "stmt == 0"
call die
loc_52C6E:
mov rdi, [rbp+var_148]
call wrap_mysql_close
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_52C95
add rsp, 170h
pop rbp
retn
loc_52C95:
call ___stack_chk_fail
|
unsigned long long test_prepare_multi_statements()
{
int v0; // edx
const char *v1; // rax
long long v3; // [rsp+18h] [rbp-158h]
long long v4; // [rsp+28h] [rbp-148h]
_BYTE v5[312]; // [rsp+30h] [rbp-140h] BYREF
unsigned long long v6; // [rsp+168h] [rbp-8h]
v6 = __readfsqword(0x28u);
if ( opt_silent < 2 )
{
fprintf(stdout, "\n\n#####################################\n");
v0 = test_count++;
fprintf(stdout, "%u of (%u/%u): %s", v0, iter_count, opt_count, "test_prepare_multi_statements");
fprintf(stdout, " \n#####################################\n");
fflush(stdout);
}
v4 = mysql_client_init(0LL);
if ( !v4 )
{
fprintf(stderr, "\n mysql_client_init() failed");
exit(1LL);
}
if ( !wrap_mysql_real_connect(
v4,
opt_host,
opt_user,
opt_password,
(long long)current_db,
opt_port,
opt_unix_socket,
0x10000LL) )
{
v3 = stderr;
v1 = (const char *)mysql_error(v4);
fprintf(v3, "\n connection failed(%s)", v1);
exit(1LL);
}
mysql_options(v4, 20LL, &my_true);
stpcpy(v5, "select 1; select 'another value'");
if ( mysql_simple_prepare(v4, (long long)v5) )
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 5663, "stmt == 0");
print_error(0LL);
wrap_mysql_close(v4);
return __readfsqword(0x28u);
}
|
test_prepare_multi_statements:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x170
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00152aaa
LAB_00152aaa:
MOVSX EAX,byte ptr [0x0056a4d1]
CMP EAX,0x2
JGE 0x00152b32
MOV RAX,qword ptr [0x003aefd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x22e324]
MOV AL,0x0
CALL 0x0013a1c0
MOV RAX,qword ptr [0x003aefd8]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [0x0056a71c]
MOV EAX,EDX
ADD EAX,0x1
MOV dword ptr [0x0056a71c],EAX
MOV ECX,dword ptr [0x0056a718]
MOV R8D,dword ptr [0x0056a4fc]
LEA RSI,[0x22f62c]
LEA R9,[0x22e8bb]
MOV AL,0x0
CALL 0x0013a1c0
MOV RAX,qword ptr [0x003aefd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x22e35c]
MOV AL,0x0
CALL 0x0013a1c0
MOV RAX,qword ptr [0x003aefd8]
MOV RDI,qword ptr [RAX]
CALL 0x0013a4a0
LAB_00152b32:
XOR EAX,EAX
MOV EDI,EAX
CALL 0x0013e6a0
MOV qword ptr [RBP + -0x148],RAX
CMP RAX,0x0
JNZ 0x00152b6a
MOV RAX,qword ptr [0x003aefe0]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x234b5f]
MOV AL,0x0
CALL 0x0013a1c0
MOV EDI,0x1
CALL 0x0013a660
LAB_00152b6a:
MOV RDI,qword ptr [RBP + -0x148]
MOV RSI,qword ptr [0x0056a740]
MOV RDX,qword ptr [0x0056b778]
MOV RCX,qword ptr [0x0056a738]
MOV R9D,dword ptr [0x0056b768]
MOV RAX,qword ptr [0x0056b770]
LEA R8,[0x3afa14]
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],0x10000
CALL 0x0013ad60
CMP RAX,0x0
JNZ 0x00152bf2
MOV RAX,qword ptr [0x003aefe0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x158],RAX
MOV RDI,qword ptr [RBP + -0x148]
CALL 0x001aa230
MOV RDI,qword ptr [RBP + -0x158]
MOV RDX,RAX
LEA RSI,[0x234b7c]
MOV AL,0x0
CALL 0x0013a1c0
MOV EDI,0x1
CALL 0x0013a660
LAB_00152bf2:
MOV RDI,qword ptr [RBP + -0x148]
MOV ESI,0x14
LEA RDX,[0x22d174]
CALL 0x001a9fb0
LEA RDI,[RBP + -0x140]
LEA RSI,[0x234cad]
CALL 0x0013a9c0
MOV RDI,qword ptr [RBP + -0x148]
LEA RSI,[RBP + -0x140]
CALL 0x0013be90
MOV qword ptr [RBP + -0x150],RAX
CMP qword ptr [RBP + -0x150],0x0
JNZ 0x00152c4a
XOR EAX,EAX
MOV EDI,EAX
CALL 0x0013bf10
LAB_00152c4a:
CMP qword ptr [RBP + -0x150],0x0
JNZ 0x00152c56
JMP 0x00152c6e
LAB_00152c56:
LEA RDI,[0x22dc0c]
MOV ESI,0x161f
LEA RDX,[0x2322b7]
CALL 0x0013c010
LAB_00152c6e:
MOV RDI,qword ptr [RBP + -0x148]
CALL 0x0013b2e0
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00152c95
ADD RSP,0x170
POP RBP
RET
LAB_00152c95:
CALL 0x0013a2a0
|
void test_prepare_multi_statements(void)
{
FILE *__stream;
long lVar1;
long lVar2;
int8 uVar3;
ulong uVar4;
long in_FS_OFFSET;
char local_148 [312];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if (opt_silent < '\x02') {
fprintf(*(FILE **)PTR_stdout_003aefd8,"\n\n#####################################\n");
uVar4 = (ulong)test_count;
test_count = test_count + 1;
fprintf(*(FILE **)PTR_stdout_003aefd8,"%u of (%u/%u): %s",uVar4,(ulong)iter_count,
(ulong)opt_count,"test_prepare_multi_statements");
fprintf(*(FILE **)PTR_stdout_003aefd8," \n#####################################\n");
fflush(*(FILE **)PTR_stdout_003aefd8);
}
lVar1 = mysql_client_init(0);
if (lVar1 == 0) {
fprintf(*(FILE **)PTR_stderr_003aefe0,"\n mysql_client_init() failed");
/* WARNING: Subroutine does not return */
exit(1);
}
lVar2 = wrap_mysql_real_connect
(lVar1,opt_host,opt_user,opt_password,current_db,opt_port,opt_unix_socket,
0x10000);
if (lVar2 == 0) {
__stream = *(FILE **)PTR_stderr_003aefe0;
uVar3 = mysql_error(lVar1);
fprintf(__stream,"\n connection failed(%s)",uVar3);
/* WARNING: Subroutine does not return */
exit(1);
}
mysql_options(lVar1,0x14,&my_true);
stpcpy(local_148,"select 1; select \'another value\'");
lVar2 = mysql_simple_prepare(lVar1,local_148);
if (lVar2 == 0) {
print_error(0);
}
else {
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x161f,"stmt == 0");
}
wrap_mysql_close(lVar1);
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return;
}
|
|
18,117
|
get_hash_link
|
eloqsql/storage/maria/ma_pagecache.c
|
static PAGECACHE_HASH_LINK *get_hash_link(PAGECACHE *pagecache,
PAGECACHE_FILE *file,
pgcache_page_no_t pageno)
{
reg1 PAGECACHE_HASH_LINK *hash_link;
PAGECACHE_HASH_LINK **start;
DBUG_ENTER("get_hash_link");
restart:
/* try to find the page in the cache */
hash_link= get_present_hash_link(pagecache, file, pageno,
&start);
if (!hash_link)
{
/* There is no hash link in the hash table for the pair (file, pageno) */
if (pagecache->free_hash_list)
{
DBUG_PRINT("info", ("free_hash_list: %p free_hash_list->next: %p",
pagecache->free_hash_list,
pagecache->free_hash_list->next));
hash_link= pagecache->free_hash_list;
pagecache->free_hash_list= hash_link->next;
}
else if (pagecache->hash_links_used < pagecache->hash_links)
{
hash_link= &pagecache->hash_link_root[pagecache->hash_links_used++];
}
else
{
/* Wait for a free hash link */
struct st_my_thread_var *thread= my_thread_var;
PAGECACHE_PAGE page;
page.file= *file;
page.pageno= pageno;
thread->keycache_link= (void *) &page;
wqueue_link_into_queue(&pagecache->waiting_for_hash_link, thread);
DBUG_PRINT("wait",
("suspend thread %s %ld", thread->name, (ulong) thread->id));
pagecache_pthread_cond_wait(&thread->suspend,
&pagecache->cache_lock);
thread->keycache_link= NULL;
DBUG_PRINT("thread", ("restarting..."));
goto restart;
}
hash_link->file= *file;
DBUG_ASSERT(pageno < ((1ULL) << 40));
hash_link->pageno= pageno;
link_hash(start, hash_link);
/* Register the request for the page */
hash_link->requests++;
DBUG_ASSERT(hash_link->block == 0);
DBUG_ASSERT(hash_link->requests == 1);
}
else
{
/*
We have to copy the flush_log callback, as it may change if the table
goes from non_transactional to transactional during recovery
*/
hash_link->file.flush_log_callback= file->flush_log_callback;
}
DBUG_PRINT("exit", ("hash_link: %p block: %p", hash_link,
hash_link->block));
DBUG_RETURN(hash_link);
}
|
O0
|
c
|
get_hash_link:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x28(%rbp), %rcx
callq 0x9b1d0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x9cb6d
movq -0x8(%rbp), %rax
cmpq $0x0, 0x98(%rax)
je 0x9ca63
jmp 0x9ca3b
jmp 0x9ca3d
movq -0x8(%rbp), %rax
movq 0x98(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x98(%rax)
jmp 0x9cb27
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movq -0x8(%rbp), %rcx
cmpq 0x30(%rcx), %rax
jge 0x9caa3
movq -0x8(%rbp), %rax
movq 0x90(%rax), %rax
movq -0x8(%rbp), %rdx
movq 0x38(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x38(%rdx)
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
jmp 0x9cb25
callq 0xff280
movq %rax, -0x30(%rbp)
leaq -0x80(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x48, %edx
callq 0x2a0b0
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
leaq -0x80(%rbp), %rcx
movq %rcx, 0xa8(%rax)
movq -0x8(%rbp), %rdi
addq $0x118, %rdi # imm = 0x118
movq -0x30(%rbp), %rsi
callq 0x109010
jmp 0x9caeb
movq -0x30(%rbp), %rdi
addq $0x8, %rdi
movq -0x8(%rbp), %rsi
addq $0xc8, %rsi
leaq 0xc210e(%rip), %rdx # 0x15ec13
movl $0x736, %ecx # imm = 0x736
callq 0x9c760
movq -0x30(%rbp), %rax
movq $0x0, 0xa8(%rax)
jmp 0x9cb20
jmp 0x9ca07
jmp 0x9cb27
movq -0x20(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rsi
movl $0x48, %edx
callq 0x2a0b0
jmp 0x9cb3f
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x60(%rax)
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x9d0f0
movq -0x20(%rbp), %rax
movl 0x68(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x68(%rax)
jmp 0x9cb67
jmp 0x9cb69
jmp 0x9cb6b
jmp 0x9cb7d
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x50(%rax)
jmp 0x9cb7f
jmp 0x9cb81
jmp 0x9cb83
movq -0x20(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nop
|
get_hash_link:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
loc_9CA07:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
lea rcx, [rbp+var_28]
call get_present_hash_link
mov [rbp+var_20], rax
cmp [rbp+var_20], 0
jnz loc_9CB6D
mov rax, [rbp+var_8]
cmp qword ptr [rax+98h], 0
jz short loc_9CA63
jmp short $+2
loc_9CA3B:
jmp short $+2
loc_9CA3D:
mov rax, [rbp+var_8]
mov rax, [rax+98h]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov rcx, [rax]
mov rax, [rbp+var_8]
mov [rax+98h], rcx
jmp loc_9CB27
loc_9CA63:
mov rax, [rbp+var_8]
mov rax, [rax+38h]
mov rcx, [rbp+var_8]
cmp rax, [rcx+30h]
jge short loc_9CAA3
mov rax, [rbp+var_8]
mov rax, [rax+90h]
mov rdx, [rbp+var_8]
mov rcx, [rdx+38h]
mov rsi, rcx
add rsi, 1
mov [rdx+38h], rsi
imul rcx, 70h ; 'p'
add rax, rcx
mov [rbp+var_20], rax
jmp loc_9CB25
loc_9CAA3:
call _my_thread_var
mov [rbp+var_30], rax
lea rdi, [rbp+var_80]
mov rsi, [rbp+var_10]
mov edx, 48h ; 'H'
call _memcpy
mov rax, [rbp+var_18]
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
lea rcx, [rbp+var_80]
mov [rax+0A8h], rcx
mov rdi, [rbp+var_8]
add rdi, 118h
mov rsi, [rbp+var_30]
call wqueue_link_into_queue
jmp short $+2
loc_9CAEB:
mov rdi, [rbp+var_30]
add rdi, 8
mov rsi, [rbp+var_8]
add rsi, 0C8h
lea rdx, aWorkspaceLlm4b_22; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 736h
call inline_mysql_cond_wait_2
mov rax, [rbp+var_30]
mov qword ptr [rax+0A8h], 0
jmp short $+2
loc_9CB20:
jmp loc_9CA07
loc_9CB25:
jmp short $+2
loc_9CB27:
mov rdi, [rbp+var_20]
add rdi, 18h
mov rsi, [rbp+var_10]
mov edx, 48h ; 'H'
call _memcpy
jmp short $+2
loc_9CB3F:
mov rcx, [rbp+var_18]
mov rax, [rbp+var_20]
mov [rax+60h], rcx
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_20]
call link_hash
mov rax, [rbp+var_20]
mov ecx, [rax+68h]
add ecx, 1
mov [rax+68h], ecx
jmp short $+2
loc_9CB67:
jmp short $+2
loc_9CB69:
jmp short $+2
loc_9CB6B:
jmp short loc_9CB7D
loc_9CB6D:
mov rax, [rbp+var_10]
mov rcx, [rax+38h]
mov rax, [rbp+var_20]
mov [rax+50h], rcx
loc_9CB7D:
jmp short $+2
loc_9CB7F:
jmp short $+2
loc_9CB81:
jmp short $+2
loc_9CB83:
mov rax, [rbp+var_20]
mov [rbp+var_88], rax
mov rax, [rbp+var_88]
add rsp, 90h
pop rbp
retn
|
long long * get_hash_link(_QWORD *a1, long long a2, long long a3)
{
_QWORD *v3; // rdi
const char *v4; // rsi
long long v5; // rax
long long v6; // rcx
_BYTE v8[72]; // [rsp+10h] [rbp-80h] BYREF
long long v9; // [rsp+58h] [rbp-38h]
long long v10; // [rsp+60h] [rbp-30h]
long long v11; // [rsp+68h] [rbp-28h] BYREF
long long *present_hash_link; // [rsp+70h] [rbp-20h]
long long v13; // [rsp+78h] [rbp-18h]
long long v14; // [rsp+80h] [rbp-10h]
_QWORD *v15; // [rsp+88h] [rbp-8h]
v15 = a1;
v14 = a2;
v13 = a3;
while ( 1 )
{
v3 = v15;
v4 = (const char *)v14;
present_hash_link = get_present_hash_link((long long)v15, v14, v13, &v11);
if ( present_hash_link )
break;
if ( v15[19] )
{
present_hash_link = (long long *)v15[19];
v15[19] = *present_hash_link;
LABEL_8:
memcpy(present_hash_link + 3, v14, 72LL);
present_hash_link[12] = v13;
link_hash(v11, present_hash_link);
++*((_DWORD *)present_hash_link + 26);
return present_hash_link;
}
if ( v15[7] < v15[6] )
{
v5 = v15[18];
v6 = v15[7];
v15[7] = v6 + 1;
present_hash_link = (long long *)(112 * v6 + v5);
goto LABEL_8;
}
v10 = my_thread_var(v3, v4);
memcpy(v8, v14, sizeof(v8));
v9 = v13;
*(_QWORD *)(v10 + 168) = v8;
wqueue_link_into_queue(v15 + 35, v10);
inline_mysql_cond_wait_2(
v10 + 8,
(long long)(v15 + 25),
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0x736u);
*(_QWORD *)(v10 + 168) = 0LL;
}
present_hash_link[10] = *(_QWORD *)(v14 + 56);
return present_hash_link;
}
|
get_hash_link:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
LAB_0019ca07:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
LEA RCX,[RBP + -0x28]
CALL 0x0019b1d0
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x0019cb6d
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x98],0x0
JZ 0x0019ca63
JMP 0x0019ca3b
LAB_0019ca3b:
JMP 0x0019ca3d
LAB_0019ca3d:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x98],RCX
JMP 0x0019cb27
LAB_0019ca63:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RCX + 0x30]
JGE 0x0019caa3
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x90]
MOV RDX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RDX + 0x38]
MOV RSI,RCX
ADD RSI,0x1
MOV qword ptr [RDX + 0x38],RSI
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0019cb25
LAB_0019caa3:
CALL 0x001ff280
MOV qword ptr [RBP + -0x30],RAX
LEA RDI,[RBP + -0x80]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,0x48
CALL 0x0012a0b0
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
LEA RCX,[RBP + -0x80]
MOV qword ptr [RAX + 0xa8],RCX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x118
MOV RSI,qword ptr [RBP + -0x30]
CALL 0x00209010
JMP 0x0019caeb
LAB_0019caeb:
MOV RDI,qword ptr [RBP + -0x30]
ADD RDI,0x8
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0xc8
LEA RDX,[0x25ec13]
MOV ECX,0x736
CALL 0x0019c760
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX + 0xa8],0x0
JMP 0x0019cb20
LAB_0019cb20:
JMP 0x0019ca07
LAB_0019cb25:
JMP 0x0019cb27
LAB_0019cb27:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x18
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,0x48
CALL 0x0012a0b0
JMP 0x0019cb3f
LAB_0019cb3f:
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x60],RCX
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x0019d0f0
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RAX + 0x68]
ADD ECX,0x1
MOV dword ptr [RAX + 0x68],ECX
JMP 0x0019cb67
LAB_0019cb67:
JMP 0x0019cb69
LAB_0019cb69:
JMP 0x0019cb6b
LAB_0019cb6b:
JMP 0x0019cb7d
LAB_0019cb6d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x50],RCX
LAB_0019cb7d:
JMP 0x0019cb7f
LAB_0019cb7f:
JMP 0x0019cb81
LAB_0019cb81:
JMP 0x0019cb83
LAB_0019cb83:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RBP + -0x88]
ADD RSP,0x90
POP RBP
RET
|
int8 * get_hash_link(long param_1,void *param_2,int8 param_3)
{
long lVar1;
int1 local_88 [72];
int8 local_40;
long local_38;
int8 local_30;
int8 *local_28;
int8 local_20;
void *local_18;
long local_10;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
while( true ) {
local_28 = (int8 *)get_present_hash_link(local_10,local_18,local_20,&local_30);
if (local_28 != (int8 *)0x0) {
local_28[10] = *(int8 *)((long)local_18 + 0x38);
return local_28;
}
if (*(long *)(local_10 + 0x98) != 0) break;
if (*(long *)(local_10 + 0x38) < *(long *)(local_10 + 0x30)) {
lVar1 = *(long *)(local_10 + 0x38);
*(long *)(local_10 + 0x38) = lVar1 + 1;
local_28 = (int8 *)(*(long *)(local_10 + 0x90) + lVar1 * 0x70);
goto LAB_0019cb27;
}
local_38 = _my_thread_var();
memcpy(local_88,local_18,0x48);
local_40 = local_20;
*(int1 **)(local_38 + 0xa8) = local_88;
wqueue_link_into_queue(local_10 + 0x118,local_38);
inline_mysql_cond_wait
(local_38 + 8,local_10 + 200,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0x736);
*(int8 *)(local_38 + 0xa8) = 0;
}
local_28 = *(int8 **)(local_10 + 0x98);
*(int8 *)(local_10 + 0x98) = *local_28;
LAB_0019cb27:
memcpy(local_28 + 3,local_18,0x48);
local_28[0xc] = local_20;
link_hash(local_30,local_28);
*(int *)(local_28 + 0xd) = *(int *)(local_28 + 0xd) + 1;
return local_28;
}
|
|
18,118
|
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<float>(float, float, float*, float*, float*, float*, float*, float*)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBasis.cpp
|
int EvalBasisBoxSplineTri(REAL s, REAL t,
REAL wP[12], REAL wDs[12], REAL wDt[12],
REAL wDss[12], REAL wDst[12], REAL wDtt[12]) {
REAL stMonomials[15];
evalBivariateMonomialsQuartic(s, t, stMonomials);
if (wP) {
evalBoxSplineTriDerivWeights<REAL>(stMonomials, 0, 0, wP);
}
if (wDs && wDt) {
evalBoxSplineTriDerivWeights(stMonomials, 1, 0, wDs);
evalBoxSplineTriDerivWeights(stMonomials, 0, 1, wDt);
if (wDss && wDst && wDtt) {
evalBoxSplineTriDerivWeights(stMonomials, 2, 0, wDss);
evalBoxSplineTriDerivWeights(stMonomials, 1, 1, wDst);
evalBoxSplineTriDerivWeights(stMonomials, 0, 2, wDtt);
}
}
return 12;
}
|
O0
|
cpp
|
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<float>(float, float, float*, float*, float*, float*, float*, float*):
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movss %xmm0, -0x4(%rbp)
movss %xmm1, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movss -0x4(%rbp), %xmm0
movss -0x8(%rbp), %xmm1
leaq -0x80(%rbp), %rdi
callq 0x12b0f0
cmpq $0x0, -0x10(%rbp)
je 0x131e28
leaq -0x80(%rbp), %rdi
movq -0x10(%rbp), %rcx
xorl %edx, %edx
movl %edx, %esi
callq 0x12b240
cmpq $0x0, -0x18(%rbp)
je 0x131eb5
cmpq $0x0, -0x20(%rbp)
je 0x131eb5
leaq -0x80(%rbp), %rdi
movq -0x18(%rbp), %rcx
movl $0x1, %esi
xorl %edx, %edx
callq 0x12b240
leaq -0x80(%rbp), %rdi
movq -0x20(%rbp), %rcx
xorl %esi, %esi
movl $0x1, %edx
callq 0x12b240
cmpq $0x0, -0x28(%rbp)
je 0x131eb3
cmpq $0x0, -0x30(%rbp)
je 0x131eb3
cmpq $0x0, -0x38(%rbp)
je 0x131eb3
leaq -0x80(%rbp), %rdi
movq -0x28(%rbp), %rcx
movl $0x2, %esi
xorl %edx, %edx
callq 0x12b240
leaq -0x80(%rbp), %rdi
movq -0x30(%rbp), %rcx
movl $0x1, %edx
movl %edx, %esi
callq 0x12b240
leaq -0x80(%rbp), %rdi
movq -0x38(%rbp), %rcx
xorl %esi, %esi
movl $0x2, %edx
callq 0x12b240
jmp 0x131eb5
movl $0xc, %eax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
|
_ZN10OpenSubdiv6v3_6_03Far8internal21EvalBasisBoxSplineTriIfEEiT_S4_PS4_S5_S5_S5_S5_S5_:
push rbp
mov rbp, rsp
sub rsp, 80h
movss [rbp+var_4], xmm0
movss [rbp+var_8], xmm1
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
movss xmm0, [rbp+var_4]
movss xmm1, [rbp+var_8]
lea rdi, [rbp+var_80]
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_129evalBivariateMonomialsQuarticIfEEvT_S5_PS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBivariateMonomialsQuartic<float>(float,float,float*)
cmp [rbp+var_10], 0
jz short loc_131E28
lea rdi, [rbp+var_80]
mov rcx, [rbp+var_10]
xor edx, edx
mov esi, edx
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
loc_131E28:
cmp [rbp+var_18], 0
jz loc_131EB5
cmp [rbp+var_20], 0
jz short loc_131EB5
lea rdi, [rbp+var_80]
mov rcx, [rbp+var_18]
mov esi, 1
xor edx, edx
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
lea rdi, [rbp+var_80]
mov rcx, [rbp+var_20]
xor esi, esi
mov edx, 1
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
cmp [rbp+var_28], 0
jz short loc_131EB3
cmp [rbp+var_30], 0
jz short loc_131EB3
cmp [rbp+var_38], 0
jz short loc_131EB3
lea rdi, [rbp+var_80]
mov rcx, [rbp+var_28]
mov esi, 2
xor edx, edx
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
lea rdi, [rbp+var_80]
mov rcx, [rbp+var_30]
mov edx, 1
mov esi, edx
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
lea rdi, [rbp+var_80]
mov rcx, [rbp+var_38]
xor esi, esi
mov edx, 2
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
loc_131EB3:
jmp short $+2
loc_131EB5:
mov eax, 0Ch
add rsp, 80h
pop rbp
retn
|
long long OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<float>(
float *a1,
float *a2,
float *a3,
float *a4,
float *a5,
float *a6,
float a7,
float a8)
{
float v9[18]; // [rsp+0h] [rbp-80h] BYREF
float *v10; // [rsp+48h] [rbp-38h]
float *v11; // [rsp+50h] [rbp-30h]
float *v12; // [rsp+58h] [rbp-28h]
float *v13; // [rsp+60h] [rbp-20h]
float *v14; // [rsp+68h] [rbp-18h]
float *v15; // [rsp+70h] [rbp-10h]
float v16; // [rsp+78h] [rbp-8h]
float v17; // [rsp+7Ch] [rbp-4h]
v17 = a7;
v16 = a8;
v15 = a1;
v14 = a2;
v13 = a3;
v12 = a4;
v11 = a5;
v10 = a6;
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBivariateMonomialsQuartic<float>((long long)v9, a7, a8);
if ( v15 )
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v9, 0, 0, v15);
if ( v14 )
{
if ( v13 )
{
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v9, 1, 0, v14);
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v9, 0, 1, v13);
if ( v12 )
{
if ( v11 && v10 )
{
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v9, 2, 0, v12);
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v9, 1, 1, v11);
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v9, 0, 2, v10);
}
}
}
}
return 12LL;
}
| |||
18,119
|
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<float>(float, float, float*, float*, float*, float*, float*, float*)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBasis.cpp
|
int EvalBasisBoxSplineTri(REAL s, REAL t,
REAL wP[12], REAL wDs[12], REAL wDt[12],
REAL wDss[12], REAL wDst[12], REAL wDtt[12]) {
REAL stMonomials[15];
evalBivariateMonomialsQuartic(s, t, stMonomials);
if (wP) {
evalBoxSplineTriDerivWeights<REAL>(stMonomials, 0, 0, wP);
}
if (wDs && wDt) {
evalBoxSplineTriDerivWeights(stMonomials, 1, 0, wDs);
evalBoxSplineTriDerivWeights(stMonomials, 0, 1, wDt);
if (wDss && wDst && wDtt) {
evalBoxSplineTriDerivWeights(stMonomials, 2, 0, wDss);
evalBoxSplineTriDerivWeights(stMonomials, 1, 1, wDst);
evalBoxSplineTriDerivWeights(stMonomials, 0, 2, wDtt);
}
}
return 12;
}
|
O1
|
cpp
|
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<float>(float, float, float*, float*, float*, float*, float*, float*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movl $0x3f800000, (%rsp) # imm = 0x3F800000
movss %xmm0, 0x4(%rsp)
movss %xmm1, 0x8(%rsp)
movaps %xmm0, %xmm2
mulss %xmm0, %xmm2
movss %xmm2, 0xc(%rsp)
movaps %xmm0, %xmm3
mulss %xmm1, %xmm3
movss %xmm3, 0x10(%rsp)
movaps %xmm1, %xmm4
mulss %xmm1, %xmm4
movss %xmm4, 0x14(%rsp)
movaps %xmm2, %xmm5
mulss %xmm0, %xmm5
movss %xmm5, 0x18(%rsp)
movaps %xmm3, %xmm6
mulss %xmm0, %xmm6
movss %xmm6, 0x1c(%rsp)
mulss %xmm1, %xmm3
movss %xmm3, 0x20(%rsp)
mulss %xmm4, %xmm2
mulss %xmm1, %xmm4
movss %xmm4, 0x24(%rsp)
mulss %xmm0, %xmm5
movss %xmm5, 0x28(%rsp)
mulss %xmm0, %xmm6
movss %xmm6, 0x2c(%rsp)
movss %xmm2, 0x30(%rsp)
mulss %xmm1, %xmm3
movss %xmm3, 0x34(%rsp)
mulss %xmm1, %xmm4
movss %xmm4, 0x38(%rsp)
testq %rdi, %rdi
je 0x6247f
movq %rdi, %rcx
movq %rsp, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5de72
testq %r13, %r13
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x6250a
movq %rsp, %rbp
movq %rbp, %rdi
movl $0x1, %esi
xorl %edx, %edx
movq %r13, %rcx
callq 0x5de72
movq %rbp, %rdi
xorl %esi, %esi
movl $0x1, %edx
movq %r12, %rcx
callq 0x5de72
testq %r15, %r15
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
testq %rbx, %rbx
sete %al
orb %cl, %al
jne 0x6250a
movq %rsp, %r12
movq %r12, %rdi
movl $0x2, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0x5de72
movq %r12, %rdi
movl $0x1, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x5de72
movq %r12, %rdi
xorl %esi, %esi
movl $0x2, %edx
movq %rbx, %rcx
callq 0x5de72
movl $0xc, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZN10OpenSubdiv6v3_6_03Far8internal21EvalBasisBoxSplineTriIfEEiT_S4_PS4_S5_S5_S5_S5_S5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rbx, r9
mov r14, r8
mov r15, rcx
mov r12, rdx
mov r13, rsi
mov [rsp+78h+var_78], 3F800000h
movss [rsp+78h+var_74], xmm0
movss [rsp+78h+var_70], xmm1
movaps xmm2, xmm0
mulss xmm2, xmm0
movss [rsp+78h+var_6C], xmm2
movaps xmm3, xmm0
mulss xmm3, xmm1
movss [rsp+78h+var_68], xmm3
movaps xmm4, xmm1
mulss xmm4, xmm1
movss [rsp+78h+var_64], xmm4
movaps xmm5, xmm2
mulss xmm5, xmm0
movss [rsp+78h+var_60], xmm5
movaps xmm6, xmm3
mulss xmm6, xmm0
movss [rsp+78h+var_5C], xmm6
mulss xmm3, xmm1
movss [rsp+78h+var_58], xmm3
mulss xmm2, xmm4
mulss xmm4, xmm1
movss [rsp+78h+var_54], xmm4
mulss xmm5, xmm0
movss [rsp+78h+var_50], xmm5
mulss xmm6, xmm0
movss [rsp+78h+var_4C], xmm6
movss [rsp+78h+var_48], xmm2
mulss xmm3, xmm1
movss [rsp+78h+var_44], xmm3
mulss xmm4, xmm1
movss [rsp+78h+var_40], xmm4
test rdi, rdi
jz short loc_6247F
mov rcx, rdi
mov rdi, rsp
xor esi, esi
xor edx, edx
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
loc_6247F:
test r13, r13
setz al
test r12, r12
setz cl
or cl, al
jnz short loc_6250A
mov rbp, rsp
mov rdi, rbp
mov esi, 1
xor edx, edx
mov rcx, r13
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
mov rdi, rbp
xor esi, esi
mov edx, 1
mov rcx, r12
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
test r15, r15
setz al
test r14, r14
setz cl
or cl, al
test rbx, rbx
setz al
or al, cl
jnz short loc_6250A
mov r12, rsp
mov rdi, r12
mov esi, 2
xor edx, edx
mov rcx, r15
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
mov rdi, r12
mov esi, 1
mov edx, 1
mov rcx, r14
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
mov rdi, r12
xor esi, esi
mov edx, 2
mov rcx, rbx
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
loc_6250A:
mov eax, 0Ch
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<float>(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
float a7,
float a8)
{
float v13[6]; // [rsp+0h] [rbp-78h] BYREF
float v14; // [rsp+18h] [rbp-60h]
float v15; // [rsp+1Ch] [rbp-5Ch]
float v16; // [rsp+20h] [rbp-58h]
float v17; // [rsp+24h] [rbp-54h]
float v18; // [rsp+28h] [rbp-50h]
float v19; // [rsp+2Ch] [rbp-4Ch]
float v20; // [rsp+30h] [rbp-48h]
float v21; // [rsp+34h] [rbp-44h]
float v22; // [rsp+38h] [rbp-40h]
v13[0] = 1.0;
v13[1] = a7;
v13[2] = a8;
v13[3] = a7 * a7;
v13[4] = a7 * a8;
v13[5] = a8 * a8;
v14 = (float)(a7 * a7) * a7;
v15 = (float)(a7 * a8) * a7;
v16 = (float)(a7 * a8) * a8;
v17 = (float)(a8 * a8) * a8;
v18 = v14 * a7;
v19 = v15 * a7;
v20 = (float)(a7 * a7) * (float)(a8 * a8);
v21 = v16 * a8;
v22 = v17 * a8;
if ( a1 )
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v13, 0, 0, a1);
if ( a2 != 0 && a3 != 0 )
{
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v13, 1, 0, a2);
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v13, 0, 1, a3);
if ( a4 != 0 && a5 != 0 && a6 != 0 )
{
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v13, 2, 0, a4);
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v13, 1, 1, a5);
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v13, 0, 2, a6);
}
}
return 12LL;
}
|
EvalBasisBoxSplineTri<float>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBX,R9
MOV R14,R8
MOV R15,RCX
MOV R12,RDX
MOV R13,RSI
MOV dword ptr [RSP],0x3f800000
MOVSS dword ptr [RSP + 0x4],XMM0
MOVSS dword ptr [RSP + 0x8],XMM1
MOVAPS XMM2,XMM0
MULSS XMM2,XMM0
MOVSS dword ptr [RSP + 0xc],XMM2
MOVAPS XMM3,XMM0
MULSS XMM3,XMM1
MOVSS dword ptr [RSP + 0x10],XMM3
MOVAPS XMM4,XMM1
MULSS XMM4,XMM1
MOVSS dword ptr [RSP + 0x14],XMM4
MOVAPS XMM5,XMM2
MULSS XMM5,XMM0
MOVSS dword ptr [RSP + 0x18],XMM5
MOVAPS XMM6,XMM3
MULSS XMM6,XMM0
MOVSS dword ptr [RSP + 0x1c],XMM6
MULSS XMM3,XMM1
MOVSS dword ptr [RSP + 0x20],XMM3
MULSS XMM2,XMM4
MULSS XMM4,XMM1
MOVSS dword ptr [RSP + 0x24],XMM4
MULSS XMM5,XMM0
MOVSS dword ptr [RSP + 0x28],XMM5
MULSS XMM6,XMM0
MOVSS dword ptr [RSP + 0x2c],XMM6
MOVSS dword ptr [RSP + 0x30],XMM2
MULSS XMM3,XMM1
MOVSS dword ptr [RSP + 0x34],XMM3
MULSS XMM4,XMM1
MOVSS dword ptr [RSP + 0x38],XMM4
TEST RDI,RDI
JZ 0x0016247f
MOV RCX,RDI
MOV RDI,RSP
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0015de72
LAB_0016247f:
TEST R13,R13
SETZ AL
TEST R12,R12
SETZ CL
OR CL,AL
JNZ 0x0016250a
MOV RBP,RSP
MOV RDI,RBP
MOV ESI,0x1
XOR EDX,EDX
MOV RCX,R13
CALL 0x0015de72
MOV RDI,RBP
XOR ESI,ESI
MOV EDX,0x1
MOV RCX,R12
CALL 0x0015de72
TEST R15,R15
SETZ AL
TEST R14,R14
SETZ CL
OR CL,AL
TEST RBX,RBX
SETZ AL
OR AL,CL
JNZ 0x0016250a
MOV R12,RSP
MOV RDI,R12
MOV ESI,0x2
XOR EDX,EDX
MOV RCX,R15
CALL 0x0015de72
MOV RDI,R12
MOV ESI,0x1
MOV EDX,0x1
MOV RCX,R14
CALL 0x0015de72
MOV RDI,R12
XOR ESI,ESI
MOV EDX,0x2
MOV RCX,RBX
CALL 0x0015de72
LAB_0016250a:
MOV EAX,0xc
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* int OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<float>(float, float, float*, float*,
float*, float*, float*, float*) */
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<float>
(float param_1,float param_2,float *param_3,float *param_4,float *param_5,
float *param_6,float *param_7,float *param_8)
{
float local_78;
float local_74;
float local_70;
float local_6c;
float local_68;
float local_64;
float local_60;
float local_5c;
float local_58;
float local_54;
float local_50;
float local_4c;
float local_48;
float local_44;
float local_40;
local_78 = 1.0;
local_6c = param_1 * param_1;
local_68 = param_1 * param_2;
local_64 = param_2 * param_2;
local_60 = local_6c * param_1;
local_5c = local_68 * param_1;
local_58 = local_68 * param_2;
local_48 = local_6c * local_64;
local_54 = local_64 * param_2;
local_50 = local_60 * param_1;
local_4c = local_5c * param_1;
local_44 = local_58 * param_2;
local_40 = local_54 * param_2;
local_74 = param_1;
local_70 = param_2;
if (param_3 != (float *)0x0) {
(anonymous_namespace)::evalBoxSplineTriDerivWeights<float>(&local_78,0,0,param_3);
}
if (param_5 != (float *)0x0 && param_4 != (float *)0x0) {
(anonymous_namespace)::evalBoxSplineTriDerivWeights<float>(&local_78,1,0,param_4);
(anonymous_namespace)::evalBoxSplineTriDerivWeights<float>(&local_78,0,1,param_5);
if (param_8 != (float *)0x0 && (param_7 != (float *)0x0 && param_6 != (float *)0x0)) {
(anonymous_namespace)::evalBoxSplineTriDerivWeights<float>(&local_78,2,0,param_6);
(anonymous_namespace)::evalBoxSplineTriDerivWeights<float>(&local_78,1,1,param_7);
(anonymous_namespace)::evalBoxSplineTriDerivWeights<float>(&local_78,0,2,param_8);
}
}
return 0xc;
}
|
|
18,120
|
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<float>(float, float, float*, float*, float*, float*, float*, float*)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBasis.cpp
|
int EvalBasisBoxSplineTri(REAL s, REAL t,
REAL wP[12], REAL wDs[12], REAL wDt[12],
REAL wDss[12], REAL wDst[12], REAL wDtt[12]) {
REAL stMonomials[15];
evalBivariateMonomialsQuartic(s, t, stMonomials);
if (wP) {
evalBoxSplineTriDerivWeights<REAL>(stMonomials, 0, 0, wP);
}
if (wDs && wDt) {
evalBoxSplineTriDerivWeights(stMonomials, 1, 0, wDs);
evalBoxSplineTriDerivWeights(stMonomials, 0, 1, wDt);
if (wDss && wDst && wDtt) {
evalBoxSplineTriDerivWeights(stMonomials, 2, 0, wDss);
evalBoxSplineTriDerivWeights(stMonomials, 1, 1, wDst);
evalBoxSplineTriDerivWeights(stMonomials, 0, 2, wDtt);
}
}
return 12;
}
|
O2
|
cpp
|
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<float>(float, float, float*, float*, float*, float*, float*, float*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, (%rsp)
movsd %xmm0, 0x8(%rsp)
movsd %xmm1, 0x10(%rsp)
movapd %xmm0, %xmm2
unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0]
unpcklpd %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0]
mulpd %xmm2, %xmm0
movupd %xmm0, 0x18(%rsp)
movapd %xmm0, %xmm3
mulpd %xmm2, %xmm3
movapd %xmm3, 0x30(%rsp)
mulpd %xmm2, %xmm3
movapd %xmm3, 0x50(%rsp)
movapd %xmm1, %xmm2
unpcklpd %xmm1, %xmm2 # xmm2 = xmm2[0],xmm1[0]
movapd %xmm0, %xmm3
movsd %xmm1, %xmm3 # xmm3 = xmm1[0],xmm3[1]
mulpd %xmm2, %xmm3
movlpd %xmm3, 0x28(%rsp)
movhpd %xmm3, 0x40(%rsp)
unpcklpd %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0]
mulpd %xmm3, %xmm0
mulsd %xmm1, %xmm3
movsd %xmm3, 0x48(%rsp)
movapd %xmm0, 0x60(%rsp)
mulsd %xmm1, %xmm3
movsd %xmm3, 0x70(%rsp)
testq %rdi, %rdi
je 0x775c7
movq %rdi, %rcx
movq %rsp, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x7460a
testq %r13, %r13
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x77649
movq %rsp, %rbp
pushq $0x1
popq %rsi
movq %rbp, %rdi
xorl %edx, %edx
movq %r13, %rcx
callq 0x7460a
movq %rbp, %rdi
xorl %esi, %esi
pushq $0x1
popq %rdx
movq %r12, %rcx
callq 0x7460a
testq %r15, %r15
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
testq %rbx, %rbx
sete %al
orb %cl, %al
jne 0x77649
movq %rbx, %r12
movq %rsp, %rbx
pushq $0x2
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0x7460a
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %edx, %esi
movq %r14, %rcx
callq 0x7460a
movq %rbx, %rdi
xorl %esi, %esi
movl %ebp, %edx
movq %r12, %rcx
callq 0x7460a
pushq $0xc
popq %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZN10OpenSubdiv6v3_6_03Far8internal21EvalBasisBoxSplineTriIdEEiT_S4_PS4_S5_S5_S5_S5_S5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov rbx, r9
mov r14, r8
mov r15, rcx
mov r12, rdx
mov r13, rsi
mov rax, 3FF0000000000000h
mov [rsp+0A8h+var_A8], rax
movsd [rsp+0A8h+var_A0], xmm0
movsd [rsp+0A8h+var_98], xmm1
movapd xmm2, xmm0
unpcklpd xmm2, xmm0
unpcklpd xmm0, xmm1
mulpd xmm0, xmm2
movupd [rsp+0A8h+var_90], xmm0
movapd xmm3, xmm0
mulpd xmm3, xmm2
movapd [rsp+0A8h+var_78], xmm3
mulpd xmm3, xmm2
movapd [rsp+0A8h+var_58], xmm3
movapd xmm2, xmm1
unpcklpd xmm2, xmm1
movapd xmm3, xmm0
movsd xmm3, xmm1
mulpd xmm3, xmm2
movlpd [rsp+0A8h+var_80], xmm3
movhpd [rsp+0A8h+var_68], xmm3
unpcklpd xmm0, xmm1
mulpd xmm0, xmm3
mulsd xmm3, xmm1
movsd [rsp+0A8h+var_60], xmm3
movapd [rsp+0A8h+var_48], xmm0
mulsd xmm3, xmm1
movsd [rsp+0A8h+var_38], xmm3
test rdi, rdi
jz short loc_775C7
mov rcx, rdi
mov rdi, rsp
xor esi, esi
xor edx, edx
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIdEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<double>(double const*,int,int,double*)
loc_775C7:
test r13, r13
setz al
test r12, r12
setz cl
or cl, al
jnz short loc_77649
mov rbp, rsp
push 1
pop rsi
mov rdi, rbp
xor edx, edx
mov rcx, r13
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIdEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<double>(double const*,int,int,double*)
mov rdi, rbp
xor esi, esi
push 1
pop rdx
mov rcx, r12
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIdEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<double>(double const*,int,int,double*)
test r15, r15
setz al
test r14, r14
setz cl
or cl, al
test rbx, rbx
setz al
or al, cl
jnz short loc_77649
mov r12, rbx
mov rbx, rsp
push 2
pop rbp
mov rdi, rbx
mov esi, ebp
xor edx, edx
mov rcx, r15
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIdEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<double>(double const*,int,int,double*)
push 1
pop rdx
mov rdi, rbx
mov esi, edx
mov rcx, r14
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIdEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<double>(double const*,int,int,double*)
mov rdi, rbx
xor esi, esi
mov edx, ebp
mov rcx, r12
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIdEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<double>(double const*,int,int,double*)
loc_77649:
push 0Ch
pop rax
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<double>(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128d a7,
__m128d a8)
{
__m128d v12; // xmm2
__m128d v13; // xmm3
__m128d v14; // kr00_16
double v16[3]; // [rsp+0h] [rbp-A8h] BYREF
__m128d v17; // [rsp+18h] [rbp-90h]
double v18; // [rsp+28h] [rbp-80h]
__m128d v19; // [rsp+30h] [rbp-78h]
double v20; // [rsp+40h] [rbp-68h]
double v21; // [rsp+48h] [rbp-60h]
__m128d v22; // [rsp+50h] [rbp-58h]
__m128d v23; // [rsp+60h] [rbp-48h]
double v24; // [rsp+70h] [rbp-38h]
v16[0] = 1.0;
v16[1] = a7.m128d_f64[0];
v16[2] = a8.m128d_f64[0];
v12 = _mm_unpacklo_pd(a7, a7);
v17 = _mm_mul_pd(_mm_unpacklo_pd(a7, a8), v12);
v19 = _mm_mul_pd(v17, v12);
v22 = _mm_mul_pd(v19, v12);
v13.m128d_f64[1] = v17.m128d_f64[1];
v13.m128d_f64[0] = a8.m128d_f64[0];
v14 = _mm_mul_pd(v13, _mm_unpacklo_pd(a8, a8));
v20 = v14.m128d_f64[1];
v18 = v14.m128d_f64[0];
v21 = v14.m128d_f64[0] * a8.m128d_f64[0];
v23 = _mm_mul_pd(_mm_unpacklo_pd(v17, a8), v14);
v24 = v14.m128d_f64[0] * a8.m128d_f64[0] * a8.m128d_f64[0];
if ( a1 )
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<double>(v16, 0, 0, a1);
if ( a2 != 0 && a3 != 0 )
{
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<double>(v16, 1, 0, a2);
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<double>(v16, 0, 1, a3);
if ( a4 != 0 && a5 != 0 && a6 != 0 )
{
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<double>(v16, 2, 0, a4);
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<double>(v16, 1, 1, a5);
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<double>(v16, 0, 2, a6);
}
}
return 12LL;
}
|
EvalBasisBoxSplineTri<double>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV RBX,R9
MOV R14,R8
MOV R15,RCX
MOV R12,RDX
MOV R13,RSI
MOV RAX,0x3ff0000000000000
MOV qword ptr [RSP],RAX
MOVSD qword ptr [RSP + 0x8],XMM0
MOVSD qword ptr [RSP + 0x10],XMM1
MOVAPD XMM2,XMM0
UNPCKLPD XMM2,XMM0
UNPCKLPD XMM0,XMM1
MULPD XMM0,XMM2
MOVUPD xmmword ptr [RSP + 0x18],XMM0
MOVAPD XMM3,XMM0
MULPD XMM3,XMM2
MOVAPD xmmword ptr [RSP + 0x30],XMM3
MULPD XMM3,XMM2
MOVAPD xmmword ptr [RSP + 0x50],XMM3
MOVAPD XMM2,XMM1
UNPCKLPD XMM2,XMM1
MOVAPD XMM3,XMM0
MOVSD XMM3,XMM1
MULPD XMM3,XMM2
MOVLPD qword ptr [RSP + 0x28],XMM3
MOVHPD qword ptr [RSP + 0x40],XMM3
UNPCKLPD XMM0,XMM1
MULPD XMM0,XMM3
MULSD XMM3,XMM1
MOVSD qword ptr [RSP + 0x48],XMM3
MOVAPD xmmword ptr [RSP + 0x60],XMM0
MULSD XMM3,XMM1
MOVSD qword ptr [RSP + 0x70],XMM3
TEST RDI,RDI
JZ 0x001775c7
MOV RCX,RDI
MOV RDI,RSP
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0017460a
LAB_001775c7:
TEST R13,R13
SETZ AL
TEST R12,R12
SETZ CL
OR CL,AL
JNZ 0x00177649
MOV RBP,RSP
PUSH 0x1
POP RSI
MOV RDI,RBP
XOR EDX,EDX
MOV RCX,R13
CALL 0x0017460a
MOV RDI,RBP
XOR ESI,ESI
PUSH 0x1
POP RDX
MOV RCX,R12
CALL 0x0017460a
TEST R15,R15
SETZ AL
TEST R14,R14
SETZ CL
OR CL,AL
TEST RBX,RBX
SETZ AL
OR AL,CL
JNZ 0x00177649
MOV R12,RBX
MOV RBX,RSP
PUSH 0x2
POP RBP
MOV RDI,RBX
MOV ESI,EBP
XOR EDX,EDX
MOV RCX,R15
CALL 0x0017460a
PUSH 0x1
POP RDX
MOV RDI,RBX
MOV ESI,EDX
MOV RCX,R14
CALL 0x0017460a
MOV RDI,RBX
XOR ESI,ESI
MOV EDX,EBP
MOV RCX,R12
CALL 0x0017460a
LAB_00177649:
PUSH 0xc
POP RAX
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* int OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<double>(double, double, double*,
double*, double*, double*, double*, double*) */
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<double>
(double param_1,double param_2,double *param_3,double *param_4,double *param_5,
double *param_6,double *param_7,double *param_8)
{
double local_a8;
double local_a0;
double local_98;
double local_90;
double dStack_88;
double local_80;
double local_78;
double dStack_70;
double local_68;
double local_60;
double local_58;
double dStack_50;
double local_48;
double dStack_40;
double local_38;
local_a8 = 1.0;
local_90 = param_1 * param_1;
dStack_88 = param_2 * param_1;
local_78 = local_90 * param_1;
dStack_70 = dStack_88 * param_1;
local_58 = local_78 * param_1;
dStack_50 = dStack_70 * param_1;
local_80 = param_2 * param_2;
local_68 = dStack_88 * param_2;
local_48 = local_90 * local_80;
dStack_40 = param_2 * local_68;
local_60 = local_80 * param_2;
local_38 = local_60 * param_2;
local_a0 = param_1;
local_98 = param_2;
if (param_3 != (double *)0x0) {
(anonymous_namespace)::evalBoxSplineTriDerivWeights<double>(&local_a8,0,0,param_3);
}
if (param_5 != (double *)0x0 && param_4 != (double *)0x0) {
(anonymous_namespace)::evalBoxSplineTriDerivWeights<double>(&local_a8,1,0,param_4);
(anonymous_namespace)::evalBoxSplineTriDerivWeights<double>(&local_a8,0,1,param_5);
if (param_8 != (double *)0x0 && (param_7 != (double *)0x0 && param_6 != (double *)0x0)) {
(anonymous_namespace)::evalBoxSplineTriDerivWeights<double>(&local_a8,2,0,param_6);
(anonymous_namespace)::evalBoxSplineTriDerivWeights<double>(&local_a8,1,1,param_7);
(anonymous_namespace)::evalBoxSplineTriDerivWeights<double>(&local_a8,0,2,param_8);
}
}
return 0xc;
}
|
|
18,121
|
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<float>(float, float, float*, float*, float*, float*, float*, float*)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBasis.cpp
|
int EvalBasisBoxSplineTri(REAL s, REAL t,
REAL wP[12], REAL wDs[12], REAL wDt[12],
REAL wDss[12], REAL wDst[12], REAL wDtt[12]) {
REAL stMonomials[15];
evalBivariateMonomialsQuartic(s, t, stMonomials);
if (wP) {
evalBoxSplineTriDerivWeights<REAL>(stMonomials, 0, 0, wP);
}
if (wDs && wDt) {
evalBoxSplineTriDerivWeights(stMonomials, 1, 0, wDs);
evalBoxSplineTriDerivWeights(stMonomials, 0, 1, wDt);
if (wDss && wDst && wDtt) {
evalBoxSplineTriDerivWeights(stMonomials, 2, 0, wDss);
evalBoxSplineTriDerivWeights(stMonomials, 1, 1, wDst);
evalBoxSplineTriDerivWeights(stMonomials, 0, 2, wDtt);
}
}
return 12;
}
|
O3
|
cpp
|
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<float>(float, float, float*, float*, float*, float*, float*, float*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movl $0x3f800000, (%rsp) # imm = 0x3F800000
movss %xmm0, 0x4(%rsp)
movss %xmm1, 0x8(%rsp)
movaps %xmm1, %xmm2
shufps $0x0, %xmm0, %xmm2 # xmm2 = xmm2[0,0],xmm0[0,0]
shufps $0x0, %xmm0, %xmm0 # xmm0 = xmm0[0,0,0,0]
movaps %xmm0, %xmm3
unpcklps %xmm1, %xmm3 # xmm3 = xmm3[0],xmm1[0],xmm3[1],xmm1[1]
mulps %xmm0, %xmm3
movlps %xmm3, 0xc(%rsp)
movaps %xmm1, %xmm4
mulss %xmm1, %xmm4
movss %xmm4, 0x14(%rsp)
mulps %xmm3, %xmm0
movlps %xmm0, 0x18(%rsp)
movaps %xmm4, %xmm5
shufps $0xd4, %xmm3, %xmm5 # xmm5 = xmm5[0,1],xmm3[1,3]
shufps $0x42, %xmm0, %xmm5 # xmm5 = xmm5[2,0],xmm0[0,1]
mulps %xmm2, %xmm5
movaps %xmm5, 0x20(%rsp)
mulss %xmm3, %xmm4
movss %xmm4, 0x30(%rsp)
unpcklps %xmm1, %xmm1 # xmm1 = xmm1[0,0,1,1]
mulps %xmm5, %xmm1
movlps %xmm1, 0x34(%rsp)
testq %rdi, %rdi
je 0x640ac
movq %rdi, %rcx
movq %rsp, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x60561
testq %r13, %r13
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x64137
movq %rsp, %rbp
movq %rbp, %rdi
movl $0x1, %esi
xorl %edx, %edx
movq %r13, %rcx
callq 0x60561
movq %rbp, %rdi
xorl %esi, %esi
movl $0x1, %edx
movq %r12, %rcx
callq 0x60561
testq %r15, %r15
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
testq %rbx, %rbx
sete %al
orb %cl, %al
jne 0x64137
movq %rsp, %r12
movq %r12, %rdi
movl $0x2, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0x60561
movq %r12, %rdi
movl $0x1, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x60561
movq %r12, %rdi
xorl %esi, %esi
movl $0x2, %edx
movq %rbx, %rcx
callq 0x60561
movl $0xc, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZN10OpenSubdiv6v3_6_03Far8internal21EvalBasisBoxSplineTriIfEEiT_S4_PS4_S5_S5_S5_S5_S5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rbx, r9
mov r14, r8
mov r15, rcx
mov r12, rdx
mov r13, rsi
mov [rsp+78h+var_78], 3F800000h
movss [rsp+78h+var_74], xmm0
movss [rsp+78h+var_70], xmm1
movaps xmm2, xmm1
shufps xmm2, xmm0, 0
shufps xmm0, xmm0, 0
movaps xmm3, xmm0
unpcklps xmm3, xmm1
mulps xmm3, xmm0
movlps [rsp+78h+var_6C], xmm3
movaps xmm4, xmm1
mulss xmm4, xmm1
movss [rsp+78h+var_64], xmm4
mulps xmm0, xmm3
movlps [rsp+78h+var_60], xmm0
movaps xmm5, xmm4
shufps xmm5, xmm3, 0D4h
shufps xmm5, xmm0, 42h ; 'B'
mulps xmm5, xmm2
movaps [rsp+78h+var_58], xmm5
mulss xmm4, xmm3
movss [rsp+78h+var_48], xmm4
unpcklps xmm1, xmm1
mulps xmm1, xmm5
movlps [rsp+78h+var_44], xmm1
test rdi, rdi
jz short loc_640AC
mov rcx, rdi
mov rdi, rsp
xor esi, esi
xor edx, edx
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
loc_640AC:
test r13, r13
setz al
test r12, r12
setz cl
or cl, al
jnz short loc_64137
mov rbp, rsp
mov rdi, rbp
mov esi, 1
xor edx, edx
mov rcx, r13
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
mov rdi, rbp
xor esi, esi
mov edx, 1
mov rcx, r12
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
test r15, r15
setz al
test r14, r14
setz cl
or cl, al
test rbx, rbx
setz al
or al, cl
jnz short loc_64137
mov r12, rsp
mov rdi, r12
mov esi, 2
xor edx, edx
mov rcx, r15
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
mov rdi, r12
mov esi, 1
mov edx, 1
mov rcx, r14
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
mov rdi, r12
xor esi, esi
mov edx, 2
mov rcx, rbx
call _ZN10OpenSubdiv6v3_6_03Far8internal12_GLOBAL__N_128evalBoxSplineTriDerivWeightsIfEEvPKT_iiPS5_; OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(float const*,int,int,float*)
loc_64137:
mov eax, 0Ch
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<float>(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8)
{
__m128 v12; // xmm2
__m128 v13; // xmm0
__m128 v14; // xmm3
__m128 v15; // xmm4
__m128 v16; // xmm0
float v18[3]; // [rsp+0h] [rbp-78h] BYREF
long long v19; // [rsp+Ch] [rbp-6Ch] BYREF
float v20; // [rsp+14h] [rbp-64h]
long long v21; // [rsp+18h] [rbp-60h] BYREF
__m128 v22; // [rsp+20h] [rbp-58h]
float v23; // [rsp+30h] [rbp-48h]
double v24[8]; // [rsp+34h] [rbp-44h] BYREF
v18[0] = 1.0;
v18[1] = a7.m128_f32[0];
v18[2] = a8.m128_f32[0];
v12 = _mm_shuffle_ps(a8, a7, 0);
v13 = _mm_shuffle_ps(a7, a7, 0);
v14 = _mm_mul_ps(_mm_unpacklo_ps(v13, a8), v13);
_mm_storel_ps((double *)&v19, v14);
v15 = a8;
v15.m128_f32[0] = a8.m128_f32[0] * a8.m128_f32[0];
v20 = a8.m128_f32[0] * a8.m128_f32[0];
v16 = _mm_mul_ps(v13, v14);
_mm_storel_ps((double *)&v21, v16);
v22 = _mm_mul_ps(_mm_shuffle_ps(_mm_shuffle_ps(v15, v14, 212), v16, 66), v12);
v23 = (float)(a8.m128_f32[0] * a8.m128_f32[0]) * v14.m128_f32[0];
_mm_storel_ps(v24, _mm_mul_ps(_mm_unpacklo_ps(a8, a8), v22));
if ( a1 )
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v18, 0, 0, a1);
if ( a2 != 0 && a3 != 0 )
{
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v18, 1, 0, a2);
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v18, 0, 1, a3);
if ( a4 != 0 && a5 != 0 && a6 != 0 )
{
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v18, 2, 0, a4);
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v18, 1, 1, a5);
OpenSubdiv::v3_6_0::Far::internal::`anonymous namespace'::evalBoxSplineTriDerivWeights<float>(v18, 0, 2, a6);
}
}
return 12LL;
}
|
EvalBasisBoxSplineTri<float>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBX,R9
MOV R14,R8
MOV R15,RCX
MOV R12,RDX
MOV R13,RSI
MOV dword ptr [RSP],0x3f800000
MOVSS dword ptr [RSP + 0x4],XMM0
MOVSS dword ptr [RSP + 0x8],XMM1
MOVAPS XMM2,XMM1
SHUFPS XMM2,XMM0,0x0
SHUFPS XMM0,XMM0,0x0
MOVAPS XMM3,XMM0
UNPCKLPS XMM3,XMM1
MULPS XMM3,XMM0
MOVLPS qword ptr [RSP + 0xc],XMM3
MOVAPS XMM4,XMM1
MULSS XMM4,XMM1
MOVSS dword ptr [RSP + 0x14],XMM4
MULPS XMM0,XMM3
MOVLPS qword ptr [RSP + 0x18],XMM0
MOVAPS XMM5,XMM4
SHUFPS XMM5,XMM3,0xd4
SHUFPS XMM5,XMM0,0x42
MULPS XMM5,XMM2
MOVAPS xmmword ptr [RSP + 0x20],XMM5
MULSS XMM4,XMM3
MOVSS dword ptr [RSP + 0x30],XMM4
UNPCKLPS XMM1,XMM1
MULPS XMM1,XMM5
MOVLPS qword ptr [RSP + 0x34],XMM1
TEST RDI,RDI
JZ 0x001640ac
MOV RCX,RDI
MOV RDI,RSP
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00160561
LAB_001640ac:
TEST R13,R13
SETZ AL
TEST R12,R12
SETZ CL
OR CL,AL
JNZ 0x00164137
MOV RBP,RSP
MOV RDI,RBP
MOV ESI,0x1
XOR EDX,EDX
MOV RCX,R13
CALL 0x00160561
MOV RDI,RBP
XOR ESI,ESI
MOV EDX,0x1
MOV RCX,R12
CALL 0x00160561
TEST R15,R15
SETZ AL
TEST R14,R14
SETZ CL
OR CL,AL
TEST RBX,RBX
SETZ AL
OR AL,CL
JNZ 0x00164137
MOV R12,RSP
MOV RDI,R12
MOV ESI,0x2
XOR EDX,EDX
MOV RCX,R15
CALL 0x00160561
MOV RDI,R12
MOV ESI,0x1
MOV EDX,0x1
MOV RCX,R14
CALL 0x00160561
MOV RDI,R12
XOR ESI,ESI
MOV EDX,0x2
MOV RCX,RBX
CALL 0x00160561
LAB_00164137:
MOV EAX,0xc
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* int OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<float>(float, float, float*, float*,
float*, float*, float*, float*) */
int OpenSubdiv::v3_6_0::Far::internal::EvalBasisBoxSplineTri<float>
(float param_1,float param_2,float *param_3,float *param_4,float *param_5,
float *param_6,float *param_7,float *param_8)
{
float fVar1;
float local_78;
float local_74;
float local_70;
int8 local_6c;
float local_64;
int8 local_60;
float local_58;
float fStack_54;
float fStack_50;
float fStack_4c;
float local_48;
int8 local_44;
local_78 = 1.0;
local_48 = param_1 * param_1;
fVar1 = param_2 * param_1;
local_6c = CONCAT44(fVar1,local_48);
local_64 = param_2 * param_2;
local_60 = CONCAT44(param_1 * fVar1,param_1 * local_48);
local_58 = fVar1 * param_2;
fStack_54 = local_64 * param_2;
fStack_50 = param_1 * local_48 * param_1;
fStack_4c = param_1 * fVar1 * param_1;
local_48 = local_64 * local_48;
local_44 = CONCAT44(param_2 * fStack_54,param_2 * local_58);
local_74 = param_1;
local_70 = param_2;
if (param_3 != (float *)0x0) {
(anonymous_namespace)::evalBoxSplineTriDerivWeights<float>(&local_78,0,0,param_3);
}
if (param_5 != (float *)0x0 && param_4 != (float *)0x0) {
(anonymous_namespace)::evalBoxSplineTriDerivWeights<float>(&local_78,1,0,param_4);
(anonymous_namespace)::evalBoxSplineTriDerivWeights<float>(&local_78,0,1,param_5);
if (param_8 != (float *)0x0 && (param_7 != (float *)0x0 && param_6 != (float *)0x0)) {
(anonymous_namespace)::evalBoxSplineTriDerivWeights<float>(&local_78,2,0,param_6);
(anonymous_namespace)::evalBoxSplineTriDerivWeights<float>(&local_78,1,1,param_7);
(anonymous_namespace)::evalBoxSplineTriDerivWeights<float>(&local_78,0,2,param_8);
}
}
return 0xc;
}
|
|
18,122
|
LefDefParser::lefwLayerAntennaSideAreaRatio(double)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
|
int
lefwLayerAntennaSideAreaRatio(double value)
{
lefw54Num = LEFW_ANTENNASIDEAREARATIO;
if (!lefwFile)
return LEFW_UNINITIALIZED;
if (lefwState != LEFW_LAYERROUTING_START && lefwState != LEFW_LAYERROUTING)
return LEFW_BAD_ORDER;
// only routing calls this func
if (!lefwIsRouting)
return LEFW_BAD_DATA;
if (versionNum < 5.4)
return LEFW_WRONG_VERSION;
if (lefwWriteEncrypt)
encPrint(lefwFile, (char*) " ANTENNASIDEAREARATIO %.11g ;\n", value);
else
fprintf(lefwFile, " ANTENNASIDEAREARATIO %.11g ;\n", value);
lefwLines++;
return LEFW_OK;
}
|
O0
|
cpp
|
LefDefParser::lefwLayerAntennaSideAreaRatio(double):
subq $0x18, %rsp
movsd %xmm0, 0x8(%rsp)
movl $0x6c, 0xa3d98(%rip) # 0xc4f1c
leaq 0xa40c5(%rip), %rax # 0xc5250
cmpq $0x0, (%rax)
jne 0x2119e
movl $0x1, 0x14(%rsp)
jmp 0x2125c
leaq 0xa42fb(%rip), %rax # 0xc54a0
cmpl $0x7, (%rax)
je 0x211c3
leaq 0xa42ef(%rip), %rax # 0xc54a0
cmpl $0x1f, (%rax)
je 0x211c3
movl $0x2, 0x14(%rsp)
jmp 0x2125c
leaq 0xa434a(%rip), %rax # 0xc5514
cmpl $0x0, (%rax)
jne 0x211dc
movl $0x3, 0x14(%rsp)
jmp 0x2125c
movsd 0x81a5c(%rip), %xmm0 # 0xa2c40
ucomisd 0xa3d24(%rip), %xmm0 # 0xc4f10
jbe 0x211f8
movl $0x5, 0x14(%rsp)
jmp 0x2125c
cmpl $0x0, 0xa433d(%rip) # 0xc553c
je 0x21221
leaq 0xa4048(%rip), %rax # 0xc5250
movq (%rax), %rdi
movsd 0x8(%rsp), %xmm0
leaq 0x7220d(%rip), %rsi # 0x93425
movb $0x1, %al
callq 0x8bf50
jmp 0x2123f
leaq 0xa4028(%rip), %rax # 0xc5250
movq (%rax), %rdi
movsd 0x8(%rsp), %xmm0
leaq 0x721ed(%rip), %rsi # 0x93425
movb $0x1, %al
callq 0x2370
leaq 0xa4256(%rip), %rax # 0xc549c
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0xa424a(%rip), %rax # 0xc549c
movl %ecx, (%rax)
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
|
_ZN12LefDefParser29lefwLayerAntennaSideAreaRatioEd:
sub rsp, 18h
movsd [rsp+18h+var_10], xmm0
mov cs:_ZN12LefDefParserL9lefw54NumE, 6Ch ; 'l'; LefDefParser::lefw54Num
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
cmp qword ptr [rax], 0
jnz short loc_2119E
mov [rsp+18h+var_4], 1
jmp loc_2125C
loc_2119E:
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 7
jz short loc_211C3
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 1Fh
jz short loc_211C3
mov [rsp+18h+var_4], 2
jmp loc_2125C
loc_211C3:
lea rax, _ZN12LefDefParser13lefwIsRoutingE; LefDefParser::lefwIsRouting
cmp dword ptr [rax], 0
jnz short loc_211DC
mov [rsp+18h+var_4], 3
jmp loc_2125C
loc_211DC:
movsd xmm0, cs:qword_A2C40
ucomisd xmm0, cs:_ZN12LefDefParserL10versionNumE; LefDefParser::versionNum
jbe short loc_211F8
mov [rsp+18h+var_4], 5
jmp short loc_2125C
loc_211F8:
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt
jz short loc_21221
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
movsd xmm0, [rsp+18h+var_10]
lea rsi, aAntennasideare_1; " ANTENNASIDEAREARATIO %.11g ;\n"
mov al, 1
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_2123F
loc_21221:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
movsd xmm0, [rsp+18h+var_10]
lea rsi, aAntennasideare_1; " ANTENNASIDEAREARATIO %.11g ;\n"
mov al, 1
call _fprintf
loc_2123F:
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov ecx, [rax]
add ecx, 1
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov [rax], ecx
mov [rsp+18h+var_4], 0
loc_2125C:
mov eax, [rsp+18h+var_4]
add rsp, 18h
retn
|
long long LefDefParser::lefwLayerAntennaSideAreaRatio(
LefDefParser *this,
double a2,
long long a3,
int a4,
int a5,
int a6,
int a7)
{
LefDefParser::lefw54Num = 108;
if ( *(_QWORD *)&LefDefParser::lefwFile )
{
if ( LefDefParser::lefwState == 7 || LefDefParser::lefwState == 31 )
{
if ( LefDefParser::lefwIsRouting )
{
if ( *(double *)&LefDefParser::versionNum >= 5.4 )
{
if ( LefDefParser::lefwWriteEncrypt )
LefDefParser::encPrint(
LefDefParser::lefwFile,
(unsigned int)" ANTENNASIDEAREARATIO %.11g ;\n",
a4,
a5,
a6,
a7);
else
fprintf(*(_QWORD *)&LefDefParser::lefwFile, " ANTENNASIDEAREARATIO %.11g ;\n", a2);
++LefDefParser::lefwLines;
return 0;
}
else
{
return 5;
}
}
else
{
return 3;
}
}
else
{
return 2;
}
}
else
{
return 1;
}
}
|
lefwLayerAntennaSideAreaRatio:
SUB RSP,0x18
MOVSD qword ptr [RSP + 0x8],XMM0
MOV dword ptr [0x001c4f1c],0x6c
LEA RAX,[0x1c5250]
CMP qword ptr [RAX],0x0
JNZ 0x0012119e
MOV dword ptr [RSP + 0x14],0x1
JMP 0x0012125c
LAB_0012119e:
LEA RAX,[0x1c54a0]
CMP dword ptr [RAX],0x7
JZ 0x001211c3
LEA RAX,[0x1c54a0]
CMP dword ptr [RAX],0x1f
JZ 0x001211c3
MOV dword ptr [RSP + 0x14],0x2
JMP 0x0012125c
LAB_001211c3:
LEA RAX,[0x1c5514]
CMP dword ptr [RAX],0x0
JNZ 0x001211dc
MOV dword ptr [RSP + 0x14],0x3
JMP 0x0012125c
LAB_001211dc:
MOVSD XMM0,qword ptr [0x001a2c40]
UCOMISD XMM0,qword ptr [0x001c4f10]
JBE 0x001211f8
MOV dword ptr [RSP + 0x14],0x5
JMP 0x0012125c
LAB_001211f8:
CMP dword ptr [0x001c553c],0x0
JZ 0x00121221
LEA RAX,[0x1c5250]
MOV RDI,qword ptr [RAX]
MOVSD XMM0,qword ptr [RSP + 0x8]
LEA RSI,[0x193425]
MOV AL,0x1
CALL 0x0018bf50
JMP 0x0012123f
LAB_00121221:
LEA RAX,[0x1c5250]
MOV RDI,qword ptr [RAX]
MOVSD XMM0,qword ptr [RSP + 0x8]
LEA RSI,[0x193425]
MOV AL,0x1
CALL 0x00102370
LAB_0012123f:
LEA RAX,[0x1c549c]
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
LEA RAX,[0x1c549c]
MOV dword ptr [RAX],ECX
MOV dword ptr [RSP + 0x14],0x0
LAB_0012125c:
MOV EAX,dword ptr [RSP + 0x14]
ADD RSP,0x18
RET
|
/* LefDefParser::lefwLayerAntennaSideAreaRatio(double) */
int4 LefDefParser::lefwLayerAntennaSideAreaRatio(double param_1)
{
int4 local_4;
lefw54Num = 0x6c;
if (lefwFile == (_IO_FILE *)0x0) {
local_4 = 1;
}
else if ((lefwState == 7) || (lefwState == 0x1f)) {
if (lefwIsRouting == 0) {
local_4 = 3;
}
else if (DAT_001a2c40 <= versionNum) {
if (lefwWriteEncrypt == 0) {
fprintf(lefwFile," ANTENNASIDEAREARATIO %.11g ;\n",param_1);
}
else {
encPrint(lefwFile," ANTENNASIDEAREARATIO %.11g ;\n",param_1);
}
lefwLines = lefwLines + 1;
local_4 = 0;
}
else {
local_4 = 5;
}
}
else {
local_4 = 2;
}
return local_4;
}
|
|
18,123
|
Parser::try_consume(TokenType)
|
BhuvanGudi[P]LexiParse/src/parser.hpp
|
std::optional<Token> try_consume(const TokenType type)
{
if (peek().has_value() && peek().value().type == type) {
return consume();
}
return {};
}
|
O0
|
cpp
|
Parser::try_consume(TokenType):
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp # imm = 0x100
movq %rdi, -0xe8(%rbp)
movq %rdi, %rax
movq %rax, -0xe0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rsi
movq %rsi, -0xd8(%rbp)
leaq -0x50(%rbp), %rdi
xorl %edx, %edx
callq 0x7b30
leaq -0x50(%rbp), %rdi
callq 0x7bb0
movb %al, %cl
movb $0x0, -0x95(%rbp)
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0xc9(%rbp)
jne 0xa5de
jmp 0xa626
movq -0xd8(%rbp), %rsi
leaq -0x88(%rbp), %rdi
xorl %edx, %edx
callq 0x7b30
jmp 0xa5f5
movb $0x1, -0x95(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x9820
movq %rax, -0xf0(%rbp)
jmp 0xa611
movq -0xf0(%rbp), %rax
movl (%rax), %eax
cmpl -0x14(%rbp), %eax
sete %al
movb %al, -0xc9(%rbp)
movb -0xc9(%rbp), %al
movb %al, -0xf1(%rbp)
testb $0x1, -0x95(%rbp)
jne 0xa63d
jmp 0xa649
leaq -0x88(%rbp), %rdi
callq 0x7bd0
leaq -0x50(%rbp), %rdi
callq 0x7bd0
movb -0xf1(%rbp), %al
testb $0x1, %al
jne 0xa65e
jmp 0xa6dc
movq -0xd8(%rbp), %rsi
leaq -0xc8(%rbp), %rdi
callq 0x9860
movq -0xe8(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0xef10
leaq -0xc8(%rbp), %rdi
callq 0x59c0
jmp 0xa6e8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
jmp 0xa6d1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
testb $0x1, -0x95(%rbp)
jne 0xa6c3
jmp 0xa6cf
leaq -0x88(%rbp), %rdi
callq 0x7bd0
jmp 0xa6d1
leaq -0x50(%rbp), %rdi
callq 0x7bd0
jmp 0xa6f8
movq -0xe8(%rbp), %rdi
callq 0x9260
movq -0xe0(%rbp), %rax
addq $0x100, %rsp # imm = 0x100
popq %rbp
retq
movq -0x90(%rbp), %rdi
callq 0x32d0
nopw %cs:(%rax,%rax)
nop
|
_ZN6Parser11try_consumeE9TokenType:
push rbp
mov rbp, rsp
sub rsp, 100h
mov [rbp+var_E8], rdi
mov rax, rdi
mov [rbp+var_E0], rax
mov [rbp+var_8], rdi
mov qword ptr [rbp+var_10], rsi
mov [rbp+var_14], edx
mov rsi, qword ptr [rbp+var_10]; int
mov qword ptr [rbp+var_D8], rsi
lea rdi, [rbp+var_50]; this
xor edx, edx
call _ZNK6Parser4peekEi; Parser::peek(int)
lea rdi, [rbp+var_50]
call _ZNKSt8optionalI5TokenE9has_valueEv; std::optional<Token>::has_value(void)
mov cl, al
mov [rbp+var_95], 0
xor eax, eax
test cl, 1
mov [rbp+var_C9], al
jnz short loc_A5DE
jmp short loc_A626
loc_A5DE:
mov rsi, qword ptr [rbp+var_D8]; int
lea rdi, [rbp+var_88]; this
xor edx, edx
call _ZNK6Parser4peekEi; Parser::peek(int)
jmp short $+2
loc_A5F5:
mov [rbp+var_95], 1
lea rdi, [rbp+var_88]
call _ZNOSt8optionalI5TokenE5valueEv; std::optional<Token>::value(void)
mov [rbp+var_F0], rax
jmp short $+2
loc_A611:
mov rax, [rbp+var_F0]
mov eax, [rax]
cmp eax, [rbp+var_14]
setz al
mov [rbp+var_C9], al
loc_A626:
mov al, [rbp+var_C9]
mov [rbp+var_F1], al
test [rbp+var_95], 1
jnz short loc_A63D
jmp short loc_A649
loc_A63D:
lea rdi, [rbp+var_88]
call _ZNSt8optionalI5TokenED2Ev; std::optional<Token>::~optional()
loc_A649:
lea rdi, [rbp+var_50]
call _ZNSt8optionalI5TokenED2Ev; std::optional<Token>::~optional()
mov al, [rbp+var_F1]
test al, 1
jnz short loc_A65E
jmp short loc_A6DC
loc_A65E:
mov rsi, qword ptr [rbp+var_D8]
lea rdi, [rbp+var_C8]; this
call _ZN6Parser7consumeEv; Parser::consume(void)
mov rdi, [rbp+var_E8]
lea rsi, [rbp+var_C8]
call _ZNSt8optionalI5TokenEC2IS0_TnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS1_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES4_IS5_ISt10in_place_tSC_EESt16is_constructibleIS0_JS8_EESt14is_convertibleIS8_S0_EEEbE4typeELb1EEEOS8_
lea rdi, [rbp+var_C8]; this
call _ZN5TokenD2Ev; Token::~Token()
jmp short loc_A6E8
mov rcx, rax
mov eax, edx
mov [rbp+var_90], rcx
mov [rbp+var_94], eax
jmp short loc_A6D1
mov rcx, rax
mov eax, edx
mov [rbp+var_90], rcx
mov [rbp+var_94], eax
test [rbp+var_95], 1
jnz short loc_A6C3
jmp short loc_A6CF
loc_A6C3:
lea rdi, [rbp+var_88]
call _ZNSt8optionalI5TokenED2Ev; std::optional<Token>::~optional()
loc_A6CF:
jmp short $+2
loc_A6D1:
lea rdi, [rbp+var_50]
call _ZNSt8optionalI5TokenED2Ev; std::optional<Token>::~optional()
jmp short loc_A6F8
loc_A6DC:
mov rdi, [rbp+var_E8]
call _ZNSt8optionalI5TokenEC2Ev; std::optional<Token>::optional(void)
loc_A6E8:
mov rax, [rbp+var_E0]
add rsp, 100h
pop rbp
retn
loc_A6F8:
mov rdi, [rbp+var_90]
call __Unwind_Resume
|
long long Parser::try_consume(long long a1, _QWORD *a2, int a3)
{
_DWORD *v4; // [rsp+10h] [rbp-F0h]
bool v5; // [rsp+37h] [rbp-C9h]
_BYTE v6[51]; // [rsp+38h] [rbp-C8h] BYREF
char v7; // [rsp+6Bh] [rbp-95h]
_BYTE v8[56]; // [rsp+78h] [rbp-88h] BYREF
_BYTE v9[60]; // [rsp+B0h] [rbp-50h] BYREF
int v10; // [rsp+ECh] [rbp-14h]
int v11[2]; // [rsp+F0h] [rbp-10h]
long long v12; // [rsp+F8h] [rbp-8h]
v12 = a1;
*(_QWORD *)v11 = a2;
v10 = a3;
Parser::peek((Parser *)v9, a2, 0);
v7 = 0;
v5 = 0;
if ( (std::optional<Token>::has_value((long long)v9) & 1) != 0 )
{
Parser::peek((Parser *)v8, a2, 0);
v7 = 1;
v4 = (_DWORD *)std::optional<Token>::value((long long)v8);
v5 = *v4 == v10;
}
if ( (v7 & 1) != 0 )
std::optional<Token>::~optional((long long)v8);
std::optional<Token>::~optional((long long)v9);
if ( v5 )
{
Parser::consume((Parser *)v6, (long long)a2);
ZNSt8optionalI5TokenEC2IS0_TnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS1_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES4_IS5_ISt10in_place_tSC_EESt16is_constructibleIS0_JS8_EESt14is_convertibleIS8_S0_EEEbE4typeELb1EEEOS8_(
a1,
v6);
Token::~Token((Token *)v6);
}
else
{
std::optional<Token>::optional(a1);
}
return a1;
}
|
try_consume:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x100
MOV qword ptr [RBP + -0xe8],RDI
MOV RAX,RDI
MOV qword ptr [RBP + -0xe0],RAX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV RSI,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0xd8],RSI
LEA RDI,[RBP + -0x50]
XOR EDX,EDX
CALL 0x00107b30
LEA RDI,[RBP + -0x50]
CALL 0x00107bb0
MOV CL,AL
MOV byte ptr [RBP + -0x95],0x0
XOR EAX,EAX
TEST CL,0x1
MOV byte ptr [RBP + -0xc9],AL
JNZ 0x0010a5de
JMP 0x0010a626
LAB_0010a5de:
MOV RSI,qword ptr [RBP + -0xd8]
LEA RDI,[RBP + -0x88]
XOR EDX,EDX
CALL 0x00107b30
JMP 0x0010a5f5
LAB_0010a5f5:
MOV byte ptr [RBP + -0x95],0x1
LAB_0010a5fc:
LEA RDI,[RBP + -0x88]
CALL 0x00109820
LAB_0010a608:
MOV qword ptr [RBP + -0xf0],RAX
JMP 0x0010a611
LAB_0010a611:
MOV RAX,qword ptr [RBP + -0xf0]
MOV EAX,dword ptr [RAX]
CMP EAX,dword ptr [RBP + -0x14]
SETZ AL
MOV byte ptr [RBP + -0xc9],AL
LAB_0010a626:
MOV AL,byte ptr [RBP + -0xc9]
MOV byte ptr [RBP + -0xf1],AL
TEST byte ptr [RBP + -0x95],0x1
JNZ 0x0010a63d
JMP 0x0010a649
LAB_0010a63d:
LEA RDI,[RBP + -0x88]
CALL 0x00107bd0
LAB_0010a649:
LEA RDI,[RBP + -0x50]
CALL 0x00107bd0
MOV AL,byte ptr [RBP + -0xf1]
TEST AL,0x1
JNZ 0x0010a65e
JMP 0x0010a6dc
LAB_0010a65e:
MOV RSI,qword ptr [RBP + -0xd8]
LEA RDI,[RBP + -0xc8]
CALL 0x00109860
MOV RDI,qword ptr [RBP + -0xe8]
LEA RSI,[RBP + -0xc8]
CALL 0x0010ef10
LEA RDI,[RBP + -0xc8]
CALL 0x001059c0
JMP 0x0010a6e8
LAB_0010a6dc:
MOV RDI,qword ptr [RBP + -0xe8]
CALL 0x00109260
LAB_0010a6e8:
MOV RAX,qword ptr [RBP + -0xe0]
ADD RSP,0x100
POP RBP
RET
|
/* Parser::try_consume(TokenType) */
optional<Token> * Parser::try_consume(optional<Token> *param_1,int8 param_2,int param_3)
{
uint uVar1;
int *piVar2;
bool bVar3;
Token local_d0 [51];
byte local_9d;
optional<Token> local_90 [56];
optional<Token> local_58 [60];
int local_1c;
int8 local_18;
optional<Token> *local_10;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
peek((int)local_58);
uVar1 = std::optional<Token>::has_value(local_58);
local_9d = 0;
bVar3 = false;
if ((uVar1 & 1) != 0) {
/* try { // try from 0010a5de to 0010a5f2 has its CatchHandler @ 0010a692 */
peek((int)local_90);
local_9d = 1;
/* try { // try from 0010a5fc to 0010a607 has its CatchHandler @ 0010a6a6 */
piVar2 = (int *)std::optional<Token>::value(local_90);
bVar3 = *piVar2 == local_1c;
}
if ((local_9d & 1) != 0) {
std::optional<Token>::~optional(local_90);
}
std::optional<Token>::~optional(local_58);
if (bVar3) {
consume();
_ZNSt8optionalI5TokenEC2IS0_TnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS1_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES4_IS5_ISt10in_place_tSC_EESt16is_constructibleIS0_JS8_EESt14is_convertibleIS8_S0_EEEbE4typeELb1EEEOS8_
(param_1,local_d0);
Token::~Token(local_d0);
}
else {
std::optional<Token>::optional(param_1);
}
return param_1;
}
|
|
18,124
|
Parser::try_consume(TokenType)
|
BhuvanGudi[P]LexiParse/src/parser.hpp
|
std::optional<Token> try_consume(const TokenType type)
{
if (peek().has_value() && peek().value().type == type) {
return consume();
}
return {};
}
|
O2
|
cpp
|
Parser::try_consume(TokenType):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
xorl %edx, %edx
callq 0x3a44
cmpb $0x1, 0x30(%r15)
jne 0x4b05
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3a44
cmpb $0x0, 0x70(%rsp)
je 0x4b21
leaq 0x40(%rsp), %rdi
movl (%rdi), %r15d
callq 0x4492
leaq 0x8(%rsp), %rdi
callq 0x4492
cmpl %ebp, %r15d
jne 0x4b0f
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x44ac
movq %rbx, %rdi
movq %r15, %rsi
callq 0x5922
leaq 0x10(%rsp), %rdi
callq 0x3954
jmp 0x4b13
leaq 0x8(%rsp), %rdi
callq 0x4492
movb $0x0, 0x30(%rbx)
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x34d8
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x4492
jmp 0x4b38
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4492
movq %rbx, %rdi
callq 0x2270
|
_ZN6Parser11try_consumeE9TokenType:
push rbp
push r15
push r14
push rbx
sub rsp, 78h
mov ebp, edx
mov r14, rsi
mov rbx, rdi
lea r15, [rsp+98h+var_90]
mov rdi, r15; this
xor edx, edx
call _ZNK6Parser4peekEi; Parser::peek(int)
cmp byte ptr [r15+30h], 1
jnz short loc_4B05
lea rdi, [rsp+98h+var_58]; this
mov rsi, r14; int
xor edx, edx
call _ZNK6Parser4peekEi; Parser::peek(int)
cmp [rsp+98h+var_28], 0
jz short loc_4B21
lea rdi, [rsp+98h+var_58]
mov r15d, [rdi]
call _ZNSt22_Optional_payload_baseI5TokenE8_M_resetEv; std::_Optional_payload_base<Token>::_M_reset(void)
lea rdi, [rsp+98h+var_90]
call _ZNSt22_Optional_payload_baseI5TokenE8_M_resetEv; std::_Optional_payload_base<Token>::_M_reset(void)
cmp r15d, ebp
jnz short loc_4B0F
lea r15, [rsp+98h+var_90]
mov rdi, r15; this
mov rsi, r14
call _ZN6Parser7consumeEv; Parser::consume(void)
mov rdi, rbx
mov rsi, r15
call _ZNSt8optionalI5TokenEC2IS0_TnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS1_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES4_IS5_ISt10in_place_tSC_EESt16is_constructibleIS0_JS8_EESt14is_convertibleIS8_S0_EEEbE4typeELb1EEEOS8_
lea rdi, [rsp+98h+var_88]
call _ZNSt22_Optional_payload_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8_M_resetEv; std::_Optional_payload_base<std::string>::_M_reset(void)
jmp short loc_4B13
loc_4B05:
lea rdi, [rsp+98h+var_90]
call _ZNSt22_Optional_payload_baseI5TokenE8_M_resetEv; std::_Optional_payload_base<Token>::_M_reset(void)
loc_4B0F:
mov byte ptr [rbx+30h], 0
loc_4B13:
mov rax, rbx
add rsp, 78h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_4B21:
call _ZSt27__throw_bad_optional_accessv; std::__throw_bad_optional_access(void)
mov rbx, rax
lea rdi, [rsp+98h+var_58]
call _ZNSt22_Optional_payload_baseI5TokenE8_M_resetEv; std::_Optional_payload_base<Token>::_M_reset(void)
jmp short loc_4B38
mov rbx, rax
loc_4B38:
lea rdi, [rsp+98h+var_90]
call _ZNSt22_Optional_payload_baseI5TokenE8_M_resetEv; std::_Optional_payload_base<Token>::_M_reset(void)
mov rdi, rbx
call __Unwind_Resume
|
long long Parser::try_consume(long long a1, _QWORD *a2, int a3)
{
int v4; // r15d
_BYTE v6[8]; // [rsp+8h] [rbp-90h] BYREF
_BYTE v7[48]; // [rsp+10h] [rbp-88h] BYREF
_DWORD v8[12]; // [rsp+40h] [rbp-58h] BYREF
char v9; // [rsp+70h] [rbp-28h]
Parser::peek((Parser *)v6, a2, 0);
if ( v7[40] != 1 )
{
std::_Optional_payload_base<Token>::_M_reset((long long)v6);
LABEL_6:
*(_BYTE *)(a1 + 48) = 0;
return a1;
}
Parser::peek((Parser *)v8, a2, 0);
if ( !v9 )
std::__throw_bad_optional_access();
v4 = v8[0];
std::_Optional_payload_base<Token>::_M_reset((long long)v8);
std::_Optional_payload_base<Token>::_M_reset((long long)v6);
if ( v4 != a3 )
goto LABEL_6;
Parser::consume((Parser *)v6, a2);
ZNSt8optionalI5TokenEC2IS0_TnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS1_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES4_IS5_ISt10in_place_tSC_EESt16is_constructibleIS0_JS8_EESt14is_convertibleIS8_S0_EEEbE4typeELb1EEEOS8_(
a1,
v6);
std::_Optional_payload_base<std::string>::_M_reset((long long)v7);
return a1;
}
|
try_consume:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x78
MOV EBP,EDX
MOV R14,RSI
MOV RBX,RDI
LEA R15,[RSP + 0x8]
MOV RDI,R15
XOR EDX,EDX
CALL 0x00103a44
CMP byte ptr [R15 + 0x30],0x1
JNZ 0x00104b05
LAB_00104aac:
LEA RDI,[RSP + 0x40]
MOV RSI,R14
XOR EDX,EDX
CALL 0x00103a44
LAB_00104abb:
CMP byte ptr [RSP + 0x70],0x0
JZ 0x00104b21
LEA RDI,[RSP + 0x40]
MOV R15D,dword ptr [RDI]
CALL 0x00104492
LEA RDI,[RSP + 0x8]
CALL 0x00104492
CMP R15D,EBP
JNZ 0x00104b0f
LEA R15,[RSP + 0x8]
MOV RDI,R15
MOV RSI,R14
CALL 0x001044ac
MOV RDI,RBX
MOV RSI,R15
CALL 0x00105922
LEA RDI,[RSP + 0x10]
CALL 0x00103954
JMP 0x00104b13
LAB_00104b05:
LEA RDI,[RSP + 0x8]
CALL 0x00104492
LAB_00104b0f:
MOV byte ptr [RBX + 0x30],0x0
LAB_00104b13:
MOV RAX,RBX
ADD RSP,0x78
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00104b21:
CALL 0x001034d8
LAB_00104b26:
MOV RBX,RAX
LEA RDI,[RSP + 0x40]
CALL 0x00104492
JMP 0x00104b38
LAB_00104b38:
LEA RDI,[RSP + 0x8]
CALL 0x00104492
MOV RDI,RBX
CALL 0x00102270
|
/* Parser::try_consume(TokenType) */
long Parser::try_consume(long param_1,int8 param_2,int param_3)
{
int8 uVar1;
_Optional_payload_base<Token> local_90 [8];
_Optional_payload_base<std::__cxx11::string> local_88 [40];
char local_60;
int local_58 [12];
char local_28;
peek((int)local_90);
if (local_60 == '\x01') {
/* try { // try from 00104aac to 00104aba has its CatchHandler @ 00104b35 */
peek((int)local_58);
if (local_28 == '\0') {
/* try { // try from 00104b21 to 00104b25 has its CatchHandler @ 00104b26 */
uVar1 = std::__throw_bad_optional_access();
/* catch() { ... } // from try @ 00104b21 with catch @ 00104b26 */
std::_Optional_payload_base<Token>::_M_reset((_Optional_payload_base<Token> *)local_58);
std::_Optional_payload_base<Token>::_M_reset(local_90);
/* WARNING: Subroutine does not return */
_Unwind_Resume(uVar1);
}
std::_Optional_payload_base<Token>::_M_reset((_Optional_payload_base<Token> *)local_58);
std::_Optional_payload_base<Token>::_M_reset(local_90);
if (local_58[0] == param_3) {
consume();
_ZNSt8optionalI5TokenEC2IS0_TnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS1_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES4_IS5_ISt10in_place_tSC_EESt16is_constructibleIS0_JS8_EESt14is_convertibleIS8_S0_EEEbE4typeELb1EEEOS8_
(param_1,local_90);
std::_Optional_payload_base<std::__cxx11::string>::_M_reset(local_88);
return param_1;
}
}
else {
std::_Optional_payload_base<Token>::_M_reset(local_90);
}
*(int1 *)(param_1 + 0x30) = 0;
return param_1;
}
|
|
18,125
|
Parser::try_consume(TokenType)
|
BhuvanGudi[P]LexiParse/src/parser.hpp
|
std::optional<Token> try_consume(const TokenType type)
{
if (peek().has_value() && peek().value().type == type) {
return consume();
}
return {};
}
|
O3
|
cpp
|
Parser::try_consume(TokenType):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rsi), %rax
movq (%rsi), %rsi
movq 0x8(%r14), %rcx
subq %rsi, %rcx
sarq $0x4, %rcx
movabsq $-0x5555555555555555, %r12 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r12, %rcx
cmpq %rcx, %rax
jae 0x58a1
movl %edx, %ebp
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq %rax, %rsi
movq %rsp, %r15
movq %r15, %rdi
callq 0x4e88
movb $0x1, 0x30(%r15)
movq 0x18(%r14), %rax
movq (%r14), %rsi
movq 0x8(%r14), %rcx
subq %rsi, %rcx
sarq $0x4, %rcx
imulq %r12, %rcx
cmpq %rcx, %rax
jae 0x58ce
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq %rax, %rsi
leaq 0x38(%rsp), %rdi
callq 0x4e88
movl 0x38(%rsp), %r15d
movb $0x0, 0x68(%rsp)
cmpb $0x1, 0x60(%rsp)
jne 0x5826
leaq 0x50(%rsp), %rax
movb $0x0, 0x10(%rax)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5826
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2200
testb $0x1, 0x30(%rsp)
je 0x5858
movb $0x0, 0x30(%rsp)
cmpb $0x1, 0x28(%rsp)
jne 0x5858
leaq 0x18(%rsp), %rax
movb $0x0, 0x10(%rax)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5858
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
cmpl %ebp, %r15d
jne 0x58a1
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x4eec
movq (%r15), %rax
movq %rax, (%rbx)
movb $0x0, 0x28(%rbx)
cmpb $0x1, 0x28(%r15)
jne 0x58ba
leaq 0x18(%rbx), %rax
movq %rax, 0x8(%rbx)
leaq 0x18(%rsp), %rcx
movq -0x10(%rcx), %rdx
cmpq %rcx, %rdx
je 0x58a7
movq %rdx, 0x8(%rbx)
movq 0x18(%rsp), %rax
movq %rax, 0x18(%rbx)
jmp 0x58ad
movb $0x0, 0x30(%rbx)
jmp 0x58be
movups (%rcx), %xmm0
movups %xmm0, (%rax)
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rbx)
movb $0x1, 0x28(%rbx)
movb $0x1, 0x30(%rbx)
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movb $0x0, 0x68(%rsp)
callq 0x36ac
movq %rax, %rbx
jmp 0x5912
movq %rax, %rbx
cmpb $0x1, 0x68(%rsp)
jne 0x5912
movb $0x0, 0x68(%rsp)
cmpb $0x1, 0x60(%rsp)
jne 0x5912
leaq 0x50(%rsp), %rax
movb $0x0, 0x10(%rax)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5912
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2200
cmpb $0x1, 0x30(%rsp)
jne 0x5944
movb $0x0, 0x30(%rsp)
cmpb $0x1, 0x28(%rsp)
jne 0x5944
leaq 0x18(%rsp), %rax
movb $0x0, 0x10(%rax)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5944
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
movq %rbx, %rdi
callq 0x22d0
|
_ZN6Parser11try_consumeE9TokenType:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 70h
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+18h]
mov rsi, [rsi]
mov rcx, [r14+8]
sub rcx, rsi
sar rcx, 4
mov r12, 0AAAAAAAAAAAAAAABh
imul rcx, r12
cmp rax, rcx
jnb loc_58A1
mov ebp, edx
lea rax, [rax+rax*2]
shl rax, 4
add rsi, rax
mov r15, rsp
mov rdi, r15
call _ZNSt22_Optional_payload_baseI5TokenE8_StorageIS0_Lb0EEC2IJRKS0_EEESt10in_place_tDpOT_; std::_Optional_payload_base<Token>::_Storage<Token,false>::_Storage<Token const&>(std::in_place_t,Token const&)
mov byte ptr [r15+30h], 1
mov rax, [r14+18h]
mov rsi, [r14]
mov rcx, [r14+8]
sub rcx, rsi
sar rcx, 4
imul rcx, r12
cmp rax, rcx
jnb loc_58CE
lea rax, [rax+rax*2]
shl rax, 4
add rsi, rax
lea rdi, [rsp+98h+var_60]
call _ZNSt22_Optional_payload_baseI5TokenE8_StorageIS0_Lb0EEC2IJRKS0_EEESt10in_place_tDpOT_; std::_Optional_payload_base<Token>::_Storage<Token,false>::_Storage<Token const&>(std::in_place_t,Token const&)
mov r15d, [rsp+98h+var_60]
mov [rsp+98h+var_30], 0
cmp [rsp+98h+var_38], 1
jnz short loc_5826
lea rax, [rsp+98h+var_48]
mov byte ptr [rax+10h], 0
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5826
mov rsi, [rsp+98h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5826:
test [rsp+98h+var_68], 1
jz short loc_5858
mov [rsp+98h+var_68], 0
cmp [rsp+98h+var_70], 1
jnz short loc_5858
lea rax, [rsp+98h+var_80]
mov byte ptr [rax+10h], 0
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5858
mov rsi, [rsp+98h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5858:
cmp r15d, ebp
jnz short loc_58A1
mov r15, rsp
mov rdi, r15; this
mov rsi, r14
call _ZN6Parser7consumeEv; Parser::consume(void)
mov rax, [r15]
mov [rbx], rax
mov byte ptr [rbx+28h], 0
cmp byte ptr [r15+28h], 1
jnz short loc_58BA
lea rax, [rbx+18h]
mov [rbx+8], rax
lea rcx, [rsp+98h+var_80]
mov rdx, [rcx-10h]
cmp rdx, rcx
jz short loc_58A7
mov [rbx+8], rdx
mov rax, [rsp+98h+var_80]
mov [rbx+18h], rax
jmp short loc_58AD
loc_58A1:
mov byte ptr [rbx+30h], 0
jmp short loc_58BE
loc_58A7:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rax], xmm0
loc_58AD:
mov rax, [rsp+98h+var_88]
mov [rbx+10h], rax
mov byte ptr [rbx+28h], 1
loc_58BA:
mov byte ptr [rbx+30h], 1
loc_58BE:
mov rax, rbx
add rsp, 70h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_58CE:
mov [rsp+98h+var_30], 0
call _ZSt27__throw_bad_optional_accessv; std::__throw_bad_optional_access(void)
mov rbx, rax
jmp short loc_5912
mov rbx, rax
cmp [rsp+98h+var_30], 1
jnz short loc_5912
mov [rsp+98h+var_30], 0
cmp [rsp+98h+var_38], 1
jnz short loc_5912
lea rax, [rsp+98h+var_48]
mov byte ptr [rax+10h], 0
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5912
mov rsi, [rsp+98h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5912:
cmp [rsp+98h+var_68], 1
jnz short loc_5944
mov [rsp+98h+var_68], 0
cmp [rsp+98h+var_70], 1
jnz short loc_5944
lea rax, [rsp+98h+var_80]
mov byte ptr [rax+10h], 0
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5944
mov rsi, [rsp+98h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5944:
mov rdi, rbx
call __Unwind_Resume
|
long long Parser::try_consume(long long a1, long long *a2, int a3)
{
unsigned long long v4; // rax
long long v5; // rsi
unsigned long long v7; // rax
int v8; // r15d
long long v10; // [rsp+0h] [rbp-98h] BYREF
__int128 *v11; // [rsp+8h] [rbp-90h]
long long v12; // [rsp+10h] [rbp-88h]
__int128 v13; // [rsp+18h] [rbp-80h] BYREF
char v14; // [rsp+28h] [rbp-70h]
char v15; // [rsp+30h] [rbp-68h]
int v16; // [rsp+38h] [rbp-60h] BYREF
long long *v17; // [rsp+40h] [rbp-58h]
long long v18; // [rsp+50h] [rbp-48h] BYREF
char v19; // [rsp+60h] [rbp-38h]
char v20; // [rsp+68h] [rbp-30h]
v4 = a2[3];
v5 = *a2;
if ( v4 >= 0xAAAAAAAAAAAAAAABLL * ((a2[1] - v5) >> 4) )
goto LABEL_14;
std::_Optional_payload_base<Token>::_Storage<Token,false>::_Storage<Token const&>((long long)&v10, 48 * v4 + v5);
v15 = 1;
v7 = a2[3];
if ( v7 >= 0xAAAAAAAAAAAAAAABLL * ((a2[1] - *a2) >> 4) )
{
v20 = 0;
std::__throw_bad_optional_access();
}
std::_Optional_payload_base<Token>::_Storage<Token,false>::_Storage<Token const&>((long long)&v16, 48 * v7 + *a2);
v8 = v16;
v20 = 0;
if ( v19 == 1 )
{
v19 = 0;
if ( v17 != &v18 )
operator delete(v17, v18 + 1);
}
if ( (v15 & 1) != 0 )
{
v15 = 0;
if ( v14 == 1 )
{
v14 = 0;
if ( v11 != &v13 )
operator delete(v11, v13 + 1);
}
}
if ( v8 == a3 )
{
Parser::consume((Parser *)&v10, a2);
*(_QWORD *)a1 = v10;
*(_BYTE *)(a1 + 40) = 0;
if ( v14 == 1 )
{
*(_QWORD *)(a1 + 8) = a1 + 24;
if ( v11 == &v13 )
{
*(_OWORD *)(a1 + 24) = v13;
}
else
{
*(_QWORD *)(a1 + 8) = v11;
*(_QWORD *)(a1 + 24) = v13;
}
*(_QWORD *)(a1 + 16) = v12;
*(_BYTE *)(a1 + 40) = 1;
}
*(_BYTE *)(a1 + 48) = 1;
}
else
{
LABEL_14:
*(_BYTE *)(a1 + 48) = 0;
}
return a1;
}
|
try_consume:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x70
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x18]
MOV RSI,qword ptr [RSI]
MOV RCX,qword ptr [R14 + 0x8]
SUB RCX,RSI
SAR RCX,0x4
MOV R12,-0x5555555555555555
IMUL RCX,R12
CMP RAX,RCX
JNC 0x001058a1
MOV EBP,EDX
LEA RAX,[RAX + RAX*0x2]
SHL RAX,0x4
ADD RSI,RAX
MOV R15,RSP
MOV RDI,R15
CALL 0x00104e88
MOV byte ptr [R15 + 0x30],0x1
MOV RAX,qword ptr [R14 + 0x18]
MOV RSI,qword ptr [R14]
MOV RCX,qword ptr [R14 + 0x8]
SUB RCX,RSI
SAR RCX,0x4
IMUL RCX,R12
CMP RAX,RCX
JNC 0x001058ce
LEA RAX,[RAX + RAX*0x2]
SHL RAX,0x4
ADD RSI,RAX
LAB_001057ec:
LEA RDI,[RSP + 0x38]
CALL 0x00104e88
LAB_001057f6:
MOV R15D,dword ptr [RSP + 0x38]
MOV byte ptr [RSP + 0x68],0x0
CMP byte ptr [RSP + 0x60],0x1
JNZ 0x00105826
LEA RAX,[RSP + 0x50]
MOV byte ptr [RAX + 0x10],0x0
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00105826
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x00102200
LAB_00105826:
TEST byte ptr [RSP + 0x30],0x1
JZ 0x00105858
MOV byte ptr [RSP + 0x30],0x0
CMP byte ptr [RSP + 0x28],0x1
JNZ 0x00105858
LEA RAX,[RSP + 0x18]
MOV byte ptr [RAX + 0x10],0x0
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00105858
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00102200
LAB_00105858:
CMP R15D,EBP
JNZ 0x001058a1
MOV R15,RSP
MOV RDI,R15
MOV RSI,R14
CALL 0x00104eec
MOV RAX,qword ptr [R15]
MOV qword ptr [RBX],RAX
MOV byte ptr [RBX + 0x28],0x0
CMP byte ptr [R15 + 0x28],0x1
JNZ 0x001058ba
LEA RAX,[RBX + 0x18]
MOV qword ptr [RBX + 0x8],RAX
LEA RCX,[RSP + 0x18]
MOV RDX,qword ptr [RCX + -0x10]
CMP RDX,RCX
JZ 0x001058a7
MOV qword ptr [RBX + 0x8],RDX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RBX + 0x18],RAX
JMP 0x001058ad
LAB_001058a1:
MOV byte ptr [RBX + 0x30],0x0
JMP 0x001058be
LAB_001058a7:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RAX],XMM0
LAB_001058ad:
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RBX + 0x10],RAX
MOV byte ptr [RBX + 0x28],0x1
LAB_001058ba:
MOV byte ptr [RBX + 0x30],0x1
LAB_001058be:
MOV RAX,RBX
ADD RSP,0x70
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001058ce:
MOV byte ptr [RSP + 0x68],0x0
LAB_001058d3:
CALL 0x001036ac
|
/* Parser::try_consume(TokenType) */
int8 * Parser::try_consume(int8 *param_1,long *param_2,int param_3)
{
int8 local_98;
long *local_90;
int8 local_88;
long local_80;
int8 uStack_78;
char local_70;
byte local_68;
int local_60 [2];
long *local_58;
long local_48 [2];
char local_38;
int1 local_30;
if ((ulong)param_2[3] < (ulong)((param_2[1] - *param_2 >> 4) * -0x5555555555555555)) {
std::_Optional_payload_base<Token>::_Storage<Token,false>::_Storage<Token_const&>
(&local_98,*param_2 + param_2[3] * 0x30);
local_68 = 1;
if ((ulong)((param_2[1] - *param_2 >> 4) * -0x5555555555555555) <= (ulong)param_2[3]) {
local_30 = 0;
/* WARNING: Subroutine does not return */
/* try { // try from 001058d3 to 001058d7 has its CatchHandler @ 001058dd */
std::__throw_bad_optional_access();
}
/* try { // try from 001057ec to 001057f5 has its CatchHandler @ 001058d8 */
std::_Optional_payload_base<Token>::_Storage<Token,false>::_Storage<Token_const&>
(local_60,*param_2 + param_2[3] * 0x30);
local_30 = 0;
if ((local_38 == '\x01') && (local_38 = '\0', local_58 != local_48)) {
operator_delete(local_58,local_48[0] + 1);
}
if ((((local_68 & 1) != 0) && (local_68 = 0, local_70 == '\x01')) &&
(local_70 = '\0', local_90 != &local_80)) {
operator_delete(local_90,local_80 + 1);
}
if (local_60[0] == param_3) {
consume();
*param_1 = local_98;
*(int1 *)(param_1 + 5) = 0;
if (local_70 == '\x01') {
param_1[1] = param_1 + 3;
if (local_90 == &local_80) {
param_1[3] = local_80;
param_1[4] = uStack_78;
}
else {
param_1[1] = local_90;
param_1[3] = local_80;
}
param_1[2] = local_88;
*(int1 *)(param_1 + 5) = 1;
}
*(int1 *)(param_1 + 6) = 1;
return param_1;
}
}
*(int1 *)(param_1 + 6) = 0;
return param_1;
}
|
|
18,126
|
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::key() const
|
llama.cpp/common/json.hpp
|
const string_type& key() const
{
JSON_ASSERT(anchor.m_object != nullptr);
switch (anchor.m_object->type())
{
// use integer array index as key
case value_t::array:
{
if (array_index != array_index_last)
{
int_to_string( array_index_str, array_index );
array_index_last = array_index;
}
return array_index_str;
}
// use key from the object
case value_t::object:
return anchor.key();
// use an empty key for all primitive types
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
return empty_str;
}
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::key() const:
pushq %rbx
movq (%rdi), %rax
testq %rax, %rax
je 0xc2916
movq %rdi, %rbx
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0xc2904
cmpl $0x2, %eax
jne 0xc290d
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0xc28fe
leaq 0x30(%rbx), %rdi
callq 0xc2da9
movq 0x20(%rbx), %rax
movq %rax, 0x28(%rbx)
addq $0x30, %rbx
jmp 0xc2911
movq %rbx, %rdi
popq %rbx
jmp 0xc2e6a
addq $0x50, %rbx
movq %rbx, %rax
popq %rbx
retq
leaq 0x56f9b(%rip), %rdi # 0x1198b8
leaq 0x4f8e9(%rip), %rdx # 0x11220d
leaq 0x5d2e6(%rip), %rcx # 0x11fc11
movl $0x1491, %esi # imm = 0x1491
xorl %eax, %eax
callq 0x20e60
nop
|
_ZNK8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE3keyEv:
push rbx
mov rax, [rdi]
test rax, rax
jz short loc_C2916
mov rbx, rdi
movzx eax, byte ptr [rax]
cmp eax, 1
jz short loc_C2904
cmp eax, 2
jnz short loc_C290D
mov rsi, [rbx+20h]
cmp rsi, [rbx+28h]
jz short loc_C28FE
lea rdi, [rbx+30h]
call _ZN8nlohmann16json_abi_v3_11_36detail13int_to_stringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRT_m; nlohmann::json_abi_v3_11_3::detail::int_to_string<std::string>(std::string &,ulong)
mov rax, [rbx+20h]
mov [rbx+28h], rax
loc_C28FE:
add rbx, 30h ; '0'
jmp short loc_C2911
loc_C2904:
mov rdi, rbx
pop rbx
jmp _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE3keyEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::key(void)
loc_C290D:
add rbx, 50h ; 'P'
loc_C2911:
mov rax, rbx
pop rbx
retn
loc_C2916:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN; "anchor.m_object != nullptr"
mov esi, 1491h
xor eax, eax
call _ggml_abort
nop
|
long long nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::key(
unsigned __int8 **a1)
{
int v1; // eax
long long v4; // rdx
long long v5; // rcx
if ( *a1 )
{
v1 = **a1;
if ( v1 == 1 )
{
return nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::key(a1);
}
else
{
if ( v1 != 2 )
return (long long)(a1 + 10);
if ( a1[4] != a1[5] )
{
nlohmann::json_abi_v3_11_3::detail::int_to_string<std::string>(a1 + 6);
a1[5] = a1[4];
}
return (long long)(a1 + 6);
}
}
else
{
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",
5265LL,
"GGML_ASSERT(%s) failed",
"anchor.m_object != nullptr");
return std::vector<minja::Value>::vector(
"/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",
5265LL,
v4,
v5);
}
}
|
key:
PUSH RBX
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x001c2916
MOV RBX,RDI
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x1
JZ 0x001c2904
CMP EAX,0x2
JNZ 0x001c290d
MOV RSI,qword ptr [RBX + 0x20]
CMP RSI,qword ptr [RBX + 0x28]
JZ 0x001c28fe
LEA RDI,[RBX + 0x30]
CALL 0x001c2da9
MOV RAX,qword ptr [RBX + 0x20]
MOV qword ptr [RBX + 0x28],RAX
LAB_001c28fe:
ADD RBX,0x30
JMP 0x001c2911
LAB_001c2904:
MOV RDI,RBX
POP RBX
JMP 0x001c2e6a
LAB_001c290d:
ADD RBX,0x50
LAB_001c2911:
MOV RAX,RBX
POP RBX
RET
LAB_001c2916:
LEA RDI,[0x2198b8]
LEA RDX,[0x21220d]
LEA RCX,[0x21fc11]
MOV ESI,0x1491
XOR EAX,EAX
CALL 0x00120e60
|
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > >::key() const */
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
* __thiscall
nlohmann::json_abi_v3_11_3::detail::
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::key(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*this)
{
char cVar1;
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*piVar2;
if (*(char **)this == (char *)0x0) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",0x1491,
"GGML_ASSERT(%s) failed","anchor.m_object != nullptr");
}
cVar1 = **(char **)this;
if (cVar1 != '\x01') {
if (cVar1 == '\x02') {
if (*(ulong *)(this + 0x20) != *(ulong *)(this + 0x28)) {
int_to_string<std::__cxx11::string>((string *)(this + 0x30),*(ulong *)(this + 0x20));
*(int8 *)(this + 0x28) = *(int8 *)(this + 0x20);
}
piVar2 = this + 0x30;
}
else {
piVar2 = this + 0x50;
}
return piVar2;
}
piVar2 = (iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::key((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)this);
return piVar2;
}
|
|
18,127
|
maria_page_filler_set_none
|
eloqsql/storage/maria/ma_pagecrc.c
|
my_bool maria_page_filler_set_none(PAGECACHE_IO_HOOK_ARGS *args
__attribute__((unused)))
{
#ifdef HAVE_valgrind
uchar *page= args->page;
MARIA_SHARE *share= (MARIA_SHARE *)args->data;
int4store_aligned(page + share->block_size - CRC_SIZE,
0);
#endif
return 0;
}
|
O0
|
c
|
maria_page_filler_set_none:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
xorl %eax, %eax
popq %rbp
retq
nopl (%rax)
|
maria_page_filler_set_none:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
xor eax, eax
pop rbp
retn
|
long long maria_page_filler_set_none()
{
return 0LL;
}
|
maria_page_filler_set_none:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
XOR EAX,EAX
POP RBP
RET
|
int8 maria_page_filler_set_none(void)
{
return 0;
}
|
|
18,128
|
nibble_from_hex
|
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/bytes.h
|
static unsigned char nibble_from_hex(char c)
{
int mask, ret;
mask = (('a'-c-1) & (c-1-'f')) >> 31;
ret = (10 + c - 'a') & mask;
mask = (('A'-c-1) & (c-1-'F')) >> 31;
ret |= (10 + c - 'A') & mask;
mask = (('0'-c-1) & (c-1-'9')) >> 31;
ret |= (c - '0') & mask;
mask = ((ret-1) & ~mask) >> 31;
ret |= 16 & mask;
return (unsigned char)ret;
}
|
O3
|
c
|
nibble_from_hex:
pushq %rbp
movq %rsp, %rbp
movl $0x60, %eax
subl %edi, %eax
leal -0x67(%rdi), %ecx
andl %eax, %ecx
leal -0x57(%rdi), %eax
sarl $0x1f, %ecx
andl %eax, %ecx
movl $0x40, %eax
subl %edi, %eax
leal -0x47(%rdi), %edx
andl %eax, %edx
leal -0x37(%rdi), %eax
sarl $0x1f, %edx
andl %eax, %edx
orl %ecx, %edx
movl $0x2f, %eax
subl %edi, %eax
leal -0x3a(%rdi), %ecx
andl %eax, %ecx
leal -0x30(%rdi), %eax
testl %ecx, %ecx
setns %sil
sarl $0x1f, %ecx
andl %eax, %ecx
orl %edx, %ecx
setle %al
andb %sil, %al
movzbl %al, %eax
shll $0x4, %eax
orl %ecx, %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopw %cs:(%rax,%rax)
nopw %cs:(%rax,%rax)
nopw %cs:(%rax,%rax)
nopl (%rax)
|
nibble_from_hex:
push rbp
mov rbp, rsp
mov eax, 60h ; '`'
sub eax, edi
lea ecx, [rdi-67h]
and ecx, eax
lea eax, [rdi-57h]
sar ecx, 1Fh
and ecx, eax
mov eax, 40h ; '@'
sub eax, edi
lea edx, [rdi-47h]
and edx, eax
lea eax, [rdi-37h]
sar edx, 1Fh
and edx, eax
or edx, ecx
mov eax, 2Fh ; '/'
sub eax, edi
lea ecx, [rdi-3Ah]
and ecx, eax
lea eax, [rdi-30h]
test ecx, ecx
setns sil
sar ecx, 1Fh
and ecx, eax
or ecx, edx
setle al
and al, sil
movzx eax, al
shl eax, 4
or eax, ecx
pop rbp
retn
|
long long nibble_from_hex(int a1)
{
int v1; // ecx
bool v2; // si
int v3; // ecx
v1 = (47 - a1) & (a1 - 58);
v2 = v1 >= 0;
v3 = (a1 - 87) & (((96 - a1) & (a1 - 103)) >> 31) | (a1 - 55) & (((64 - a1) & (a1 - 71)) >> 31) | (a1 - 48) & (v1 >> 31);
return v3 | (16 * (unsigned int)(v2 && v3 <= 0));
}
|
nibble_from_hex:
PUSH RBP
MOV RBP,RSP
MOV EAX,0x60
SUB EAX,EDI
LEA ECX,[RDI + -0x67]
AND ECX,EAX
LEA EAX,[RDI + -0x57]
SAR ECX,0x1f
AND ECX,EAX
MOV EAX,0x40
SUB EAX,EDI
LEA EDX,[RDI + -0x47]
AND EDX,EAX
LEA EAX,[RDI + -0x37]
SAR EDX,0x1f
AND EDX,EAX
OR EDX,ECX
MOV EAX,0x2f
SUB EAX,EDI
LEA ECX,[RDI + -0x3a]
AND ECX,EAX
LEA EAX,[RDI + -0x30]
TEST ECX,ECX
SETNS SIL
SAR ECX,0x1f
AND ECX,EAX
OR ECX,EDX
SETLE AL
AND AL,SIL
MOVZX EAX,AL
SHL EAX,0x4
OR EAX,ECX
POP RBP
RET
|
uint nibble_from_hex(int param_1)
{
uint uVar1;
uint uVar2;
uVar1 = param_1 - 0x3aU & 0x2fU - param_1;
uVar2 = (int)uVar1 >> 0x1f & param_1 - 0x30U |
(int)(param_1 - 0x47U & 0x40U - param_1) >> 0x1f & param_1 - 0x37U |
(int)(param_1 - 0x67U & 0x60U - param_1) >> 0x1f & param_1 - 0x57U;
return (uint)((int)uVar2 < 1 && -1 < (int)uVar1) << 4 | uVar2;
}
|
|
18,129
|
test_str_to_int
|
eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c
|
static int test_str_to_int(MYSQL *mysql)
{
int i;
struct st_atoi_test{
const char *str_value;
int int_value;
int rc;
} atoi_tests[]=
{
{"0", 0, 0},
{" 1",1, 0},
{"123 ",123, 0},
{"10.2",10, MYSQL_DATA_TRUNCATED},
{"a", 0, MYSQL_DATA_TRUNCATED},
{"1 2 3", 1, MYSQL_DATA_TRUNCATED},
{NULL, 0, 0}
};
for(i=0; atoi_tests[i].str_value; i++)
{
int rc;
MYSQL_STMT *stmt;
MYSQL_BIND bind[1];
struct st_atoi_test *test= &atoi_tests[i];
char sql[256];
int int_value;
snprintf(sql, sizeof(sql), "SELECT '%s'",test->str_value);
stmt= mysql_stmt_init(mysql);
rc= mysql_stmt_prepare(stmt, sql, (ulong)strlen(sql));
check_stmt_rc(rc, stmt);
rc= mysql_stmt_execute(stmt);
check_stmt_rc(rc, stmt);
rc= mysql_stmt_store_result(stmt);
memset(bind, 0, sizeof(MYSQL_BIND));
bind[0].buffer_type= MYSQL_TYPE_LONG;
bind[0].buffer= &int_value;
bind[0].buffer_length= sizeof(int_value);
rc= mysql_stmt_bind_result(stmt, bind);
check_stmt_rc(rc, stmt);
rc= mysql_stmt_fetch(stmt);
diag("test: str='%s', expected/returned value =%d/%d, expected/returned rc=%d/%d",
test->str_value, test->int_value, int_value, test->rc, rc);
FAIL_UNLESS(rc == test->rc, "unexpected return code");
FAIL_UNLESS(int_value == test->int_value, "unexpected int value");
mysql_stmt_close(stmt);
}
return OK;
}
|
O0
|
c
|
test_str_to_int:
pushq %rbp
movq %rsp, %rbp
subq $0x250, %rsp # imm = 0x250
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x120(%rbp)
leaq -0x1a0(%rbp), %rdi
leaq 0x478e3(%rip), %rsi # 0x76f10
movl $0x70, %edx
callq 0x14370
movl $0x0, -0x124(%rbp)
movslq -0x124(%rbp), %rcx
leaq -0x1a0(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
je 0x2f926
movslq -0x124(%rbp), %rcx
leaq -0x1a0(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x228(%rbp)
leaq -0x110(%rbp), %rdi
movq -0x228(%rbp), %rax
movq (%rax), %rcx
movl $0x100, %esi # imm = 0x100
leaq 0x3b3ef(%rip), %rdx # 0x6aa88
movb $0x0, %al
callq 0x146e0
movq -0x120(%rbp), %rdi
callq 0x44950
movq %rax, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x240(%rbp)
leaq -0x110(%rbp), %rax
movq %rax, -0x238(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x141a0
movq -0x240(%rbp), %rdi
movq -0x238(%rbp), %rsi
movq %rax, %rdx
callq 0x45070
movl %eax, -0x1a4(%rbp)
cmpl $0x0, -0x1a4(%rbp)
je 0x2f738
movq -0x1b0(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x35e7a(%rip), %rdi # 0x65590
leaq 0x36950(%rip), %rdx # 0x6606d
movl $0x1273, %ecx # imm = 0x1273
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x114(%rbp)
jmp 0x2f930
jmp 0x2f73a
movq -0x1b0(%rbp), %rdi
callq 0x46580
movl %eax, -0x1a4(%rbp)
cmpl $0x0, -0x1a4(%rbp)
je 0x2f78d
movq -0x1b0(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x35e25(%rip), %rdi # 0x65590
leaq 0x368fb(%rip), %rdx # 0x6606d
movl $0x1275, %ecx # imm = 0x1275
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x114(%rbp)
jmp 0x2f930
jmp 0x2f78f
movq -0x1b0(%rbp), %rdi
callq 0x454d0
movl %eax, -0x1a4(%rbp)
leaq -0x220(%rbp), %rdi
xorl %esi, %esi
movl $0x70, %edx
callq 0x14260
movl $0x3, -0x1c0(%rbp)
leaq -0x22c(%rbp), %rax
movq %rax, -0x210(%rbp)
movq $0x4, -0x1e0(%rbp)
movq -0x1b0(%rbp), %rdi
leaq -0x220(%rbp), %rsi
callq 0x43940
movsbl %al, %eax
movl %eax, -0x1a4(%rbp)
cmpl $0x0, -0x1a4(%rbp)
je 0x2f834
movq -0x1b0(%rbp), %rdi
callq 0x43fd0
movq %rax, %rsi
leaq 0x35d7e(%rip), %rdi # 0x65590
leaq 0x36854(%rip), %rdx # 0x6606d
movl $0x127e, %ecx # imm = 0x127E
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x114(%rbp)
jmp 0x2f930
jmp 0x2f836
movq -0x1b0(%rbp), %rdi
callq 0x44020
movl %eax, -0x1a4(%rbp)
movq -0x228(%rbp), %rax
movq (%rax), %rsi
movq -0x228(%rbp), %rax
movl 0x8(%rax), %edx
movl -0x22c(%rbp), %ecx
movq -0x228(%rbp), %rax
movl 0xc(%rax), %r8d
movl -0x1a4(%rbp), %r9d
leaq 0x3b219(%rip), %rdi # 0x6aa94
movb $0x0, %al
callq 0x2fc40
movl -0x1a4(%rbp), %eax
movq -0x228(%rbp), %rcx
cmpl 0xc(%rcx), %eax
je 0x2f8c1
leaq 0x35cf5(%rip), %rdi # 0x65590
leaq 0x3b23d(%rip), %rsi # 0x6aadf
leaq 0x367c4(%rip), %rdx # 0x6606d
movl $0x1283, %ecx # imm = 0x1283
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x114(%rbp)
jmp 0x2f930
jmp 0x2f8c3
jmp 0x2f8c5
movl -0x22c(%rbp), %eax
movq -0x228(%rbp), %rcx
cmpl 0x8(%rcx), %eax
je 0x2f904
leaq 0x35cb2(%rip), %rdi # 0x65590
leaq 0x3b211(%rip), %rsi # 0x6aaf6
leaq 0x36781(%rip), %rdx # 0x6606d
movl $0x1284, %ecx # imm = 0x1284
movb $0x0, %al
callq 0x2fc40
movl $0x1, -0x114(%rbp)
jmp 0x2f930
jmp 0x2f906
movq -0x1b0(%rbp), %rdi
callq 0x43eb0
movl -0x124(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x124(%rbp)
jmp 0x2f641
movl $0x0, -0x114(%rbp)
movl -0x114(%rbp), %eax
movl %eax, -0x244(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x2f95d
movl -0x244(%rbp), %eax
addq $0x250, %rsp # imm = 0x250
popq %rbp
retq
callq 0x144c0
nopw %cs:(%rax,%rax)
|
test_str_to_int:
push rbp
mov rbp, rsp
sub rsp, 250h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_120], rdi
lea rdi, [rbp+var_1A0]
lea rsi, off_76F10; "0"
mov edx, 70h ; 'p'
call _memcpy
mov [rbp+var_124], 0
loc_2F641:
movsxd rcx, [rbp+var_124]
lea rax, [rbp+var_1A0]
shl rcx, 4
add rax, rcx
cmp qword ptr [rax], 0
jz loc_2F926
movsxd rcx, [rbp+var_124]
lea rax, [rbp+var_1A0]
shl rcx, 4
add rax, rcx
mov [rbp+var_228], rax
lea rdi, [rbp+var_110]
mov rax, [rbp+var_228]
mov rcx, [rax]
mov esi, 100h
lea rdx, aSelectS_0; "SELECT '%s'"
mov al, 0
call _snprintf
mov rdi, [rbp+var_120]
call mysql_stmt_init
mov [rbp+var_1B0], rax
mov rax, [rbp+var_1B0]
mov [rbp+var_240], rax
lea rax, [rbp+var_110]
mov [rbp+var_238], rax
lea rdi, [rbp+var_110]
call _strlen
mov rdi, [rbp+var_240]
mov rsi, [rbp+var_238]
mov rdx, rax
call mysql_stmt_prepare
mov [rbp+var_1A4], eax
cmp [rbp+var_1A4], 0
jz short loc_2F738
mov rdi, [rbp+var_1B0]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1273h
mov al, 0
call diag
mov [rbp+var_114], 1
jmp loc_2F930
loc_2F738:
jmp short $+2
loc_2F73A:
mov rdi, [rbp+var_1B0]
call mysql_stmt_execute
mov [rbp+var_1A4], eax
cmp [rbp+var_1A4], 0
jz short loc_2F78D
mov rdi, [rbp+var_1B0]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1275h
mov al, 0
call diag
mov [rbp+var_114], 1
jmp loc_2F930
loc_2F78D:
jmp short $+2
loc_2F78F:
mov rdi, [rbp+var_1B0]
call mysql_stmt_store_result
mov [rbp+var_1A4], eax
lea rdi, [rbp+var_220]
xor esi, esi
mov edx, 70h ; 'p'
call _memset
mov [rbp+var_1C0], 3
lea rax, [rbp+var_22C]
mov [rbp+var_210], rax
mov [rbp+var_1E0], 4
mov rdi, [rbp+var_1B0]
lea rsi, [rbp+var_220]
call mysql_stmt_bind_result
movsx eax, al
mov [rbp+var_1A4], eax
cmp [rbp+var_1A4], 0
jz short loc_2F834
mov rdi, [rbp+var_1B0]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 127Eh
mov al, 0
call diag
mov [rbp+var_114], 1
jmp loc_2F930
loc_2F834:
jmp short $+2
loc_2F836:
mov rdi, [rbp+var_1B0]
call mysql_stmt_fetch
mov [rbp+var_1A4], eax
mov rax, [rbp+var_228]
mov rsi, [rax]
mov rax, [rbp+var_228]
mov edx, [rax+8]
mov ecx, [rbp+var_22C]
mov rax, [rbp+var_228]
mov r8d, [rax+0Ch]
mov r9d, [rbp+var_1A4]
lea rdi, aTestStrSExpect; "test: str='%s', expected/returned value"...
mov al, 0
call diag
mov eax, [rbp+var_1A4]
mov rcx, [rbp+var_228]
cmp eax, [rcx+0Ch]
jz short loc_2F8C1
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aUnexpectedRetu; "unexpected return code"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1283h
mov al, 0
call diag
mov [rbp+var_114], 1
jmp short loc_2F930
loc_2F8C1:
jmp short $+2
loc_2F8C3:
jmp short $+2
loc_2F8C5:
mov eax, [rbp+var_22C]
mov rcx, [rbp+var_228]
cmp eax, [rcx+8]
jz short loc_2F904
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aUnexpectedIntV; "unexpected int value"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1284h
mov al, 0
call diag
mov [rbp+var_114], 1
jmp short loc_2F930
loc_2F904:
jmp short $+2
loc_2F906:
mov rdi, [rbp+var_1B0]
call mysql_stmt_close
mov eax, [rbp+var_124]
add eax, 1
mov [rbp+var_124], eax
jmp loc_2F641
loc_2F926:
mov [rbp+var_114], 0
loc_2F930:
mov eax, [rbp+var_114]
mov [rbp+var_244], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_2F95D
mov eax, [rbp+var_244]
add rsp, 250h
pop rbp
retn
loc_2F95D:
call ___stack_chk_fail
|
long long test_str_to_int(long long a1)
{
long long v1; // rax
int v2; // eax
int v3; // r8d
int v4; // r9d
int v5; // eax
int v6; // r8d
int v7; // r9d
char v8; // al
int v9; // eax
int v10; // r8d
int v11; // r9d
int v12; // r8d
int v13; // r9d
long long v15; // [rsp+10h] [rbp-240h]
int v16; // [rsp+24h] [rbp-22Ch] BYREF
_OWORD *v17; // [rsp+28h] [rbp-228h]
_BYTE v18[16]; // [rsp+30h] [rbp-220h] BYREF
int *v19; // [rsp+40h] [rbp-210h]
long long v20; // [rsp+70h] [rbp-1E0h]
int v21; // [rsp+90h] [rbp-1C0h]
long long v22; // [rsp+A0h] [rbp-1B0h]
int v23; // [rsp+ACh] [rbp-1A4h]
_QWORD v24[15]; // [rsp+B0h] [rbp-1A0h] BYREF
int i; // [rsp+12Ch] [rbp-124h]
long long v26; // [rsp+130h] [rbp-120h]
_BYTE v28[264]; // [rsp+140h] [rbp-110h] BYREF
unsigned long long v29; // [rsp+248h] [rbp-8h]
v29 = __readfsqword(0x28u);
v26 = a1;
memcpy(v24, &off_76F10, 112LL);
for ( i = 0; v24[2 * i]; ++i )
{
v17 = &v24[2 * i];
snprintf(v28, 256LL, "SELECT '%s'", *(const char **)v17);
v22 = mysql_stmt_init(v26);
v15 = v22;
v1 = strlen(v28);
v23 = mysql_stmt_prepare(v15, v28, v1);
if ( v23 )
{
v2 = mysql_stmt_error(v22);
diag(
(unsigned int)"Error: %s (%s: %d)",
v2,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4723,
v3,
v4);
return 1;
}
v23 = mysql_stmt_execute(v22);
if ( v23 )
{
v5 = mysql_stmt_error(v22);
diag(
(unsigned int)"Error: %s (%s: %d)",
v5,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4725,
v6,
v7);
return 1;
}
v23 = mysql_stmt_store_result(v22);
memset(v18, 0LL, 112LL);
v21 = 3;
v19 = &v16;
v20 = 4LL;
v8 = mysql_stmt_bind_result(v22, v18);
v23 = v8;
if ( v8 )
{
v9 = mysql_stmt_error(v22);
diag(
(unsigned int)"Error: %s (%s: %d)",
v9,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4734,
v10,
v11);
return 1;
}
v23 = mysql_stmt_fetch(v22);
diag(
(unsigned int)"test: str='%s', expected/returned value =%d/%d, expected/returned rc=%d/%d",
*(_QWORD *)v17,
*((_DWORD *)v17 + 2),
v16,
*((_DWORD *)v17 + 3),
v23);
if ( v23 != *((_DWORD *)v17 + 3) )
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"unexpected return code",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4739,
v12,
v13);
return 1;
}
if ( v16 != *((_DWORD *)v17 + 2) )
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"unexpected int value",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
4740,
v12,
v13);
return 1;
}
mysql_stmt_close(v22);
}
return 0;
}
|
test_str_to_int:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x250
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x120],RDI
LEA RDI,[RBP + -0x1a0]
LEA RSI,[0x176f10]
MOV EDX,0x70
CALL 0x00114370
MOV dword ptr [RBP + -0x124],0x0
LAB_0012f641:
MOVSXD RCX,dword ptr [RBP + -0x124]
LEA RAX,[RBP + -0x1a0]
SHL RCX,0x4
ADD RAX,RCX
CMP qword ptr [RAX],0x0
JZ 0x0012f926
MOVSXD RCX,dword ptr [RBP + -0x124]
LEA RAX,[RBP + -0x1a0]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RBP + -0x228],RAX
LEA RDI,[RBP + -0x110]
MOV RAX,qword ptr [RBP + -0x228]
MOV RCX,qword ptr [RAX]
MOV ESI,0x100
LEA RDX,[0x16aa88]
MOV AL,0x0
CALL 0x001146e0
MOV RDI,qword ptr [RBP + -0x120]
CALL 0x00144950
MOV qword ptr [RBP + -0x1b0],RAX
MOV RAX,qword ptr [RBP + -0x1b0]
MOV qword ptr [RBP + -0x240],RAX
LEA RAX,[RBP + -0x110]
MOV qword ptr [RBP + -0x238],RAX
LEA RDI,[RBP + -0x110]
CALL 0x001141a0
MOV RDI,qword ptr [RBP + -0x240]
MOV RSI,qword ptr [RBP + -0x238]
MOV RDX,RAX
CALL 0x00145070
MOV dword ptr [RBP + -0x1a4],EAX
CMP dword ptr [RBP + -0x1a4],0x0
JZ 0x0012f738
MOV RDI,qword ptr [RBP + -0x1b0]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x1273
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x114],0x1
JMP 0x0012f930
LAB_0012f738:
JMP 0x0012f73a
LAB_0012f73a:
MOV RDI,qword ptr [RBP + -0x1b0]
CALL 0x00146580
MOV dword ptr [RBP + -0x1a4],EAX
CMP dword ptr [RBP + -0x1a4],0x0
JZ 0x0012f78d
MOV RDI,qword ptr [RBP + -0x1b0]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x1275
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x114],0x1
JMP 0x0012f930
LAB_0012f78d:
JMP 0x0012f78f
LAB_0012f78f:
MOV RDI,qword ptr [RBP + -0x1b0]
CALL 0x001454d0
MOV dword ptr [RBP + -0x1a4],EAX
LEA RDI,[RBP + -0x220]
XOR ESI,ESI
MOV EDX,0x70
CALL 0x00114260
MOV dword ptr [RBP + -0x1c0],0x3
LEA RAX,[RBP + -0x22c]
MOV qword ptr [RBP + -0x210],RAX
MOV qword ptr [RBP + -0x1e0],0x4
MOV RDI,qword ptr [RBP + -0x1b0]
LEA RSI,[RBP + -0x220]
CALL 0x00143940
MOVSX EAX,AL
MOV dword ptr [RBP + -0x1a4],EAX
CMP dword ptr [RBP + -0x1a4],0x0
JZ 0x0012f834
MOV RDI,qword ptr [RBP + -0x1b0]
CALL 0x00143fd0
MOV RSI,RAX
LEA RDI,[0x165590]
LEA RDX,[0x16606d]
MOV ECX,0x127e
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x114],0x1
JMP 0x0012f930
LAB_0012f834:
JMP 0x0012f836
LAB_0012f836:
MOV RDI,qword ptr [RBP + -0x1b0]
CALL 0x00144020
MOV dword ptr [RBP + -0x1a4],EAX
MOV RAX,qword ptr [RBP + -0x228]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x228]
MOV EDX,dword ptr [RAX + 0x8]
MOV ECX,dword ptr [RBP + -0x22c]
MOV RAX,qword ptr [RBP + -0x228]
MOV R8D,dword ptr [RAX + 0xc]
MOV R9D,dword ptr [RBP + -0x1a4]
LEA RDI,[0x16aa94]
MOV AL,0x0
CALL 0x0012fc40
MOV EAX,dword ptr [RBP + -0x1a4]
MOV RCX,qword ptr [RBP + -0x228]
CMP EAX,dword ptr [RCX + 0xc]
JZ 0x0012f8c1
LEA RDI,[0x165590]
LEA RSI,[0x16aadf]
LEA RDX,[0x16606d]
MOV ECX,0x1283
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x114],0x1
JMP 0x0012f930
LAB_0012f8c1:
JMP 0x0012f8c3
LAB_0012f8c3:
JMP 0x0012f8c5
LAB_0012f8c5:
MOV EAX,dword ptr [RBP + -0x22c]
MOV RCX,qword ptr [RBP + -0x228]
CMP EAX,dword ptr [RCX + 0x8]
JZ 0x0012f904
LEA RDI,[0x165590]
LEA RSI,[0x16aaf6]
LEA RDX,[0x16606d]
MOV ECX,0x1284
MOV AL,0x0
CALL 0x0012fc40
MOV dword ptr [RBP + -0x114],0x1
JMP 0x0012f930
LAB_0012f904:
JMP 0x0012f906
LAB_0012f906:
MOV RDI,qword ptr [RBP + -0x1b0]
CALL 0x00143eb0
MOV EAX,dword ptr [RBP + -0x124]
ADD EAX,0x1
MOV dword ptr [RBP + -0x124],EAX
JMP 0x0012f641
LAB_0012f926:
MOV dword ptr [RBP + -0x114],0x0
LAB_0012f930:
MOV EAX,dword ptr [RBP + -0x114]
MOV dword ptr [RBP + -0x244],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0012f95d
MOV EAX,dword ptr [RBP + -0x244]
ADD RSP,0x250
POP RBP
RET
LAB_0012f95d:
CALL 0x001144c0
|
int4 test_str_to_int(int8 param_1)
{
char cVar1;
int8 uVar2;
size_t sVar3;
long in_FS_OFFSET;
int local_234;
long *local_230;
int1 local_228 [16];
int *local_218;
int8 local_1e8;
int4 local_1c8;
int8 local_1b8;
int local_1ac;
long local_1a8 [15];
int local_12c;
int8 local_128;
int4 local_11c;
char local_118 [264];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_128 = param_1;
memcpy(local_1a8,&PTR_DAT_00176f10,0x70);
local_12c = 0;
do {
if (local_1a8[(long)local_12c * 2] == 0) {
local_11c = 0;
LAB_0012f930:
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_11c;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
local_230 = local_1a8 + (long)local_12c * 2;
snprintf(local_118,0x100,"SELECT \'%s\'",*local_230);
uVar2 = mysql_stmt_init(local_128);
local_1b8 = uVar2;
sVar3 = strlen(local_118);
local_1ac = mysql_stmt_prepare(uVar2,local_118,sVar3);
if (local_1ac != 0) {
uVar2 = mysql_stmt_error(local_1b8);
diag("Error: %s (%s: %d)",uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x1273);
local_11c = 1;
goto LAB_0012f930;
}
local_1ac = mysql_stmt_execute(local_1b8);
if (local_1ac != 0) {
uVar2 = mysql_stmt_error(local_1b8);
diag("Error: %s (%s: %d)",uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x1275);
local_11c = 1;
goto LAB_0012f930;
}
local_1ac = mysql_stmt_store_result(local_1b8);
memset(local_228,0,0x70);
local_1c8 = 3;
local_218 = &local_234;
local_1e8 = 4;
cVar1 = mysql_stmt_bind_result(local_1b8,local_228);
local_1ac = (int)cVar1;
if (local_1ac != 0) {
uVar2 = mysql_stmt_error(local_1b8);
diag("Error: %s (%s: %d)",uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x127e);
local_11c = 1;
goto LAB_0012f930;
}
local_1ac = mysql_stmt_fetch(local_1b8);
diag("test: str=\'%s\', expected/returned value =%d/%d, expected/returned rc=%d/%d",*local_230,
(int)local_230[1],local_234,*(int4 *)((long)local_230 + 0xc),local_1ac);
if (local_1ac != *(int *)((long)local_230 + 0xc)) {
diag("Error: %s (%s: %d)","unexpected return code",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x1283);
local_11c = 1;
goto LAB_0012f930;
}
if (local_234 != (int)local_230[1]) {
diag("Error: %s (%s: %d)","unexpected int value",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",
0x1284);
local_11c = 1;
goto LAB_0012f930;
}
mysql_stmt_close(local_1b8);
local_12c = local_12c + 1;
} while( true );
}
|
|
18,130
|
my_sync_dir
|
eloqsql/mysys/my_sync.c
|
int my_sync_dir(const char *dir_name __attribute__((unused)),
myf my_flags __attribute__((unused)))
{
#ifdef NEED_EXPLICIT_SYNC_DIR
static const char cur_dir_name[]= {FN_CURLIB, 0};
File dir_fd;
int res= 0;
const char *correct_dir_name;
DBUG_ENTER("my_sync_dir");
DBUG_PRINT("my",("Dir: '%s' my_flags: %lu", dir_name, my_flags));
/* Sometimes the path does not contain an explicit directory */
correct_dir_name= (dir_name[0] == 0) ? cur_dir_name : dir_name;
/*
Syncing a dir may give EINVAL on tmpfs on Linux, which is ok.
EIO on the other hand is very important. Hence MY_IGNORE_BADFD.
*/
if ((dir_fd= my_open(correct_dir_name, O_RDONLY, MYF(my_flags))) >= 0)
{
if (my_sync(dir_fd, MYF(my_flags | MY_IGNORE_BADFD)))
res= 2;
if (my_close(dir_fd, MYF(my_flags)))
res= 3;
}
else
res= 1;
DBUG_RETURN(res);
#else
return 0;
#endif
}
|
O3
|
c
|
my_sync_dir:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpb $0x0, (%rdi)
movq %rsi, %rbx
leaq 0x34a60(%rip), %rax # 0x60ca0
cmoveq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x2b8cc
testl %eax, %eax
js 0x2c287
movl %eax, %r14d
movq %rbx, %rsi
orq $0x20, %rsi
movl %eax, %edi
callq 0x2c0f8
xorl %r15d, %r15d
testl %eax, %eax
setne %r15b
addl %r15d, %r15d
movl %r14d, %edi
movq %rbx, %rsi
callq 0x2ba71
testl %eax, %eax
movl $0x3, %eax
cmovel %r15d, %eax
jmp 0x2c28c
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
my_sync_dir:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
cmp byte ptr [rdi], 0
mov rbx, rsi
lea rax, my_sync_dir_cur_dir_name
cmovz rdi, rax
xor esi, esi
mov rdx, rbx
call my_open
test eax, eax
js short loc_2C287
mov r14d, eax
mov rsi, rbx
or rsi, 20h
mov edi, eax
call my_sync
xor r15d, r15d
test eax, eax
setnz r15b
add r15d, r15d
mov edi, r14d
mov rsi, rbx
call my_close
test eax, eax
mov eax, 3
cmovz eax, r15d
jmp short loc_2C28C
loc_2C287:
mov eax, 1
loc_2C28C:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long my_sync_dir(_BYTE *a1, long long a2)
{
int v2; // eax
unsigned int v3; // r14d
unsigned int v4; // r15d
bool v5; // zf
long long result; // rax
if ( !*a1 )
a1 = &my_sync_dir_cur_dir_name;
v2 = my_open((long long)a1, 0, a2);
if ( v2 < 0 )
return 1LL;
v3 = v2;
v4 = 2 * ((unsigned int)my_sync((unsigned int)v2, (unsigned int)a2 | 0x20) != 0);
v5 = (unsigned int)my_close(v3, a2) == 0;
result = 3LL;
if ( v5 )
return v4;
return result;
}
|
my_sync_dir:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
CMP byte ptr [RDI],0x0
MOV RBX,RSI
LEA RAX,[0x160ca0]
CMOVZ RDI,RAX
XOR ESI,ESI
MOV RDX,RBX
CALL 0x0012b8cc
TEST EAX,EAX
JS 0x0012c287
MOV R14D,EAX
MOV RSI,RBX
OR RSI,0x20
MOV EDI,EAX
CALL 0x0012c0f8
XOR R15D,R15D
TEST EAX,EAX
SETNZ R15B
ADD R15D,R15D
MOV EDI,R14D
MOV RSI,RBX
CALL 0x0012ba71
TEST EAX,EAX
MOV EAX,0x3
CMOVZ EAX,R15D
JMP 0x0012c28c
LAB_0012c287:
MOV EAX,0x1
LAB_0012c28c:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
char my_sync_dir(char *param_1,ulong param_2)
{
char cVar1;
int iVar2;
int iVar3;
if (*param_1 == '\0') {
param_1 = ".";
}
iVar2 = my_open(param_1,0,param_2);
if (iVar2 < 0) {
cVar1 = '\x01';
}
else {
iVar3 = my_sync(iVar2,param_2 | 0x20);
iVar2 = my_close(iVar2,param_2);
cVar1 = '\x03';
if (iVar2 == 0) {
cVar1 = (iVar3 != 0) * '\x02';
}
}
return cVar1;
}
|
|
18,131
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t)
|
monkey531[P]llama/common/./json.hpp
|
json_value(value_t t)
{
switch (t)
{
case value_t::object:
{
object = create<object_t>();
break;
}
case value_t::array:
{
array = create<array_t>();
break;
}
case value_t::string:
{
string = create<string_t>("");
break;
}
case value_t::binary:
{
binary = create<binary_t>();
break;
}
case value_t::boolean:
{
boolean = static_cast<boolean_t>(false);
break;
}
case value_t::number_integer:
{
number_integer = static_cast<number_integer_t>(0);
break;
}
case value_t::number_unsigned:
{
number_unsigned = static_cast<number_unsigned_t>(0);
break;
}
case value_t::number_float:
{
number_float = static_cast<number_float_t>(0.0);
break;
}
case value_t::null:
{
object = nullptr; // silence warning, see #821
break;
}
case value_t::discarded:
default:
{
object = nullptr; // silence warning, see #821
if (JSON_HEDLEY_UNLIKELY(t == value_t::null))
{
JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.11.3", nullptr)); // LCOV_EXCL_LINE
}
break;
}
}
}
|
O0
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t):
subq $0x68, %rsp
movb %sil, %al
movq %rdi, 0x60(%rsp)
movb %al, 0x5f(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movzbl 0x5f(%rsp), %eax
movq %rax, 0x18(%rsp)
subq $0x9, %rax
ja 0x87861
movq 0x18(%rsp), %rax
leaq 0x1523be(%rip), %rcx # 0x1d9b68
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x885c0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, (%rax)
jmp 0x8793b
callq 0x88670
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, (%rax)
jmp 0x8793b
leaq 0x1574db(%rip), %rdi # 0x1decbf
callq 0x88720
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, (%rax)
jmp 0x8793b
callq 0x88800
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, (%rax)
jmp 0x8793b
movq 0x10(%rsp), %rax
movb $0x0, (%rax)
jmp 0x8793b
movq 0x10(%rsp), %rax
movq $0x0, (%rax)
jmp 0x8793b
movq 0x10(%rsp), %rax
movq $0x0, (%rax)
jmp 0x8793b
movq 0x10(%rsp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
jmp 0x8793b
movq 0x10(%rsp), %rax
movq $0x0, (%rax)
jmp 0x8793b
jmp 0x87861
movq 0x10(%rsp), %rax
movq $0x0, (%rax)
cmpb $0x0, 0x5f(%rsp)
sete %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x87882
jmp 0x87939
movb $0x1, 0x23(%rsp)
movl $0x20, %edi
callq 0x52670
movq %rax, (%rsp)
leaq 0x37(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x52fe0
movq 0x8(%rsp), %rdx
leaq 0x153bcf(%rip), %rsi # 0x1db47f
leaq 0x38(%rsp), %rdi
callq 0x5b620
jmp 0x878bc
movq (%rsp), %rdi
xorl %eax, %eax
movl %eax, %ecx
movl $0x1f4, %esi # imm = 0x1F4
leaq 0x38(%rsp), %rdx
callq 0x62780
jmp 0x878d5
movq (%rsp), %rdi
movb $0x0, 0x23(%rsp)
leaq 0x1dd393(%rip), %rsi # 0x264c78
leaq -0x24fcc(%rip), %rdx # 0x62920
callq 0x52a60
jmp 0x8794a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
jmp 0x8791b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x53408
leaq 0x37(%rsp), %rdi
callq 0x533e0
testb $0x1, 0x23(%rsp)
jne 0x8792e
jmp 0x87937
movq (%rsp), %rdi
callq 0x52e60
jmp 0x87940
jmp 0x8793b
addq $0x68, %rsp
retq
movq 0x28(%rsp), %rdi
callq 0x52ae0
nopw (%rax,%rax)
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_valueC2ENS0_6detail7value_tE:
sub rsp, 68h
mov al, sil
mov qword ptr [rsp+68h+var_8], rdi; int
mov [rsp+68h+var_9], al
mov rax, qword ptr [rsp+68h+var_8]
mov qword ptr [rsp+68h+var_58], rax; int
movzx eax, [rsp+68h+var_9]
mov qword ptr [rsp+68h+var_50], rax; char
sub rax, 9; switch 10 cases
ja def_877B1; jumptable 00000000000877B1 default case
mov rax, qword ptr [rsp+68h+var_50]
lea rcx, jpt_877B1
movsxd rax, ds:(jpt_877B1 - 1D9B68h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_877B3:
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createINS2_IS9_SD_St4lessIvESaISt4pairIKS9_SD_EEEEJEEEPT_DpOT0_; jumptable 00000000000877B1 case 1
mov rcx, rax
mov rax, qword ptr [rsp+68h+var_58]
mov [rax], rcx
jmp loc_8793B
loc_877C8:
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS3_ISD_SaISD_EEJEEEPT_DpOT0_; jumptable 00000000000877B1 case 2
mov rcx, rax
mov rax, qword ptr [rsp+68h+var_58]
mov [rax], rcx
jmp loc_8793B
loc_877DD:
lea rdi, asc_1DECBE+1; jumptable 00000000000877B1 case 3
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS9_JRA1_KcEEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<std::string,char const(&)[1]>(char const(&)[1] &&)
mov rcx, rax
mov rax, qword ptr [rsp+68h+var_58]
mov [rax], rcx
jmp loc_8793B
loc_877F9:
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createINS0_27byte_container_with_subtypeISC_EEJEEEPT_DpOT0_; jumptable 00000000000877B1 case 8
mov rcx, rax
mov rax, qword ptr [rsp+68h+var_58]
mov [rax], rcx
jmp loc_8793B
loc_8780E:
mov rax, qword ptr [rsp+68h+var_58]; jumptable 00000000000877B1 case 4
mov byte ptr [rax], 0
jmp loc_8793B
loc_8781B:
mov rax, qword ptr [rsp+68h+var_58]; jumptable 00000000000877B1 case 5
mov qword ptr [rax], 0
jmp loc_8793B
loc_8782C:
mov rax, qword ptr [rsp+68h+var_58]; jumptable 00000000000877B1 case 6
mov qword ptr [rax], 0
jmp loc_8793B
loc_8783D:
mov rax, qword ptr [rsp+68h+var_58]; jumptable 00000000000877B1 case 7
xorps xmm0, xmm0
movsd qword ptr [rax], xmm0
jmp loc_8793B
loc_8784E:
mov rax, qword ptr [rsp+68h+var_58]; jumptable 00000000000877B1 case 0
mov qword ptr [rax], 0
jmp loc_8793B
loc_8785F:
jmp short $+2; jumptable 00000000000877B1 case 9
def_877B1:
mov rax, qword ptr [rsp+68h+var_58]; jumptable 00000000000877B1 default case
mov qword ptr [rax], 0
cmp [rsp+68h+var_9], 0
setz al
xor al, 0FFh
xor al, 0FFh
test al, 1
jnz short loc_87882
jmp loc_87939
loc_87882:
mov [rsp+68h+var_45], 1
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov [rsp+68h+var_68], rax; int
lea rdi, [rsp+68h+var_31]
mov qword ptr [rsp+68h+var_60], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+68h+var_60]
lea rsi, a961c151d2e87f2; "961c151d2e87f2686a955a9be24d316f1362bf2"...
lea rdi, [rsp+68h+var_31+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_878BC:
mov rdi, [rsp+68h+var_68]; int
xor eax, eax
mov ecx, eax
mov esi, 1F4h
lea rdx, [rsp+68h+var_31+1]
call _ZN8nlohmann16json_abi_v3_11_36detail11other_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
jmp short $+2
loc_878D5:
mov rdi, [rsp+68h+var_68]; void *
mov [rsp+68h+var_45], 0
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail11other_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail11other_errorD2Ev; void (*)(void *)
call ___cxa_throw
jmp short loc_8794A
mov rcx, rax
mov eax, edx
mov [rsp+arg_20], rcx
mov [rsp+arg_1C], eax
jmp short loc_8791B
mov rcx, rax
mov eax, edx
mov [rsp+arg_20], rcx
mov [rsp+arg_1C], eax
lea rdi, [rsp+arg_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_8791B:
lea rdi, [rsp+arg_2F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
test [rsp+arg_1B], 1
jnz short loc_8792E
jmp short loc_87937
loc_8792E:
mov rdi, [rsp+0]; void *
call ___cxa_free_exception
loc_87937:
jmp short loc_87940
loc_87939:
jmp short $+2
loc_8793B:
add rsp, 68h
retn
loc_87940:
mov rdi, [rsp+arg_20]
call __Unwind_Resume
loc_8794A:
nop word ptr [rax+rax+00h]
|
bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::json_value(
long long *a1,
char a2,
int a3,
int a4,
int a5,
int a6)
{
long long v6; // rcx
bool result; // al
long long v8; // rcx
long long v9; // rcx
long long v10; // rcx
void *exception; // [rsp+0h] [rbp-68h]
int v12[10]; // [rsp+37h] [rbp-31h] BYREF
char v13; // [rsp+5Fh] [rbp-9h]
int v14[2]; // [rsp+60h] [rbp-8h]
*(_QWORD *)v14 = a1;
v13 = a2;
switch ( a2 )
{
case 0:
result = (char)a1;
*a1 = 0LL;
break;
case 1:
v6 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::create<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>(
(_DWORD)a1,
a2,
a3,
a4,
a5,
a6);
result = (char)a1;
*a1 = v6;
break;
case 2:
v8 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>(
(_DWORD)a1,
a2,
a3,
a4,
a5,
a6);
result = (char)a1;
*a1 = v8;
break;
case 3:
v9 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::create<std::string,char const(&)[1]>(
(unsigned int)"",
a2,
a3,
a4,
a5,
a6);
result = (char)a1;
*a1 = v9;
break;
case 4:
result = (char)a1;
*(_BYTE *)a1 = 0;
break;
case 5:
result = (char)a1;
*a1 = 0LL;
break;
case 6:
result = (char)a1;
*a1 = 0LL;
break;
case 7:
result = (char)a1;
*a1 = 0LL;
break;
case 8:
v10 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::create<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>(
(_DWORD)a1,
a2,
a3,
a4,
a5,
a6);
result = (char)a1;
*a1 = v10;
break;
default:
*a1 = 0LL;
result = v13 == 0;
if ( !v13 )
{
exception = __cxa_allocate_exception(0x20uLL);
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>(
(long long)v12 + 1,
(long long)"961c151d2e87f2686a955a9be24d316f1362bf21 3.11.3",
(long long)v12);
ZN8nlohmann16json_abi_v3_11_36detail11other_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
(long long)exception,
500,
(long long)v12 + 1,
0LL);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::other_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::other_error::~other_error);
}
return result;
}
return result;
}
|
json_value:
SUB RSP,0x68
MOV AL,SIL
MOV qword ptr [RSP + 0x60],RDI
MOV byte ptr [RSP + 0x5f],AL
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x10],RAX
MOVZX EAX,byte ptr [RSP + 0x5f]
MOV qword ptr [RSP + 0x18],RAX
SUB RAX,0x9
JA 0x00187861
MOV RAX,qword ptr [RSP + 0x18]
LEA RCX,[0x2d9b68]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
CALL 0x001885c0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX],RCX
JMP 0x0018793b
caseD_2:
CALL 0x00188670
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX],RCX
JMP 0x0018793b
caseD_3:
LEA RDI,[0x2decbf]
CALL 0x00188720
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX],RCX
JMP 0x0018793b
caseD_8:
CALL 0x00188800
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX],RCX
JMP 0x0018793b
caseD_4:
MOV RAX,qword ptr [RSP + 0x10]
MOV byte ptr [RAX],0x0
JMP 0x0018793b
caseD_5:
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX],0x0
JMP 0x0018793b
caseD_6:
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX],0x0
JMP 0x0018793b
caseD_7:
MOV RAX,qword ptr [RSP + 0x10]
XORPS XMM0,XMM0
MOVSD qword ptr [RAX],XMM0
JMP 0x0018793b
caseD_0:
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX],0x0
JMP 0x0018793b
caseD_9:
JMP 0x00187861
default:
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX],0x0
CMP byte ptr [RSP + 0x5f],0x0
SETZ AL
XOR AL,0xff
XOR AL,0xff
TEST AL,0x1
JNZ 0x00187882
JMP 0x00187939
LAB_00187882:
MOV byte ptr [RSP + 0x23],0x1
MOV EDI,0x20
CALL 0x00152670
MOV qword ptr [RSP],RAX
LEA RDI,[RSP + 0x37]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x00152fe0
MOV RDX,qword ptr [RSP + 0x8]
LAB_001878a9:
LEA RSI,[0x2db47f]
LEA RDI,[RSP + 0x38]
CALL 0x0015b620
JMP 0x001878bc
LAB_001878bc:
MOV RDI,qword ptr [RSP]
XOR EAX,EAX
MOV ECX,EAX
MOV ESI,0x1f4
LEA RDX,[RSP + 0x38]
CALL 0x00162780
JMP 0x001878d5
LAB_001878d5:
MOV RDI,qword ptr [RSP]
MOV byte ptr [RSP + 0x23],0x0
LEA RSI,[0x364c78]
LEA RDX,[0x162920]
CALL 0x00152a60
LAB_00187939:
JMP 0x0018793b
LAB_0018793b:
ADD RSP,0x68
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t) */
void __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::json_value::json_value(json_value *this,char param_2)
{
ordered_map *poVar1;
vector *pvVar2;
string *psVar3;
byte_container_with_subtype *pbVar4;
int8 uVar5;
allocator local_31;
string local_30 [39];
char local_9;
json_value *local_8;
local_9 = param_2;
local_8 = this;
switch(param_2) {
case '\0':
*(int8 *)this = 0;
break;
case '\x01':
poVar1 = create<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
();
*(ordered_map **)this = poVar1;
break;
case '\x02':
pvVar2 = create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
();
*(vector **)this = pvVar2;
break;
case '\x03':
psVar3 = create<std::__cxx11::string,char_const(&)[1]>("");
*(string **)this = psVar3;
break;
case '\x04':
*this = (json_value)0x0;
break;
case '\x05':
*(int8 *)this = 0;
break;
case '\x06':
*(int8 *)this = 0;
break;
case '\a':
*(int8 *)this = 0;
break;
case '\b':
pbVar4 = create<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
();
*(byte_container_with_subtype **)this = pbVar4;
break;
case '\t':
default:
*(int8 *)this = 0;
if (param_2 == '\0') {
uVar5 = __cxa_allocate_exception(0x20);
std::allocator<char>::allocator();
/* try { // try from 001878a9 to 001878b9 has its CatchHandler @ 001878f3 */
std::__cxx11::string::string<std::allocator<char>>
(local_30,"961c151d2e87f2686a955a9be24d316f1362bf21 3.11.3",&local_31);
/* try { // try from 001878bc to 001878f0 has its CatchHandler @ 00187903 */
_ZN8nlohmann16json_abi_v3_11_36detail11other_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(uVar5,500,local_30,0);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar5,&detail::other_error::typeinfo,detail::other_error::~other_error);
}
}
return;
}
|
|
18,132
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t)
|
monkey531[P]llama/common/./json.hpp
|
json_value(value_t t)
{
switch (t)
{
case value_t::object:
{
object = create<object_t>();
break;
}
case value_t::array:
{
array = create<array_t>();
break;
}
case value_t::string:
{
string = create<string_t>("");
break;
}
case value_t::binary:
{
binary = create<binary_t>();
break;
}
case value_t::boolean:
{
boolean = static_cast<boolean_t>(false);
break;
}
case value_t::number_integer:
{
number_integer = static_cast<number_integer_t>(0);
break;
}
case value_t::number_unsigned:
{
number_unsigned = static_cast<number_unsigned_t>(0);
break;
}
case value_t::number_float:
{
number_float = static_cast<number_float_t>(0.0);
break;
}
case value_t::null:
{
object = nullptr; // silence warning, see #821
break;
}
case value_t::discarded:
default:
{
object = nullptr; // silence warning, see #821
if (JSON_HEDLEY_UNLIKELY(t == value_t::null))
{
JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.11.3", nullptr)); // LCOV_EXCL_LINE
}
break;
}
}
}
|
O1
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t):
pushq %rbx
movq %rdi, %rbx
cmpl $0x8, %esi
ja 0x29541
movl %esi, %eax
leaq 0x88bf4(%rip), %rcx # 0xb212c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq $0x0, (%rbx)
jmp 0x29599
movl $0x20, %edi
jmp 0x2955b
movb $0x0, (%rbx)
jmp 0x29599
movl $0x18, %edi
callq 0x19790
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
jmp 0x29596
leaq 0x89313(%rip), %rdi # 0xb288a
callq 0x29b74
jmp 0x29596
movl $0x28, %edi
callq 0x19790
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movb $0x0, 0x20(%rax)
movq %rax, (%rbx)
popq %rbx
retq
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_valueC2ENS0_6detail7value_tE:
push rbx
mov rbx, rdi
cmp esi, 8; switch 9 cases
ja short def_2953F; jumptable 000000000002953F default case, cases 0,5-7
mov eax, esi
lea rcx, jpt_2953F
movsxd rax, ds:(jpt_2953F - 0B212Ch)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
def_2953F:
mov qword ptr [rbx], 0; jumptable 000000000002953F default case, cases 0,5-7
jmp short loc_29599
loc_2954A:
mov edi, 20h ; ' '; jumptable 000000000002953F case 1
jmp short loc_2955B
loc_29551:
mov byte ptr [rbx], 0; jumptable 000000000002953F case 4
jmp short loc_29599
loc_29556:
mov edi, 18h; jumptable 000000000002953F case 2
loc_2955B:
call __Znwm; operator new(ulong)
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
mov qword ptr [rax+10h], 0
jmp short loc_29596
loc_29570:
lea rdi, byte_B288A; jumptable 000000000002953F case 3
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS9_JRA1_KcEEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<std::string,char const(&)[1]>(char const(&)[1] &&)
jmp short loc_29596
loc_2957E:
mov edi, 28h ; '('; jumptable 000000000002953F case 8
call __Znwm; operator new(ulong)
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
movups xmmword ptr [rax+10h], xmm0
mov byte ptr [rax+20h], 0
loc_29596:
mov [rbx], rax
loc_29599:
pop rbx
retn
|
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::json_value(
_BYTE *a1,
unsigned int a2)
{
long long result; // rax
unsigned long long v4; // rdi
result = a2;
switch ( a2 )
{
case 1u:
v4 = 32LL;
goto LABEL_6;
case 2u:
v4 = 24LL;
LABEL_6:
result = operator new(v4);
*(_OWORD *)result = 0LL;
*(_QWORD *)(result + 16) = 0LL;
goto LABEL_9;
case 3u:
result = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::create<std::string,char const(&)[1]>(&byte_B288A);
goto LABEL_9;
case 4u:
*a1 = 0;
return result;
case 8u:
result = operator new(0x28uLL);
*(_OWORD *)result = 0LL;
*(_OWORD *)(result + 16) = 0LL;
*(_BYTE *)(result + 32) = 0;
LABEL_9:
*(_QWORD *)a1 = result;
break;
default:
*(_QWORD *)a1 = 0LL;
break;
}
return result;
}
|
json_value:
PUSH RBX
MOV RBX,RDI
CMP ESI,0x8
JA 0x00129541
MOV EAX,ESI
LEA RCX,[0x1b212c]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
MOV qword ptr [RBX],0x0
JMP 0x00129599
caseD_1:
MOV EDI,0x20
JMP 0x0012955b
caseD_4:
MOV byte ptr [RBX],0x0
JMP 0x00129599
caseD_2:
MOV EDI,0x18
LAB_0012955b:
CALL 0x00119790
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x10],0x0
JMP 0x00129596
caseD_3:
LEA RDI,[0x1b288a]
CALL 0x00129b74
JMP 0x00129596
caseD_8:
MOV EDI,0x28
CALL 0x00119790
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOV byte ptr [RAX + 0x20],0x0
LAB_00129596:
MOV qword ptr [RBX],RAX
LAB_00129599:
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t) */
void __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::json_value::json_value(json_value *this,int4 param_2)
{
string *psVar1;
ulong uVar2;
switch(param_2) {
default:
*(int8 *)this = 0;
return;
case 1:
uVar2 = 0x20;
break;
case 2:
uVar2 = 0x18;
break;
case 3:
psVar1 = create<std::__cxx11::string,char_const(&)[1]>("");
goto LAB_00129596;
case 4:
*this = (json_value)0x0;
return;
case 8:
psVar1 = (string *)operator_new(0x28);
*(int8 *)psVar1 = 0;
*(int8 *)(psVar1 + 8) = 0;
*(int8 *)(psVar1 + 0x10) = 0;
*(int8 *)(psVar1 + 0x18) = 0;
psVar1[0x20] = (string)0x0;
goto LAB_00129596;
}
psVar1 = (string *)operator_new(uVar2);
*(int8 *)psVar1 = 0;
*(int8 *)(psVar1 + 8) = 0;
*(int8 *)(psVar1 + 0x10) = 0;
LAB_00129596:
*(string **)this = psVar1;
return;
}
|
|
18,133
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double)
|
monkey531[P]llama/common/json.hpp
|
boundaries compute_boundaries(FloatType value)
{
JSON_ASSERT(std::isfinite(value));
JSON_ASSERT(value > 0);
// Convert the IEEE representation into a diyfp.
//
// If v is denormal:
// value = 0.F * 2^(1 - bias) = ( F) * 2^(1 - bias - (p-1))
// If v is normalized:
// value = 1.F * 2^(E - bias) = (2^(p-1) + F) * 2^(E - bias - (p-1))
static_assert(std::numeric_limits<FloatType>::is_iec559,
"internal error: dtoa_short requires an IEEE-754 floating-point implementation");
constexpr int kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidden bit)
constexpr int kBias = std::numeric_limits<FloatType>::max_exponent - 1 + (kPrecision - 1);
constexpr int kMinExp = 1 - kBias;
constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1)
using bits_type = typename std::conditional<kPrecision == 24, std::uint32_t, std::uint64_t >::type;
const auto bits = static_cast<std::uint64_t>(reinterpret_bits<bits_type>(value));
const std::uint64_t E = bits >> (kPrecision - 1);
const std::uint64_t F = bits & (kHiddenBit - 1);
const bool is_denormal = E == 0;
const diyfp v = is_denormal
? diyfp(F, kMinExp)
: diyfp(F + kHiddenBit, static_cast<int>(E) - kBias);
// Compute the boundaries m- and m+ of the floating-point value
// v = f * 2^e.
//
// Determine v- and v+, the floating-point predecessor and successor if v,
// respectively.
//
// v- = v - 2^e if f != 2^(p-1) or e == e_min (A)
// = v - 2^(e-1) if f == 2^(p-1) and e > e_min (B)
//
// v+ = v + 2^e
//
// Let m- = (v- + v) / 2 and m+ = (v + v+) / 2. All real numbers _strictly_
// between m- and m+ round to v, regardless of how the input rounding
// algorithm breaks ties.
//
// ---+-------------+-------------+-------------+-------------+--- (A)
// v- m- v m+ v+
//
// -----------------+------+------+-------------+-------------+--- (B)
// v- m- v m+ v+
const bool lower_boundary_is_closer = F == 0 && E > 1;
const diyfp m_plus = diyfp(2 * v.f + 1, v.e - 1);
const diyfp m_minus = lower_boundary_is_closer
? diyfp(4 * v.f - 1, v.e - 2) // (B)
: diyfp(2 * v.f - 1, v.e - 1); // (A)
// Determine the normalized w+ = m+.
const diyfp w_plus = diyfp::normalize(m_plus);
// Determine w- = m- such that e_(w-) = e_(w+).
const diyfp w_minus = diyfp::normalize_to(m_minus, w_plus.e);
return {diyfp::normalize(v), w_minus, w_plus};
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %xmm0, %rax
movq %rax, %rcx
btrq $0x3f, %rcx
movabsq $0x7ff0000000000000, %rdx # imm = 0x7FF0000000000000
cmpq %rdx, %rcx
jge 0xb76ec
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xb7708
movq %rdi, %rbx
movabsq $0x10000000000000, %r14 # imm = 0x10000000000000
leaq -0x1(%r14), %rdx
andq %rax, %rdx
movq %rax, %rcx
shrq $0x34, %rcx
jne 0xb7643
leaq 0x1(,%rax,2), %rdi
addq %rax, %rax
movl $0xfffffbce, 0x4(%rsp) # imm = 0xFFFFFBCE
movl $0xfffffbcd, %esi # imm = 0xFFFFFBCD
jmp 0xb768b
movq %rdx, %r8
orq %r14, %r8
leal -0x433(%rcx), %esi
movl %esi, 0x4(%rsp)
testq %rdx, %rdx
setne %dl
shrq $0x35, %rax
sete %al
leaq 0x1(,%r8,2), %rdi
leal -0x434(%rcx), %esi
orb %dl, %al
jne 0xb7684
addl $0xfffffbcb, %ecx # imm = 0xFFFFFBCB
movabsq $0x3fffffffffffff, %rax # imm = 0x3FFFFFFFFFFFFF
jmp 0xb7693
leaq (%r8,%r8), %rax
movq %r8, %rdx
decq %rax
movl %esi, %ecx
movq %rdx, %r14
leaq 0x8(%rsp), %r15
movq %rax, (%r15)
movl %ecx, 0x8(%r15)
callq 0xb7858
movq %rax, %r12
movl %edx, %r13d
movq %r15, %rdi
movl %edx, %esi
callq 0xb789a
movq %rax, %r15
movl %edx, %ebp
movq %r14, %rdi
movl 0x4(%rsp), %esi
callq 0xb7858
movq %rax, (%rbx)
movl %edx, 0x8(%rbx)
movq %r15, 0x10(%rbx)
movl %ebp, 0x18(%rbx)
movq %r12, 0x20(%rbx)
movl %r13d, 0x28(%rbx)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x346d6(%rip), %rdi # 0xebdc9
leaq 0x2eb10(%rip), %rdx # 0xe620a
leaq 0x39d50(%rip), %rcx # 0xf1451
movl $0x42cb, %esi # imm = 0x42CB
jmp 0xb7722
leaq 0x346ba(%rip), %rdi # 0xebdc9
leaq 0x2eaf4(%rip), %rdx # 0xe620a
leaq 0x39e4d(%rip), %rcx # 0xf156a
movl $0x42cc, %esi # imm = 0x42CC
xorl %eax, %eax
callq 0x1aec0
|
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl18compute_boundariesIdEENS2_10boundariesET_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
movq rax, xmm0
mov rcx, rax
btr rcx, 3Fh ; '?'
mov rdx, 7FF0000000000000h
cmp rcx, rdx
jge loc_B76EC
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jbe loc_B7708
mov rbx, rdi
mov r14, 10000000000000h
lea rdx, [r14-1]
and rdx, rax
mov rcx, rax
shr rcx, 34h
jnz short loc_B7643
lea rdi, ds:1[rax*2]
add rax, rax
mov [rsp+48h+var_44], 0FFFFFBCEh
mov esi, 0FFFFFBCDh
jmp short loc_B768B
loc_B7643:
mov r8, rdx
or r8, r14
lea esi, [rcx-433h]
mov [rsp+48h+var_44], esi
test rdx, rdx
setnz dl
shr rax, 35h
setz al
lea rdi, ds:1[r8*2]
lea esi, [rcx-434h]
or al, dl
jnz short loc_B7684
add ecx, 0FFFFFBCBh
mov rax, 3FFFFFFFFFFFFFh
jmp short loc_B7693
loc_B7684:
lea rax, [r8+r8]
mov rdx, r8
loc_B768B:
dec rax
mov ecx, esi
mov r14, rdx
loc_B7693:
lea r15, [rsp+48h+var_40]
mov [r15], rax
mov [r15+8], ecx
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp9normalizeES3_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
mov r12, rax
mov r13d, edx
mov rdi, r15
mov esi, edx
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp12normalize_toERKS3_i; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize_to(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,int)
mov r15, rax
mov ebp, edx
mov rdi, r14
mov esi, [rsp+48h+var_44]
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp9normalizeES3_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
mov [rbx], rax
mov [rbx+8], edx
mov [rbx+10h], r15
mov [rbx+18h], ebp
mov [rbx+20h], r12
mov [rbx+28h], r13d
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_B76EC:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aStdIsfiniteVal; "std::isfinite(value)"
mov esi, 42CBh
jmp short loc_B7722
loc_B7708:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aValue0; "value > 0"
mov esi, 42CCh
loc_B7722:
xor eax, eax
call _ggml_abort
|
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(
long long a1,
double a2,
long long a3,
long long a4,
long long a5,
long long a6,
long long a7,
long long a8,
long long a9,
long long a10,
long long a11)
{
long long v12; // r14
long long v13; // rdx
long long v14; // rcx
long long v15; // rdi
long long v16; // rax
long long v17; // rsi
int v18; // ecx
long long v19; // rax
long long v20; // r12
unsigned int v21; // edx
unsigned int v22; // r13d
long long v23; // r15
int v24; // edx
int v25; // ebp
int v26; // edx
long long v28; // rsi
long long v29; // rdx
long long v30; // rcx
long long v31; // r8
long long v32; // r9
unsigned int v33; // [rsp+4h] [rbp-44h]
long long v34; // [rsp+8h] [rbp-40h] BYREF
int v35; // [rsp+10h] [rbp-38h]
if ( (*(_QWORD *)&a2 & 0x7FFFFFFFFFFFFFFFuLL) >= 0x7FF0000000000000LL )
{
v28 = 17099LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17099LL,
"GGML_ASSERT(%s) failed",
"std::isfinite(value)");
}
else
{
if ( a2 > 0.0 )
{
v12 = 0x10000000000000LL;
v13 = *(_QWORD *)&a2 & 0xFFFFFFFFFFFFFLL;
v14 = *(_QWORD *)&a2 >> 52;
if ( *(_QWORD *)&a2 >> 52 )
{
v33 = v14 - 1075;
v15 = 2 * (v13 | 0x10000000000000LL) + 1;
v17 = (unsigned int)(v14 - 1076);
if ( v13 == 0 && *(_QWORD *)&a2 >> 53 != 0LL )
{
v18 = v14 - 1077;
v19 = 0x3FFFFFFFFFFFFFLL;
LABEL_9:
v34 = v19;
v35 = v18;
v20 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(v15, v17);
v22 = v21;
v23 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize_to(&v34, v21);
v25 = v24;
*(_QWORD *)a1 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(v12, v33);
*(_DWORD *)(a1 + 8) = v26;
*(_QWORD *)(a1 + 16) = v23;
*(_DWORD *)(a1 + 24) = v25;
*(_QWORD *)(a1 + 32) = v20;
*(_DWORD *)(a1 + 40) = v22;
return a1;
}
v16 = 2 * (v13 | 0x10000000000000LL);
v13 |= 0x10000000000000uLL;
}
else
{
v15 = 2LL * *(_QWORD *)&a2 + 1;
v16 = 2LL * *(_QWORD *)&a2;
v33 = -1074;
v17 = 4294966221LL;
}
v19 = v16 - 1;
v18 = v17;
v12 = v13;
goto LABEL_9;
}
v28 = 17100LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17100LL,
"GGML_ASSERT(%s) failed",
"value > 0");
}
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
v28,
v29,
v30,
v31,
v32,
a8,
a9,
a10,
a11);
}
|
compute_boundaries<double>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOVQ RAX,XMM0
MOV RCX,RAX
BTR RCX,0x3f
MOV RDX,0x7ff0000000000000
CMP RCX,RDX
JGE 0x001b76ec
XORPD XMM1,XMM1
UCOMISD XMM0,XMM1
JBE 0x001b7708
MOV RBX,RDI
MOV R14,0x10000000000000
LEA RDX,[R14 + -0x1]
AND RDX,RAX
MOV RCX,RAX
SHR RCX,0x34
JNZ 0x001b7643
LEA RDI,[0x1 + RAX*0x2]
ADD RAX,RAX
MOV dword ptr [RSP + 0x4],0xfffffbce
MOV ESI,0xfffffbcd
JMP 0x001b768b
LAB_001b7643:
MOV R8,RDX
OR R8,R14
LEA ESI,[RCX + -0x433]
MOV dword ptr [RSP + 0x4],ESI
TEST RDX,RDX
SETNZ DL
SHR RAX,0x35
SETZ AL
LEA RDI,[0x1 + R8*0x2]
LEA ESI,[RCX + -0x434]
OR AL,DL
JNZ 0x001b7684
ADD ECX,0xfffffbcb
MOV RAX,0x3fffffffffffff
JMP 0x001b7693
LAB_001b7684:
LEA RAX,[R8 + R8*0x1]
MOV RDX,R8
LAB_001b768b:
DEC RAX
MOV ECX,ESI
MOV R14,RDX
LAB_001b7693:
LEA R15,[RSP + 0x8]
MOV qword ptr [R15],RAX
MOV dword ptr [R15 + 0x8],ECX
CALL 0x001b7858
MOV R12,RAX
MOV R13D,EDX
MOV RDI,R15
MOV ESI,EDX
CALL 0x001b789a
MOV R15,RAX
MOV EBP,EDX
MOV RDI,R14
MOV ESI,dword ptr [RSP + 0x4]
CALL 0x001b7858
MOV qword ptr [RBX],RAX
MOV dword ptr [RBX + 0x8],EDX
MOV qword ptr [RBX + 0x10],R15
MOV dword ptr [RBX + 0x18],EBP
MOV qword ptr [RBX + 0x20],R12
MOV dword ptr [RBX + 0x28],R13D
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001b76ec:
LEA RDI,[0x1ebdc9]
LEA RDX,[0x1e620a]
LEA RCX,[0x1f1451]
MOV ESI,0x42cb
JMP 0x001b7722
LAB_001b7708:
LEA RDI,[0x1ebdc9]
LEA RDX,[0x1e620a]
LEA RCX,[0x1f156a]
MOV ESI,0x42cc
LAB_001b7722:
XOR EAX,EAX
CALL 0x0011aec0
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double) */
dtoa_impl * __thiscall
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>
(dtoa_impl *this,double param_1)
{
uint uVar1;
char *pcVar2;
diyfp *pdVar3;
int8 uVar4;
diyfp *pdVar5;
diyfp *pdVar6;
diyfp *pdVar7;
int1 auVar8 [12];
int1 auVar9 [12];
int1 auVar10 [12];
int local_44;
long local_40;
int local_38;
if (0x7fefffffffffffff < (ulong)ABS(param_1)) {
pcVar2 = "std::isfinite(value)";
uVar4 = 0x42cb;
LAB_001b7722:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar4,
"GGML_ASSERT(%s) failed",pcVar2);
}
if (param_1 <= 0.0) {
pcVar2 = "value > 0";
uVar4 = 0x42cc;
goto LAB_001b7722;
}
pdVar7 = (diyfp *)0x10000000000000;
pdVar3 = (diyfp *)((ulong)param_1 & 0xfffffffffffff);
if ((ulong)param_1 >> 0x34 == 0) {
pdVar5 = (diyfp *)((long)param_1 * 2 + 1);
local_40 = (long)param_1 * 2;
local_44 = -0x432;
local_38 = -0x433;
pdVar6 = pdVar3;
}
else {
pdVar6 = (diyfp *)((ulong)pdVar3 | 0x10000000000000);
uVar1 = (uint)((ulong)param_1 >> 0x20);
local_44 = (uVar1 >> 0x14) - 0x433;
pdVar5 = (diyfp *)((long)pdVar6 * 2 + 1);
local_38 = (uVar1 >> 0x14) - 0x434;
if ((ulong)param_1 >> 0x35 != 0 && pdVar3 == (diyfp *)0x0) {
local_38 = (uVar1 >> 0x14) - 0x435;
local_40 = 0x3fffffffffffff;
goto LAB_001b7693;
}
local_40 = (long)pdVar6 * 2;
}
local_40 = local_40 + -1;
pdVar7 = pdVar6;
LAB_001b7693:
auVar8 = diyfp::normalize(pdVar5);
auVar9 = diyfp::normalize_to((diyfp *)&local_40,auVar8._8_4_);
auVar10 = diyfp::normalize(pdVar7,local_44);
*(int1 (*) [12])this = auVar10;
*(int1 (*) [12])(this + 0x10) = auVar9;
*(int1 (*) [12])(this + 0x20) = auVar8;
return this;
}
|
|
18,134
|
ma_tmp_disable_logging_for_table
|
eloqsql/storage/maria/ma_recovery.c
|
void _ma_tmp_disable_logging_for_table(MARIA_HA *info,
my_bool log_incomplete)
{
MARIA_SHARE *share= info->s;
DBUG_ENTER("_ma_tmp_disable_logging_for_table");
/*
We have to ensure that bitmap is flushed, as it's checking
that share->now_transactional is set
*/
if (share->now_transactional && share->data_file_type == BLOCK_RECORD)
_ma_bitmap_flush_all(share);
if (log_incomplete)
{
uchar log_data[FILEID_STORE_SIZE];
LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 1];
LSN lsn;
log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data;
log_array[TRANSLOG_INTERNAL_PARTS + 0].length= sizeof(log_data);
translog_write_record(&lsn, LOGREC_INCOMPLETE_LOG,
&dummy_transaction_object, info,
(translog_size_t) sizeof(log_data),
TRANSLOG_INTERNAL_PARTS + 1, log_array,
log_data, NULL);
}
/* if we disabled before writing the record, record wouldn't reach log */
share->now_transactional= FALSE;
/*
Reset state pointers. This is needed as in ALTER table we may do
commit followed by _ma_renable_logging_for_table and then
info->state may point to a state that was deleted by
_ma_trnman_end_trans_hook()
*/
share->state.no_logging= *info->state;
info->state= &share->state.no_logging;
info->switched_transactional= TRUE;
/*
Some code in ma_blockrec.c assumes a trn even if !now_transactional but in
this case it only reads trn->rec_lsn, which has to be LSN_IMPOSSIBLE and
should be now. info->trn may be NULL in maria_chk.
*/
if (info->trn == NULL)
{
info->trn= &dummy_transaction_object;
info->trn_next= 0;
info->trn_prev= 0;
}
DBUG_ASSERT(info->trn->rec_lsn == LSN_IMPOSSIBLE);
share->page_type= PAGECACHE_PLAIN_PAGE;
/* Functions below will pick up now_transactional and change callbacks */
_ma_set_data_pagecache_callbacks(&info->dfile, share);
_ma_set_index_pagecache_callbacks(&share->kfile, share);
_ma_bitmap_set_pagecache_callbacks(&share->bitmap.file, share);
DBUG_VOID_RETURN;
}
|
O3
|
c
|
ma_tmp_disable_logging_for_table:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movl %esi, %r15d
movq %rdi, %r14
movq (%rdi), %rbx
cmpb $0x0, 0x7e7(%rbx)
je 0x51daf
cmpl $0x3, 0x7d0(%rbx)
jne 0x51daf
movq %rbx, %rdi
callq 0x3cc33
testb %r15b, %r15b
je 0x51df9
leaq -0x1a(%rbp), %rax
leaq -0x60(%rbp), %r10
movq %rax, 0x20(%r10)
movq $0x2, 0x28(%r10)
subq $0x8, %rsp
leaq 0x3d35fd(%rip), %rdx # 0x4253d0
leaq -0x28(%rbp), %rdi
movl $0x25, %esi
movq %r14, %rcx
movl $0x2, %r8d
movl $0x3, %r9d
pushq $0x0
pushq %rax
pushq %r10
callq 0x2b425
addq $0x20, %rsp
movb $0x0, 0x7e7(%rbx)
leaq 0x88(%rbx), %rax
movq 0x20(%r14), %rcx
movq 0x30(%rcx), %rdx
movq %rdx, 0xb8(%rbx)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups 0x20(%rcx), %xmm2
movups %xmm2, 0xa8(%rbx)
movups %xmm1, 0x98(%rbx)
movups %xmm0, 0x88(%rbx)
movq %rax, 0x20(%r14)
movb $0x1, 0x687(%r14)
cmpq $0x0, 0x8(%r14)
jne 0x51e5c
leaq 0x3d3580(%rip), %rax # 0x4253d0
movq %rax, 0x8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
movl $0x1, 0x7d4(%rbx)
addq $0x470, %r14 # imm = 0x470
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5b25f
leaq 0x750(%rbx), %rdi
movq %rbx, %rsi
callq 0x5a07c
leaq 0xa50(%rbx), %rdi
movq %rbx, %rsi
callq 0x3c8a9
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
_ma_tmp_disable_logging_for_table:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 48h
mov r15d, esi
mov r14, rdi
mov rbx, [rdi]
cmp byte ptr [rbx+7E7h], 0
jz short loc_51DAF
cmp dword ptr [rbx+7D0h], 3
jnz short loc_51DAF
mov rdi, rbx
call _ma_bitmap_flush_all
loc_51DAF:
test r15b, r15b
jz short loc_51DF9
lea rax, [rbp+var_1A]
lea r10, [rbp+var_60]
mov [r10+20h], rax
mov qword ptr [r10+28h], 2
sub rsp, 8
lea rdx, dummy_transaction_object
lea rdi, [rbp+var_28]
mov esi, 25h ; '%'
mov rcx, r14
mov r8d, 2
mov r9d, 3
push 0
push rax
push r10
call translog_write_record
add rsp, 20h
loc_51DF9:
mov byte ptr [rbx+7E7h], 0
lea rax, [rbx+88h]
mov rcx, [r14+20h]
mov rdx, [rcx+30h]
mov [rbx+0B8h], rdx
movups xmm0, xmmword ptr [rcx]
movups xmm1, xmmword ptr [rcx+10h]
movups xmm2, xmmword ptr [rcx+20h]
movups xmmword ptr [rbx+0A8h], xmm2
movups xmmword ptr [rbx+98h], xmm1
movups xmmword ptr [rbx+88h], xmm0
mov [r14+20h], rax
mov byte ptr [r14+687h], 1
cmp qword ptr [r14+8], 0
jnz short loc_51E5C
lea rax, dummy_transaction_object
mov [r14+8], rax
xorps xmm0, xmm0
movups xmmword ptr [r14+10h], xmm0
loc_51E5C:
mov dword ptr [rbx+7D4h], 1
add r14, 470h
mov rdi, r14
mov rsi, rbx
call _ma_set_data_pagecache_callbacks
lea rdi, [rbx+750h]
mov rsi, rbx
call _ma_set_index_pagecache_callbacks
lea rdi, [rbx+0A50h]
mov rsi, rbx
call _ma_bitmap_set_pagecache_callbacks
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long ( * ma_tmp_disable_logging_for_table(long long a1, char a2))()
{
long long v2; // rbx
__int128 *v3; // rcx
__int128 v4; // xmm0
__int128 v5; // xmm1
__int128 v7; // [rsp+0h] [rbp-60h] BYREF
_WORD *v8; // [rsp+20h] [rbp-40h]
long long v9; // [rsp+28h] [rbp-38h]
_BYTE v10[14]; // [rsp+38h] [rbp-28h] BYREF
_WORD v11[13]; // [rsp+46h] [rbp-1Ah] BYREF
v2 = *(_QWORD *)a1;
if ( *(_BYTE *)(*(_QWORD *)a1 + 2023LL) && *(_DWORD *)(v2 + 2000) == 3 )
ma_bitmap_flush_all(*(_QWORD *)a1);
if ( a2 )
{
v8 = v11;
v9 = 2LL;
translog_write_record(
(unsigned long long)v10,
(long long *)((char *)&qword_20 + 5),
(long long)dummy_transaction_object,
(_QWORD *)a1,
2u,
3,
&v7,
v11,
0LL);
}
*(_BYTE *)(v2 + 2023) = 0;
v3 = *(__int128 **)(a1 + 32);
*(_QWORD *)(v2 + 184) = *((_QWORD *)v3 + 6);
v4 = *v3;
v5 = v3[1];
*(_OWORD *)(v2 + 168) = v3[2];
*(_OWORD *)(v2 + 152) = v5;
*(_OWORD *)(v2 + 136) = v4;
*(_QWORD *)(a1 + 32) = v2 + 136;
*(_BYTE *)(a1 + 1671) = 1;
if ( !*(_QWORD *)(a1 + 8) )
{
*(_QWORD *)(a1 + 8) = dummy_transaction_object;
*(_OWORD *)(a1 + 16) = 0LL;
}
*(_DWORD *)(v2 + 2004) = 1;
ma_set_data_pagecache_callbacks(a1 + 1136, v2);
ma_set_index_pagecache_callbacks(v2 + 1872, v2);
return ma_bitmap_set_pagecache_callbacks((_QWORD *)(v2 + 2640), v2);
}
|
_ma_tmp_disable_logging_for_table:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV R15D,ESI
MOV R14,RDI
MOV RBX,qword ptr [RDI]
CMP byte ptr [RBX + 0x7e7],0x0
JZ 0x00151daf
CMP dword ptr [RBX + 0x7d0],0x3
JNZ 0x00151daf
MOV RDI,RBX
CALL 0x0013cc33
LAB_00151daf:
TEST R15B,R15B
JZ 0x00151df9
LEA RAX,[RBP + -0x1a]
LEA R10,[RBP + -0x60]
MOV qword ptr [R10 + 0x20],RAX
MOV qword ptr [R10 + 0x28],0x2
SUB RSP,0x8
LEA RDX,[0x5253d0]
LEA RDI,[RBP + -0x28]
MOV ESI,0x25
MOV RCX,R14
MOV R8D,0x2
MOV R9D,0x3
PUSH 0x0
PUSH RAX
PUSH R10
CALL 0x0012b425
ADD RSP,0x20
LAB_00151df9:
MOV byte ptr [RBX + 0x7e7],0x0
LEA RAX,[RBX + 0x88]
MOV RCX,qword ptr [R14 + 0x20]
MOV RDX,qword ptr [RCX + 0x30]
MOV qword ptr [RBX + 0xb8],RDX
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS XMM1,xmmword ptr [RCX + 0x10]
MOVUPS XMM2,xmmword ptr [RCX + 0x20]
MOVUPS xmmword ptr [RBX + 0xa8],XMM2
MOVUPS xmmword ptr [RBX + 0x98],XMM1
MOVUPS xmmword ptr [RBX + 0x88],XMM0
MOV qword ptr [R14 + 0x20],RAX
MOV byte ptr [R14 + 0x687],0x1
CMP qword ptr [R14 + 0x8],0x0
JNZ 0x00151e5c
LEA RAX,[0x5253d0]
MOV qword ptr [R14 + 0x8],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14 + 0x10],XMM0
LAB_00151e5c:
MOV dword ptr [RBX + 0x7d4],0x1
ADD R14,0x470
MOV RDI,R14
MOV RSI,RBX
CALL 0x0015b25f
LEA RDI,[RBX + 0x750]
MOV RSI,RBX
CALL 0x0015a07c
LEA RDI,[RBX + 0xa50]
MOV RSI,RBX
CALL 0x0013c8a9
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
RET
|
void _ma_tmp_disable_logging_for_table(long *param_1,char param_2)
{
long lVar1;
int4 *puVar2;
int4 uVar3;
int4 uVar4;
int4 uVar5;
int4 uVar6;
int4 uVar7;
int4 uVar8;
int4 uVar9;
int4 uVar10;
int4 uVar11;
int4 uVar12;
int4 uVar13;
int1 local_68 [32];
int1 *local_48;
int8 local_40;
int1 local_30 [14];
int1 local_22 [2];
lVar1 = *param_1;
if ((*(char *)(lVar1 + 0x7e7) != '\0') && (*(int *)(lVar1 + 2000) == 3)) {
_ma_bitmap_flush_all(lVar1);
}
if (param_2 != '\0') {
local_48 = local_22;
local_40 = 2;
translog_write_record(local_30,0x25,dummy_transaction_object,param_1,2,3,local_68,local_48,0);
}
*(int1 *)(lVar1 + 0x7e7) = 0;
puVar2 = (int4 *)param_1[4];
*(int8 *)(lVar1 + 0xb8) = *(int8 *)(puVar2 + 0xc);
uVar3 = *puVar2;
uVar4 = puVar2[1];
uVar5 = puVar2[2];
uVar6 = puVar2[3];
uVar7 = puVar2[4];
uVar8 = puVar2[5];
uVar9 = puVar2[6];
uVar10 = puVar2[7];
uVar11 = puVar2[9];
uVar12 = puVar2[10];
uVar13 = puVar2[0xb];
*(int4 *)(lVar1 + 0xa8) = puVar2[8];
*(int4 *)(lVar1 + 0xac) = uVar11;
*(int4 *)(lVar1 + 0xb0) = uVar12;
*(int4 *)(lVar1 + 0xb4) = uVar13;
*(int4 *)(lVar1 + 0x98) = uVar7;
*(int4 *)(lVar1 + 0x9c) = uVar8;
*(int4 *)(lVar1 + 0xa0) = uVar9;
*(int4 *)(lVar1 + 0xa4) = uVar10;
*(int4 *)(lVar1 + 0x88) = uVar3;
*(int4 *)(lVar1 + 0x8c) = uVar4;
*(int4 *)(lVar1 + 0x90) = uVar5;
*(int4 *)(lVar1 + 0x94) = uVar6;
param_1[4] = lVar1 + 0x88;
*(int1 *)((long)param_1 + 0x687) = 1;
if (param_1[1] == 0) {
param_1[1] = (long)dummy_transaction_object;
param_1[2] = 0;
param_1[3] = 0;
}
*(int4 *)(lVar1 + 0x7d4) = 1;
_ma_set_data_pagecache_callbacks(param_1 + 0x8e,lVar1);
_ma_set_index_pagecache_callbacks(lVar1 + 0x750,lVar1);
_ma_bitmap_set_pagecache_callbacks(lVar1 + 0xa50,lVar1);
return;
}
|
|
18,135
|
ftxui::(anonymous namespace)::UpgradeLeftRight(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
|
Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/screen/screen.cpp
|
void UpgradeLeftRight(std::string& left, std::string& right) {
const auto it_left = tile_encoding.find(left);
if (it_left == tile_encoding.end()) {
return;
}
const auto it_right = tile_encoding.find(right);
if (it_right == tile_encoding.end()) {
return;
}
if (it_left->second.right == 0 && it_right->second.left != 0) {
TileEncoding encoding_left = it_left->second;
encoding_left.right = it_right->second.left;
const auto it_left_upgrade = tile_encoding_inverse.find(encoding_left);
if (it_left_upgrade != tile_encoding_inverse.end()) {
left = it_left_upgrade->second;
}
}
if (it_right->second.left == 0 && it_left->second.right != 0) {
TileEncoding encoding_right = it_right->second;
encoding_right.left = it_left->second.right;
const auto it_right_upgrade = tile_encoding_inverse.find(encoding_right);
if (it_right_upgrade != tile_encoding_inverse.end()) {
right = it_right_upgrade->second;
}
}
}
|
O0
|
cpp
|
ftxui::(anonymous namespace)::UpgradeLeftRight(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&):
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rsi
leaq 0x57a6d(%rip), %rdi # 0xe04f8
callq 0x89f10
movq %rax, -0x18(%rbp)
leaq 0x57a5d(%rip), %rdi # 0xe04f8
callq 0x89f70
movq %rax, -0x20(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x89f40
testb $0x1, %al
jne 0x88ab7
jmp 0x88abc
jmp 0x88c96
movq -0x10(%rbp), %rsi
leaq 0x57a31(%rip), %rdi # 0xe04f8
callq 0x89f10
movq %rax, -0x28(%rbp)
leaq 0x57a21(%rip), %rdi # 0xe04f8
callq 0x89f70
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x89f40
testb $0x1, %al
jne 0x88af3
jmp 0x88af8
jmp 0x88c96
leaq -0x18(%rbp), %rdi
callq 0x89fa0
movw 0x20(%rax), %ax
shrw $0x4, %ax
andw $0x3, %ax
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x88bc7
leaq -0x28(%rbp), %rdi
callq 0x89fa0
movw 0x20(%rax), %ax
andw $0x3, %ax
movzbl %al, %eax
cmpl $0x0, %eax
je 0x88bc7
leaq -0x18(%rbp), %rdi
callq 0x89fa0
movw 0x20(%rax), %ax
movw %ax, -0x32(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x89fa0
movw 0x20(%rax), %ax
andw $0x3, %ax
movzbl %al, %eax
movw %ax, %cx
movw -0x32(%rbp), %ax
andw $0x3, %cx
shlw $0x4, %cx
andw $-0x31, %ax
orw %cx, %ax
movw %ax, -0x32(%rbp)
leaq 0x579ac(%rip), %rdi # 0xe0528
leaq -0x32(%rbp), %rsi
callq 0x89fc0
movq %rax, -0x40(%rbp)
leaq 0x57998(%rip), %rdi # 0xe0528
callq 0x8a020
movq %rax, -0x48(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x89ff0
testb $0x1, %al
jne 0x88bac
jmp 0x88bc5
leaq -0x40(%rbp), %rdi
callq 0x8a050
movq %rax, %rsi
addq $0x8, %rsi
movq -0x8(%rbp), %rdi
callq 0xd060
jmp 0x88bc7
leaq -0x28(%rbp), %rdi
callq 0x89fa0
movw 0x20(%rax), %ax
andw $0x3, %ax
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x88c96
leaq -0x18(%rbp), %rdi
callq 0x89fa0
movw 0x20(%rax), %ax
shrw $0x4, %ax
andw $0x3, %ax
movzbl %al, %eax
cmpl $0x0, %eax
je 0x88c96
leaq -0x28(%rbp), %rdi
callq 0x89fa0
movw 0x20(%rax), %ax
movw %ax, -0x4a(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x89fa0
movw 0x20(%rax), %ax
shrw $0x4, %ax
andw $0x3, %ax
movzbl %al, %eax
movw %ax, %cx
movw -0x4a(%rbp), %ax
andw $0x3, %cx
andw $-0x4, %ax
orw %cx, %ax
movw %ax, -0x4a(%rbp)
leaq 0x578dd(%rip), %rdi # 0xe0528
leaq -0x4a(%rbp), %rsi
callq 0x89fc0
movq %rax, -0x58(%rbp)
leaq 0x578c9(%rip), %rdi # 0xe0528
callq 0x8a020
movq %rax, -0x60(%rbp)
leaq -0x58(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x89ff0
testb $0x1, %al
jne 0x88c7b
jmp 0x88c94
leaq -0x58(%rbp), %rdi
callq 0x8a050
movq %rax, %rsi
addq $0x8, %rsi
movq -0x10(%rbp), %rdi
callq 0xd060
jmp 0x88c96
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
|
_ZN5ftxui12_GLOBAL__N_116UpgradeLeftRightERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rsi, [rbp+var_8]
lea rdi, _ZN5ftxui12_GLOBAL__N_113tile_encodingB5cxx11E; ftxui::`anonymous namespace'::tile_encoding
call _ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5ftxui12_GLOBAL__N_112TileEncodingESt4lessIS5_ESaISt4pairIKS5_S8_EEE4findERSC_; std::map<std::string,ftxui::`anonymous namespace'::TileEncoding>::find(std::string const&)
mov [rbp+var_18], rax
lea rdi, _ZN5ftxui12_GLOBAL__N_113tile_encodingB5cxx11E; ftxui::`anonymous namespace'::tile_encoding
call _ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5ftxui12_GLOBAL__N_112TileEncodingESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv; std::map<std::string,ftxui::`anonymous namespace'::TileEncoding>::end(void)
mov [rbp+var_20], rax
lea rdi, [rbp+var_18]
lea rsi, [rbp+var_20]
call _ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5ftxui12_GLOBAL__N_112TileEncodingEEESE_; std::operator==(std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>> const&,std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>> const&)
test al, 1
jnz short loc_88AB7
jmp short loc_88ABC
loc_88AB7:
jmp loc_88C96
loc_88ABC:
mov rsi, [rbp+var_10]
lea rdi, _ZN5ftxui12_GLOBAL__N_113tile_encodingB5cxx11E; ftxui::`anonymous namespace'::tile_encoding
call _ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5ftxui12_GLOBAL__N_112TileEncodingESt4lessIS5_ESaISt4pairIKS5_S8_EEE4findERSC_; std::map<std::string,ftxui::`anonymous namespace'::TileEncoding>::find(std::string const&)
mov [rbp+var_28], rax
lea rdi, _ZN5ftxui12_GLOBAL__N_113tile_encodingB5cxx11E; ftxui::`anonymous namespace'::tile_encoding
call _ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5ftxui12_GLOBAL__N_112TileEncodingESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv; std::map<std::string,ftxui::`anonymous namespace'::TileEncoding>::end(void)
mov [rbp+var_30], rax
lea rdi, [rbp+var_28]
lea rsi, [rbp+var_30]
call _ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5ftxui12_GLOBAL__N_112TileEncodingEEESE_; std::operator==(std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>> const&,std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>> const&)
test al, 1
jnz short loc_88AF3
jmp short loc_88AF8
loc_88AF3:
jmp loc_88C96
loc_88AF8:
lea rdi, [rbp+var_18]
call _ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5ftxui12_GLOBAL__N_112TileEncodingEEEptEv; std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(void)
mov ax, [rax+20h]
shr ax, 4
and ax, 3
movzx eax, al
cmp eax, 0
jnz loc_88BC7
lea rdi, [rbp+var_28]
call _ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5ftxui12_GLOBAL__N_112TileEncodingEEEptEv; std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(void)
mov ax, [rax+20h]
and ax, 3
movzx eax, al
cmp eax, 0
jz loc_88BC7
lea rdi, [rbp+var_18]
call _ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5ftxui12_GLOBAL__N_112TileEncodingEEEptEv; std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(void)
mov ax, [rax+20h]
mov [rbp+var_32], ax
lea rdi, [rbp+var_28]
call _ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5ftxui12_GLOBAL__N_112TileEncodingEEEptEv; std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(void)
mov ax, [rax+20h]
and ax, 3
movzx eax, al
mov cx, ax
mov ax, [rbp+var_32]
and cx, 3
shl cx, 4
and ax, 0FFCFh
or ax, cx
mov [rbp+var_32], ax
lea rdi, _ZN5ftxui12_GLOBAL__N_121tile_encoding_inverseB5cxx11E; ftxui::`anonymous namespace'::tile_encoding_inverse
lea rsi, [rbp+var_32]
call _ZNKSt3mapIN5ftxui12_GLOBAL__N_112TileEncodingENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS2_ESaISt4pairIKS2_S8_EEE4findERSC_; std::map<ftxui::`anonymous namespace'::TileEncoding,std::string>::find(ftxui::`anonymous namespace'::TileEncoding const&)
mov [rbp+var_40], rax
lea rdi, _ZN5ftxui12_GLOBAL__N_121tile_encoding_inverseB5cxx11E; ftxui::`anonymous namespace'::tile_encoding_inverse
call _ZNKSt3mapIN5ftxui12_GLOBAL__N_112TileEncodingENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS2_ESaISt4pairIKS2_S8_EEE3endEv; std::map<ftxui::`anonymous namespace'::TileEncoding,std::string>::end(void)
mov [rbp+var_48], rax
lea rdi, [rbp+var_40]
lea rsi, [rbp+var_48]
call _ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKN5ftxui12_GLOBAL__N_112TileEncodingENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESE_; std::operator!=(std::_Rb_tree_const_iterator<std::pair<ftxui::`anonymous namespace'::TileEncoding const,std::string>> const&,std::_Rb_tree_const_iterator<std::pair<ftxui::`anonymous namespace'::TileEncoding const,std::string>> const&)
test al, 1
jnz short loc_88BAC
jmp short loc_88BC5
loc_88BAC:
lea rdi, [rbp+var_40]
call _ZNKSt23_Rb_tree_const_iteratorISt4pairIKN5ftxui12_GLOBAL__N_112TileEncodingENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEptEv; std::_Rb_tree_const_iterator<std::pair<ftxui::`anonymous namespace'::TileEncoding const,std::string>>::operator->(void)
mov rsi, rax
add rsi, 8
mov rdi, [rbp+var_8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
loc_88BC5:
jmp short $+2
loc_88BC7:
lea rdi, [rbp+var_28]
call _ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5ftxui12_GLOBAL__N_112TileEncodingEEEptEv; std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(void)
mov ax, [rax+20h]
and ax, 3
movzx eax, al
cmp eax, 0
jnz loc_88C96
lea rdi, [rbp+var_18]
call _ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5ftxui12_GLOBAL__N_112TileEncodingEEEptEv; std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(void)
mov ax, [rax+20h]
shr ax, 4
and ax, 3
movzx eax, al
cmp eax, 0
jz loc_88C96
lea rdi, [rbp+var_28]
call _ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5ftxui12_GLOBAL__N_112TileEncodingEEEptEv; std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(void)
mov ax, [rax+20h]
mov [rbp+var_4A], ax
lea rdi, [rbp+var_18]
call _ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5ftxui12_GLOBAL__N_112TileEncodingEEEptEv; std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(void)
mov ax, [rax+20h]
shr ax, 4
and ax, 3
movzx eax, al
mov cx, ax
mov ax, [rbp+var_4A]
and cx, 3
and ax, 0FFFCh
or ax, cx
mov [rbp+var_4A], ax
lea rdi, _ZN5ftxui12_GLOBAL__N_121tile_encoding_inverseB5cxx11E; ftxui::`anonymous namespace'::tile_encoding_inverse
lea rsi, [rbp+var_4A]
call _ZNKSt3mapIN5ftxui12_GLOBAL__N_112TileEncodingENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS2_ESaISt4pairIKS2_S8_EEE4findERSC_; std::map<ftxui::`anonymous namespace'::TileEncoding,std::string>::find(ftxui::`anonymous namespace'::TileEncoding const&)
mov [rbp+var_58], rax
lea rdi, _ZN5ftxui12_GLOBAL__N_121tile_encoding_inverseB5cxx11E; ftxui::`anonymous namespace'::tile_encoding_inverse
call _ZNKSt3mapIN5ftxui12_GLOBAL__N_112TileEncodingENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS2_ESaISt4pairIKS2_S8_EEE3endEv; std::map<ftxui::`anonymous namespace'::TileEncoding,std::string>::end(void)
mov [rbp+var_60], rax
lea rdi, [rbp+var_58]
lea rsi, [rbp+var_60]
call _ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKN5ftxui12_GLOBAL__N_112TileEncodingENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESE_; std::operator!=(std::_Rb_tree_const_iterator<std::pair<ftxui::`anonymous namespace'::TileEncoding const,std::string>> const&,std::_Rb_tree_const_iterator<std::pair<ftxui::`anonymous namespace'::TileEncoding const,std::string>> const&)
test al, 1
jnz short loc_88C7B
jmp short loc_88C94
loc_88C7B:
lea rdi, [rbp+var_58]
call _ZNKSt23_Rb_tree_const_iteratorISt4pairIKN5ftxui12_GLOBAL__N_112TileEncodingENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEptEv; std::_Rb_tree_const_iterator<std::pair<ftxui::`anonymous namespace'::TileEncoding const,std::string>>::operator->(void)
mov rsi, rax
add rsi, 8
mov rdi, [rbp+var_10]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
loc_88C94:
jmp short $+2
loc_88C96:
add rsp, 60h
pop rbp
retn
|
long long ftxui::`anonymous namespace'::UpgradeLeftRight(long long a1, long long a2)
{
long long result; // rax
long long v3; // rsi
long long v4; // rax
long long v5; // [rsp+0h] [rbp-60h] BYREF
long long v6; // [rsp+8h] [rbp-58h] BYREF
__int16 v7; // [rsp+16h] [rbp-4Ah] BYREF
long long v8; // [rsp+18h] [rbp-48h] BYREF
long long v9; // [rsp+20h] [rbp-40h] BYREF
__int16 v10; // [rsp+2Eh] [rbp-32h] BYREF
long long v11; // [rsp+30h] [rbp-30h] BYREF
long long v12; // [rsp+38h] [rbp-28h] BYREF
long long v13; // [rsp+40h] [rbp-20h] BYREF
long long v14; // [rsp+48h] [rbp-18h] BYREF
long long v15; // [rsp+50h] [rbp-10h]
long long v16; // [rsp+58h] [rbp-8h]
v16 = a1;
v15 = a2;
v14 = std::map<std::string,ftxui::`anonymous namespace'::TileEncoding>::find(
&ftxui::`anonymous namespace'::tile_encoding[abi:cxx11],
a1);
v13 = std::map<std::string,ftxui::`anonymous namespace'::TileEncoding>::end(&ftxui::`anonymous namespace'::tile_encoding[abi:cxx11]);
result = std::operator==(&v14, &v13);
if ( (result & 1) == 0 )
{
v12 = std::map<std::string,ftxui::`anonymous namespace'::TileEncoding>::find(
&ftxui::`anonymous namespace'::tile_encoding[abi:cxx11],
v15);
v11 = std::map<std::string,ftxui::`anonymous namespace'::TileEncoding>::end(&ftxui::`anonymous namespace'::tile_encoding[abi:cxx11]);
result = std::operator==(&v12, &v11);
if ( (result & 1) == 0 )
{
if ( ((*(_WORD *)(std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(&v14)
+ 32) >> 4) & 3) == 0
&& (*(_WORD *)(std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(&v12)
+ 32) & 3) != 0 )
{
v10 = *(_WORD *)(std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(&v14)
+ 32);
v10 = (16
* (*(_WORD *)(std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(&v12)
+ 32) & 3)) | v10 & 0xFFCF;
v9 = std::map<ftxui::`anonymous namespace'::TileEncoding,std::string>::find(
&ftxui::`anonymous namespace'::tile_encoding_inverse[abi:cxx11],
&v10);
v8 = std::map<ftxui::`anonymous namespace'::TileEncoding,std::string>::end(&ftxui::`anonymous namespace'::tile_encoding_inverse[abi:cxx11]);
if ( (std::operator!=(&v9, &v8) & 1) != 0 )
{
v3 = std::_Rb_tree_const_iterator<std::pair<ftxui::`anonymous namespace'::TileEncoding const,std::string>>::operator->(&v9)
+ 8;
std::string::operator=(v16, v3);
}
}
result = *(_WORD *)(std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(&v12)
+ 32) & 3;
if ( !(_DWORD)result )
{
result = (*(_WORD *)(std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(&v14)
+ 32) >> 4) & 3;
if ( (_DWORD)result )
{
v7 = *(_WORD *)(std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(&v12)
+ 32);
v7 = (*(_WORD *)(std::_Rb_tree_const_iterator<std::pair<std::string const,ftxui::`anonymous namespace'::TileEncoding>>::operator->(&v14)
+ 32) >> 4) & 3 | v7 & 0xFFFC;
v6 = std::map<ftxui::`anonymous namespace'::TileEncoding,std::string>::find(
&ftxui::`anonymous namespace'::tile_encoding_inverse[abi:cxx11],
&v7);
v5 = std::map<ftxui::`anonymous namespace'::TileEncoding,std::string>::end(&ftxui::`anonymous namespace'::tile_encoding_inverse[abi:cxx11]);
result = std::operator!=(&v6, &v5);
if ( (result & 1) != 0 )
{
v4 = std::_Rb_tree_const_iterator<std::pair<ftxui::`anonymous namespace'::TileEncoding const,std::string>>::operator->(&v6);
return std::string::operator=(v15, v4 + 8);
}
}
}
}
}
return result;
}
|
UpgradeLeftRight:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RSI,qword ptr [RBP + -0x8]
LEA RDI,[0x1e04f8]
CALL 0x00189f10
MOV qword ptr [RBP + -0x18],RAX
LEA RDI,[0x1e04f8]
CALL 0x00189f70
MOV qword ptr [RBP + -0x20],RAX
LEA RDI,[RBP + -0x18]
LEA RSI,[RBP + -0x20]
CALL 0x00189f40
TEST AL,0x1
JNZ 0x00188ab7
JMP 0x00188abc
LAB_00188ab7:
JMP 0x00188c96
LAB_00188abc:
MOV RSI,qword ptr [RBP + -0x10]
LEA RDI,[0x1e04f8]
CALL 0x00189f10
MOV qword ptr [RBP + -0x28],RAX
LEA RDI,[0x1e04f8]
CALL 0x00189f70
MOV qword ptr [RBP + -0x30],RAX
LEA RDI,[RBP + -0x28]
LEA RSI,[RBP + -0x30]
CALL 0x00189f40
TEST AL,0x1
JNZ 0x00188af3
JMP 0x00188af8
LAB_00188af3:
JMP 0x00188c96
LAB_00188af8:
LEA RDI,[RBP + -0x18]
CALL 0x00189fa0
MOV AX,word ptr [RAX + 0x20]
SHR AX,0x4
AND AX,0x3
MOVZX EAX,AL
CMP EAX,0x0
JNZ 0x00188bc7
LEA RDI,[RBP + -0x28]
CALL 0x00189fa0
MOV AX,word ptr [RAX + 0x20]
AND AX,0x3
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x00188bc7
LEA RDI,[RBP + -0x18]
CALL 0x00189fa0
MOV AX,word ptr [RAX + 0x20]
MOV word ptr [RBP + -0x32],AX
LEA RDI,[RBP + -0x28]
CALL 0x00189fa0
MOV AX,word ptr [RAX + 0x20]
AND AX,0x3
MOVZX EAX,AL
MOV CX,AX
MOV AX,word ptr [RBP + -0x32]
AND CX,0x3
SHL CX,0x4
AND AX,0xffcf
OR AX,CX
MOV word ptr [RBP + -0x32],AX
LEA RDI,[0x1e0528]
LEA RSI,[RBP + -0x32]
CALL 0x00189fc0
MOV qword ptr [RBP + -0x40],RAX
LEA RDI,[0x1e0528]
CALL 0x0018a020
MOV qword ptr [RBP + -0x48],RAX
LEA RDI,[RBP + -0x40]
LEA RSI,[RBP + -0x48]
CALL 0x00189ff0
TEST AL,0x1
JNZ 0x00188bac
JMP 0x00188bc5
LAB_00188bac:
LEA RDI,[RBP + -0x40]
CALL 0x0018a050
MOV RSI,RAX
ADD RSI,0x8
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0010d060
LAB_00188bc5:
JMP 0x00188bc7
LAB_00188bc7:
LEA RDI,[RBP + -0x28]
CALL 0x00189fa0
MOV AX,word ptr [RAX + 0x20]
AND AX,0x3
MOVZX EAX,AL
CMP EAX,0x0
JNZ 0x00188c96
LEA RDI,[RBP + -0x18]
CALL 0x00189fa0
MOV AX,word ptr [RAX + 0x20]
SHR AX,0x4
AND AX,0x3
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x00188c96
LEA RDI,[RBP + -0x28]
CALL 0x00189fa0
MOV AX,word ptr [RAX + 0x20]
MOV word ptr [RBP + -0x4a],AX
LEA RDI,[RBP + -0x18]
CALL 0x00189fa0
MOV AX,word ptr [RAX + 0x20]
SHR AX,0x4
AND AX,0x3
MOVZX EAX,AL
MOV CX,AX
MOV AX,word ptr [RBP + -0x4a]
AND CX,0x3
AND AX,0xfffc
OR AX,CX
MOV word ptr [RBP + -0x4a],AX
LEA RDI,[0x1e0528]
LEA RSI,[RBP + -0x4a]
CALL 0x00189fc0
MOV qword ptr [RBP + -0x58],RAX
LEA RDI,[0x1e0528]
CALL 0x0018a020
MOV qword ptr [RBP + -0x60],RAX
LEA RDI,[RBP + -0x58]
LEA RSI,[RBP + -0x60]
CALL 0x00189ff0
TEST AL,0x1
JNZ 0x00188c7b
JMP 0x00188c94
LAB_00188c7b:
LEA RDI,[RBP + -0x58]
CALL 0x0018a050
MOV RSI,RAX
ADD RSI,0x8
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0010d060
LAB_00188c94:
JMP 0x00188c96
LAB_00188c96:
ADD RSP,0x60
POP RBP
RET
|
/* ftxui::(anonymous namespace)::UpgradeLeftRight(std::__cxx11::string&, std::__cxx11::string&) */
void ftxui::(anonymous_namespace)::UpgradeLeftRight(string *param_1,string *param_2)
{
ulong uVar1;
long lVar2;
int8 local_68;
int8 local_60;
ushort local_52;
int8 local_50;
int8 local_48;
ushort local_3a;
int8 local_38;
int8 local_30;
int8 local_28;
int8 local_20;
string *local_18;
string *local_10;
local_18 = param_2;
local_10 = param_1;
local_20 = std::
map<std::__cxx11::string,ftxui::(anonymous_namespace)::TileEncoding,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>>
::find((map<std::__cxx11::string,ftxui::(anonymous_namespace)::TileEncoding,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>>
*)tile_encoding_abi_cxx11_,param_1);
local_28 = std::
map<std::__cxx11::string,ftxui::(anonymous_namespace)::TileEncoding,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>>
::end((map<std::__cxx11::string,ftxui::(anonymous_namespace)::TileEncoding,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>>
*)tile_encoding_abi_cxx11_);
uVar1 = std::operator==((_Rb_tree_const_iterator *)&local_20,(_Rb_tree_const_iterator *)&local_28)
;
if ((uVar1 & 1) == 0) {
local_30 = std::
map<std::__cxx11::string,ftxui::(anonymous_namespace)::TileEncoding,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>>
::find((map<std::__cxx11::string,ftxui::(anonymous_namespace)::TileEncoding,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>>
*)tile_encoding_abi_cxx11_,local_18);
local_38 = std::
map<std::__cxx11::string,ftxui::(anonymous_namespace)::TileEncoding,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>>
::end((map<std::__cxx11::string,ftxui::(anonymous_namespace)::TileEncoding,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>>
*)tile_encoding_abi_cxx11_);
uVar1 = std::operator==((_Rb_tree_const_iterator *)&local_30,
(_Rb_tree_const_iterator *)&local_38);
if ((uVar1 & 1) == 0) {
lVar2 = std::
_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
::operator->((_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
*)&local_20);
if (((*(ushort *)(lVar2 + 0x20) >> 4 & 3) == 0) &&
(lVar2 = std::
_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
::operator->((_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
*)&local_30), (*(ushort *)(lVar2 + 0x20) & 3) != 0)) {
lVar2 = std::
_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
::operator->((_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
*)&local_20);
local_3a = *(ushort *)(lVar2 + 0x20);
lVar2 = std::
_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
::operator->((_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
*)&local_30);
local_3a = local_3a & 0xffcf | (*(ushort *)(lVar2 + 0x20) & 3) << 4;
local_48 = std::
map<ftxui::(anonymous_namespace)::TileEncoding,std::__cxx11::string,std::less<ftxui::(anonymous_namespace)::TileEncoding>,std::allocator<std::pair<ftxui::(anonymous_namespace)::TileEncoding_const,std::__cxx11::string>>>
::find((map<ftxui::(anonymous_namespace)::TileEncoding,std::__cxx11::string,std::less<ftxui::(anonymous_namespace)::TileEncoding>,std::allocator<std::pair<ftxui::(anonymous_namespace)::TileEncoding_const,std::__cxx11::string>>>
*)tile_encoding_inverse_abi_cxx11_,(TileEncoding *)&local_3a);
local_50 = std::
map<ftxui::(anonymous_namespace)::TileEncoding,std::__cxx11::string,std::less<ftxui::(anonymous_namespace)::TileEncoding>,std::allocator<std::pair<ftxui::(anonymous_namespace)::TileEncoding_const,std::__cxx11::string>>>
::end((map<ftxui::(anonymous_namespace)::TileEncoding,std::__cxx11::string,std::less<ftxui::(anonymous_namespace)::TileEncoding>,std::allocator<std::pair<ftxui::(anonymous_namespace)::TileEncoding_const,std::__cxx11::string>>>
*)tile_encoding_inverse_abi_cxx11_);
uVar1 = std::operator!=((_Rb_tree_const_iterator *)&local_48,
(_Rb_tree_const_iterator *)&local_50);
if ((uVar1 & 1) != 0) {
lVar2 = std::
_Rb_tree_const_iterator<std::pair<ftxui::(anonymous_namespace)::TileEncoding_const,std::__cxx11::string>>
::operator->((_Rb_tree_const_iterator<std::pair<ftxui::(anonymous_namespace)::TileEncoding_const,std::__cxx11::string>>
*)&local_48);
std::__cxx11::string::operator=(local_10,(string *)(lVar2 + 8));
}
}
lVar2 = std::
_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
::operator->((_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
*)&local_30);
if (((*(ushort *)(lVar2 + 0x20) & 3) == 0) &&
(lVar2 = std::
_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
::operator->((_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
*)&local_20), (*(ushort *)(lVar2 + 0x20) >> 4 & 3) != 0)) {
lVar2 = std::
_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
::operator->((_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
*)&local_30);
local_52 = *(ushort *)(lVar2 + 0x20);
lVar2 = std::
_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
::operator->((_Rb_tree_const_iterator<std::pair<std::__cxx11::string_const,ftxui::(anonymous_namespace)::TileEncoding>>
*)&local_20);
local_52 = local_52 & 0xfffc | *(ushort *)(lVar2 + 0x20) >> 4 & 3;
local_60 = std::
map<ftxui::(anonymous_namespace)::TileEncoding,std::__cxx11::string,std::less<ftxui::(anonymous_namespace)::TileEncoding>,std::allocator<std::pair<ftxui::(anonymous_namespace)::TileEncoding_const,std::__cxx11::string>>>
::find((map<ftxui::(anonymous_namespace)::TileEncoding,std::__cxx11::string,std::less<ftxui::(anonymous_namespace)::TileEncoding>,std::allocator<std::pair<ftxui::(anonymous_namespace)::TileEncoding_const,std::__cxx11::string>>>
*)tile_encoding_inverse_abi_cxx11_,(TileEncoding *)&local_52);
local_68 = std::
map<ftxui::(anonymous_namespace)::TileEncoding,std::__cxx11::string,std::less<ftxui::(anonymous_namespace)::TileEncoding>,std::allocator<std::pair<ftxui::(anonymous_namespace)::TileEncoding_const,std::__cxx11::string>>>
::end((map<ftxui::(anonymous_namespace)::TileEncoding,std::__cxx11::string,std::less<ftxui::(anonymous_namespace)::TileEncoding>,std::allocator<std::pair<ftxui::(anonymous_namespace)::TileEncoding_const,std::__cxx11::string>>>
*)tile_encoding_inverse_abi_cxx11_);
uVar1 = std::operator!=((_Rb_tree_const_iterator *)&local_60,
(_Rb_tree_const_iterator *)&local_68);
if ((uVar1 & 1) != 0) {
lVar2 = std::
_Rb_tree_const_iterator<std::pair<ftxui::(anonymous_namespace)::TileEncoding_const,std::__cxx11::string>>
::operator->((_Rb_tree_const_iterator<std::pair<ftxui::(anonymous_namespace)::TileEncoding_const,std::__cxx11::string>>
*)&local_60);
std::__cxx11::string::operator=(local_18,(string *)(lVar2 + 8));
}
}
}
}
return;
}
|
|
18,136
|
common_context_params_to_llama(common_params const&)
|
monkey531[P]llama/common/common.cpp
|
struct llama_context_params common_context_params_to_llama(const common_params & params) {
auto cparams = llama_context_default_params();
cparams.n_ctx = params.n_ctx;
cparams.n_seq_max = params.n_parallel;
cparams.n_batch = params.n_batch;
cparams.n_ubatch = params.n_ubatch;
cparams.n_threads = params.cpuparams.n_threads;
cparams.n_threads_batch = params.cpuparams_batch.n_threads == -1 ?
params.cpuparams.n_threads : params.cpuparams_batch.n_threads;
cparams.logits_all = params.logits_all;
cparams.embeddings = params.embedding;
cparams.rope_scaling_type = params.rope_scaling_type;
cparams.rope_freq_base = params.rope_freq_base;
cparams.rope_freq_scale = params.rope_freq_scale;
cparams.yarn_ext_factor = params.yarn_ext_factor;
cparams.yarn_attn_factor = params.yarn_attn_factor;
cparams.yarn_beta_fast = params.yarn_beta_fast;
cparams.yarn_beta_slow = params.yarn_beta_slow;
cparams.yarn_orig_ctx = params.yarn_orig_ctx;
cparams.pooling_type = params.pooling_type;
cparams.attention_type = params.attention_type;
cparams.defrag_thold = params.defrag_thold;
cparams.cb_eval = params.cb_eval;
cparams.cb_eval_user_data = params.cb_eval_user_data;
cparams.offload_kqv = !params.no_kv_offload;
cparams.flash_attn = params.flash_attn;
cparams.no_perf = params.no_perf;
if (params.reranking) {
cparams.embeddings = true;
cparams.pooling_type = LLAMA_POOLING_TYPE_RANK;
}
cparams.type_k = params.cache_type_k;
cparams.type_v = params.cache_type_v;
return cparams;
}
|
O2
|
cpp
|
common_context_params_to_llama(common_params const&):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0x20090
movl 0x18(%r14), %eax
movl %eax, 0xc(%rbx)
movq 0x4(%r14), %rax
movq %rax, (%rbx)
movl 0xc(%r14), %eax
movl %eax, 0x8(%rbx)
movl 0x274(%r14), %eax
movl %eax, 0x10(%rbx)
movl 0x488(%r14), %ecx
cmpl $-0x1, %ecx
cmovel %eax, %ecx
movl %ecx, 0x14(%rbx)
movb 0xfe8(%r14), %al
movb %al, 0x60(%rbx)
movb 0x1038(%r14), %al
movb %al, 0x61(%rbx)
movups 0x2c(%r14), %xmm0
movups %xmm0, 0x24(%rbx)
movsd 0x3c(%r14), %xmm0
movsd %xmm0, 0x34(%rbx)
movl 0x44(%r14), %eax
movl %eax, 0x3c(%rbx)
movq 0x6b4(%r14), %rax
movq %rax, 0x18(%rbx)
movl 0x6bc(%r14), %eax
movl %eax, 0x20(%rbx)
movss 0x48(%r14), %xmm0
movss %xmm0, 0x40(%rbx)
movups 0x6a0(%r14), %xmm0
movups %xmm0, 0x48(%rbx)
movb 0xfee(%r14), %al
xorb $0x1, %al
movb %al, 0x62(%rbx)
movb 0xfe4(%r14), %al
movb %al, 0x63(%rbx)
movb 0xfe5(%r14), %al
movb %al, 0x64(%rbx)
cmpb $0x1, 0x1080(%r14)
jne 0x256fe
movb $0x1, 0x61(%rbx)
movl $0x4, 0x1c(%rbx)
movq 0xff4(%r14), %rax
movq %rax, 0x58(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
_Z30common_context_params_to_llamaRK13common_params:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
call _llama_context_default_params
mov eax, [r14+18h]
mov [rbx+0Ch], eax
mov rax, [r14+4]
mov [rbx], rax
mov eax, [r14+0Ch]
mov [rbx+8], eax
mov eax, [r14+274h]
mov [rbx+10h], eax
mov ecx, [r14+488h]
cmp ecx, 0FFFFFFFFh
cmovz ecx, eax
mov [rbx+14h], ecx
mov al, [r14+0FE8h]
mov [rbx+60h], al
mov al, [r14+1038h]
mov [rbx+61h], al
movups xmm0, xmmword ptr [r14+2Ch]
movups xmmword ptr [rbx+24h], xmm0
movsd xmm0, qword ptr [r14+3Ch]
movsd qword ptr [rbx+34h], xmm0
mov eax, [r14+44h]
mov [rbx+3Ch], eax
mov rax, [r14+6B4h]
mov [rbx+18h], rax
mov eax, [r14+6BCh]
mov [rbx+20h], eax
movss xmm0, dword ptr [r14+48h]
movss dword ptr [rbx+40h], xmm0
movups xmm0, xmmword ptr [r14+6A0h]
movups xmmword ptr [rbx+48h], xmm0
mov al, [r14+0FEEh]
xor al, 1
mov [rbx+62h], al
mov al, [r14+0FE4h]
mov [rbx+63h], al
mov al, [r14+0FE5h]
mov [rbx+64h], al
cmp byte ptr [r14+1080h], 1
jnz short loc_256FE
mov byte ptr [rbx+61h], 1
mov dword ptr [rbx+1Ch], 4
loc_256FE:
mov rax, [r14+0FF4h]
mov [rbx+58h], rax
mov rax, rbx
add rsp, 8
pop rbx
pop r14
retn
|
long long common_context_params_to_llama(long long a1, long long a2)
{
int v2; // eax
int v3; // ecx
llama_context_default_params(a1);
*(_DWORD *)(a1 + 12) = *(_DWORD *)(a2 + 24);
*(_QWORD *)a1 = *(_QWORD *)(a2 + 4);
*(_DWORD *)(a1 + 8) = *(_DWORD *)(a2 + 12);
v2 = *(_DWORD *)(a2 + 628);
*(_DWORD *)(a1 + 16) = v2;
v3 = *(_DWORD *)(a2 + 1160);
if ( v3 == -1 )
v3 = v2;
*(_DWORD *)(a1 + 20) = v3;
*(_BYTE *)(a1 + 96) = *(_BYTE *)(a2 + 4072);
*(_BYTE *)(a1 + 97) = *(_BYTE *)(a2 + 4152);
*(_OWORD *)(a1 + 36) = *(_OWORD *)(a2 + 44);
*(_QWORD *)(a1 + 52) = *(_QWORD *)(a2 + 60);
*(_DWORD *)(a1 + 60) = *(_DWORD *)(a2 + 68);
*(_QWORD *)(a1 + 24) = *(_QWORD *)(a2 + 1716);
*(_DWORD *)(a1 + 32) = *(_DWORD *)(a2 + 1724);
*(_DWORD *)(a1 + 64) = *(_DWORD *)(a2 + 72);
*(_OWORD *)(a1 + 72) = *(_OWORD *)(a2 + 1696);
*(_BYTE *)(a1 + 98) = *(_BYTE *)(a2 + 4078) ^ 1;
*(_BYTE *)(a1 + 99) = *(_BYTE *)(a2 + 4068);
*(_BYTE *)(a1 + 100) = *(_BYTE *)(a2 + 4069);
if ( *(_BYTE *)(a2 + 4224) == 1 )
{
*(_BYTE *)(a1 + 97) = 1;
*(_DWORD *)(a1 + 28) = 4;
}
*(_QWORD *)(a1 + 88) = *(_QWORD *)(a2 + 4084);
return a1;
}
|
common_context_params_to_llama:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
CALL 0x00120090
MOV EAX,dword ptr [R14 + 0x18]
MOV dword ptr [RBX + 0xc],EAX
MOV RAX,qword ptr [R14 + 0x4]
MOV qword ptr [RBX],RAX
MOV EAX,dword ptr [R14 + 0xc]
MOV dword ptr [RBX + 0x8],EAX
MOV EAX,dword ptr [R14 + 0x274]
MOV dword ptr [RBX + 0x10],EAX
MOV ECX,dword ptr [R14 + 0x488]
CMP ECX,-0x1
CMOVZ ECX,EAX
MOV dword ptr [RBX + 0x14],ECX
MOV AL,byte ptr [R14 + 0xfe8]
MOV byte ptr [RBX + 0x60],AL
MOV AL,byte ptr [R14 + 0x1038]
MOV byte ptr [RBX + 0x61],AL
MOVUPS XMM0,xmmword ptr [R14 + 0x2c]
MOVUPS xmmword ptr [RBX + 0x24],XMM0
MOVSD XMM0,qword ptr [R14 + 0x3c]
MOVSD qword ptr [RBX + 0x34],XMM0
MOV EAX,dword ptr [R14 + 0x44]
MOV dword ptr [RBX + 0x3c],EAX
MOV RAX,qword ptr [R14 + 0x6b4]
MOV qword ptr [RBX + 0x18],RAX
MOV EAX,dword ptr [R14 + 0x6bc]
MOV dword ptr [RBX + 0x20],EAX
MOVSS XMM0,dword ptr [R14 + 0x48]
MOVSS dword ptr [RBX + 0x40],XMM0
MOVUPS XMM0,xmmword ptr [R14 + 0x6a0]
MOVUPS xmmword ptr [RBX + 0x48],XMM0
MOV AL,byte ptr [R14 + 0xfee]
XOR AL,0x1
MOV byte ptr [RBX + 0x62],AL
MOV AL,byte ptr [R14 + 0xfe4]
MOV byte ptr [RBX + 0x63],AL
MOV AL,byte ptr [R14 + 0xfe5]
MOV byte ptr [RBX + 0x64],AL
CMP byte ptr [R14 + 0x1080],0x1
JNZ 0x001256fe
MOV byte ptr [RBX + 0x61],0x1
MOV dword ptr [RBX + 0x1c],0x4
LAB_001256fe:
MOV RAX,qword ptr [R14 + 0xff4]
MOV qword ptr [RBX + 0x58],RAX
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* common_context_params_to_llama(common_params const&) */
common_params * common_context_params_to_llama(common_params *param_1)
{
int iVar1;
int8 uVar2;
int iVar3;
long in_RSI;
llama_context_default_params();
*(int4 *)(param_1 + 0xc) = *(int4 *)(in_RSI + 0x18);
*(int8 *)param_1 = *(int8 *)(in_RSI + 4);
*(int4 *)(param_1 + 8) = *(int4 *)(in_RSI + 0xc);
iVar1 = *(int *)(in_RSI + 0x274);
*(int *)(param_1 + 0x10) = iVar1;
iVar3 = *(int *)(in_RSI + 0x488);
if (*(int *)(in_RSI + 0x488) == -1) {
iVar3 = iVar1;
}
*(int *)(param_1 + 0x14) = iVar3;
param_1[0x60] = *(common_params *)(in_RSI + 0xfe8);
param_1[0x61] = *(common_params *)(in_RSI + 0x1038);
uVar2 = *(int8 *)(in_RSI + 0x34);
*(int8 *)(param_1 + 0x24) = *(int8 *)(in_RSI + 0x2c);
*(int8 *)(param_1 + 0x2c) = uVar2;
*(int8 *)(param_1 + 0x34) = *(int8 *)(in_RSI + 0x3c);
*(int4 *)(param_1 + 0x3c) = *(int4 *)(in_RSI + 0x44);
*(int8 *)(param_1 + 0x18) = *(int8 *)(in_RSI + 0x6b4);
*(int4 *)(param_1 + 0x20) = *(int4 *)(in_RSI + 0x6bc);
*(int4 *)(param_1 + 0x40) = *(int4 *)(in_RSI + 0x48);
uVar2 = *(int8 *)(in_RSI + 0x6a8);
*(int8 *)(param_1 + 0x48) = *(int8 *)(in_RSI + 0x6a0);
*(int8 *)(param_1 + 0x50) = uVar2;
param_1[0x62] = (common_params)(*(byte *)(in_RSI + 0xfee) ^ 1);
param_1[99] = *(common_params *)(in_RSI + 0xfe4);
param_1[100] = *(common_params *)(in_RSI + 0xfe5);
if (*(char *)(in_RSI + 0x1080) == '\x01') {
param_1[0x61] = (common_params)0x1;
*(int4 *)(param_1 + 0x1c) = 4;
}
*(int8 *)(param_1 + 0x58) = *(int8 *)(in_RSI + 0xff4);
return param_1;
}
|
|
18,137
|
string_get_sortable_timestamp[abi:cxx11]()
|
monkey531[P]llama/common/common.cpp
|
std::string string_get_sortable_timestamp() {
using clock = std::chrono::system_clock;
const clock::time_point current_time = clock::now();
const time_t as_time_t = clock::to_time_t(current_time);
char timestamp_no_ns[100];
std::strftime(timestamp_no_ns, 100, "%Y_%m_%d-%H_%M_%S", std::localtime(&as_time_t));
const int64_t ns = std::chrono::duration_cast<std::chrono::nanoseconds>(
current_time.time_since_epoch() % 1000000000).count();
char timestamp_ns[11];
snprintf(timestamp_ns, 11, "%09" PRId64, ns);
return std::string(timestamp_no_ns) + "." + std::string(timestamp_ns);
}
|
O1
|
cpp
|
string_get_sortable_timestamp[abi:cxx11]():
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf0, %rsp
movq %rdi, %rbx
callq 0x1a090
movq %rax, %r14
movabsq $0x112e0be826d694b3, %rcx # imm = 0x112E0BE826D694B3
imulq %rcx
movq %rdx, %r12
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x1a, %r12
addq %rax, %r12
leaq 0x78(%rsp), %rdi
movq %r12, (%rdi)
callq 0x1a550
leaq 0x8dc69(%rip), %rdx # 0xb0d1b
leaq 0x80(%rsp), %r15
movl $0x64, %esi
movq %r15, %rdi
movq %rax, %rcx
callq 0x1a5d0
imulq $0x3b9aca00, %r12, %rax # imm = 0x3B9ACA00
subq %rax, %r14
leaq 0x8dc52(%rip), %rdx # 0xb0d2d
leaq 0x4d(%rsp), %rdi
movl $0xb, %esi
movq %r14, %rcx
xorl %eax, %eax
callq 0x1abd0
leaq 0x68(%rsp), %r12
movq %r12, -0x10(%r12)
movq %r15, %rdi
callq 0x1a330
leaq (%rsp,%rax), %rdx
addq $0x80, %rdx
leaq 0x58(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x20d42
leaq 0x8dd39(%rip), %rsi # 0xb0e5c
movq %r14, %rdi
callq 0x1ae70
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x23152
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x23159
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x4d(%rsp), %r14
movq %r14, %rdi
callq 0x1a330
leaq (%rsp,%rax), %rdx
addq $0x4d, %rdx
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x20d42
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r15, %rcx
je 0x231be
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x231d9
movl $0xf, %esi
cmpq %r13, 0x28(%rsp)
je 0x231d4
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x231ea
movq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x1a1f0
jmp 0x231f8
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1a850
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x23217
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x2321d
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x23250
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a740
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x23267
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a740
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x2327e
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x1a740
movq %rbx, %rax
addq $0xf0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x232b1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a740
jmp 0x232b1
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x232cd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a740
jmp 0x232cd
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x232e4
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x1a740
movq %rbx, %rdi
callq 0x1ad30
|
_Z29string_get_sortable_timestampB5cxx11v:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0F0h
mov rbx, rdi
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov r14, rax
mov rcx, 112E0BE826D694B3h
imul rcx
mov r12, rdx
mov rax, rdx
shr rax, 3Fh
sar r12, 1Ah
add r12, rax
lea rdi, [rsp+118h+var_A0]
mov [rdi], r12
call _localtime
lea rdx, aYMDHMS; "%Y_%m_%d-%H_%M_%S"
lea r15, [rsp+118h+var_98]
mov esi, 64h ; 'd'
mov rdi, r15
mov rcx, rax
call _strftime
imul rax, r12, 3B9ACA00h
sub r14, rax
lea rdx, a09ld; "%09ld"
lea rdi, [rsp+118h+var_CB]
mov esi, 0Bh
mov rcx, r14
xor eax, eax
call _snprintf
lea r12, [rsp+118h+var_B0]
mov [r12-10h], r12
mov rdi, r15
call _strlen
lea rdx, [rsp+rax+118h+var_118]
add rdx, 80h
lea r14, [rsp+118h+var_C0]
mov rdi, r14
mov rsi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rsi, asc_B0E5B+1; "."
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea r15, [rsp+118h+var_100]
mov [r15-10h], r15
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_23152
mov [rsp+118h+var_110], rdx
mov rdx, [rcx]
mov [rsp+118h+var_100], rdx
jmp short loc_23159
loc_23152:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r15], xmm0
loc_23159:
mov rdx, [rax+8]
mov [rsp+118h+var_108], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea r13, [rsp+118h+var_E0]
mov [r13-10h], r13
lea r14, [rsp+118h+var_CB]
mov rdi, r14
call _strlen
lea rdx, [rsp+rax+118h+var_118]
add rdx, 4Dh ; 'M'
lea rdi, [rsp+118h+var_F0]
mov rsi, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rcx, [rsp+118h+var_110]
mov r8, [rsp+118h+var_108]
mov rdx, [rsp+118h+var_E8]
lea rax, [rdx+r8]
mov esi, 0Fh
cmp rcx, r15
jz short loc_231BE
mov rsi, [rsp+118h+var_100]
loc_231BE:
cmp rax, rsi
jbe short loc_231D9
mov esi, 0Fh
cmp [rsp+118h+var_F0], r13
jz short loc_231D4
mov rsi, [rsp+118h+var_E0]
loc_231D4:
cmp rax, rsi
jbe short loc_231EA
loc_231D9:
mov rsi, [rsp+118h+var_F0]
lea rdi, [rsp+118h+var_110]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
jmp short loc_231F8
loc_231EA:
lea rdi, [rsp+118h+var_F0]
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
loc_231F8:
lea rdx, [rbx+10h]
mov [rbx], rdx
mov rsi, [rax]
lea rcx, [rax+10h]
cmp rsi, rcx
jz short loc_23217
mov [rbx], rsi
mov rdx, [rcx]
mov [rbx+10h], rdx
jmp short loc_2321D
loc_23217:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rdx], xmm0
loc_2321D:
mov rdx, rax
add rdx, 8
mov rsi, [rax+8]
mov [rbx+8], rsi
mov [rax], rcx
mov qword ptr [rdx], 0
mov byte ptr [rcx], 0
mov rdi, [rsp+118h+var_F0]; void *
cmp rdi, r13
jz short loc_23250
mov rsi, [rsp+118h+var_E0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_23250:
mov rdi, [rsp+118h+var_110]; void *
cmp rdi, r15
jz short loc_23267
mov rsi, [rsp+118h+var_100]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_23267:
mov rdi, [rsp+118h+var_C0]; void *
cmp rdi, r12
jz short loc_2327E
mov rsi, [rsp+118h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2327E:
mov rax, rbx
add rsp, 0F0h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov rbx, rax
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_232B1
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_232B1
mov rbx, rax
loc_232B1:
mov rdi, [rsp+arg_0]; void *
cmp rdi, r15
jz short loc_232CD
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_232CD
mov rbx, rax
loc_232CD:
mov rdi, [rsp+arg_50]; void *
cmp rdi, r12
jz short loc_232E4
mov rsi, [rsp+arg_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_232E4:
mov rdi, rbx
call __Unwind_Resume
|
long long string_get_sortable_timestamp[abi:cxx11](long long a1)
{
long long v1; // r14
long long v2; // rax
long long v3; // rax
long long v4; // rax
__int128 *v5; // rcx
long long v6; // rax
char *v7; // rax
unsigned long long v8; // rsi
unsigned long long v9; // rsi
_QWORD *v10; // rax
_OWORD *v11; // rcx
void *v13; // [rsp+8h] [rbp-110h] BYREF
long long v14; // [rsp+10h] [rbp-108h]
__int128 v15; // [rsp+18h] [rbp-100h] BYREF
void *v16[2]; // [rsp+28h] [rbp-F0h] BYREF
_QWORD v17[2]; // [rsp+38h] [rbp-E0h] BYREF
_BYTE v18[11]; // [rsp+4Dh] [rbp-CBh] BYREF
void *v19[2]; // [rsp+58h] [rbp-C0h] BYREF
_QWORD v20[3]; // [rsp+68h] [rbp-B0h] BYREF
_BYTE v21[152]; // [rsp+80h] [rbp-98h] BYREF
v1 = std::chrono::_V2::system_clock::now((std::chrono::_V2::system_clock *)a1);
v20[2] = v1 / 1000000000;
v2 = localtime();
strftime(v21, 100LL, "%Y_%m_%d-%H_%M_%S", v2);
snprintf(v18, 11LL, "%09ld", v1 % 1000000000);
v19[0] = v20;
v3 = strlen(v21);
std::string::_M_construct<char const*>(v19, v21, (long long)&v21[v3]);
v4 = std::string::append(v19, ".");
v13 = &v15;
v5 = (__int128 *)(v4 + 16);
if ( *(_QWORD *)v4 == v4 + 16 )
{
v15 = *v5;
}
else
{
v13 = *(void **)v4;
*(_QWORD *)&v15 = *(_QWORD *)v5;
}
v14 = *(_QWORD *)(v4 + 8);
*(_QWORD *)v4 = v5;
*(_QWORD *)(v4 + 8) = 0LL;
*(_BYTE *)(v4 + 16) = 0;
v16[0] = v17;
v6 = strlen(v18);
std::string::_M_construct<char const*>(v16, v18, (long long)&v18[v6]);
v7 = (char *)v16[1] + v14;
v8 = 15LL;
if ( v13 != &v15 )
v8 = v15;
if ( (unsigned long long)v7 <= v8 )
goto LABEL_10;
v9 = 15LL;
if ( v16[0] != v17 )
v9 = v17[0];
if ( (unsigned long long)v7 <= v9 )
v10 = (_QWORD *)std::string::replace(v16, 0LL, 0LL, v13, v14);
else
LABEL_10:
v10 = (_QWORD *)std::string::_M_append(&v13, v16[0]);
*(_QWORD *)a1 = a1 + 16;
v11 = v10 + 2;
if ( (_QWORD *)*v10 == v10 + 2 )
{
*(_OWORD *)(a1 + 16) = *v11;
}
else
{
*(_QWORD *)a1 = *v10;
*(_QWORD *)(a1 + 16) = *(_QWORD *)v11;
}
*(_QWORD *)(a1 + 8) = v10[1];
*v10 = v11;
v10[1] = 0LL;
*(_BYTE *)v11 = 0;
if ( v16[0] != v17 )
operator delete(v16[0], v17[0] + 1LL);
if ( v13 != &v15 )
operator delete(v13, v15 + 1);
if ( v19[0] != v20 )
operator delete(v19[0], v20[0] + 1LL);
return a1;
}
|
string_get_sortable_timestamp[abi:cxx11]:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xf0
MOV RBX,RDI
CALL 0x0011a090
MOV R14,RAX
MOV RCX,0x112e0be826d694b3
IMUL RCX
MOV R12,RDX
MOV RAX,RDX
SHR RAX,0x3f
SAR R12,0x1a
ADD R12,RAX
LEA RDI,[RSP + 0x78]
MOV qword ptr [RDI],R12
CALL 0x0011a550
LEA RDX,[0x1b0d1b]
LEA R15,[RSP + 0x80]
MOV ESI,0x64
MOV RDI,R15
MOV RCX,RAX
CALL 0x0011a5d0
IMUL RAX,R12,0x3b9aca00
SUB R14,RAX
LEA RDX,[0x1b0d2d]
LEA RDI,[RSP + 0x4d]
MOV ESI,0xb
MOV RCX,R14
XOR EAX,EAX
CALL 0x0011abd0
LEA R12,[RSP + 0x68]
MOV qword ptr [R12 + -0x10],R12
MOV RDI,R15
CALL 0x0011a330
LEA RDX,[RSP + RAX*0x1]
ADD RDX,0x80
LEA R14,[RSP + 0x58]
MOV RDI,R14
MOV RSI,R15
CALL 0x00120d42
LAB_0012311c:
LEA RSI,[0x1b0e5c]
MOV RDI,R14
CALL 0x0011ae70
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x00123152
MOV qword ptr [RSP + 0x8],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x18],RDX
JMP 0x00123159
LAB_00123152:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R15],XMM0
LAB_00123159:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
LEA R14,[RSP + 0x4d]
MOV RDI,R14
CALL 0x0011a330
LEA RDX,[RSP + RAX*0x1]
ADD RDX,0x4d
LAB_0012318f:
LEA RDI,[RSP + 0x28]
MOV RSI,R14
CALL 0x00120d42
MOV RCX,qword ptr [RSP + 0x8]
MOV R8,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x30]
LEA RAX,[RDX + R8*0x1]
MOV ESI,0xf
CMP RCX,R15
JZ 0x001231be
MOV RSI,qword ptr [RSP + 0x18]
LAB_001231be:
CMP RAX,RSI
JBE 0x001231d9
MOV ESI,0xf
CMP qword ptr [RSP + 0x28],R13
JZ 0x001231d4
MOV RSI,qword ptr [RSP + 0x38]
LAB_001231d4:
CMP RAX,RSI
JBE 0x001231ea
LAB_001231d9:
MOV RSI,qword ptr [RSP + 0x28]
LAB_001231de:
LEA RDI,[RSP + 0x8]
CALL 0x0011a1f0
JMP 0x001231f8
LAB_001231ea:
LEA RDI,[RSP + 0x28]
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0011a850
LAB_001231f8:
LEA RDX,[RBX + 0x10]
MOV qword ptr [RBX],RDX
MOV RSI,qword ptr [RAX]
LEA RCX,[RAX + 0x10]
CMP RSI,RCX
JZ 0x00123217
MOV qword ptr [RBX],RSI
MOV RDX,qword ptr [RCX]
MOV qword ptr [RBX + 0x10],RDX
JMP 0x0012321d
LAB_00123217:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RDX],XMM0
LAB_0012321d:
MOV RDX,RAX
ADD RDX,0x8
MOV RSI,qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x8],RSI
MOV qword ptr [RAX],RCX
MOV qword ptr [RDX],0x0
MOV byte ptr [RCX],0x0
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x00123250
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011a740
LAB_00123250:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R15
JZ 0x00123267
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a740
LAB_00123267:
MOV RDI,qword ptr [RSP + 0x58]
CMP RDI,R12
JZ 0x0012327e
MOV RSI,qword ptr [RSP + 0x68]
INC RSI
CALL 0x0011a740
LAB_0012327e:
MOV RAX,RBX
ADD RSP,0xf0
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* string_get_sortable_timestamp[abi:cxx11]() */
void string_get_sortable_timestamp_abi_cxx11_(void)
{
int8 *puVar1;
int8 uVar2;
long lVar3;
tm *__tp;
size_t sVar4;
long *plVar5;
int8 *puVar6;
ulong *puVar7;
ulong uVar8;
int8 *in_RDI;
ulong *local_110;
long local_108;
ulong local_100;
long lStack_f8;
ulong *local_f0;
long local_e8;
ulong local_e0 [2];
char local_cb [11];
long *local_c0 [2];
long local_b0 [2];
long local_a0;
char local_98 [112];
lVar3 = std::chrono::_V2::system_clock::now();
local_a0 = lVar3 / 1000000000;
__tp = localtime(&local_a0);
strftime(local_98,100,"%Y_%m_%d-%H_%M_%S",__tp);
snprintf(local_cb,0xb,"%09ld",lVar3 % 1000000000);
local_c0[0] = local_b0;
sVar4 = strlen(local_98);
std::__cxx11::string::_M_construct<char_const*>(local_c0,local_98,local_98 + sVar4);
/* try { // try from 0012311c to 0012312a has its CatchHandler @ 001232ca */
plVar5 = (long *)std::__cxx11::string::append((char *)local_c0);
puVar7 = (ulong *)(plVar5 + 2);
if ((ulong *)*plVar5 == puVar7) {
local_100 = *puVar7;
lStack_f8 = plVar5[3];
local_110 = &local_100;
}
else {
local_100 = *puVar7;
local_110 = (ulong *)*plVar5;
}
local_108 = plVar5[1];
*plVar5 = (long)puVar7;
plVar5[1] = 0;
*(int1 *)(plVar5 + 2) = 0;
local_f0 = local_e0;
sVar4 = strlen(local_cb);
/* try { // try from 0012318f to 0012319b has its CatchHandler @ 001232ae */
std::__cxx11::string::_M_construct<char_const*>(&local_f0,local_cb,local_cb + sVar4);
uVar8 = 0xf;
if (local_110 != &local_100) {
uVar8 = local_100;
}
if (uVar8 < (ulong)(local_e8 + local_108)) {
uVar8 = 0xf;
if (local_f0 != local_e0) {
uVar8 = local_e0[0];
}
if ((ulong)(local_e8 + local_108) <= uVar8) {
puVar6 = (int8 *)
std::__cxx11::string::replace((ulong)&local_f0,0,(char *)0x0,(ulong)local_110);
goto LAB_001231f8;
}
}
/* try { // try from 001231de to 001231f7 has its CatchHandler @ 00123292 */
puVar6 = (int8 *)std::__cxx11::string::_M_append((char *)&local_110,(ulong)local_f0);
LAB_001231f8:
*in_RDI = in_RDI + 2;
puVar1 = puVar6 + 2;
if ((int8 *)*puVar6 == puVar1) {
uVar2 = puVar6[3];
in_RDI[2] = *puVar1;
in_RDI[3] = uVar2;
}
else {
*in_RDI = (int8 *)*puVar6;
in_RDI[2] = *puVar1;
}
in_RDI[1] = puVar6[1];
*puVar6 = puVar1;
puVar6[1] = 0;
*(int1 *)puVar1 = 0;
if (local_f0 != local_e0) {
operator_delete(local_f0,local_e0[0] + 1);
}
if (local_110 != &local_100) {
operator_delete(local_110,local_100 + 1);
}
if (local_c0[0] != local_b0) {
operator_delete(local_c0[0],local_b0[0] + 1);
}
return;
}
|
|
18,138
|
nglog::LogDestination::LogToSinks(nglog::LogSeverity, char const*, char const*, int, nglog::LogMessageTime const&, char const*, unsigned long)
|
ng-log[P]ng-log/src/logging.cc
|
inline void LogDestination::LogToSinks(LogSeverity severity,
const char* full_filename,
const char* base_filename, int line,
const LogMessageTime& time,
const char* message,
size_t message_len) {
std::shared_lock<SinkMutex> l{sink_mutex_};
if (sinks_) {
for (size_t i = sinks_->size(); i-- > 0;) {
(*sinks_)[i]->send(severity, full_filename, base_filename, line, time,
message, message_len);
}
}
}
|
O0
|
cpp
|
nglog::LogDestination::LogToSinks(nglog::LogSeverity, char const*, char const*, int, nglog::LogMessageTime const&, char const*, unsigned long):
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x68, %rsp
movq 0x10(%rbp), %rax
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
leaq -0x48(%rbp), %rdi
leaq 0x5967a(%rip), %rsi # 0x70d68
callq 0x1b810
leaq 0x59666(%rip), %rdi # 0x70d60
callq 0x1b840
testb $0x1, %al
jne 0x17708
jmp 0x1779b
leaq 0x59651(%rip), %rdi # 0x70d60
callq 0x1b870
movq %rax, %rdi
callq 0x1b890
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x50(%rbp)
cmpq $0x0, %rax
jbe 0x17799
leaq 0x59624(%rip), %rdi # 0x70d60
callq 0x1b8b0
movq %rax, %rdi
movq -0x50(%rbp), %rsi
callq 0x1b8e0
movq (%rax), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %r8d
movq -0x30(%rbp), %r9
movq -0x38(%rbp), %r11
movq 0x10(%rbp), %rbx
movq (%rdi), %rax
movq 0x10(%rax), %rax
movq %rsp, %r10
movq %rbx, 0x8(%r10)
movq %r11, (%r10)
callq *%rax
jmp 0x17780
jmp 0x17720
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x1b900
jmp 0x177ab
jmp 0x1779b
leaq -0x48(%rbp), %rdi
callq 0x1b900
addq $0x68, %rsp
popq %rbx
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0x9d00
nopw %cs:(%rax,%rax)
nop
|
_ZN5nglog14LogDestination10LogToSinksENS_11LogSeverityEPKcS3_iRKNS_14LogMessageTimeES3_m:
push rbp
mov rbp, rsp
push rbx
sub rsp, 68h
mov rax, [rbp+arg_0]
mov [rbp+var_C], edi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
lea rdi, [rbp+var_48]
lea rsi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_
call _ZNSt11shared_lockISt12shared_mutexEC2ERS0_; std::shared_lock<std::shared_mutex>::shared_lock(std::shared_mutex&)
lea rdi, _ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
call _ZNKSt10unique_ptrISt6vectorIPN5nglog7LogSinkESaIS3_EESt14default_deleteIS5_EEcvbEv; std::unique_ptr<std::vector<nglog::LogSink *>>::operator bool(void)
test al, 1
jnz short loc_17708
jmp loc_1779B
loc_17708:
lea rdi, _ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
call _ZNKSt10unique_ptrISt6vectorIPN5nglog7LogSinkESaIS3_EESt14default_deleteIS5_EEptEv; std::unique_ptr<std::vector<nglog::LogSink *>>::operator->(void)
mov rdi, rax
call _ZNKSt6vectorIPN5nglog7LogSinkESaIS2_EE4sizeEv; std::vector<nglog::LogSink *>::size(void)
mov [rbp+var_50], rax
loc_17720:
mov rax, [rbp+var_50]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_50], rcx
cmp rax, 0
jbe short loc_17799
lea rdi, _ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
call _ZNKSt10unique_ptrISt6vectorIPN5nglog7LogSinkESaIS3_EESt14default_deleteIS5_EEdeEv; std::unique_ptr<std::vector<nglog::LogSink *>>::operator*(void)
mov rdi, rax
mov rsi, [rbp+var_50]
call _ZNSt6vectorIPN5nglog7LogSinkESaIS2_EEixEm; std::vector<nglog::LogSink *>::operator[](ulong)
mov rdi, [rax]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
mov r8d, [rbp+var_24]
mov r9, [rbp+var_30]
mov r11, [rbp+var_38]
mov rbx, [rbp+arg_0]
mov rax, [rdi]
mov rax, [rax+10h]
mov r10, rsp
mov [r10+8], rbx
mov [r10], r11
call rax
jmp short $+2
loc_17780:
jmp short loc_17720
mov rcx, rax
mov eax, edx
mov [rbp+var_58], rcx
mov [rbp+var_5C], eax
lea rdi, [rbp+var_48]
call _ZNSt11shared_lockISt12shared_mutexED2Ev; std::shared_lock<std::shared_mutex>::~shared_lock()
jmp short loc_177AB
loc_17799:
jmp short $+2
loc_1779B:
lea rdi, [rbp+var_48]
call _ZNSt11shared_lockISt12shared_mutexED2Ev; std::shared_lock<std::shared_mutex>::~shared_lock()
add rsp, 68h
pop rbx
pop rbp
retn
loc_177AB:
mov rdi, [rbp+var_58]
call __Unwind_Resume
|
long long nglog::LogDestination::LogToSinks(
unsigned int a1,
long long a2,
long long a3,
unsigned int a4,
long long a5,
long long a6,
long long a7)
{
long long v7; // rax
long long v9; // rax
_QWORD *v10; // rax
long long v12; // [rsp+20h] [rbp-50h]
_BYTE v13[16]; // [rsp+28h] [rbp-48h] BYREF
long long v14; // [rsp+38h] [rbp-38h]
long long v15; // [rsp+40h] [rbp-30h]
unsigned int v16; // [rsp+4Ch] [rbp-24h]
long long v17; // [rsp+50h] [rbp-20h]
long long v18; // [rsp+58h] [rbp-18h]
unsigned int v19; // [rsp+64h] [rbp-Ch]
v19 = a1;
v18 = a2;
v17 = a3;
v16 = a4;
v15 = a5;
v14 = a6;
std::shared_lock<std::shared_mutex>::shared_lock(v13, &nglog::LogDestination::sink_mutex_);
if ( (std::unique_ptr<std::vector<nglog::LogSink *>>::operator bool(&nglog::LogDestination::sinks_) & 1) != 0 )
{
v7 = std::unique_ptr<std::vector<nglog::LogSink *>>::operator->(&nglog::LogDestination::sinks_);
v12 = std::vector<nglog::LogSink *>::size(v7);
while ( v12-- )
{
v9 = std::unique_ptr<std::vector<nglog::LogSink *>>::operator*(&nglog::LogDestination::sinks_);
v10 = (_QWORD *)std::vector<nglog::LogSink *>::operator[](v9, v12);
(*(void ( **)(_QWORD, _QWORD, long long, long long, _QWORD, long long, long long, long long))(*(_QWORD *)*v10
+ 16LL))(
*v10,
v19,
v18,
v17,
v16,
v15,
v14,
a7);
}
}
return std::shared_lock<std::shared_mutex>::~shared_lock(v13);
}
|
LogToSinks:
PUSH RBP
MOV RBP,RSP
PUSH RBX
SUB RSP,0x68
MOV RAX,qword ptr [RBP + 0x10]
MOV dword ptr [RBP + -0xc],EDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
LEA RDI,[RBP + -0x48]
LEA RSI,[0x170d68]
CALL 0x0011b810
LEA RDI,[0x170d60]
CALL 0x0011b840
TEST AL,0x1
JNZ 0x00117708
JMP 0x0011779b
LAB_00117708:
LEA RDI,[0x170d60]
CALL 0x0011b870
MOV RDI,RAX
CALL 0x0011b890
MOV qword ptr [RBP + -0x50],RAX
LAB_00117720:
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RBP + -0x50],RCX
CMP RAX,0x0
JBE 0x00117799
LEA RDI,[0x170d60]
CALL 0x0011b8b0
MOV RDI,RAX
MOV RSI,qword ptr [RBP + -0x50]
CALL 0x0011b8e0
MOV RDI,qword ptr [RAX]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
MOV R8D,dword ptr [RBP + -0x24]
MOV R9,qword ptr [RBP + -0x30]
MOV R11,qword ptr [RBP + -0x38]
MOV RBX,qword ptr [RBP + 0x10]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x10]
LAB_00117772:
MOV R10,RSP
MOV qword ptr [R10 + 0x8],RBX
MOV qword ptr [R10],R11
CALL RAX
LAB_0011777e:
JMP 0x00117780
LAB_00117780:
JMP 0x00117720
LAB_00117799:
JMP 0x0011779b
LAB_0011779b:
LEA RDI,[RBP + -0x48]
CALL 0x0011b900
ADD RSP,0x68
POP RBX
POP RBP
RET
|
/* nglog::LogDestination::LogToSinks(nglog::LogSeverity, char const*, char const*, int,
nglog::LogMessageTime const&, char const*, unsigned long) */
void nglog::LogDestination::LogToSinks
(int4 param_1,int8 param_2,int8 param_3,int4 param_4,
int8 param_5,int8 param_6,int8 param_7)
{
bool bVar1;
vector<nglog::LogSink*,std::allocator<nglog::LogSink*>> *pvVar2;
int8 *puVar3;
ulong local_58;
shared_lock<std::shared_mutex> local_50 [16];
int8 local_40;
int8 local_38;
int4 local_2c;
int8 local_28;
int8 local_20;
int4 local_14;
local_40 = param_6;
local_38 = param_5;
local_2c = param_4;
local_28 = param_3;
local_20 = param_2;
local_14 = param_1;
std::shared_lock<std::shared_mutex>::shared_lock(local_50,(shared_mutex *)sink_mutex_);
bVar1 = std::unique_ptr::operator_cast_to_bool((unique_ptr *)&sinks_);
if (bVar1) {
pvVar2 = (vector<nglog::LogSink*,std::allocator<nglog::LogSink*>> *)
std::
unique_ptr<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>>
::operator->((unique_ptr<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>>
*)&sinks_);
local_58 = std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>::size(pvVar2);
while (local_58 != 0) {
pvVar2 = (vector<nglog::LogSink*,std::allocator<nglog::LogSink*>> *)
std::
unique_ptr<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>>
::operator*((unique_ptr<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>>
*)&sinks_);
puVar3 = (int8 *)
std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>::operator[]
(pvVar2,local_58 - 1);
/* try { // try from 00117772 to 0011777d has its CatchHandler @ 00117782 */
(**(code **)(*(long *)*puVar3 + 0x10))
((long *)*puVar3,local_14,local_20,local_28,local_2c,local_38,local_40,param_7);
local_58 = local_58 - 1;
}
}
std::shared_lock<std::shared_mutex>::~shared_lock(local_50);
return;
}
|
|
18,139
|
mi_log
|
eloqsql/storage/myisam/mi_log.c
|
int mi_log(int activate_log)
{
int error=0;
char buff[FN_REFLEN];
DBUG_ENTER("mi_log");
log_type=activate_log;
if (activate_log)
{
if (!myisam_pid)
myisam_pid=(ulong) getpid();
if (myisam_log_file < 0)
{
if ((myisam_log_file= mysql_file_create(mi_key_file_log,
fn_format(buff,
myisam_log_filename,
"", ".log", 4),
0,
(O_RDWR | O_BINARY | O_APPEND),
MYF(0))) < 0)
DBUG_RETURN(my_errno);
}
}
else if (myisam_log_file >= 0)
{
error= mysql_file_close(myisam_log_file, MYF(0)) ? my_errno : 0 ;
myisam_log_file= -1;
}
DBUG_RETURN(error);
}
|
O0
|
c
|
mi_log:
pushq %rbp
movq %rsp, %rbp
subq $0x230, %rsp # imm = 0x230
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movl %edi, -0x218(%rbp)
movl $0x0, -0x21c(%rbp)
movl -0x218(%rbp), %eax
movl %eax, 0xbc8e74(%rip) # 0xc7a608
cmpl $0x0, -0x218(%rbp)
je 0xb1852
cmpq $0x0, 0xbc8e57(%rip) # 0xc7a600
jne 0xb17b9
callq 0x2a8b0
cltq
movq %rax, 0xbc8e47(%rip) # 0xc7a600
leaq 0x20d9f0(%rip), %rax # 0x2bf1b0
cmpl $0x0, (%rax)
jge 0xb1850
leaq 0xbc8e10(%rip), %rax # 0xc7a5e0
movl (%rax), %eax
movl %eax, -0x220(%rbp)
leaq -0x210(%rbp), %rdi
leaq 0x20d9c2(%rip), %rax # 0x2bf1a8
movq (%rax), %rsi
leaq 0xa64b4(%rip), %rdx # 0x157ca4
leaq 0xa1f66(%rip), %rcx # 0x15375d
movl $0x4, %r8d
callq 0xdf790
movl -0x220(%rbp), %edi
movq %rax, %rcx
leaq 0xa231e(%rip), %rsi # 0x153b30
movl $0x35, %edx
xorl %r8d, %r8d
movl $0x402, %r9d # imm = 0x402
xorl %eax, %eax
movq $0x0, (%rsp)
callq 0xb1900
leaq 0x20d97a(%rip), %rcx # 0x2bf1b0
movl %eax, (%rcx)
cmpl $0x0, %eax
jge 0xb184e
jmp 0xb183f
callq 0xf6090
movl (%rax), %eax
movl %eax, -0x214(%rbp)
jmp 0xb18c3
jmp 0xb1850
jmp 0xb18b5
leaq 0x20d957(%rip), %rax # 0x2bf1b0
cmpl $0x0, (%rax)
jl 0xb18b3
leaq 0x20d94b(%rip), %rax # 0x2bf1b0
movl (%rax), %edx
leaq 0xa22c2(%rip), %rdi # 0x153b30
movl $0x3b, %esi
xorl %eax, %eax
movl %eax, %ecx
callq 0xb19f0
cmpl $0x0, %eax
je 0xb1890
callq 0xf6090
movl (%rax), %eax
movl %eax, -0x224(%rbp)
jmp 0xb189a
xorl %eax, %eax
movl %eax, -0x224(%rbp)
jmp 0xb189a
movl -0x224(%rbp), %eax
movl %eax, -0x21c(%rbp)
leaq 0x20d903(%rip), %rax # 0x2bf1b0
movl $0xffffffff, (%rax) # imm = 0xFFFFFFFF
jmp 0xb18b5
jmp 0xb18b7
movl -0x21c(%rbp), %eax
movl %eax, -0x214(%rbp)
movl -0x214(%rbp), %eax
movl %eax, -0x228(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xb18f0
movl -0x228(%rbp), %eax
addq $0x230, %rsp # imm = 0x230
popq %rbp
retq
callq 0x2a270
nopw %cs:(%rax,%rax)
|
mi_log:
push rbp
mov rbp, rsp
sub rsp, 230h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_218], edi
mov [rbp+var_21C], 0
mov eax, [rbp+var_218]
mov cs:log_type, eax
cmp [rbp+var_218], 0
jz loc_B1852
cmp cs:myisam_pid, 0
jnz short loc_B17B9
call _getpid
cdqe
mov cs:myisam_pid, rax
loc_B17B9:
lea rax, myisam_log_file
cmp dword ptr [rax], 0
jge loc_B1850
lea rax, mi_key_file_log
mov eax, [rax]
mov [rbp+var_220], eax
lea rdi, [rbp+var_210]
lea rax, myisam_log_filename
mov rsi, [rax]
lea rdx, asc_157CA0+4; ""
lea rcx, aMyisamLog+6; ".log"
mov r8d, 4
call fn_format
mov edi, [rbp+var_220]
mov rcx, rax
lea rsi, aWorkspaceLlm4b_28; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 35h ; '5'
xor r8d, r8d
mov r9d, 402h
xor eax, eax
mov [rsp+230h+var_230], 0
call inline_mysql_file_create_1
lea rcx, myisam_log_file
mov [rcx], eax
cmp eax, 0
jge short loc_B184E
jmp short $+2
loc_B183F:
call _my_thread_var
mov eax, [rax]
mov [rbp+var_214], eax
jmp short loc_B18C3
loc_B184E:
jmp short $+2
loc_B1850:
jmp short loc_B18B5
loc_B1852:
lea rax, myisam_log_file
cmp dword ptr [rax], 0
jl short loc_B18B3
lea rax, myisam_log_file
mov edx, [rax]
lea rdi, aWorkspaceLlm4b_28; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 3Bh ; ';'
xor eax, eax
mov ecx, eax
call inline_mysql_file_close_5
cmp eax, 0
jz short loc_B1890
call _my_thread_var
mov eax, [rax]
mov [rbp+var_224], eax
jmp short loc_B189A
loc_B1890:
xor eax, eax
mov [rbp+var_224], eax
jmp short $+2
loc_B189A:
mov eax, [rbp+var_224]
mov [rbp+var_21C], eax
lea rax, myisam_log_file
mov dword ptr [rax], 0FFFFFFFFh
loc_B18B3:
jmp short $+2
loc_B18B5:
jmp short $+2
loc_B18B7:
mov eax, [rbp+var_21C]
mov [rbp+var_214], eax
loc_B18C3:
mov eax, [rbp+var_214]
mov [rbp+var_228], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_B18F0
mov eax, [rbp+var_228]
add rsp, 230h
pop rbp
retn
loc_B18F0:
call ___stack_chk_fail
|
long long mi_log(int a1)
{
int v1; // eax
unsigned int v3; // [rsp+Ch] [rbp-224h]
unsigned int v4; // [rsp+10h] [rbp-220h]
unsigned int v5; // [rsp+14h] [rbp-21Ch]
_BYTE v7[520]; // [rsp+20h] [rbp-210h] BYREF
unsigned long long v8; // [rsp+228h] [rbp-8h]
v8 = __readfsqword(0x28u);
v5 = 0;
log_type = a1;
if ( !a1 )
{
if ( (myisam_log_file & 0x80000000) == 0 )
{
if ( (unsigned int)inline_mysql_file_close_5(
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c",
59LL,
myisam_log_file,
0LL) )
v3 = *(_DWORD *)my_thread_var(
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c",
(_BYTE *)&word_3A + 1);
else
v3 = 0;
v5 = v3;
myisam_log_file = -1;
}
return v5;
}
if ( !myisam_pid )
myisam_pid = (int)getpid();
if ( (myisam_log_file & 0x80000000) == 0 )
return v5;
v4 = mi_key_file_log;
v1 = fn_format(v7, myisam_log_filename, "", ".log", 4LL);
myisam_log_file = inline_mysql_file_create_1(
v4,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c",
53,
v1,
0,
1026,
0LL);
if ( (myisam_log_file & 0x80000000) == 0 )
return v5;
return *(unsigned int *)my_thread_var(v4, "/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c");
}
|
mi_log:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x230
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV dword ptr [RBP + -0x218],EDI
MOV dword ptr [RBP + -0x21c],0x0
MOV EAX,dword ptr [RBP + -0x218]
MOV dword ptr [0x00d7a608],EAX
CMP dword ptr [RBP + -0x218],0x0
JZ 0x001b1852
CMP qword ptr [0x00d7a600],0x0
JNZ 0x001b17b9
CALL 0x0012a8b0
CDQE
MOV qword ptr [0x00d7a600],RAX
LAB_001b17b9:
LEA RAX,[0x3bf1b0]
CMP dword ptr [RAX],0x0
JGE 0x001b1850
LEA RAX,[0xd7a5e0]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x220],EAX
LEA RDI,[RBP + -0x210]
LEA RAX,[0x3bf1a8]
MOV RSI,qword ptr [RAX]
LEA RDX,[0x257ca4]
LEA RCX,[0x25375d]
MOV R8D,0x4
CALL 0x001df790
MOV EDI,dword ptr [RBP + -0x220]
MOV RCX,RAX
LEA RSI,[0x253b30]
MOV EDX,0x35
XOR R8D,R8D
MOV R9D,0x402
XOR EAX,EAX
MOV qword ptr [RSP],0x0
CALL 0x001b1900
LEA RCX,[0x3bf1b0]
MOV dword ptr [RCX],EAX
CMP EAX,0x0
JGE 0x001b184e
JMP 0x001b183f
LAB_001b183f:
CALL 0x001f6090
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x214],EAX
JMP 0x001b18c3
LAB_001b184e:
JMP 0x001b1850
LAB_001b1850:
JMP 0x001b18b5
LAB_001b1852:
LEA RAX,[0x3bf1b0]
CMP dword ptr [RAX],0x0
JL 0x001b18b3
LEA RAX,[0x3bf1b0]
MOV EDX,dword ptr [RAX]
LEA RDI,[0x253b30]
MOV ESI,0x3b
XOR EAX,EAX
MOV ECX,EAX
CALL 0x001b19f0
CMP EAX,0x0
JZ 0x001b1890
CALL 0x001f6090
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x224],EAX
JMP 0x001b189a
LAB_001b1890:
XOR EAX,EAX
MOV dword ptr [RBP + -0x224],EAX
JMP 0x001b189a
LAB_001b189a:
MOV EAX,dword ptr [RBP + -0x224]
MOV dword ptr [RBP + -0x21c],EAX
LEA RAX,[0x3bf1b0]
MOV dword ptr [RAX],0xffffffff
LAB_001b18b3:
JMP 0x001b18b5
LAB_001b18b5:
JMP 0x001b18b7
LAB_001b18b7:
MOV EAX,dword ptr [RBP + -0x21c]
MOV dword ptr [RBP + -0x214],EAX
LAB_001b18c3:
MOV EAX,dword ptr [RBP + -0x214]
MOV dword ptr [RBP + -0x228],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001b18f0
MOV EAX,dword ptr [RBP + -0x228]
ADD RSP,0x230
POP RBP
RET
LAB_001b18f0:
CALL 0x0012a270
|
int4 mi_log(int param_1)
{
int4 uVar1;
__pid_t _Var2;
int iVar3;
int8 uVar4;
int4 *puVar5;
long in_FS_OFFSET;
int4 local_22c;
int4 local_224;
int4 local_21c;
int1 local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_224 = 0;
log_type = param_1;
if (param_1 == 0) {
if (-1 < myisam_log_file) {
iVar3 = inline_mysql_file_close
("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c",0x3b,
myisam_log_file,0);
if (iVar3 == 0) {
local_22c = 0;
}
else {
puVar5 = (int4 *)_my_thread_var();
local_22c = *puVar5;
}
local_224 = local_22c;
myisam_log_file = -1;
}
}
else {
if (myisam_pid == 0) {
_Var2 = getpid();
myisam_pid = (long)_Var2;
}
uVar1 = mi_key_file_log;
if (myisam_log_file < 0) {
uVar4 = fn_format(local_218,myisam_log_filename,&DAT_00257ca4,".log",4);
myisam_log_file =
inline_mysql_file_create
(uVar1,"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c",0x35,
uVar4,0,0x402,0);
if (myisam_log_file < 0) {
puVar5 = (int4 *)_my_thread_var();
local_21c = *puVar5;
goto LAB_001b18c3;
}
}
}
local_21c = local_224;
LAB_001b18c3:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_21c;
}
|
|
18,140
|
google::protobuf::compiler::java::WriteMessageDocComment(google::protobuf::io::Printer*, google::protobuf::Descriptor const*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/doc_comment.cc
|
void WriteMessageDocComment(io::Printer* printer, const Descriptor* message) {
printer->Print("/**\n");
WriteDocCommentBody(printer, message);
printer->Print(
" * Protobuf type {@code $fullname$}\n"
" */\n",
"fullname", EscapeJavadoc(message->full_name()));
}
|
O0
|
cpp
|
google::protobuf::compiler::java::WriteMessageDocComment(google::protobuf::io::Printer*, google::protobuf::Descriptor const*):
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq 0x50(%rsp), %rdi
leaq 0x21695d(%rip), %rsi # 0x3b0b37
callq 0x39230
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x19a270
movq 0x50(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x48(%rsp), %rdi
callq 0x39b60
movq %rax, %rsi
leaq 0x28(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x199fc0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rcx
leaq 0x2455cb(%rip), %rsi # 0x3df7f0
leaq 0x218cdf(%rip), %rdx # 0x3b2f0b
callq 0x72500
jmp 0x19a233
leaq 0x28(%rsp), %rdi
callq 0x21cc8
addq $0x58, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x21cc8
movq 0x20(%rsp), %rdi
callq 0x21700
nopw %cs:(%rax,%rax)
|
_ZN6google8protobuf8compiler4java22WriteMessageDocCommentEPNS0_2io7PrinterEPKNS0_10DescriptorE:
sub rsp, 58h
mov qword ptr [rsp+58h+var_8], rdi
mov [rsp+58h+var_10], rsi
mov rdi, qword ptr [rsp+58h+var_8]
lea rsi, asc_3B0B37; "/**\n"
call _ZN6google8protobuf2io7Printer5PrintIJEEEvPKcDpRKT_
mov rdi, qword ptr [rsp+58h+var_8]
mov rsi, [rsp+58h+var_10]
call _ZN6google8protobuf8compiler4javaL19WriteDocCommentBodyINS0_10DescriptorEEEvPNS0_2io7PrinterEPKT_; google::protobuf::compiler::java::WriteDocCommentBody<google::protobuf::Descriptor>(google::protobuf::io::Printer *,google::protobuf::Descriptor const*)
mov rax, qword ptr [rsp+58h+var_8]
mov qword ptr [rsp+58h+var_50], rax; int
mov rdi, [rsp+58h+var_10]
call _ZNK6google8protobuf10Descriptor9full_nameB5cxx11Ev; google::protobuf::Descriptor::full_name(void)
mov rsi, rax; int
lea rdi, [rsp+58h+var_30]; int
mov [rsp+58h+var_48], rdi; void *
call _ZN6google8protobuf8compiler4java13EscapeJavadocERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::compiler::java::EscapeJavadoc(std::string const&)
mov rdi, qword ptr [rsp+58h+var_50]
mov rcx, [rsp+58h+var_48]
lea rsi, aProtobufTypeCo_0; " * Protobuf type {@code $fullname$}\n *"...
lea rdx, aFullname; "fullname"
call _ZN6google8protobuf2io7Printer5PrintIJA9_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvPKcDpRKT_; google::protobuf::io::Printer::Print<char [9],std::string>(char const*,char [9],std::string const&)
jmp short $+2
loc_19A233:
lea rdi, [rsp+58h+var_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
add rsp, 58h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_18], rcx
mov [rsp+arg_14], eax
lea rdi, [rsp+arg_20]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, [rsp+arg_18]
call __Unwind_Resume
|
void google::protobuf::compiler::java::WriteMessageDocComment(
google::protobuf::compiler::java *this,
google::protobuf::io::Printer *a2,
const google::protobuf::Descriptor *a3)
{
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
long long v7; // rax
int v8[8]; // [rsp+28h] [rbp-30h] BYREF
google::protobuf::io::Printer *v9; // [rsp+48h] [rbp-10h]
int v10[2]; // [rsp+50h] [rbp-8h]
*(_QWORD *)v10 = this;
v9 = a2;
google::protobuf::io::Printer::Print<>((long long)this, (long long)"/**\n");
google::protobuf::compiler::java::WriteDocCommentBody<google::protobuf::Descriptor>(
(_DWORD)this,
(_DWORD)a2,
v3,
v4,
v5,
v6);
v7 = google::protobuf::Descriptor::full_name[abi:cxx11]((long long)a2);
google::protobuf::compiler::java::EscapeJavadoc((long long)v8, v7);
google::protobuf::io::Printer::Print<char [9],std::string>(
(long long)this,
(long long)" * Protobuf type {@code $fullname$}\n */\n",
"fullname",
(long long)v8);
std::string::~string(v8);
}
| |||
18,141
|
google::protobuf::compiler::java::WriteMessageDocComment(google::protobuf::io::Printer*, google::protobuf::Descriptor const*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/doc_comment.cc
|
void WriteMessageDocComment(io::Printer* printer, const Descriptor* message) {
printer->Print("/**\n");
WriteDocCommentBody(printer, message);
printer->Print(
" * Protobuf type {@code $fullname$}\n"
" */\n",
"fullname", EscapeJavadoc(message->full_name()));
}
|
O3
|
cpp
|
google::protobuf::compiler::java::WriteMessageDocComment(google::protobuf::io::Printer*, google::protobuf::Descriptor const*):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xd2f3d(%rip), %rsi # 0x1a2963
callq 0x2e40a
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
xorl %eax, %eax
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x48(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r13)
movq %rax, 0x20(%r13)
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x1250a6
testb %al, %al
je 0xcfa7b
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xd0a68
leaq 0x58(%rsp), %r15
movq %r15, %rdi
callq 0x2580e
movq -0x20(%r15), %rdi
cmpq %r13, %rdi
je 0xcfa96
callq 0x1f4a0
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0xcfaa5
callq 0x1f4a0
movq 0x8(%r14), %rsi
addq $0x20, %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xcf8ec
leaq 0x100cfb(%rip), %rsi # 0x1d07bc
leaq 0xd5349(%rip), %rdx # 0x1a4e11
movq %rbx, %rdi
movq %r14, %rcx
callq 0x42e5c
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xcfae6
callq 0x1f4a0
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xcfb19
callq 0x1f4a0
jmp 0xcfb19
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x60f40
movq %rbx, %rdi
callq 0x1f860
|
_ZN6google8protobuf8compiler4java22WriteMessageDocCommentEPNS0_2io7PrinterEPKNS0_10DescriptorE:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 70h
mov r14, rsi
mov rbx, rdi
lea rsi, asc_1A2963; "/**\n"
call _ZN6google8protobuf2io7Printer5PrintIJEEEvPKcDpRKT_
lea r12, [rsp+98h+var_70]
mov [r12-10h], r12
xor eax, eax
mov [r12-8], rax
mov [r12], al
lea r13, [rsp+98h+var_50]
mov [r13-10h], r13
mov [r13-8], rax
mov [r13+0], al
xorps xmm0, xmm0
movups xmmword ptr [r13+10h], xmm0
mov [r13+20h], rax
lea rsi, [rsp+98h+var_90]; google::protobuf::SourceLocation *
mov rdi, r14; this
call _ZNK6google8protobuf10Descriptor17GetSourceLocationEPNS0_14SourceLocationE; google::protobuf::Descriptor::GetSourceLocation(google::protobuf::SourceLocation *)
test al, al
jz short loc_CFA7B
lea rsi, [rsp+98h+var_90]; google::protobuf::io::Printer *
mov rdi, rbx; this
call _ZN6google8protobuf8compiler4javaL30WriteDocCommentBodyForLocationEPNS0_2io7PrinterERKNS0_14SourceLocationE; google::protobuf::compiler::java::WriteDocCommentBodyForLocation(google::protobuf::io::Printer *,google::protobuf::SourceLocation const&)
loc_CFA7B:
lea r15, [rsp+98h+var_40]
mov rdi, r15
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [r15-20h]; void *
cmp rdi, r13
jz short loc_CFA96
call __ZdlPv; operator delete(void *)
loc_CFA96:
mov rdi, [rsp+98h+var_80]; void *
cmp rdi, r12
jz short loc_CFAA5
call __ZdlPv; operator delete(void *)
loc_CFAA5:
mov rsi, [r14+8]
add rsi, 20h ; ' '
lea r14, [rsp+98h+var_90]
mov rdi, r14
call _ZN6google8protobuf8compiler4java13EscapeJavadocERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::compiler::java::EscapeJavadoc(std::string const&)
lea rsi, aProtobufTypeCo_0; " * Protobuf type {@code $fullname$}\n *"...
lea rdx, aFullname; "fullname"
mov rdi, rbx
mov rcx, r14
call _ZN6google8protobuf2io7Printer5PrintIJA9_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvPKcDpRKT_; google::protobuf::io::Printer::Print<char [9],std::string>(char const*,char [9],std::string const&)
lea rax, [rsp+98h+var_80]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_CFAE6
call __ZdlPv; operator delete(void *)
loc_CFAE6:
add rsp, 70h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_CFB19
call __ZdlPv; operator delete(void *)
jmp short loc_CFB19
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN6google8protobuf14SourceLocationD2Ev; google::protobuf::SourceLocation::~SourceLocation()
loc_CFB19:
mov rdi, rbx
call __Unwind_Resume
|
void google::protobuf::compiler::java::WriteMessageDocComment(
google::protobuf::compiler::java *this,
google::protobuf::io::Printer *a2,
const google::protobuf::Descriptor *a3)
{
const google::protobuf::SourceLocation *v3; // rdx
void *v4[2]; // [rsp+8h] [rbp-90h] BYREF
void *v5[2]; // [rsp+18h] [rbp-80h] BYREF
_BYTE v6[16]; // [rsp+28h] [rbp-70h] BYREF
_BYTE *v7; // [rsp+38h] [rbp-60h]
long long v8; // [rsp+40h] [rbp-58h]
_BYTE v9[16]; // [rsp+48h] [rbp-50h] BYREF
__int128 v10; // [rsp+58h] [rbp-40h] BYREF
long long v11; // [rsp+68h] [rbp-30h]
google::protobuf::io::Printer::Print<>(this, "/**\n", a3);
v5[0] = v6;
v5[1] = 0LL;
v6[0] = 0;
v7 = v9;
v8 = 0LL;
v9[0] = 0;
v10 = 0LL;
v11 = 0LL;
if ( (unsigned __int8)google::protobuf::Descriptor::GetSourceLocation(a2, (google::protobuf::SourceLocation *)v4) )
google::protobuf::compiler::java::WriteDocCommentBodyForLocation(this, (google::protobuf::io::Printer *)v4, v3);
std::vector<std::string>::~vector((void ***)&v10);
if ( v7 != v9 )
operator delete(v7);
if ( v5[0] != v6 )
operator delete(v5[0]);
google::protobuf::compiler::java::EscapeJavadoc((long long)v4, (_QWORD *)(*((_QWORD *)a2 + 1) + 32LL));
google::protobuf::io::Printer::Print<char [9],std::string>(this);
if ( v4[0] != v5 )
operator delete(v4[0]);
}
|
WriteMessageDocComment:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x70
MOV R14,RSI
MOV RBX,RDI
LEA RSI,[0x2a2963]
CALL 0x0012e40a
LEA R12,[RSP + 0x28]
MOV qword ptr [R12 + -0x10],R12
XOR EAX,EAX
MOV qword ptr [R12 + -0x8],RAX
MOV byte ptr [R12],AL
LEA R13,[RSP + 0x48]
MOV qword ptr [R13 + -0x10],R13
MOV qword ptr [R13 + -0x8],RAX
MOV byte ptr [R13],AL
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R13 + 0x10],XMM0
MOV qword ptr [R13 + 0x20],RAX
LAB_001cfa5d:
LEA RSI,[RSP + 0x8]
MOV RDI,R14
CALL 0x002250a6
TEST AL,AL
JZ 0x001cfa7b
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x001d0a68
LAB_001cfa7b:
LEA R15,[RSP + 0x58]
MOV RDI,R15
CALL 0x0012580e
MOV RDI,qword ptr [R15 + -0x20]
CMP RDI,R13
JZ 0x001cfa96
CALL 0x0011f4a0
LAB_001cfa96:
MOV RDI,qword ptr [RSP + 0x18]
CMP RDI,R12
JZ 0x001cfaa5
CALL 0x0011f4a0
LAB_001cfaa5:
MOV RSI,qword ptr [R14 + 0x8]
ADD RSI,0x20
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x001cf8ec
LAB_001cfaba:
LEA RSI,[0x2d07bc]
LEA RDX,[0x2a4e11]
MOV RDI,RBX
MOV RCX,R14
CALL 0x00142e5c
LAB_001cfad3:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001cfae6
CALL 0x0011f4a0
LAB_001cfae6:
ADD RSP,0x70
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* google::protobuf::compiler::java::WriteMessageDocComment(google::protobuf::io::Printer*,
google::protobuf::Descriptor const*) */
void google::protobuf::compiler::java::WriteMessageDocComment(Printer *param_1,Descriptor *param_2)
{
char cVar1;
int1 **local_90 [2];
int1 *local_80;
int8 local_78;
int1 local_70 [16];
int1 *local_60;
int8 local_58;
int1 local_50 [16];
int8 local_40;
int8 uStack_38;
int8 local_30;
io::Printer::Print<>(param_1,"/**\n");
local_78 = 0;
local_70[0] = 0;
local_58 = 0;
local_50[0] = 0;
local_40 = 0;
uStack_38 = 0;
local_30 = 0;
/* try { // try from 001cfa5d to 001cfa7a has its CatchHandler @ 001cfb0c */
local_80 = local_70;
local_60 = local_50;
cVar1 = Descriptor::GetSourceLocation(param_2,(SourceLocation *)local_90);
if (cVar1 != '\0') {
WriteDocCommentBodyForLocation(param_1,(SourceLocation *)local_90);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_40);
if (local_60 != local_50) {
operator_delete(local_60);
}
if (local_80 != local_70) {
operator_delete(local_80);
}
EscapeJavadoc((java *)local_90,(string *)(*(long *)(param_2 + 8) + 0x20));
/* try { // try from 001cfaba to 001cfad2 has its CatchHandler @ 001cfaf4 */
io::Printer::Print<char[9],std::__cxx11::string>
((char *)param_1," * Protobuf type {@code $fullname$}\n */\n",(string *)"fullname");
if (local_90[0] != &local_80) {
operator_delete(local_90[0]);
}
return;
}
|
|
18,142
|
google::protobuf::DescriptorBuilder::ValidateEnumOptions(google::protobuf::EnumDescriptor*, google::protobuf::EnumDescriptorProto const&)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
|
void DescriptorBuilder::ValidateEnumOptions(EnumDescriptor* enm,
const EnumDescriptorProto& proto) {
VALIDATE_OPTIONS_FROM_ARRAY(enm, value, EnumValue);
if (!enm->options().has_allow_alias() || !enm->options().allow_alias()) {
std::map<int, std::string> used_values;
for (int i = 0; i < enm->value_count(); ++i) {
const EnumValueDescriptor* enum_value = enm->value(i);
if (used_values.find(enum_value->number()) != used_values.end()) {
std::string error =
"\"" + enum_value->full_name() +
"\" uses the same enum value as \"" +
used_values[enum_value->number()] +
"\". If this is intended, set "
"'option allow_alias = true;' to the enum definition.";
if (!enm->options().allow_alias()) {
// Generate error if duplicated enum values are explicitly disallowed.
AddError(enm->full_name(), proto.value(i),
DescriptorPool::ErrorCollector::NUMBER, error);
}
} else {
used_values[enum_value->number()] = enum_value->full_name();
}
}
}
}
|
O3
|
cpp
|
google::protobuf::DescriptorBuilder::ValidateEnumOptions(google::protobuf::EnumDescriptor*, google::protobuf::EnumDescriptorProto const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, 0x70(%rsp)
movq %rsi, %r14
movq %rdi, 0x68(%rsp)
movq 0x20(%rsi), %rax
testb $0x1, 0x28(%rax)
je 0xd81c8
cmpb $0x0, 0x48(%rax)
jne 0xd8462
leaq 0xa0(%rsp), %rbp
movl $0x0, (%rbp)
xorl %eax, %eax
movq %rax, 0x8(%rbp)
movq %rbp, 0x10(%rbp)
movq %rbp, 0x18(%rbp)
movq %rax, 0x20(%rbp)
cmpl $0x0, 0x4(%r14)
jle 0xd8455
xorl %r15d, %r15d
leaq 0x78(%rsp), %r12
movq 0x28(%r14), %rax
movq %r15, %rcx
shlq $0x5, %rcx
leaq (%rax,%rcx), %rbx
movl 0x4(%rax,%rcx), %eax
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0xd8251
movq %rbp, %r8
movq %r8, %rcx
movq %rdi, %rdx
movl 0x20(%rdi), %esi
xorl %edi, %edi
cmpl %eax, %esi
setl %dil
movq %rdx, %r8
cmovlq %rcx, %r8
movq 0x10(%rdx,%rdi,8), %rdi
testq %rdi, %rdi
jne 0xd821f
cmpq %rbp, %r8
je 0xd8251
cmpl %eax, %esi
cmovlq %rcx, %rdx
cmpl 0x20(%rdx), %eax
jge 0xd828f
movq 0x8(%rbx), %rbx
movl %eax, 0x8(%rsp)
leaq 0x98(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2d250
addq $0x20, %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2d240
incq %r15
movslq 0x4(%r14), %rax
cmpq %rax, %r15
jl 0xd81fc
jmp 0xd8455
movq 0x8(%rbx), %rdx
addq $0x20, %rdx
movq %r12, %r13
movq %r12, %rdi
leaq 0x94ca4(%rip), %rsi # 0x16cf48
callq 0x2d040
movq %r13, %rdi
leaq 0x95582(%rip), %rsi # 0x16d835
callq 0x2e5a0
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xd82e0
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0xd82e6
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x4(%rbx), %eax
movl %eax, 0x4(%rsp)
leaq 0x98(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x2d250
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
callq 0x2e460
leaq 0x58(%rsp), %rsi
movq %rsi, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xd8350
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0xd8356
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x48(%rsp), %rdi
leaq 0x954db(%rip), %rsi # 0x16d855
callq 0x2e5a0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xd83a7
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xd83ad
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xd83d9
callq 0x2d160
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xd83ed
callq 0x2d160
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xd8404
callq 0x2d160
movq 0x20(%r14), %rax
cmpb $0x0, 0x48(%rax)
jne 0xd8438
movq 0x8(%r14), %rsi
addq $0x20, %rsi
movq 0x70(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x8(%rax,%r15,8), %rdx
movq 0x68(%rsp), %rdi
movl $0x1, %ecx
leaq 0x8(%rsp), %r8
callq 0xc9ee0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xd827a
callq 0x2d160
jmp 0xd827a
leaq 0x98(%rsp), %rdi
callq 0x2c210
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
jmp 0xd84c7
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xd84a6
callq 0x2d160
jmp 0xd84a6
movq %rax, %rbx
jmp 0xd84ba
jmp 0xd84d3
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xd84ba
callq 0x2d160
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xd84d6
callq 0x2d160
jmp 0xd84d6
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x2c210
movq %rbx, %rdi
callq 0x2e220
nop
|
_ZN6google8protobuf17DescriptorBuilder19ValidateEnumOptionsEPNS0_14EnumDescriptorERKNS0_19EnumDescriptorProtoE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov [rsp+0F8h+var_88], rdx
mov r14, rsi
mov [rsp+0F8h+var_90], rdi
mov rax, [rsi+20h]
test byte ptr [rax+28h], 1
jz short loc_D81C8
cmp byte ptr [rax+48h], 0
jnz loc_D8462
loc_D81C8:
lea rbp, [rsp+0F8h+var_58]
mov dword ptr [rbp+0], 0
xor eax, eax
mov [rbp+8], rax
mov [rbp+10h], rbp
mov [rbp+18h], rbp
mov [rbp+20h], rax
cmp dword ptr [r14+4], 0
jle loc_D8455
xor r15d, r15d
lea r12, [rsp+0F8h+var_80]
loc_D81FC:
mov rax, [r14+28h]
mov rcx, r15
shl rcx, 5
lea rbx, [rax+rcx]
mov eax, [rax+rcx+4]
mov rdi, [rsp+0F8h+var_50]
test rdi, rdi
jz short loc_D8251
mov r8, rbp
loc_D821F:
mov rcx, r8
mov rdx, rdi
mov esi, [rdi+20h]
xor edi, edi
cmp esi, eax
setl dil
mov r8, rdx
cmovl r8, rcx
mov rdi, [rdx+rdi*8+10h]
test rdi, rdi
jnz short loc_D821F
cmp r8, rbp
jz short loc_D8251
cmp esi, eax
cmovl rdx, rcx
cmp eax, [rdx+20h]
jge short loc_D828F
loc_D8251:
mov rbx, [rbx+8]
mov dword ptr [rsp+0F8h+var_F0], eax
lea rdi, [rsp+0F8h+var_60]
lea rsi, [rsp+0F8h+var_F0]
call __ZNSt3mapIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIiESaISt4pairIKiS5_EEEixEOi; std::map<int,std::string>::operator[](int &&)
add rbx, 20h ; ' '
mov rdi, rax
mov rsi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
loc_D827A:
inc r15
movsxd rax, dword ptr [r14+4]
cmp r15, rax
jl loc_D81FC
jmp loc_D8455
loc_D828F:
mov rdx, [rbx+8]
add rdx, 20h ; ' '
mov r13, r12
mov rdi, r12
lea rsi, aNoteThatEnumVa+82h; "\""
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
mov rdi, r13
lea rsi, aUsesTheSameEnu; "\" uses the same enum value as \""
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rsi, [rsp+0F8h+var_C0]
mov [rsp+0F8h+var_D0], rsi
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_D82E0
mov [rsp+0F8h+var_D0], rdx
mov rdx, [rcx]
mov [rsp+0F8h+var_C0], rdx
jmp short loc_D82E6
loc_D82E0:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rsi], xmm0
loc_D82E6:
mov rdx, [rax+8]
mov [rsp+0F8h+var_C8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov eax, [rbx+4]
mov [rsp+0F8h+var_F4], eax
lea rdi, [rsp+0F8h+var_60]
lea rsi, [rsp+0F8h+var_F4]
call __ZNSt3mapIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIiESaISt4pairIKiS5_EEEixEOi; std::map<int,std::string>::operator[](int &&)
mov rsi, [rax]
mov rdx, [rax+8]
lea rdi, [rsp+0F8h+var_D0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea rsi, [rsp+0F8h+var_A0]
mov [rsp+0F8h+var_B0], rsi
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_D8350
mov [rsp+0F8h+var_B0], rdx
mov rdx, [rcx]
mov [rsp+0F8h+var_A0], rdx
jmp short loc_D8356
loc_D8350:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rsi], xmm0
loc_D8356:
mov rdx, [rax+8]
mov [rsp+0F8h+var_A8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rdi, [rsp+0F8h+var_B0]
lea rsi, aIfThisIsIntend; "\". If this is intended, set 'option al"...
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rsi, [rsp+0F8h+var_E0]
mov [rsp+0F8h+var_F0], rsi
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_D83A7
mov [rsp+0F8h+var_F0], rdx
mov rdx, [rcx]
mov [rsp+0F8h+var_E0], rdx
jmp short loc_D83AD
loc_D83A7:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rsi], xmm0
loc_D83AD:
mov rdx, [rax+8]
mov [rsp+0F8h+var_E8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rdi, [rsp+0F8h+var_B0]; void *
lea rax, [rsp+0F8h+var_A0]
cmp rdi, rax
jz short loc_D83D9
call __ZdlPv; operator delete(void *)
loc_D83D9:
mov rdi, [rsp+0F8h+var_D0]; void *
lea rax, [rsp+0F8h+var_C0]
cmp rdi, rax
jz short loc_D83ED
call __ZdlPv; operator delete(void *)
loc_D83ED:
mov rdi, [rsp+0F8h+var_80]; void *
lea rax, [rsp+0F8h+var_70]
cmp rdi, rax
jz short loc_D8404
call __ZdlPv; operator delete(void *)
loc_D8404:
mov rax, [r14+20h]
cmp byte ptr [rax+48h], 0
jnz short loc_D8438
mov rsi, [r14+8]
add rsi, 20h ; ' '
mov rax, [rsp+0F8h+var_88]
mov rax, [rax+28h]
mov rdx, [rax+r15*8+8]
mov rdi, [rsp+0F8h+var_90]
mov ecx, 1
lea r8, [rsp+0F8h+var_F0]
call _ZN6google8protobuf17DescriptorBuilder8AddErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_7MessageENS0_14DescriptorPool14ErrorCollector13ErrorLocationES9_; google::protobuf::DescriptorBuilder::AddError(std::string const&,google::protobuf::Message const&,google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation,std::string const&)
loc_D8438:
mov rdi, [rsp+0F8h+var_F0]; void *
lea rax, [rsp+0F8h+var_E0]
cmp rdi, rax
jz loc_D827A
call __ZdlPv; operator delete(void *)
jmp loc_D827A
loc_D8455:
lea rdi, [rsp+0F8h+var_60]
call __ZNSt8_Rb_treeIiSt4pairIKiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS8_ESt4lessIiESaIS8_EED2Ev; std::_Rb_tree<int,std::pair<int const,std::string>,std::_Select1st<std::pair<int const,std::string>>,std::less<int>,std::allocator<std::pair<int const,std::string>>>::~_Rb_tree()
loc_D8462:
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
lea rax, [rsp+arg_10]
jmp short loc_D84C7
mov rbx, rax
mov rdi, [rsp+arg_40]; void *
lea rax, [rsp+arg_50]
cmp rdi, rax
jz short loc_D84A6
call __ZdlPv; operator delete(void *)
jmp short loc_D84A6
mov rbx, rax
jmp short loc_D84BA
jmp short loc_D84D3
mov rbx, rax
loc_D84A6:
mov rdi, [rsp+arg_20]; void *
lea rax, [rsp+arg_30]
cmp rdi, rax
jz short loc_D84BA
call __ZdlPv; operator delete(void *)
loc_D84BA:
mov rdi, [rsp+arg_70]; void *
lea rax, [rsp+arg_80]
loc_D84C7:
cmp rdi, rax
jz short loc_D84D6
call __ZdlPv; operator delete(void *)
jmp short loc_D84D6
loc_D84D3:
mov rbx, rax
loc_D84D6:
lea rdi, [rsp+arg_90]
call __ZNSt8_Rb_treeIiSt4pairIKiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS8_ESt4lessIiESaIS8_EED2Ev; std::_Rb_tree<int,std::pair<int const,std::string>,std::_Select1st<std::pair<int const,std::string>>,std::less<int>,std::allocator<std::pair<int const,std::string>>>::~_Rb_tree()
mov rdi, rbx
call __Unwind_Resume
|
long long google::protobuf::DescriptorBuilder::ValidateEnumOptions(
google::protobuf::DescriptorBuilder *this,
google::protobuf::EnumDescriptor *a2,
const google::protobuf::EnumDescriptorProto *a3)
{
long long result; // rax
long long v5; // r15
long long v6; // rbx
int v7; // eax
int *v8; // rdi
int *v9; // r8
int *v10; // rcx
int *v11; // rdx
int v12; // esi
long long v13; // rbx
long long v14; // rax
long long v15; // rax
__int128 *v16; // rcx
_QWORD *v17; // rax
long long v18; // rax
__int128 *v19; // rcx
long long v20; // rax
__int128 *v21; // rcx
int v22; // [rsp+4h] [rbp-F4h] BYREF
void *v23[2]; // [rsp+8h] [rbp-F0h] BYREF
__int128 v24; // [rsp+18h] [rbp-E0h] BYREF
void *v25[2]; // [rsp+28h] [rbp-D0h] BYREF
__int128 v26; // [rsp+38h] [rbp-C0h] BYREF
void *v27[2]; // [rsp+48h] [rbp-B0h] BYREF
__int128 v28; // [rsp+58h] [rbp-A0h] BYREF
google::protobuf::DescriptorBuilder *v29; // [rsp+68h] [rbp-90h]
const google::protobuf::EnumDescriptorProto *v30; // [rsp+70h] [rbp-88h]
void *v31[2]; // [rsp+78h] [rbp-80h] BYREF
char v32; // [rsp+88h] [rbp-70h] BYREF
char v33[8]; // [rsp+98h] [rbp-60h] BYREF
int v34; // [rsp+A0h] [rbp-58h] BYREF
int *v35; // [rsp+A8h] [rbp-50h]
int *v36; // [rsp+B0h] [rbp-48h]
int *v37; // [rsp+B8h] [rbp-40h]
long long v38; // [rsp+C0h] [rbp-38h]
v30 = a3;
v29 = this;
result = *((_QWORD *)a2 + 4);
if ( (*(_BYTE *)(result + 40) & 1) == 0 || !*(_BYTE *)(result + 72) )
{
v34 = 0;
v35 = 0LL;
v36 = &v34;
v37 = &v34;
v38 = 0LL;
if ( *((int *)a2 + 1) > 0 )
{
v5 = 0LL;
do
{
v6 = *((_QWORD *)a2 + 5) + 32 * v5;
v7 = *(_DWORD *)(v6 + 4);
v8 = v35;
if ( !v35 )
goto LABEL_14;
v9 = &v34;
do
{
v10 = v9;
v11 = v8;
v12 = v8[8];
v9 = v8;
if ( v12 < v7 )
v9 = v10;
v8 = *(int **)&v8[2 * (v12 < v7) + 4];
}
while ( v8 );
if ( v9 == &v34 )
goto LABEL_14;
if ( v12 < v7 )
v11 = v10;
if ( v7 >= v11[8] )
{
std::operator+<char>(v31, "\"", *(_QWORD *)(v6 + 8) + 32LL);
v15 = std::string::append(v31, "\" uses the same enum value as \"");
v25[0] = &v26;
v16 = (__int128 *)(v15 + 16);
if ( *(_QWORD *)v15 == v15 + 16 )
{
v26 = *v16;
}
else
{
v25[0] = *(void **)v15;
*(_QWORD *)&v26 = *(_QWORD *)v16;
}
v25[1] = *(void **)(v15 + 8);
*(_QWORD *)v15 = v16;
*(_QWORD *)(v15 + 8) = 0LL;
*(_BYTE *)(v15 + 16) = 0;
v22 = *(_DWORD *)(v6 + 4);
v17 = (_QWORD *)std::map<int,std::string>::operator[](v33, &v22);
v18 = std::string::_M_append(v25, *v17, v17[1]);
v27[0] = &v28;
v19 = (__int128 *)(v18 + 16);
if ( *(_QWORD *)v18 == v18 + 16 )
{
v28 = *v19;
}
else
{
v27[0] = *(void **)v18;
*(_QWORD *)&v28 = *(_QWORD *)v19;
}
v27[1] = *(void **)(v18 + 8);
*(_QWORD *)v18 = v19;
*(_QWORD *)(v18 + 8) = 0LL;
*(_BYTE *)(v18 + 16) = 0;
v20 = std::string::append(
v27,
"\". If this is intended, set 'option allow_alias = true;' to the enum definition.");
v23[0] = &v24;
v21 = (__int128 *)(v20 + 16);
if ( *(_QWORD *)v20 == v20 + 16 )
{
v24 = *v21;
}
else
{
v23[0] = *(void **)v20;
*(_QWORD *)&v24 = *(_QWORD *)v21;
}
v23[1] = *(void **)(v20 + 8);
*(_QWORD *)v20 = v21;
*(_QWORD *)(v20 + 8) = 0LL;
*(_BYTE *)(v20 + 16) = 0;
if ( v27[0] != &v28 )
operator delete(v27[0]);
if ( v25[0] != &v26 )
operator delete(v25[0]);
if ( v31[0] != &v32 )
operator delete(v31[0]);
if ( !*(_BYTE *)(*((_QWORD *)a2 + 4) + 72LL) )
google::protobuf::DescriptorBuilder::AddError(
(long long)v29,
(_QWORD *)(*((_QWORD *)a2 + 1) + 32LL),
*(_QWORD *)(*((_QWORD *)v30 + 5) + 8 * v5 + 8),
1u,
v23);
if ( v23[0] != &v24 )
operator delete(v23[0]);
}
else
{
LABEL_14:
v13 = *(_QWORD *)(v6 + 8);
LODWORD(v23[0]) = v7;
v14 = std::map<int,std::string>::operator[](v33, v23);
std::string::_M_assign(v14, v13 + 32);
}
++v5;
}
while ( v5 < *((int *)a2 + 1) );
}
return std::_Rb_tree<int,std::pair<int const,std::string>,std::_Select1st<std::pair<int const,std::string>>,std::less<int>,std::allocator<std::pair<int const,std::string>>>::~_Rb_tree(v33);
}
return result;
}
|
ValidateEnumOptions:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV qword ptr [RSP + 0x70],RDX
MOV R14,RSI
MOV qword ptr [RSP + 0x68],RDI
MOV RAX,qword ptr [RSI + 0x20]
TEST byte ptr [RAX + 0x28],0x1
JZ 0x001d81c8
CMP byte ptr [RAX + 0x48],0x0
JNZ 0x001d8462
LAB_001d81c8:
LEA RBP,[RSP + 0xa0]
MOV dword ptr [RBP],0x0
XOR EAX,EAX
MOV qword ptr [RBP + 0x8],RAX
MOV qword ptr [RBP + 0x10],RBP
MOV qword ptr [RBP + 0x18],RBP
MOV qword ptr [RBP + 0x20],RAX
CMP dword ptr [R14 + 0x4],0x0
JLE 0x001d8455
XOR R15D,R15D
LEA R12,[RSP + 0x78]
LAB_001d81fc:
MOV RAX,qword ptr [R14 + 0x28]
MOV RCX,R15
SHL RCX,0x5
LEA RBX,[RAX + RCX*0x1]
MOV EAX,dword ptr [RAX + RCX*0x1 + 0x4]
MOV RDI,qword ptr [RSP + 0xa8]
TEST RDI,RDI
JZ 0x001d8251
MOV R8,RBP
LAB_001d821f:
MOV RCX,R8
MOV RDX,RDI
MOV ESI,dword ptr [RDI + 0x20]
XOR EDI,EDI
CMP ESI,EAX
SETL DIL
MOV R8,RDX
CMOVL R8,RCX
MOV RDI,qword ptr [RDX + RDI*0x8 + 0x10]
TEST RDI,RDI
JNZ 0x001d821f
CMP R8,RBP
JZ 0x001d8251
CMP ESI,EAX
CMOVL RDX,RCX
CMP EAX,dword ptr [RDX + 0x20]
JGE 0x001d828f
LAB_001d8251:
MOV RBX,qword ptr [RBX + 0x8]
MOV dword ptr [RSP + 0x8],EAX
LAB_001d8259:
LEA RDI,[RSP + 0x98]
LEA RSI,[RSP + 0x8]
CALL 0x0012d250
ADD RBX,0x20
MOV RDI,RAX
MOV RSI,RBX
CALL 0x0012d240
LAB_001d827a:
INC R15
MOVSXD RAX,dword ptr [R14 + 0x4]
CMP R15,RAX
JL 0x001d81fc
JMP 0x001d8455
LAB_001d828f:
MOV RDX,qword ptr [RBX + 0x8]
ADD RDX,0x20
LAB_001d8297:
MOV R13,R12
MOV RDI,R12
LEA RSI,[0x26cf48]
CALL 0x0012d040
LAB_001d82a9:
MOV RDI,R13
LEA RSI,[0x26d835]
CALL 0x0012e5a0
LEA RSI,[RSP + 0x38]
MOV qword ptr [RSP + 0x28],RSI
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x001d82e0
MOV qword ptr [RSP + 0x28],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x38],RDX
JMP 0x001d82e6
LAB_001d82e0:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RSI],XMM0
LAB_001d82e6:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV EAX,dword ptr [RBX + 0x4]
MOV dword ptr [RSP + 0x4],EAX
LAB_001d8305:
LEA RDI,[RSP + 0x98]
LEA RSI,[RSP + 0x4]
CALL 0x0012d250
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
LEA RDI,[RSP + 0x28]
CALL 0x0012e460
LEA RSI,[RSP + 0x58]
MOV qword ptr [RSP + 0x48],RSI
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x001d8350
MOV qword ptr [RSP + 0x48],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x58],RDX
JMP 0x001d8356
LAB_001d8350:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RSI],XMM0
LAB_001d8356:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x50],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_001d836e:
LEA RDI,[RSP + 0x48]
LEA RSI,[0x26d855]
CALL 0x0012e5a0
LEA RSI,[RSP + 0x18]
MOV qword ptr [RSP + 0x8],RSI
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x001d83a7
MOV qword ptr [RSP + 0x8],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x18],RDX
JMP 0x001d83ad
LAB_001d83a7:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RSI],XMM0
LAB_001d83ad:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV RDI,qword ptr [RSP + 0x48]
LEA RAX,[RSP + 0x58]
CMP RDI,RAX
JZ 0x001d83d9
CALL 0x0012d160
LAB_001d83d9:
MOV RDI,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x38]
CMP RDI,RAX
JZ 0x001d83ed
CALL 0x0012d160
LAB_001d83ed:
MOV RDI,qword ptr [RSP + 0x78]
LEA RAX,[RSP + 0x88]
CMP RDI,RAX
JZ 0x001d8404
CALL 0x0012d160
LAB_001d8404:
MOV RAX,qword ptr [R14 + 0x20]
CMP byte ptr [RAX + 0x48],0x0
JNZ 0x001d8438
MOV RSI,qword ptr [R14 + 0x8]
ADD RSI,0x20
MOV RAX,qword ptr [RSP + 0x70]
MOV RAX,qword ptr [RAX + 0x28]
MOV RDX,qword ptr [RAX + R15*0x8 + 0x8]
LAB_001d8424:
MOV RDI,qword ptr [RSP + 0x68]
MOV ECX,0x1
LEA R8,[RSP + 0x8]
CALL 0x001c9ee0
LAB_001d8438:
MOV RDI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x001d827a
CALL 0x0012d160
JMP 0x001d827a
LAB_001d8455:
LEA RDI,[RSP + 0x98]
CALL 0x0012c210
LAB_001d8462:
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::DescriptorBuilder::ValidateEnumOptions(google::protobuf::EnumDescriptor*,
google::protobuf::EnumDescriptorProto const&) */
void __thiscall
google::protobuf::DescriptorBuilder::ValidateEnumOptions
(DescriptorBuilder *this,EnumDescriptor *param_1,EnumDescriptorProto *param_2)
{
long lVar1;
int iVar2;
int iVar3;
int4 *puVar4;
string *this_00;
long *plVar5;
int8 *puVar6;
long *plVar7;
int4 *puVar8;
int4 *puVar9;
int4 *puVar10;
long lVar11;
int local_f4;
long *local_f0;
long local_e8;
long local_e0;
long lStack_d8;
long *local_d0;
long local_c8;
long local_c0;
long lStack_b8;
long *local_b0;
long local_a8;
long local_a0;
long lStack_98;
DescriptorBuilder *local_90;
EnumDescriptorProto *local_88;
int1 *local_80 [2];
int1 local_70 [16];
map<int,std::__cxx11::string,std::less<int>,std::allocator<std::pair<int_const,std::__cxx11::string>>>
local_60 [8];
int4 local_58 [2];
int4 *local_50;
int4 *local_48;
int4 *local_40;
int8 local_38;
if (((*(byte *)(*(long *)(param_1 + 0x20) + 0x28) & 1) == 0) ||
(*(char *)(*(long *)(param_1 + 0x20) + 0x48) == '\0')) {
local_58[0] = 0;
local_50 = (int4 *)0x0;
local_38 = 0;
local_90 = this;
local_88 = param_2;
local_48 = local_58;
local_40 = local_58;
if (0 < *(int *)(param_1 + 4)) {
lVar11 = 0;
do {
lVar1 = *(long *)(param_1 + 0x28) + lVar11 * 0x20;
iVar2 = *(int *)(*(long *)(param_1 + 0x28) + 4 + lVar11 * 0x20);
puVar4 = local_50;
puVar10 = local_58;
if (local_50 == (int4 *)0x0) {
LAB_001d8251:
lVar1 = *(long *)(lVar1 + 8);
local_f0 = (long *)CONCAT44(local_f0._4_4_,iVar2);
/* try { // try from 001d8259 to 001d8279 has its CatchHandler @ 001d84d3 */
this_00 = (string *)
std::
map<int,std::__cxx11::string,std::less<int>,std::allocator<std::pair<int_const,std::__cxx11::string>>>
::operator[](local_60,(int *)&local_f0);
std::__cxx11::string::_M_assign(this_00,(string *)(lVar1 + 0x20));
}
else {
do {
puVar9 = puVar10;
puVar8 = puVar4;
iVar3 = puVar8[8];
puVar10 = puVar8;
if (iVar3 < iVar2) {
puVar10 = puVar9;
}
puVar4 = *(int4 **)(puVar8 + (ulong)(iVar3 < iVar2) * 2 + 4);
} while (*(int4 **)(puVar8 + (ulong)(iVar3 < iVar2) * 2 + 4) != (int4 *)0x0);
if (puVar10 == local_58) goto LAB_001d8251;
if (iVar3 < iVar2) {
puVar8 = puVar9;
}
if (iVar2 < (int)puVar8[8]) goto LAB_001d8251;
/* try { // try from 001d8297 to 001d82a8 has its CatchHandler @ 001d84a1 */
std::operator+((char *)local_80,(string *)0x26cf48);
/* try { // try from 001d82a9 to 001d82b7 has its CatchHandler @ 001d849c */
plVar5 = (long *)std::__cxx11::string::append
((string *)local_80,"\" uses the same enum value as \"");
local_d0 = &local_c0;
plVar7 = plVar5 + 2;
if ((long *)*plVar5 == plVar7) {
local_c0 = *plVar7;
lStack_b8 = plVar5[3];
}
else {
local_c0 = *plVar7;
local_d0 = (long *)*plVar5;
}
local_c8 = plVar5[1];
*plVar5 = (long)plVar7;
plVar5[1] = 0;
*(int1 *)(plVar5 + 2) = 0;
local_f4 = *(int *)(lVar1 + 4);
/* try { // try from 001d8305 to 001d8327 has its CatchHandler @ 001d84a3 */
puVar6 = (int8 *)
std::
map<int,std::__cxx11::string,std::less<int>,std::allocator<std::pair<int_const,std::__cxx11::string>>>
::operator[](local_60,&local_f4);
plVar5 = (long *)std::__cxx11::string::_M_append
((string *)&local_d0,(char *)*puVar6,puVar6[1]);
local_b0 = &local_a0;
plVar7 = plVar5 + 2;
if ((long *)*plVar5 == plVar7) {
local_a0 = *plVar7;
lStack_98 = plVar5[3];
}
else {
local_a0 = *plVar7;
local_b0 = (long *)*plVar5;
}
local_a8 = plVar5[1];
*plVar5 = (long)plVar7;
plVar5[1] = 0;
*(int1 *)(plVar5 + 2) = 0;
/* try { // try from 001d836e to 001d837e has its CatchHandler @ 001d8483 */
plVar5 = (long *)std::__cxx11::string::append
((string *)&local_b0,
"\". If this is intended, set \'option allow_alias = true;\' to the enum definition."
);
local_f0 = &local_e0;
plVar7 = plVar5 + 2;
if ((long *)*plVar5 == plVar7) {
local_e0 = *plVar7;
lStack_d8 = plVar5[3];
}
else {
local_e0 = *plVar7;
local_f0 = (long *)*plVar5;
}
local_e8 = plVar5[1];
*plVar5 = (long)plVar7;
plVar5[1] = 0;
*(int1 *)(plVar5 + 2) = 0;
if (local_b0 != &local_a0) {
operator_delete(local_b0);
}
if (local_d0 != &local_c0) {
operator_delete(local_d0);
}
if (local_80[0] != local_70) {
operator_delete(local_80[0]);
}
if (*(char *)(*(long *)(param_1 + 0x20) + 0x48) == '\0') {
/* try { // try from 001d8424 to 001d8437 has its CatchHandler @ 001d8474 */
AddError(local_90,*(long *)(param_1 + 8) + 0x20,
*(int8 *)(*(long *)(local_88 + 0x28) + 8 + lVar11 * 8),1,&local_f0);
}
if (local_f0 != &local_e0) {
operator_delete(local_f0);
}
}
lVar11 = lVar11 + 1;
} while (lVar11 < *(int *)(param_1 + 4));
}
std::
_Rb_tree<int,std::pair<int_const,std::__cxx11::string>,std::_Select1st<std::pair<int_const,std::__cxx11::string>>,std::less<int>,std::allocator<std::pair<int_const,std::__cxx11::string>>>
::~_Rb_tree((_Rb_tree<int,std::pair<int_const,std::__cxx11::string>,std::_Select1st<std::pair<int_const,std::__cxx11::string>>,std::less<int>,std::allocator<std::pair<int_const,std::__cxx11::string>>>
*)local_60);
}
return;
}
|
|
18,143
|
testing::internal::FilePath::CreateFolder() const
|
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest-filepath.cc
|
bool FilePath::CreateFolder() const {
#ifdef GTEST_OS_WINDOWS_MOBILE
FilePath removed_sep(this->RemoveTrailingPathSeparator());
LPCWSTR unicode = String::AnsiToUtf16(removed_sep.c_str());
int result = CreateDirectory(unicode, nullptr) ? 0 : -1;
delete[] unicode;
#elif defined(GTEST_OS_WINDOWS)
int result = _mkdir(pathname_.c_str());
#elif defined(GTEST_OS_ESP8266) || defined(GTEST_OS_XTENSA) || \
defined(GTEST_OS_QURT) || defined(GTEST_OS_NXP_QN9090) || \
defined(GTEST_OS_NRF52)
// do nothing
int result = 0;
#else
int result = mkdir(pathname_.c_str(), 0777);
#endif // GTEST_OS_WINDOWS_MOBILE
if (result == -1) {
return this->DirectoryExists(); // An error is OK if the directory exists.
}
return true; // No error.
}
|
O1
|
cpp
|
testing::internal::FilePath::CreateFolder() const:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
movl $0x1ff, %esi # imm = 0x1FF
callq 0x8210
movl %eax, %ecx
movb $0x1, %al
cmpl $-0x1, %ecx
jne 0x15dd3
leaq 0x8(%rsp), %r14
movl $0x90, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x82b0
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x8440
movl 0x18(%r14), %ecx
andl $0xf000, %ecx # imm = 0xF000
xorl $0x4000, %ecx # imm = 0x4000
orl %eax, %ecx
sete %al
addq $0x98, %rsp
popq %rbx
popq %r14
retq
|
_ZNK7testing8internal8FilePath12CreateFolderEv:
push r14
push rbx
sub rsp, 98h
mov rbx, rdi
mov rdi, [rdi]
mov esi, 1FFh
call _mkdir
mov ecx, eax
mov al, 1
cmp ecx, 0FFFFFFFFh
jnz short loc_15DD3
lea r14, [rsp+0A8h+var_A0]
mov edx, 90h
mov rdi, r14
xor esi, esi
call _memset
mov rdi, [rbx]
mov rsi, r14
call _stat
mov ecx, [r14+18h]
and ecx, 0F000h
xor ecx, 4000h
or ecx, eax
setz al
loc_15DD3:
add rsp, 98h
pop rbx
pop r14
retn
|
bool testing::internal::FilePath::CreateFolder(testing::internal::FilePath *this)
{
int v1; // ecx
bool result; // al
int v3; // eax
_BYTE v4[24]; // [rsp+8h] [rbp-A0h] BYREF
__int16 v5; // [rsp+20h] [rbp-88h]
v1 = mkdir(*(_QWORD *)this, 511LL);
result = 1;
if ( v1 == -1 )
{
memset(v4, 0LL, 144LL);
v3 = stat(*(_QWORD *)this, v4);
return (v3 | v5 & 0xF000 ^ 0x4000) == 0;
}
return result;
}
|
CreateFolder:
PUSH R14
PUSH RBX
SUB RSP,0x98
MOV RBX,RDI
MOV RDI,qword ptr [RDI]
MOV ESI,0x1ff
CALL 0x00108210
MOV ECX,EAX
MOV AL,0x1
CMP ECX,-0x1
JNZ 0x00115dd3
LEA R14,[RSP + 0x8]
MOV EDX,0x90
MOV RDI,R14
XOR ESI,ESI
CALL 0x001082b0
MOV RDI,qword ptr [RBX]
MOV RSI,R14
CALL 0x00108440
MOV ECX,dword ptr [R14 + 0x18]
AND ECX,0xf000
XOR ECX,0x4000
OR ECX,EAX
SETZ AL
LAB_00115dd3:
ADD RSP,0x98
POP RBX
POP R14
RET
|
/* testing::internal::FilePath::CreateFolder() const */
int8 __thiscall testing::internal::FilePath::CreateFolder(FilePath *this)
{
int iVar1;
int4 extraout_var;
int8 uVar2;
int4 extraout_var_00;
stat local_a0;
iVar1 = mkdir(*(char **)this,0x1ff);
uVar2 = CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),1);
if (iVar1 == -1) {
memset(&local_a0,0,0x90);
iVar1 = stat(*(char **)this,&local_a0);
uVar2 = CONCAT71((int7)(CONCAT44(extraout_var_00,iVar1) >> 8),
(local_a0.st_mode & 0xf000) == 0x4000 && iVar1 == 0);
}
return uVar2;
}
|
|
18,144
|
MyCTX::init(evp_cipher_st const*, int, unsigned char const*, unsigned int, unsigned char const*, unsigned int)
|
eloqsql/mysys_ssl/my_crypt.cc
|
virtual int init(const EVP_CIPHER *cipher, int encrypt, const uchar *key,
uint klen, const uchar *iv, uint ivlen)
{
compile_time_assert(MY_AES_CTX_SIZE >= sizeof(MyCTX));
if (unlikely(!cipher))
return MY_AES_BAD_KEYSIZE;
if (EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, encrypt) != 1)
return MY_AES_OPENSSL_ERROR;
DBUG_ASSERT(EVP_CIPHER_CTX_key_length(ctx) == (int)klen);
DBUG_ASSERT(EVP_CIPHER_CTX_iv_length(ctx) <= (int)ivlen);
return MY_AES_OK;
}
|
O3
|
cpp
|
MyCTX::init(evp_cipher_st const*, int, unsigned char const*, unsigned int, unsigned char const*, unsigned int):
testq %rsi, %rsi
je 0x2f985
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edx, %eax
movq 0xc8(%rdi), %rdi
xorl %ebx, %ebx
xorl %edx, %edx
movq %r9, %r8
movl %eax, %r9d
callq 0x2a720
cmpl $0x1, %eax
pushq $-0x65
popq %rax
cmovel %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
pushq $-0x66
popq %rax
retq
nop
|
_ZN5MyCTX4initEPK13evp_cipher_stiPKhjS4_j:
test rsi, rsi
jz short loc_2F985
push rbp
mov rbp, rsp
push rbx
push rax
mov eax, edx
mov rdi, [rdi+0C8h]
xor ebx, ebx
xor edx, edx
mov r8, r9
mov r9d, eax
call _EVP_CipherInit_ex
cmp eax, 1
push 0FFFFFFFFFFFFFF9Bh
pop rax
cmovz eax, ebx
add rsp, 8
pop rbx
pop rbp
retn
loc_2F985:
push 0FFFFFFFFFFFFFF9Ah
pop rax
retn
|
long long MyCTX::init(long long a1, long long a2, unsigned int a3, long long a4, long long a5, long long a6)
{
long long v6; // rax
bool v7; // zf
long long result; // rax
if ( !a2 )
return -102LL;
v7 = (unsigned int)EVP_CipherInit_ex(*(_QWORD *)(a1 + 200), a2, 0LL, a4, a6, a3, v6) == 1;
result = -101LL;
if ( v7 )
return 0LL;
return result;
}
|
init:
TEST RSI,RSI
JZ 0x0012f985
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV EAX,EDX
MOV RDI,qword ptr [RDI + 0xc8]
XOR EBX,EBX
XOR EDX,EDX
MOV R8,R9
MOV R9D,EAX
CALL 0x0012a720
CMP EAX,0x1
PUSH -0x65
POP RAX
CMOVZ EAX,EBX
ADD RSP,0x8
POP RBX
POP RBP
RET
LAB_0012f985:
PUSH -0x66
POP RAX
RET
|
/* MyCTX::init(evp_cipher_st const*, int, unsigned char const*, unsigned int, unsigned char const*,
unsigned int) */
int8
MyCTX::init(evp_cipher_st *param_1,int param_2,uchar *param_3,uint param_4,uchar *param_5,
uint param_6)
{
int iVar1;
int8 uVar2;
int4 in_register_0000000c;
int4 in_register_00000034;
int4 in_register_0000008c;
if (CONCAT44(in_register_00000034,param_2) != 0) {
iVar1 = EVP_CipherInit_ex((EVP_CIPHER_CTX *)param_1[2].init,
(EVP_CIPHER *)CONCAT44(in_register_00000034,param_2),(ENGINE *)0x0,
(uchar *)CONCAT44(in_register_0000000c,param_4),
(uchar *)CONCAT44(in_register_0000008c,param_6),(int)param_3);
uVar2 = 0xffffff9b;
if (iVar1 == 1) {
uVar2 = 0;
}
return uVar2;
}
return 0xffffffffffffff9a;
}
|
|
18,145
|
fmt::v10::vprint(_IO_FILE*, fmt::v10::basic_string_view<char>, fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender, char>>)
|
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format-inl.h
|
FMT_FUNC void vprint(std::FILE* f, string_view fmt, format_args args) {
auto buffer = memory_buffer();
detail::vformat_to(buffer, fmt, args);
detail::print(f, {buffer.data(), buffer.size()});
}
|
O0
|
c
|
fmt::v10::vprint(_IO_FILE*, fmt::v10::basic_string_view<char>, fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender, char>>):
subq $0x2b8, %rsp # imm = 0x2B8
movq %rsi, 0x2a0(%rsp)
movq %rdx, 0x2a8(%rsp)
movq %rcx, 0x290(%rsp)
movq %r8, 0x298(%rsp)
movq %rdi, 0x288(%rsp)
leaq 0x6f(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x16d00
movq 0x18(%rsp), %rsi
leaq 0x70(%rsp), %rdi
callq 0x90340
jmp 0x8fd5f
leaq 0x6f(%rsp), %rdi
callq 0x16790
movq 0x2a0(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x2a8(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x290(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x298(%rsp), %rax
movq %rax, 0x40(%rsp)
leaq 0x30(%rsp), %rax
movq %rax, 0x2b0(%rsp)
movq 0x2b0(%rsp), %rax
movq $0x0, (%rax)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %r8
movq 0x30(%rsp), %r9
leaq 0x70(%rsp), %rdi
callq 0x913d0
jmp 0x8fdde
movq 0x288(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x70(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x29aa0
movq (%rsp), %rdi
movq %rax, 0x8(%rsp)
callq 0x29ab0
movq 0x8(%rsp), %rsi
movq %rax, %rdx
leaq 0x20(%rsp), %rdi
callq 0x29ac0
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x8fcc0
jmp 0x8fe2f
leaq 0x70(%rsp), %rdi
callq 0x903a0
addq $0x2b8, %rsp # imm = 0x2B8
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
leaq 0x6f(%rsp), %rdi
callq 0x16790
jmp 0x8fe73
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x903a0
movq 0x60(%rsp), %rdi
callq 0x16cf0
nopl (%rax)
|
_ZN3fmt3v106vprintEP8_IO_FILENS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEEE:
sub rsp, 2B8h
mov [rsp+2B8h+var_18], rsi
mov [rsp+2B8h+var_10], rdx
mov [rsp+2B8h+var_28], rcx
mov [rsp+2B8h+var_20], r8
mov [rsp+2B8h+var_30], rdi
lea rdi, [rsp+2B8h+var_249]
mov [rsp+2B8h+var_2A0], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rsi, [rsp+2B8h+var_2A0]
lea rdi, [rsp+2B8h+var_248]
call _ZN3fmt3v1019basic_memory_bufferIcLm500ESaIcEEC2ERKS2_; fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>>::basic_memory_buffer(std::allocator<char> const&)
jmp short $+2
loc_8FD5F:
lea rdi, [rsp+2B8h+var_249]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov rax, [rsp+2B8h+var_18]
mov [rsp+2B8h+var_270], rax
mov rax, [rsp+2B8h+var_10]
mov [rsp+2B8h+var_268], rax
mov rax, [rsp+2B8h+var_28]
mov [rsp+2B8h+var_280], rax
mov rax, [rsp+2B8h+var_20]
mov [rsp+2B8h+var_278], rax
lea rax, [rsp+2B8h+var_288]
mov [rsp+2B8h+var_8], rax
mov rax, [rsp+2B8h+var_8]
mov qword ptr [rax], 0
mov rsi, [rsp+2B8h+var_270]
mov rdx, [rsp+2B8h+var_268]
mov rcx, [rsp+2B8h+var_280]
mov r8, [rsp+2B8h+var_278]
mov r9, [rsp+2B8h+var_288]
lea rdi, [rsp+2B8h+var_248]
call _ZN3fmt3v106detail10vformat_toIcEEvRNS1_6bufferIT_EENS0_17basic_string_viewIS4_EENS1_12vformat_argsIS4_E4typeENS1_10locale_refE; fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char> &,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)
jmp short $+2
loc_8FDDE:
mov rax, [rsp+2B8h+var_30]
mov [rsp+2B8h+var_2A8], rax
lea rdi, [rsp+2B8h+var_248]
mov [rsp+2B8h+var_2B8], rdi
call _ZN3fmt3v106detail6bufferIcE4dataEv; fmt::v10::detail::buffer<char>::data(void)
mov rdi, [rsp+2B8h+var_2B8]
mov [rsp+2B8h+var_2B0], rax
call _ZNK3fmt3v106detail6bufferIcE4sizeEv; fmt::v10::detail::buffer<char>::size(void)
mov rsi, [rsp+2B8h+var_2B0]
mov rdx, rax
lea rdi, [rsp+2B8h+var_298]
call _ZN3fmt3v1017basic_string_viewIcEC2EPKcm; fmt::v10::basic_string_view<char>::basic_string_view(char const*,ulong)
mov rdi, [rsp+2B8h+var_2A8]
mov rsi, [rsp+2B8h+var_298]
mov rdx, [rsp+2B8h+var_290]
call _ZN3fmt3v106detail5printEP8_IO_FILENS0_17basic_string_viewIcEE; fmt::v10::detail::print(_IO_FILE *,fmt::v10::basic_string_view<char>)
jmp short $+2
loc_8FE2F:
lea rdi, [rsp+2B8h+var_248]
call _ZN3fmt3v1019basic_memory_bufferIcLm500ESaIcEED2Ev; fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>>::~basic_memory_buffer()
add rsp, 2B8h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
lea rdi, [rsp+arg_67]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_8FE73
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
lea rdi, [rsp+arg_68]
call _ZN3fmt3v1019basic_memory_bufferIcLm500ESaIcEED2Ev; fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>>::~basic_memory_buffer()
loc_8FE73:
mov rdi, [rsp+arg_58]
call __Unwind_Resume
|
long long fmt::v10::vprint(long long a1, long long a2, long long a3, long long a4, long long a5)
{
long long v5; // rax
long long v7; // [rsp+8h] [rbp-2B0h]
long long v8; // [rsp+10h] [rbp-2A8h]
long long v9[2]; // [rsp+20h] [rbp-298h] BYREF
_QWORD v10[7]; // [rsp+30h] [rbp-288h] BYREF
char v11; // [rsp+6Fh] [rbp-249h] BYREF
_BYTE v12[536]; // [rsp+70h] [rbp-248h] BYREF
long long v13; // [rsp+288h] [rbp-30h]
long long v14; // [rsp+290h] [rbp-28h]
long long v15; // [rsp+298h] [rbp-20h]
long long v16; // [rsp+2A0h] [rbp-18h]
long long v17; // [rsp+2A8h] [rbp-10h]
_QWORD *v18; // [rsp+2B0h] [rbp-8h]
v16 = a2;
v17 = a3;
v14 = a4;
v15 = a5;
v13 = a1;
std::allocator<char>::allocator();
fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>>::basic_memory_buffer(v12, &v11);
std::allocator<char>::~allocator(&v11, &v11);
v10[3] = v16;
v10[4] = v17;
v10[1] = v14;
v10[2] = v15;
v18 = v10;
v10[0] = 0LL;
fmt::v10::detail::vformat_to<char>(v12, v16, v17, v14, v15, 0LL);
v8 = v13;
v7 = fmt::v10::detail::buffer<char>::data((long long)v12);
v5 = fmt::v10::detail::buffer<char>::size((long long)v12);
fmt::v10::basic_string_view<char>::basic_string_view(v9, v7, v5);
fmt::v10::detail::print(v8, v9[0], v9[1]);
return fmt::v10::basic_memory_buffer<char,500ul,std::allocator<char>>::~basic_memory_buffer(v12);
}
|
vprint:
SUB RSP,0x2b8
MOV qword ptr [RSP + 0x2a0],RSI
MOV qword ptr [RSP + 0x2a8],RDX
MOV qword ptr [RSP + 0x290],RCX
MOV qword ptr [RSP + 0x298],R8
MOV qword ptr [RSP + 0x288],RDI
LEA RDI,[RSP + 0x6f]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x00116d00
MOV RSI,qword ptr [RSP + 0x18]
LAB_0018fd53:
LEA RDI,[RSP + 0x70]
CALL 0x00190340
JMP 0x0018fd5f
LAB_0018fd5f:
LEA RDI,[RSP + 0x6f]
CALL 0x00116790
MOV RAX,qword ptr [RSP + 0x2a0]
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [RSP + 0x2a8]
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x290]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x298]
MOV qword ptr [RSP + 0x40],RAX
LEA RAX,[RSP + 0x30]
MOV qword ptr [RSP + 0x2b0],RAX
MOV RAX,qword ptr [RSP + 0x2b0]
MOV qword ptr [RAX],0x0
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
MOV RCX,qword ptr [RSP + 0x38]
MOV R8,qword ptr [RSP + 0x40]
MOV R9,qword ptr [RSP + 0x30]
LAB_0018fdd2:
LEA RDI,[RSP + 0x70]
CALL 0x001913d0
JMP 0x0018fdde
LAB_0018fdde:
MOV RAX,qword ptr [RSP + 0x288]
MOV qword ptr [RSP + 0x10],RAX
LEA RDI,[RSP + 0x70]
MOV qword ptr [RSP],RDI
CALL 0x00129aa0
MOV RDI,qword ptr [RSP]
MOV qword ptr [RSP + 0x8],RAX
CALL 0x00129ab0
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,RAX
LEA RDI,[RSP + 0x20]
CALL 0x00129ac0
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
CALL 0x0018fcc0
LAB_0018fe2d:
JMP 0x0018fe2f
LAB_0018fe2f:
LEA RDI,[RSP + 0x70]
CALL 0x001903a0
ADD RSP,0x2b8
RET
|
/* fmt::v10::vprint(_IO_FILE*, fmt::v10::basic_string_view<char>,
fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender, char> >) */
void fmt::v10::vprint(detail *param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5)
{
detail *pdVar1;
char *pcVar2;
ulong uVar3;
int8 local_298;
int8 local_290;
int1 local_288 [8];
int8 local_280;
int8 local_278;
int8 local_270;
int8 local_268;
allocator<char> local_249;
allocator local_248 [536];
detail *local_30;
int8 local_28;
int8 local_20;
int8 local_18;
int8 local_10;
int1 *local_8;
local_30 = param_1;
local_28 = param_4;
local_20 = param_5;
local_18 = param_2;
local_10 = param_3;
std::allocator<char>::allocator();
/* try { // try from 0018fd53 to 0018fd5c has its CatchHandler @ 0018fe41 */
basic_memory_buffer<char,500ul,std::allocator<char>>::basic_memory_buffer(local_248);
std::allocator<char>::~allocator(&local_249);
local_270 = local_18;
local_268 = local_10;
local_280 = local_28;
local_278 = local_20;
local_8 = local_288;
/* try { // try from 0018fdd2 to 0018fe2c has its CatchHandler @ 0018fe5b */
detail::vformat_to<char>(local_248,local_18,local_10,local_28,local_20,0);
pdVar1 = local_30;
pcVar2 = (char *)detail::buffer<char>::data((buffer<char> *)local_248);
uVar3 = detail::buffer<char>::size((buffer<char> *)local_248);
basic_string_view<char>::basic_string_view((basic_string_view<char> *)&local_298,pcVar2,uVar3);
detail::print(pdVar1,local_298,local_290);
basic_memory_buffer<char,500ul,std::allocator<char>>::~basic_memory_buffer
((basic_memory_buffer<char,500ul,std::allocator<char>> *)local_248);
return;
}
|
|
18,146
|
cxxopts::values::parser_tool::split_option_names(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
shubhamoy[P]dir2txt/include/cxxopts.hpp
|
inline OptionNames split_option_names(const std::string &text)
{
static const std::basic_regex<char> option_specifier_matcher(option_specifier_pattern);
if (!std::regex_match(text.c_str(), option_specifier_matcher))
{
throw_or_mimic<exceptions::invalid_option_format>(text);
}
OptionNames split_names;
static const std::basic_regex<char> option_specifier_separator_matcher(option_specifier_separator_pattern);
constexpr int use_non_matches { -1 };
auto token_iterator = std::sregex_token_iterator(
text.begin(), text.end(), option_specifier_separator_matcher, use_non_matches);
std::copy(token_iterator, std::sregex_token_iterator(), std::back_inserter(split_names));
return split_names;
}
|
O3
|
cpp
|
cxxopts::values::parser_tool::split_option_names(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x198, %rsp # imm = 0x198
movq %rsi, %r14
movq %rdi, %rbx
movb 0x42297(%rip), %al # 0x4e808
testb %al, %al
je 0xc70e
movq (%r14), %r15
movq %r15, %rdi
callq 0x8180
leaq (%rax,%r15), %rsi
xorps %xmm0, %xmm0
movq %rsp, %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
leaq 0x4224c(%rip), %rcx # 0x4e7e8
movq %r15, %rdi
xorl %r8d, %r8d
callq 0x18413
movl %eax, %ebp
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xc5bf
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x8380
testb %bpl, %bpl
jne 0xc5cc
movq %r14, %rdi
callq 0xc838
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movb 0x42250(%rip), %al # 0x4e830
testb %al, %al
je 0xc765
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x42217(%rip), %rcx # 0x4e810
movq %rsp, %rdi
movl $0xffffffff, %r8d # imm = 0xFFFFFFFF
xorl %r9d, %r9d
callq 0xccc2
leaq 0x88(%rsp), %rdi
movq %rsp, %rsi
callq 0xcf14
xorps %xmm0, %xmm0
leaq 0x110(%rsp), %rsi
movups %xmm0, 0x59(%rsi)
movaps %xmm0, 0x50(%rsi)
movaps %xmm0, 0x40(%rsi)
movaps %xmm0, 0x30(%rsi)
movaps %xmm0, 0x20(%rsi)
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, (%rsi)
movaps %xmm0, 0x70(%rsi)
movb $0x0, 0x80(%rsi)
leaq 0x88(%rsp), %rdi
movq %rbx, %rdx
callq 0xcd74
movq 0x150(%rsp), %rdi
testq %rdi, %rdi
je 0xc678
movq 0x160(%rsp), %rsi
subq %rdi, %rsi
callq 0x8380
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0xc695
movq 0x140(%rsp), %rsi
subq %rdi, %rsi
callq 0x8380
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0xc6b2
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x8380
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0xc6cf
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x8380
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xc6e6
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x8380
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xc6fd
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x8380
movq %rbx, %rax
addq $0x198, %rsp # imm = 0x198
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x420f3(%rip), %rdi # 0x4e808
callq 0x85e0
testl %eax, %eax
je 0xc579
leaq 0x420bf(%rip), %rdi # 0x4e7e8
leaq 0x29105(%rip), %rsi # 0x35835
movl $0x10, %edx
callq 0xcc3a
leaq 0x561(%rip), %rdi # 0xcca2
leaq 0x420a0(%rip), %rsi # 0x4e7e8
leaq 0x41c19(%rip), %rdx # 0x4e368
callq 0x8330
leaq 0x420ad(%rip), %rdi # 0x4e808
callq 0x8260
jmp 0xc579
leaq 0x420c4(%rip), %rdi # 0x4e830
callq 0x85e0
testl %eax, %eax
je 0xc5e8
leaq 0x42090(%rip), %rdi # 0x4e810
leaq 0x290ed(%rip), %rsi # 0x35874
movl $0x10, %edx
callq 0xcc3a
leaq 0x50a(%rip), %rdi # 0xcca2
leaq 0x42071(%rip), %rsi # 0x4e810
leaq 0x41bc2(%rip), %rdx # 0x4e368
callq 0x8330
leaq 0x4207e(%rip), %rdi # 0x4e830
callq 0x8260
jmp 0xc5e8
movq %rax, %r14
leaq 0x4206a(%rip), %rdi # 0x4e830
callq 0x8240
jmp 0xc80d
movq %rax, %r14
leaq 0x42031(%rip), %rdi # 0x4e808
callq 0x8240
jmp 0xc815
movq %rax, %r14
leaq 0x110(%rsp), %rdi
callq 0xcfcc
leaq 0x88(%rsp), %rdi
callq 0xcfcc
jmp 0xc800
movq %rax, %r14
movq %rsp, %rdi
callq 0xcfcc
jmp 0xc80d
movq %rax, %r14
movq %rbx, %rdi
callq 0xc034
movq %r14, %rdi
callq 0x85d0
movq %rax, %r14
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xc815
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x8380
jmp 0xc815
|
_ZN7cxxopts6values11parser_tool18split_option_namesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push rbx
sub rsp, 198h
mov r14, rsi
mov rbx, rdi
mov al, cs:_ZGVZN7cxxopts6values11parser_tool18split_option_namesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE24option_specifier_matcherB5cxx11; `guard variable for'cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_matcher
test al, al
jz loc_C70E
loc_C579:
mov r15, [r14]
mov rdi, r15
call _strlen
lea rsi, [rax+r15]
xorps xmm0, xmm0
mov rdx, rsp
movaps xmmword ptr [rdx+10h], xmm0
movaps xmmword ptr [rdx], xmm0
lea rcx, _ZZN7cxxopts6values11parser_tool18split_option_namesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE24option_specifier_matcherB5cxx11; cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_matcher
mov rdi, r15
xor r8d, r8d
call _ZNSt8__detail17__regex_algo_implIPKcSaINSt7__cxx119sub_matchIS2_EEEcNS3_12regex_traitsIcEELNS_20_RegexExecutorPolicyE0ELb1EEEbT_SA_RNS3_13match_resultsISA_T0_EERKNS3_11basic_regexIT1_T2_EENSt15regex_constants15match_flag_typeE; std::__detail::__regex_algo_impl<char const*,std::allocator<std::sub_match<char const*>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,true>(char const*,char const*,std::match_results<char const*> &,std::basic_regex<char,std::regex_traits<char>> const&,std::regex_constants::match_flag_type)
mov ebp, eax
mov rdi, [rsp+1B8h+var_1B8]; void *
test rdi, rdi
jz short loc_C5BF
mov rsi, [rsp+1B8h+var_1A8]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C5BF:
test bpl, bpl
jnz short loc_C5CC
mov rdi, r14; int
call _ZN7cxxopts14throw_or_mimicINS_10exceptions21invalid_option_formatEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; cxxopts::throw_or_mimic<cxxopts::exceptions::invalid_option_format>(std::string const&)
loc_C5CC:
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
mov qword ptr [rbx+10h], 0
mov al, cs:_ZGVZN7cxxopts6values11parser_tool18split_option_namesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE34option_specifier_separator_matcherB5cxx11; `guard variable for'cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_separator_matcher
test al, al
jz loc_C765
loc_C5E8:
mov rsi, [r14]
mov rdx, [r14+8]
add rdx, rsi
lea rcx, _ZZN7cxxopts6values11parser_tool18split_option_namesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE34option_specifier_separator_matcherB5cxx11; cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_separator_matcher
mov rdi, rsp
mov r8d, 0FFFFFFFFh
xor r9d, r9d
call _ZNSt7__cxx1120regex_token_iteratorIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEEcNS_12regex_traitsIcEEEC2ESA_SA_RKNS_11basic_regexIcSC_EEiNSt15regex_constants15match_flag_typeE; std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>>::regex_token_iterator(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::basic_regex<char,std::regex_traits<char>> const&,int,std::regex_constants::match_flag_type)
lea rdi, [rsp+1B8h+var_130]
mov rsi, rsp
call _ZNSt7__cxx1120regex_token_iteratorIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEEcNS_12regex_traitsIcEEEC2ERKSD_; std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>>::regex_token_iterator(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>> const&)
xorps xmm0, xmm0
lea rsi, [rsp+1B8h+var_A8]
movups xmmword ptr [rsi+59h], xmm0
movaps xmmword ptr [rsi+50h], xmm0
movaps xmmword ptr [rsi+40h], xmm0
movaps xmmword ptr [rsi+30h], xmm0
movaps xmmword ptr [rsi+20h], xmm0
movaps xmmword ptr [rsi+10h], xmm0
movaps xmmword ptr [rsi], xmm0
movaps xmmword ptr [rsi+70h], xmm0
mov byte ptr [rsi+80h], 0
lea rdi, [rsp+1B8h+var_130]
mov rdx, rbx
call _ZSt4copyINSt7__cxx1120regex_token_iteratorIN9__gnu_cxx17__normal_iteratorIPKcNS0_12basic_stringIcSt11char_traitsIcESaIcEEEEEcNS0_12regex_traitsIcEEEESt20back_insert_iteratorISt6vectorISA_SaISA_EEEET0_T_SL_SK_; std::copy<std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>>,std::back_insert_iterator<std::vector<std::string>>>(std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>>,std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>>,std::back_insert_iterator<std::vector<std::string>>)
mov rdi, [rsp+1B8h+var_68]; void *
test rdi, rdi
jz short loc_C678
mov rsi, [rsp+1B8h+var_58]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C678:
mov rdi, [rsp+1B8h+var_88]; void *
test rdi, rdi
jz short loc_C695
mov rsi, [rsp+1B8h+var_78]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C695:
mov rdi, [rsp+1B8h+var_F0]; void *
test rdi, rdi
jz short loc_C6B2
mov rsi, [rsp+1B8h+var_E0]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C6B2:
mov rdi, [rsp+1B8h+var_110]; void *
test rdi, rdi
jz short loc_C6CF
mov rsi, [rsp+1B8h+var_100]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C6CF:
mov rdi, [rsp+1B8h+var_178]; void *
test rdi, rdi
jz short loc_C6E6
mov rsi, [rsp+1B8h+var_168]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C6E6:
mov rdi, [rsp+1B8h+var_198]; void *
test rdi, rdi
jz short loc_C6FD
mov rsi, [rsp+1B8h+var_188]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C6FD:
mov rax, rbx
add rsp, 198h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_C70E:
lea rdi, _ZGVZN7cxxopts6values11parser_tool18split_option_namesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE24option_specifier_matcherB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_C579
lea rdi, _ZZN7cxxopts6values11parser_tool18split_option_namesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE24option_specifier_matcherB5cxx11; cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_matcher
lea rsi, aAlnumAlnumAlnu; "([[:alnum:]][-_[:alnum:]\\.]*)(,[ ]*[[:"...
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, _ZZN7cxxopts6values11parser_tool18split_option_namesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE24option_specifier_matcherB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN7cxxopts6values11parser_tool18split_option_namesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE24option_specifier_matcherB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_C579
loc_C765:
lea rdi, _ZGVZN7cxxopts6values11parser_tool18split_option_namesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE34option_specifier_separator_matcherB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_C5E8
lea rdi, _ZZN7cxxopts6values11parser_tool18split_option_namesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE34option_specifier_separator_matcherB5cxx11; cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_separator_matcher
lea rsi, asc_35874; ", *"
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, _ZZN7cxxopts6values11parser_tool18split_option_namesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE34option_specifier_separator_matcherB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN7cxxopts6values11parser_tool18split_option_namesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE34option_specifier_separator_matcherB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_C5E8
mov r14, rax
lea rdi, _ZGVZN7cxxopts6values11parser_tool18split_option_namesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE34option_specifier_separator_matcherB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_C80D
mov r14, rax
lea rdi, _ZGVZN7cxxopts6values11parser_tool18split_option_namesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE24option_specifier_matcherB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_C815
mov r14, rax
lea rdi, [rsp+arg_108]
call _ZNSt7__cxx1120regex_token_iteratorIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEEcNS_12regex_traitsIcEEED2Ev; std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>>::~regex_token_iterator()
lea rdi, [rsp+arg_80]
call _ZNSt7__cxx1120regex_token_iteratorIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEEcNS_12regex_traitsIcEEED2Ev; std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>>::~regex_token_iterator()
jmp short loc_C800
mov r14, rax
loc_C800:
mov rdi, rsp
call _ZNSt7__cxx1120regex_token_iteratorIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEEcNS_12regex_traitsIcEEED2Ev; std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>>::~regex_token_iterator()
jmp short loc_C80D
mov r14, rax
loc_C80D:
mov rdi, rbx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
loc_C815:
mov rdi, r14
call __Unwind_Resume
mov r14, rax
mov rdi, [rsp+0]; void *
test rdi, rdi
jz short loc_C815
mov rsi, [rsp+arg_8]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_C815
|
long long cxxopts::values::parser_tool::split_option_names(long long a1, _QWORD *a2)
{
long long v2; // r15
long long v3; // rax
char v4; // bp
int v5; // ecx
int v6; // r8d
int v7; // r9d
__int128 v9; // [rsp+0h] [rbp-1B8h] BYREF
__int128 v10; // [rsp+10h] [rbp-1A8h]
void *v11; // [rsp+20h] [rbp-198h]
int v12; // [rsp+28h] [rbp-190h]
long long v13; // [rsp+30h] [rbp-188h]
int v14; // [rsp+38h] [rbp-180h]
void *v15; // [rsp+40h] [rbp-178h]
int v16; // [rsp+48h] [rbp-170h]
long long v17; // [rsp+50h] [rbp-168h]
int v18; // [rsp+58h] [rbp-160h]
int v19; // [rsp+60h] [rbp-158h]
int v20; // [rsp+68h] [rbp-150h]
int v21; // [rsp+70h] [rbp-148h]
int v22; // [rsp+78h] [rbp-140h]
char v23; // [rsp+80h] [rbp-138h]
_DWORD v24[8]; // [rsp+88h] [rbp-130h] BYREF
void *v25; // [rsp+A8h] [rbp-110h]
int v26; // [rsp+B0h] [rbp-108h]
long long v27; // [rsp+B8h] [rbp-100h]
int v28; // [rsp+C0h] [rbp-F8h]
void *v29; // [rsp+C8h] [rbp-F0h]
int v30; // [rsp+D0h] [rbp-E8h]
long long v31; // [rsp+D8h] [rbp-E0h]
int v32; // [rsp+E0h] [rbp-D8h]
int v33; // [rsp+E8h] [rbp-D0h]
int v34; // [rsp+F0h] [rbp-C8h]
int v35; // [rsp+F8h] [rbp-C0h]
int v36; // [rsp+100h] [rbp-B8h]
char v37; // [rsp+108h] [rbp-B0h]
char v38; // [rsp+110h] [rbp-A8h] BYREF
void *v39; // [rsp+130h] [rbp-88h]
long long v40; // [rsp+140h] [rbp-78h]
void *v41; // [rsp+150h] [rbp-68h]
long long v42; // [rsp+160h] [rbp-58h]
_OWORD v43[4]; // [rsp+169h] [rbp-4Fh]
if ( !(_BYTE)`guard variable for'cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_matcher[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_matcher[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
&cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_matcher[abi:cxx11],
"([[:alnum:]][-_[:alnum:]\\.]*)(,[ ]*[[:alnum:]][-_[:alnum:]]*)*",
16LL);
__cxa_atexit(
std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_matcher[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_matcher[abi:cxx11]);
}
v2 = *a2;
v3 = strlen(*a2);
v10 = 0LL;
v9 = 0LL;
v4 = std::__detail::__regex_algo_impl<char const*,std::allocator<std::sub_match<char const*>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,true>(
v2,
v3 + v2,
&v9,
&cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_matcher[abi:cxx11],
0LL);
if ( (_QWORD)v9 )
operator delete((void *)v9, v10 - v9);
if ( !v4 )
cxxopts::throw_or_mimic<cxxopts::exceptions::invalid_option_format>((int)a2);
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
if ( !(_BYTE)`guard variable for'cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_separator_matcher[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_separator_matcher[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
&cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_separator_matcher[abi:cxx11],
", *",
16LL);
__cxa_atexit(
std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_separator_matcher[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_separator_matcher[abi:cxx11]);
}
std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>>::regex_token_iterator(
&v9,
*a2,
*a2 + a2[1],
&cxxopts::values::parser_tool::split_option_names(std::string const&)::option_specifier_separator_matcher[abi:cxx11],
0xFFFFFFFFLL,
0LL);
std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>>::regex_token_iterator(
v24,
&v9);
v43[0] = 0LL;
std::copy<std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>>,std::back_insert_iterator<std::vector<std::string>>>(
(unsigned int)v24,
(unsigned int)&v38,
a1,
v5,
v6,
v7,
v9,
DWORD2(v9),
v10,
DWORD2(v10),
(_DWORD)v11,
v12,
v13,
v14,
(_DWORD)v15,
v16,
v17,
v18,
v19,
v20,
v21,
v22,
v23,
v24[0],
v24[2],
v24[4],
v24[6],
(_DWORD)v25,
v26,
v27,
v28,
(_DWORD)v29,
v30,
v31,
v32,
v33,
v34,
v35,
v36,
v37,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
*(_DWORD *)((char *)v43 + 15),
0,
0,
0);
if ( v41 )
operator delete(v41, v42 - (_QWORD)v41);
if ( v39 )
operator delete(v39, v40 - (_QWORD)v39);
if ( v29 )
operator delete(v29, v31 - (_QWORD)v29);
if ( v25 )
operator delete(v25, v27 - (_QWORD)v25);
if ( v15 )
operator delete(v15, v17 - (_QWORD)v15);
if ( v11 )
operator delete(v11, v13 - (_QWORD)v11);
return a1;
}
|
split_option_names:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x198
MOV R14,RSI
MOV RBX,RDI
MOV AL,byte ptr [0x0014e808]
TEST AL,AL
JZ 0x0010c70e
LAB_0010c579:
MOV R15,qword ptr [R14]
MOV RDI,R15
CALL 0x00108180
LEA RSI,[RAX + R15*0x1]
XORPS XMM0,XMM0
MOV RDX,RSP
MOVAPS xmmword ptr [RDX + 0x10],XMM0
MOVAPS xmmword ptr [RDX],XMM0
LAB_0010c595:
LEA RCX,[0x14e7e8]
MOV RDI,R15
XOR R8D,R8D
CALL 0x00118413
LAB_0010c5a7:
MOV EBP,EAX
MOV RDI,qword ptr [RSP]
TEST RDI,RDI
JZ 0x0010c5bf
MOV RSI,qword ptr [RSP + 0x10]
SUB RSI,RDI
CALL 0x00108380
LAB_0010c5bf:
TEST BPL,BPL
JNZ 0x0010c5cc
MOV RDI,R14
CALL 0x0010c838
LAB_0010c5cc:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RBX + 0x10],0x0
MOV AL,byte ptr [0x0014e830]
TEST AL,AL
JZ 0x0010c765
LAB_0010c5e8:
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
ADD RDX,RSI
LAB_0010c5f2:
LEA RCX,[0x14e810]
MOV RDI,RSP
MOV R8D,0xffffffff
XOR R9D,R9D
CALL 0x0010ccc2
LAB_0010c60a:
LEA RDI,[RSP + 0x88]
MOV RSI,RSP
CALL 0x0010cf14
XORPS XMM0,XMM0
LEA RSI,[RSP + 0x110]
MOVUPS xmmword ptr [RSI + 0x59],XMM0
MOVAPS xmmword ptr [RSI + 0x50],XMM0
MOVAPS xmmword ptr [RSI + 0x40],XMM0
MOVAPS xmmword ptr [RSI + 0x30],XMM0
MOVAPS xmmword ptr [RSI + 0x20],XMM0
MOVAPS xmmword ptr [RSI + 0x10],XMM0
MOVAPS xmmword ptr [RSI],XMM0
MOVAPS xmmword ptr [RSI + 0x70],XMM0
MOV byte ptr [RSI + 0x80],0x0
LAB_0010c64b:
LEA RDI,[RSP + 0x88]
MOV RDX,RBX
CALL 0x0010cd74
MOV RDI,qword ptr [RSP + 0x150]
TEST RDI,RDI
JZ 0x0010c678
MOV RSI,qword ptr [RSP + 0x160]
SUB RSI,RDI
CALL 0x00108380
LAB_0010c678:
MOV RDI,qword ptr [RSP + 0x130]
TEST RDI,RDI
JZ 0x0010c695
MOV RSI,qword ptr [RSP + 0x140]
SUB RSI,RDI
CALL 0x00108380
LAB_0010c695:
MOV RDI,qword ptr [RSP + 0xc8]
TEST RDI,RDI
JZ 0x0010c6b2
MOV RSI,qword ptr [RSP + 0xd8]
SUB RSI,RDI
CALL 0x00108380
LAB_0010c6b2:
MOV RDI,qword ptr [RSP + 0xa8]
TEST RDI,RDI
JZ 0x0010c6cf
MOV RSI,qword ptr [RSP + 0xb8]
SUB RSI,RDI
CALL 0x00108380
LAB_0010c6cf:
MOV RDI,qword ptr [RSP + 0x40]
TEST RDI,RDI
JZ 0x0010c6e6
MOV RSI,qword ptr [RSP + 0x50]
SUB RSI,RDI
CALL 0x00108380
LAB_0010c6e6:
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x0010c6fd
MOV RSI,qword ptr [RSP + 0x30]
SUB RSI,RDI
CALL 0x00108380
LAB_0010c6fd:
MOV RAX,RBX
ADD RSP,0x198
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0010c70e:
LEA RDI,[0x14e808]
CALL 0x001085e0
TEST EAX,EAX
JZ 0x0010c579
LAB_0010c722:
LEA RDI,[0x14e7e8]
LEA RSI,[0x135835]
MOV EDX,0x10
CALL 0x0010cc3a
LEA RDI,[0x10cca2]
LEA RSI,[0x14e7e8]
LEA RDX,[0x14e368]
CALL 0x00108330
LEA RDI,[0x14e808]
CALL 0x00108260
JMP 0x0010c579
LAB_0010c765:
LEA RDI,[0x14e830]
CALL 0x001085e0
TEST EAX,EAX
JZ 0x0010c5e8
LAB_0010c779:
LEA RDI,[0x14e810]
LEA RSI,[0x135874]
MOV EDX,0x10
CALL 0x0010cc3a
LAB_0010c791:
LEA RDI,[0x10cca2]
LEA RSI,[0x14e810]
LEA RDX,[0x14e368]
CALL 0x00108330
LEA RDI,[0x14e830]
CALL 0x00108260
JMP 0x0010c5e8
|
/* cxxopts::values::parser_tool::split_option_names(std::__cxx11::string const&) */
parser_tool * __thiscall
cxxopts::values::parser_tool::split_option_names(parser_tool *this,string *param_1)
{
char *__s;
bool bVar1;
int iVar2;
size_t sVar3;
void *local_1b8;
int8 uStack_1b0;
long local_1a8;
int8 uStack_1a0;
void *local_198;
long local_188;
void *local_178;
long local_168;
regex_token_iterator<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,char,std::__cxx11::regex_traits<char>>
local_130 [32];
void *local_110;
long local_100;
void *local_f0;
long local_e0;
int8 local_a8;
int8 uStack_a0;
int8 local_98;
int8 uStack_90;
void *local_88;
int8 uStack_80;
long local_78;
int8 uStack_70;
void *local_68;
int8 uStack_60;
long local_58;
int1 uStack_50;
int7 local_4f;
int1 uStack_48;
int8 uStack_47;
int8 local_38;
int8 uStack_30;
int1 local_28;
if (split_option_names(std::__cxx11::string_const&)::option_specifier_matcher_abi_cxx11_ == '\0')
{
iVar2 = __cxa_guard_acquire(&split_option_names(std::__cxx11::string_const&)::
option_specifier_matcher_abi_cxx11_);
if (iVar2 != 0) {
/* try { // try from 0010c722 to 0010c739 has its CatchHandler @ 0010c7cd */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
split_option_names(std::__cxx11::string_const&)::
option_specifier_matcher_abi_cxx11_,
"([[:alnum:]][-_[:alnum:]\\.]*)(,[ ]*[[:alnum:]][-_[:alnum:]]*)*",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
split_option_names(std::__cxx11::string_const&)::
option_specifier_matcher_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&split_option_names(std::__cxx11::string_const&)::
option_specifier_matcher_abi_cxx11_);
}
}
__s = *(char **)param_1;
sVar3 = strlen(__s);
local_1a8 = 0;
uStack_1a0 = 0;
local_1b8 = (void *)0x0;
uStack_1b0 = 0;
/* try { // try from 0010c595 to 0010c5a6 has its CatchHandler @ 0010c81d */
bVar1 = std::__detail::
__regex_algo_impl<char_const*,std::allocator<std::__cxx11::sub_match<char_const*>>,char,std::__cxx11::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,true>
(__s,__s + sVar3,&local_1b8,
split_option_names(std::__cxx11::string_const&)::
option_specifier_matcher_abi_cxx11_,0);
if (local_1b8 != (void *)0x0) {
operator_delete(local_1b8,local_1a8 - (long)local_1b8);
}
if (!bVar1) {
throw_or_mimic<cxxopts::exceptions::invalid_option_format>(param_1);
}
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
if (split_option_names(std::__cxx11::string_const&)::option_specifier_separator_matcher_abi_cxx11_
== '\0') {
iVar2 = __cxa_guard_acquire(&split_option_names(std::__cxx11::string_const&)::
option_specifier_separator_matcher_abi_cxx11_);
if (iVar2 != 0) {
/* try { // try from 0010c779 to 0010c790 has its CatchHandler @ 0010c7bc */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
split_option_names(std::__cxx11::string_const&)::
option_specifier_separator_matcher_abi_cxx11_,&DAT_00135874,0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
split_option_names(std::__cxx11::string_const&)::
option_specifier_separator_matcher_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&split_option_names(std::__cxx11::string_const&)::
option_specifier_separator_matcher_abi_cxx11_);
}
}
/* try { // try from 0010c5f2 to 0010c609 has its CatchHandler @ 0010c80a */
std::__cxx11::
regex_token_iterator<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,char,std::__cxx11::regex_traits<char>>
::regex_token_iterator
(&local_1b8,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1,
split_option_names(std::__cxx11::string_const&)::
option_specifier_separator_matcher_abi_cxx11_,0xffffffff,0);
/* try { // try from 0010c60a to 0010c619 has its CatchHandler @ 0010c7fd */
std::__cxx11::
regex_token_iterator<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,char,std::__cxx11::regex_traits<char>>
::regex_token_iterator(local_130,(regex_token_iterator *)&local_1b8);
uStack_48 = 0;
uStack_47 = 0;
local_58 = 0;
uStack_50 = 0;
local_4f = 0;
local_68 = (void *)0x0;
uStack_60 = 0;
local_78 = 0;
uStack_70 = 0;
local_88 = (void *)0x0;
uStack_80 = 0;
local_98 = 0;
uStack_90 = 0;
local_a8 = 0;
uStack_a0 = 0;
local_38 = 0;
uStack_30 = 0;
local_28 = 0;
/* try { // try from 0010c64b to 0010c65a has its CatchHandler @ 0010c7de */
std::
copy<std::__cxx11::regex_token_iterator<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,char,std::__cxx11::regex_traits<char>>,std::back_insert_iterator<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
(local_130,&local_a8,this);
if (local_68 != (void *)0x0) {
operator_delete(local_68,local_58 - (long)local_68);
}
if (local_88 != (void *)0x0) {
operator_delete(local_88,local_78 - (long)local_88);
}
if (local_f0 != (void *)0x0) {
operator_delete(local_f0,local_e0 - (long)local_f0);
}
if (local_110 != (void *)0x0) {
operator_delete(local_110,local_100 - (long)local_110);
}
if (local_178 != (void *)0x0) {
operator_delete(local_178,local_168 - (long)local_178);
}
if (local_198 != (void *)0x0) {
operator_delete(local_198,local_188 - (long)local_198);
}
return this;
}
|
|
18,147
|
blst_p2_affine_compress
|
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/e2.c
|
void blst_p2_affine_compress(unsigned char out[96], const POINTonE2_affine *in)
{
if (vec_is_zero(in->X, 2*sizeof(in->X))) {
bytes_zero(out, 96);
out[0] = 0xc0; /* compressed and infinity bits */
} else {
limb_t sign = POINTonE2_affine_Compress_BE(out, in);
out[0] |= (unsigned char)(0x80 | ((sign & 2) << 4));
}
}
|
O3
|
c
|
blst_p2_affine_compress:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl $0xc0, %esi
movq %r14, %rdi
callq 0x70940
testq %rax, %rax
je 0x5c7d6
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rbx)
movups %xmm0, 0x41(%rbx)
movups %xmm0, 0x31(%rbx)
movups %xmm0, 0x21(%rbx)
movups %xmm0, 0x11(%rbx)
movups %xmm0, 0x1(%rbx)
movb $-0x40, %al
jmp 0x5c7ea
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5c7f1
shlb $0x4, %al
andb $0x20, %al
orb (%rbx), %al
orb $-0x80, %al
movb %al, (%rbx)
popq %rbx
popq %r14
popq %rbp
retq
|
blst_p2_affine_compress:
push rbp
mov rbp, rsp
push r14
push rbx
mov r14, rsi
mov rbx, rdi
mov esi, 0C0h
mov rdi, r14
call vec_is_zero_16x
test rax, rax
jz short loc_5C7D6
xorps xmm0, xmm0
movups xmmword ptr [rbx+50h], xmm0
movups xmmword ptr [rbx+41h], xmm0
movups xmmword ptr [rbx+31h], xmm0
movups xmmword ptr [rbx+21h], xmm0
movups xmmword ptr [rbx+11h], xmm0
movups xmmword ptr [rbx+1], xmm0
mov al, 0C0h
jmp short loc_5C7EA
loc_5C7D6:
mov rdi, rbx
mov rsi, r14
call POINTonE2_affine_Compress_BE
shl al, 4
and al, 20h
or al, [rbx]
or al, 80h
loc_5C7EA:
mov [rbx], al
pop rbx
pop r14
pop rbp
retn
|
char blst_p2_affine_compress(long long a1, long long a2)
{
char result; // al
if ( vec_is_zero_16x(a2, 192LL) )
{
*(_OWORD *)(a1 + 80) = 0LL;
*(_OWORD *)(a1 + 65) = 0LL;
*(_OWORD *)(a1 + 49) = 0LL;
*(_OWORD *)(a1 + 33) = 0LL;
*(_OWORD *)(a1 + 17) = 0LL;
*(_OWORD *)(a1 + 1) = 0LL;
result = -64;
}
else
{
result = *(_BYTE *)a1 | (16 * POINTonE2_affine_Compress_BE(a1, a2)) & 0x20 | 0x80;
}
*(_BYTE *)a1 = result;
return result;
}
|
blst_p2_affine_compress:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
MOV ESI,0xc0
MOV RDI,R14
CALL 0x00170940
TEST RAX,RAX
JZ 0x0015c7d6
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x50],XMM0
MOVUPS xmmword ptr [RBX + 0x41],XMM0
MOVUPS xmmword ptr [RBX + 0x31],XMM0
MOVUPS xmmword ptr [RBX + 0x21],XMM0
MOVUPS xmmword ptr [RBX + 0x11],XMM0
MOVUPS xmmword ptr [RBX + 0x1],XMM0
MOV AL,0xc0
JMP 0x0015c7ea
LAB_0015c7d6:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0015c7f1
SHL AL,0x4
AND AL,0x20
OR AL,byte ptr [RBX]
OR AL,0x80
LAB_0015c7ea:
MOV byte ptr [RBX],AL
POP RBX
POP R14
POP RBP
RET
|
void blst_p2_affine_compress(byte *param_1,int8 param_2)
{
long lVar1;
byte bVar2;
lVar1 = vec_is_zero_16x(param_2,0xc0);
if (lVar1 == 0) {
bVar2 = POINTonE2_affine_Compress_BE(param_1,param_2);
bVar2 = (bVar2 & 2) << 4 | *param_1 | 0x80;
}
else {
param_1[0x50] = 0;
param_1[0x51] = 0;
param_1[0x52] = 0;
param_1[0x53] = 0;
param_1[0x54] = 0;
param_1[0x55] = 0;
param_1[0x56] = 0;
param_1[0x57] = 0;
param_1[0x58] = 0;
param_1[0x59] = 0;
param_1[0x5a] = 0;
param_1[0x5b] = 0;
param_1[0x5c] = 0;
param_1[0x5d] = 0;
param_1[0x5e] = 0;
param_1[0x5f] = 0;
param_1[0x41] = 0;
param_1[0x42] = 0;
param_1[0x43] = 0;
param_1[0x44] = 0;
param_1[0x45] = 0;
param_1[0x46] = 0;
param_1[0x47] = 0;
param_1[0x48] = 0;
param_1[0x49] = 0;
param_1[0x4a] = 0;
param_1[0x4b] = 0;
param_1[0x4c] = 0;
param_1[0x4d] = 0;
param_1[0x4e] = 0;
param_1[0x4f] = 0;
param_1[0x50] = 0;
param_1[0x31] = 0;
param_1[0x32] = 0;
param_1[0x33] = 0;
param_1[0x34] = 0;
param_1[0x35] = 0;
param_1[0x36] = 0;
param_1[0x37] = 0;
param_1[0x38] = 0;
param_1[0x39] = 0;
param_1[0x3a] = 0;
param_1[0x3b] = 0;
param_1[0x3c] = 0;
param_1[0x3d] = 0;
param_1[0x3e] = 0;
param_1[0x3f] = 0;
param_1[0x40] = 0;
param_1[0x21] = 0;
param_1[0x22] = 0;
param_1[0x23] = 0;
param_1[0x24] = 0;
param_1[0x25] = 0;
param_1[0x26] = 0;
param_1[0x27] = 0;
param_1[0x28] = 0;
param_1[0x29] = 0;
param_1[0x2a] = 0;
param_1[0x2b] = 0;
param_1[0x2c] = 0;
param_1[0x2d] = 0;
param_1[0x2e] = 0;
param_1[0x2f] = 0;
param_1[0x30] = 0;
param_1[0x11] = 0;
param_1[0x12] = 0;
param_1[0x13] = 0;
param_1[0x14] = 0;
param_1[0x15] = 0;
param_1[0x16] = 0;
param_1[0x17] = 0;
param_1[0x18] = 0;
param_1[0x19] = 0;
param_1[0x1a] = 0;
param_1[0x1b] = 0;
param_1[0x1c] = 0;
param_1[0x1d] = 0;
param_1[0x1e] = 0;
param_1[0x1f] = 0;
param_1[0x20] = 0;
param_1[1] = 0;
param_1[2] = 0;
param_1[3] = 0;
param_1[4] = 0;
param_1[5] = 0;
param_1[6] = 0;
param_1[7] = 0;
param_1[8] = 0;
param_1[9] = 0;
param_1[10] = 0;
param_1[0xb] = 0;
param_1[0xc] = 0;
param_1[0xd] = 0;
param_1[0xe] = 0;
param_1[0xf] = 0;
param_1[0x10] = 0;
bVar2 = 0xc0;
}
*param_1 = bVar2;
return;
}
|
|
18,148
|
std::shared_ptr<ftxui::(anonymous namespace)::InputBase> ftxui::Make<ftxui::(anonymous namespace)::InputBase, ftxui::InputOption>(ftxui::InputOption&&)
|
Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/include/ftxui/component/component.hpp
|
std::shared_ptr<T> Make(Args&&... args) {
return std::make_shared<T>(std::forward<Args>(args)...);
}
|
O3
|
cpp
|
std::shared_ptr<ftxui::(anonymous namespace)::InputBase> ftxui::Make<ftxui::(anonymous namespace)::InputBase, ftxui::InputOption>(ftxui::InputOption&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rsi, %r15
movq %rdi, %r12
movq $0x0, (%rdi)
movl $0x140, %edi # imm = 0x140
callq 0xb3e0
movq %rax, %r14
movabsq $0x100000001, %rax # imm = 0x100000001
movq %rax, 0x8(%r14)
leaq 0x2ec91(%rip), %rax # 0x58158
movq %rax, (%r14)
movzbl 0x20(%r15), %eax
leaq 0x18(%rsp), %rcx
movb %al, 0x20(%rcx)
leaq 0x10(%rsp), %rdi
movq %rcx, (%rdi)
leaq 0x2ed3a(%rip), %rbx # 0x58220
movq %r15, %rsi
callq *(%rbx,%rax,8)
leaq 0x40(%rsp), %rcx
leaq 0x28(%r15), %rsi
movzbl 0x48(%r15), %eax
movb %al, 0x20(%rcx)
leaq 0x10(%rsp), %rdi
movq %rcx, (%rdi)
callq *(%rbx,%rax,8)
movq %r12, 0x8(%rsp)
leaq 0x68(%rsp), %r12
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
movq $0x0, 0x10(%r12)
movq 0x68(%r15), %rax
movq %rax, 0x18(%r12)
movq 0x60(%r15), %rax
testq %rax, %rax
je 0x2954b
leaq 0x60(%r15), %rcx
movups 0x50(%r15), %xmm1
movups %xmm1, (%r12)
movq %rax, 0x78(%rsp)
movups %xmm0, (%rcx)
movups 0x70(%r15), %xmm1
movups 0x80(%r15), %xmm2
leaq 0xa8(%rsp), %r13
movups %xmm2, -0x10(%r13)
movups %xmm1, -0x20(%r13)
movups %xmm0, (%r13)
movq $0x0, 0x10(%r13)
movq 0xa8(%r15), %rax
movq %rax, 0x18(%r13)
movq 0xa0(%r15), %rax
testq %rax, %rax
je 0x295b0
leaq 0xa0(%r15), %rcx
movups 0x90(%r15), %xmm0
movups %xmm0, (%r13)
movq %rax, 0xb8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
leaq 0xc8(%rsp), %rbp
xorps %xmm1, %xmm1
movups %xmm1, (%rbp)
movq $0x0, 0x10(%rbp)
movq 0xc8(%r15), %rax
movq %rax, 0x18(%rbp)
movq 0xc0(%r15), %rax
testq %rax, %rax
je 0x295fc
leaq 0xc0(%r15), %rcx
movups 0xb0(%r15), %xmm0
movups %xmm0, (%rbp)
movq %rax, 0xd8(%rsp)
movups %xmm1, (%rcx)
leaq 0x88(%rsp), %rbx
movups 0xd0(%r15), %xmm0
movups %xmm0, 0x60(%rbx)
leaq 0x2e6a1(%rip), %rax # 0x57cb8
addq $0x10, %rax
movq %rax, 0x10(%r14)
movups %xmm1, 0x18(%r14)
movups %xmm1, 0x28(%r14)
leaq 0x38(%r14), %rdi
leaq 0x18(%rsp), %r15
movq %r15, %rsi
callq 0x2c070
leaq 0x60(%r14), %rdi
leaq 0x40(%rsp), %rsi
callq 0x2c070
xorps %xmm0, %xmm0
movups %xmm0, 0x88(%r14)
movq $0x0, 0x98(%r14)
movq 0x68(%r15), %rax
movq %rax, 0xa0(%r14)
movq 0x60(%r15), %rax
testq %rax, %rax
je 0x29693
leaq 0x88(%r14), %rcx
leaq 0x78(%rsp), %rdx
movups (%r12), %xmm0
movups %xmm0, (%rcx)
movq %rax, 0x98(%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%rdx)
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups %xmm1, 0xb8(%r14)
movups %xmm0, 0xa8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0xc8(%r14)
movq $0x0, 0xd8(%r14)
movq 0xc0(%rsp), %rax
movq %rax, 0xe0(%r14)
movq 0xb8(%rsp), %rax
testq %rax, %rax
je 0x296fd
leaq 0xc8(%r14), %rcx
leaq 0xb8(%rsp), %rdx
movups (%r13), %xmm1
movups %xmm1, (%rcx)
movq %rax, 0xd8(%r14)
movups %xmm0, (%rdx)
leaq 0x10(%r14), %rbx
leaq 0xe8(%rsp), %rax
movups %xmm0, 0xe8(%r14)
movq $0x0, 0xf8(%r14)
movq -0x8(%rax), %rcx
movq %rcx, 0x100(%r14)
movq -0x10(%rax), %rcx
testq %rcx, %rcx
je 0x29756
movq %r14, %rdx
addq $0xe8, %rdx
leaq 0xd8(%rsp), %rsi
movups (%rbp), %xmm0
movups %xmm0, (%rdx)
movq %rcx, 0xf8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%rsi)
movups (%rax), %xmm0
movups %xmm0, 0x108(%r14)
leaq 0x2ea40(%rip), %rax # 0x581a8
movq %rax, 0x10(%r14)
movb $0x0, 0x118(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x11c(%r14)
movups %xmm0, 0x12c(%r14)
leaq 0x18(%rsp), %rdi
callq 0x148ca
movq 0x8(%rsp), %rax
movq %r14, 0x8(%rax)
movq %rbx, (%rax)
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x297b1
movq %rax, %rdi
callq 0x1049a
|
_ZN5ftxui4MakeINS_12_GLOBAL__N_19InputBaseEJNS_11InputOptionEEEESt10shared_ptrIT_EDpOT0_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0F8h
mov r15, rsi
mov r12, rdi
mov qword ptr [rdi], 0
mov edi, 140h; unsigned __int64
call __Znwm; operator new(ulong)
mov r14, rax
mov rax, 100000001h
mov [r14+8], rax
lea rax, off_58158
mov [r14], rax
movzx eax, byte ptr [r15+20h]
lea rcx, [rsp+128h+var_110]
mov [rcx+20h], al
lea rdi, [rsp+128h+var_118]
mov [rdi], rcx
lea rbx, _ZNSt8__detail9__variant12__gen_vtableINS0_16__variant_cookieEOZNS0_19__variant_constructIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS9_ERNS0_15_Move_ctor_baseILb0EJS9_SA_EEESC_EEvOT0_OT1_EUlOT_E_JOSt7variantIJS9_SA_EEEE9_S_vtableE; std::__detail::__variant::__gen_vtable<std::__detail::__variant::__variant_cookie,std::__detail::__variant::__variant_construct<std::string,std::string*,std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*> &,std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*>>(std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*> &,std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*> &&)::{lambda(std::__detail::__variant::__variant_cookie &&)#1} &&,std::variant<std::string,std::string*> &&>::_S_vtable
mov rsi, r15
call ds:(_ZNSt8__detail9__variant12__gen_vtableINS0_16__variant_cookieEOZNS0_19__variant_constructIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS9_ERNS0_15_Move_ctor_baseILb0EJS9_SA_EEESC_EEvOT0_OT1_EUlOT_E_JOSt7variantIJS9_SA_EEEE9_S_vtableE - 58220h)[rbx+rax*8]; std::__throw_logic_error(char const*)
lea rcx, [rsp+128h+var_E8]
lea rsi, [r15+28h]
movzx eax, byte ptr [r15+48h]
mov [rcx+20h], al
lea rdi, [rsp+128h+var_118]
mov [rdi], rcx
call ds:(_ZNSt8__detail9__variant12__gen_vtableINS0_16__variant_cookieEOZNS0_19__variant_constructIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS9_ERNS0_15_Move_ctor_baseILb0EJS9_SA_EEESC_EEvOT0_OT1_EUlOT_E_JOSt7variantIJS9_SA_EEEE9_S_vtableE - 58220h)[rbx+rax*8]; std::__throw_logic_error(char const*)
mov [rsp+128h+var_120], r12
lea r12, [rsp+128h+var_C0]
xorps xmm0, xmm0
movups xmmword ptr [r12], xmm0
mov qword ptr [r12+10h], 0
mov rax, [r15+68h]
mov [r12+18h], rax
mov rax, [r15+60h]
test rax, rax
jz short loc_2954B
lea rcx, [r15+60h]
movups xmm1, xmmword ptr [r15+50h]
movups xmmword ptr [r12], xmm1
mov [rsp+128h+var_B0], rax
movups xmmword ptr [rcx], xmm0
loc_2954B:
movups xmm1, xmmword ptr [r15+70h]
movups xmm2, xmmword ptr [r15+80h]
lea r13, [rsp+128h+var_80]
movups xmmword ptr [r13-10h], xmm2
movups xmmword ptr [r13-20h], xmm1
movups xmmword ptr [r13+0], xmm0
mov qword ptr [r13+10h], 0
mov rax, [r15+0A8h]
mov [r13+18h], rax
mov rax, [r15+0A0h]
test rax, rax
jz short loc_295B0
lea rcx, [r15+0A0h]
movups xmm0, xmmword ptr [r15+90h]
movups xmmword ptr [r13+0], xmm0
mov [rsp+128h+var_70], rax
xorps xmm0, xmm0
movups xmmword ptr [rcx], xmm0
loc_295B0:
lea rbp, [rsp+128h+var_60]
xorps xmm1, xmm1
movups xmmword ptr [rbp+0], xmm1
mov qword ptr [rbp+10h], 0
mov rax, [r15+0C8h]
mov [rbp+18h], rax
mov rax, [r15+0C0h]
test rax, rax
jz short loc_295FC
lea rcx, [r15+0C0h]
movups xmm0, xmmword ptr [r15+0B0h]
movups xmmword ptr [rbp+0], xmm0
mov [rsp+128h+var_50], rax
movups xmmword ptr [rcx], xmm1
loc_295FC:
lea rbx, [rsp+128h+var_A0]
movups xmm0, xmmword ptr [r15+0D0h]
movups xmmword ptr [rbx+60h], xmm0
lea rax, _ZTVN5ftxui13ComponentBaseE; `vtable for'ftxui::ComponentBase
add rax, 10h
mov [r14+10h], rax
movups xmmword ptr [r14+18h], xmm1
movups xmmword ptr [r14+28h], xmm1
lea rdi, [r14+38h]
lea r15, [rsp+128h+var_110]
mov rsi, r15
call _ZNSt8__detail9__variant15_Move_ctor_baseILb0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS7_EEC2EOS9_; std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*>::_Move_ctor_base(std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*>&&)
lea rdi, [r14+60h]
lea rsi, [rsp+128h+var_E8]
call _ZNSt8__detail9__variant15_Move_ctor_baseILb0EJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS7_EEC2EOS9_; std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*>::_Move_ctor_base(std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*>&&)
xorps xmm0, xmm0
movups xmmword ptr [r14+88h], xmm0
mov qword ptr [r14+98h], 0
mov rax, [r15+68h]
mov [r14+0A0h], rax
mov rax, [r15+60h]
test rax, rax
jz short loc_29693
lea rcx, [r14+88h]
lea rdx, [rsp+128h+var_B0]
movups xmm0, xmmword ptr [r12]
movups xmmword ptr [rcx], xmm0
mov [r14+98h], rax
xorps xmm0, xmm0
movups xmmword ptr [rdx], xmm0
loc_29693:
movups xmm0, xmmword ptr [rbx]
movups xmm1, xmmword ptr [rbx+10h]
movups xmmword ptr [r14+0B8h], xmm1
movups xmmword ptr [r14+0A8h], xmm0
xorps xmm0, xmm0
movups xmmword ptr [r14+0C8h], xmm0
mov qword ptr [r14+0D8h], 0
mov rax, [rsp+128h+var_68]
mov [r14+0E0h], rax
mov rax, [rsp+128h+var_70]
test rax, rax
jz short loc_296FD
lea rcx, [r14+0C8h]
lea rdx, [rsp+128h+var_70]
movups xmm1, xmmword ptr [r13+0]
movups xmmword ptr [rcx], xmm1
mov [r14+0D8h], rax
movups xmmword ptr [rdx], xmm0
loc_296FD:
lea rbx, [r14+10h]
lea rax, [rsp+128h+var_40]
movups xmmword ptr [r14+0E8h], xmm0
mov qword ptr [r14+0F8h], 0
mov rcx, [rax-8]
mov [r14+100h], rcx
mov rcx, [rax-10h]
test rcx, rcx
jz short loc_29756
mov rdx, r14
add rdx, 0E8h
lea rsi, [rsp+128h+var_50]
movups xmm0, xmmword ptr [rbp+0]
movups xmmword ptr [rdx], xmm0
mov [r14+0F8h], rcx
xorps xmm0, xmm0
movups xmmword ptr [rsi], xmm0
loc_29756:
movups xmm0, xmmword ptr [rax]
movups xmmword ptr [r14+108h], xmm0
lea rax, off_581A8
mov [r14+10h], rax
mov byte ptr [r14+118h], 0
xorps xmm0, xmm0
movups xmmword ptr [r14+11Ch], xmm0
movups xmmword ptr [r14+12Ch], xmm0
lea rdi, [rsp+128h+var_110]; this
call _ZN5ftxui11InputOptionD2Ev; ftxui::InputOption::~InputOption()
mov rax, [rsp+128h+var_120]
mov [rax+8], r14
mov [rax], rbx
add rsp, 0F8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_297B1:
mov rdi, rax
call __clang_call_terminate
|
_QWORD * ftxui::Make<ftxui::`anonymous namespace'::InputBase,ftxui::InputOption>(_QWORD *a1, long long a2)
{
long long v2; // r14
long long v3; // rax
__int128 v4; // xmm1
long long v5; // rax
long long v6; // rax
long long v7; // rax
__int128 v8; // xmm0
long long v9; // rax
long long v10; // rcx
_QWORD *result; // rax
_BYTE *v12; // [rsp+10h] [rbp-118h] BYREF
_BYTE v13[32]; // [rsp+18h] [rbp-110h] BYREF
unsigned __int8 v14; // [rsp+38h] [rbp-F0h]
_BYTE v15[32]; // [rsp+40h] [rbp-E8h] BYREF
unsigned __int8 v16; // [rsp+60h] [rbp-C8h]
__int128 v17; // [rsp+68h] [rbp-C0h]
__int128 v18; // [rsp+78h] [rbp-B0h]
__int128 v19; // [rsp+88h] [rbp-A0h]
__int128 v20; // [rsp+98h] [rbp-90h]
__int128 v21; // [rsp+A8h] [rbp-80h]
__int128 v22; // [rsp+B8h] [rbp-70h]
__int128 v23; // [rsp+C8h] [rbp-60h]
__int128 v24; // [rsp+D8h] [rbp-50h]
__int128 v25; // [rsp+E8h] [rbp-40h]
*a1 = 0LL;
v2 = operator new(0x140uLL);
*(_QWORD *)(v2 + 8) = 0x100000001LL;
*(_QWORD *)v2 = off_58158;
v14 = *(_BYTE *)(a2 + 32);
v12 = v13;
((void ( *)(_BYTE **, long long))std::__detail::__variant::__gen_vtable<std::__detail::__variant::__variant_cookie,void std::__detail::__variant::__variant_construct<std::string,std::string*,std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*> &,std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*>>(std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*> &,std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*> &&)::{lambda(std::__detail::__variant::__variant_cookie &&)#1} &&,std::variant<std::string,std::string*> &&>::_S_vtable[v14])(
&v12,
a2);
v16 = *(_BYTE *)(a2 + 72);
v12 = v15;
((void ( *)(_BYTE **, long long))std::__detail::__variant::__gen_vtable<std::__detail::__variant::__variant_cookie,void std::__detail::__variant::__variant_construct<std::string,std::string*,std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*> &,std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*>>(std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*> &,std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*> &&)::{lambda(std::__detail::__variant::__variant_cookie &&)#1} &&,std::variant<std::string,std::string*> &&>::_S_vtable[v16])(
&v12,
a2 + 40);
v17 = 0LL;
*(_QWORD *)&v18 = 0LL;
*((_QWORD *)&v18 + 1) = *(_QWORD *)(a2 + 104);
v3 = *(_QWORD *)(a2 + 96);
if ( v3 )
{
v17 = *(_OWORD *)(a2 + 80);
*(_QWORD *)&v18 = v3;
*(_OWORD *)(a2 + 96) = 0LL;
}
v4 = *(_OWORD *)(a2 + 112);
v20 = *(_OWORD *)(a2 + 128);
v19 = v4;
v21 = 0LL;
*(_QWORD *)&v22 = 0LL;
*((_QWORD *)&v22 + 1) = *(_QWORD *)(a2 + 168);
v5 = *(_QWORD *)(a2 + 160);
if ( v5 )
{
v21 = *(_OWORD *)(a2 + 144);
*(_QWORD *)&v22 = v5;
*(_OWORD *)(a2 + 160) = 0LL;
}
v23 = 0LL;
*(_QWORD *)&v24 = 0LL;
*((_QWORD *)&v24 + 1) = *(_QWORD *)(a2 + 200);
v6 = *(_QWORD *)(a2 + 192);
if ( v6 )
{
v23 = *(_OWORD *)(a2 + 176);
*(_QWORD *)&v24 = v6;
*(_OWORD *)(a2 + 192) = 0LL;
}
v25 = *(_OWORD *)(a2 + 208);
*(_QWORD *)(v2 + 16) = &`vtable for'ftxui::ComponentBase + 2;
*(_OWORD *)(v2 + 24) = 0LL;
*(_OWORD *)(v2 + 40) = 0LL;
std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*>::_Move_ctor_base(v2 + 56, v13);
std::__detail::__variant::_Move_ctor_base<false,std::string,std::string*>::_Move_ctor_base(v2 + 96, v15);
*(_OWORD *)(v2 + 136) = 0LL;
*(_QWORD *)(v2 + 152) = 0LL;
*(_QWORD *)(v2 + 160) = *((_QWORD *)&v18 + 1);
v7 = v18;
if ( (_QWORD)v18 )
{
*(_OWORD *)(v2 + 136) = v17;
*(_QWORD *)(v2 + 152) = v7;
v18 = 0LL;
}
v8 = v19;
*(_OWORD *)(v2 + 184) = v20;
*(_OWORD *)(v2 + 168) = v8;
*(_OWORD *)(v2 + 200) = 0LL;
*(_QWORD *)(v2 + 216) = 0LL;
*(_QWORD *)(v2 + 224) = *((_QWORD *)&v22 + 1);
v9 = v22;
if ( (_QWORD)v22 )
{
*(_OWORD *)(v2 + 200) = v21;
*(_QWORD *)(v2 + 216) = v9;
v22 = 0LL;
}
*(_OWORD *)(v2 + 232) = 0LL;
*(_QWORD *)(v2 + 248) = 0LL;
*(_QWORD *)(v2 + 256) = *((_QWORD *)&v24 + 1);
v10 = v24;
if ( (_QWORD)v24 )
{
*(_OWORD *)(v2 + 232) = v23;
*(_QWORD *)(v2 + 248) = v10;
v24 = 0LL;
}
*(_OWORD *)(v2 + 264) = v25;
*(_QWORD *)(v2 + 16) = off_581A8;
*(_BYTE *)(v2 + 280) = 0;
*(_OWORD *)(v2 + 284) = 0LL;
*(_OWORD *)(v2 + 300) = 0LL;
ftxui::InputOption::~InputOption((ftxui::InputOption *)v13);
result = a1;
a1[1] = v2;
*a1 = v2 + 16;
return result;
}
|
Make<ftxui::(anonymous_namespace)::InputBase,ftxui::InputOption>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xf8
MOV R15,RSI
MOV R12,RDI
MOV qword ptr [RDI],0x0
MOV EDI,0x140
CALL 0x0010b3e0
MOV R14,RAX
MOV RAX,0x100000001
MOV qword ptr [R14 + 0x8],RAX
LEA RAX,[0x158158]
MOV qword ptr [R14],RAX
MOVZX EAX,byte ptr [R15 + 0x20]
LEA RCX,[RSP + 0x18]
MOV byte ptr [RCX + 0x20],AL
LEA RDI,[RSP + 0x10]
MOV qword ptr [RDI],RCX
LEA RBX,[0x158220]
LAB_001294e6:
MOV RSI,R15
CALL qword ptr [RBX + RAX*0x8]
LEA RCX,[RSP + 0x40]
LEA RSI,[R15 + 0x28]
MOVZX EAX,byte ptr [R15 + 0x48]
MOV byte ptr [RCX + 0x20],AL
LEA RDI,[RSP + 0x10]
MOV qword ptr [RDI],RCX
LAB_00129505:
CALL qword ptr [RBX + RAX*0x8]
MOV qword ptr [RSP + 0x8],R12
LEA R12,[RSP + 0x68]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R12],XMM0
MOV qword ptr [R12 + 0x10],0x0
MOV RAX,qword ptr [R15 + 0x68]
MOV qword ptr [R12 + 0x18],RAX
MOV RAX,qword ptr [R15 + 0x60]
TEST RAX,RAX
JZ 0x0012954b
LEA RCX,[R15 + 0x60]
MOVUPS XMM1,xmmword ptr [R15 + 0x50]
MOVUPS xmmword ptr [R12],XMM1
MOV qword ptr [RSP + 0x78],RAX
MOVUPS xmmword ptr [RCX],XMM0
LAB_0012954b:
MOVUPS XMM1,xmmword ptr [R15 + 0x70]
MOVUPS XMM2,xmmword ptr [R15 + 0x80]
LEA R13,[RSP + 0xa8]
MOVUPS xmmword ptr [R13 + -0x10],XMM2
MOVUPS xmmword ptr [R13 + -0x20],XMM1
MOVUPS xmmword ptr [R13],XMM0
MOV qword ptr [R13 + 0x10],0x0
MOV RAX,qword ptr [R15 + 0xa8]
MOV qword ptr [R13 + 0x18],RAX
MOV RAX,qword ptr [R15 + 0xa0]
TEST RAX,RAX
JZ 0x001295b0
LEA RCX,[R15 + 0xa0]
MOVUPS XMM0,xmmword ptr [R15 + 0x90]
MOVUPS xmmword ptr [R13],XMM0
MOV qword ptr [RSP + 0xb8],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RCX],XMM0
LAB_001295b0:
LEA RBP,[RSP + 0xc8]
XORPS XMM1,XMM1
MOVUPS xmmword ptr [RBP],XMM1
MOV qword ptr [RBP + 0x10],0x0
MOV RAX,qword ptr [R15 + 0xc8]
MOV qword ptr [RBP + 0x18],RAX
MOV RAX,qword ptr [R15 + 0xc0]
TEST RAX,RAX
JZ 0x001295fc
LEA RCX,[R15 + 0xc0]
MOVUPS XMM0,xmmword ptr [R15 + 0xb0]
MOVUPS xmmword ptr [RBP],XMM0
MOV qword ptr [RSP + 0xd8],RAX
MOVUPS xmmword ptr [RCX],XMM1
LAB_001295fc:
LEA RBX,[RSP + 0x88]
MOVUPS XMM0,xmmword ptr [R15 + 0xd0]
MOVUPS xmmword ptr [RBX + 0x60],XMM0
LEA RAX,[0x157cb8]
ADD RAX,0x10
MOV qword ptr [R14 + 0x10],RAX
MOVUPS xmmword ptr [R14 + 0x18],XMM1
MOVUPS xmmword ptr [R14 + 0x28],XMM1
LEA RDI,[R14 + 0x38]
LEA R15,[RSP + 0x18]
MOV RSI,R15
CALL 0x0012c070
LEA RDI,[R14 + 0x60]
LEA RSI,[RSP + 0x40]
CALL 0x0012c070
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14 + 0x88],XMM0
MOV qword ptr [R14 + 0x98],0x0
MOV RAX,qword ptr [R15 + 0x68]
MOV qword ptr [R14 + 0xa0],RAX
MOV RAX,qword ptr [R15 + 0x60]
TEST RAX,RAX
JZ 0x00129693
LEA RCX,[R14 + 0x88]
LEA RDX,[RSP + 0x78]
MOVUPS XMM0,xmmword ptr [R12]
MOVUPS xmmword ptr [RCX],XMM0
MOV qword ptr [R14 + 0x98],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDX],XMM0
LAB_00129693:
MOVUPS XMM0,xmmword ptr [RBX]
MOVUPS XMM1,xmmword ptr [RBX + 0x10]
MOVUPS xmmword ptr [R14 + 0xb8],XMM1
MOVUPS xmmword ptr [R14 + 0xa8],XMM0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14 + 0xc8],XMM0
MOV qword ptr [R14 + 0xd8],0x0
MOV RAX,qword ptr [RSP + 0xc0]
MOV qword ptr [R14 + 0xe0],RAX
MOV RAX,qword ptr [RSP + 0xb8]
TEST RAX,RAX
JZ 0x001296fd
LEA RCX,[R14 + 0xc8]
LEA RDX,[RSP + 0xb8]
MOVUPS XMM1,xmmword ptr [R13]
MOVUPS xmmword ptr [RCX],XMM1
MOV qword ptr [R14 + 0xd8],RAX
MOVUPS xmmword ptr [RDX],XMM0
LAB_001296fd:
LEA RBX,[R14 + 0x10]
LEA RAX,[RSP + 0xe8]
MOVUPS xmmword ptr [R14 + 0xe8],XMM0
MOV qword ptr [R14 + 0xf8],0x0
MOV RCX,qword ptr [RAX + -0x8]
MOV qword ptr [R14 + 0x100],RCX
MOV RCX,qword ptr [RAX + -0x10]
TEST RCX,RCX
JZ 0x00129756
MOV RDX,R14
ADD RDX,0xe8
LEA RSI,[RSP + 0xd8]
MOVUPS XMM0,xmmword ptr [RBP]
MOVUPS xmmword ptr [RDX],XMM0
MOV qword ptr [R14 + 0xf8],RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSI],XMM0
LAB_00129756:
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS xmmword ptr [R14 + 0x108],XMM0
LEA RAX,[0x1581a8]
MOV qword ptr [R14 + 0x10],RAX
MOV byte ptr [R14 + 0x118],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14 + 0x11c],XMM0
MOVUPS xmmword ptr [R14 + 0x12c],XMM0
LEA RDI,[RSP + 0x18]
CALL 0x001148ca
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x8],R14
MOV qword ptr [RAX],RBX
ADD RSP,0xf8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* std::shared_ptr<ftxui::(anonymous namespace)::InputBase> ftxui::Make<ftxui::(anonymous
namespace)::InputBase, ftxui::InputOption>(ftxui::InputOption&&) */
void __thiscall
ftxui::Make<ftxui::(anonymous_namespace)::InputBase,ftxui::InputOption>
(ftxui *this,InputOption *param_1)
{
long lVar1;
int8 *puVar2;
_Move_ctor_base *local_118;
_Move_ctor_base local_110 [32];
InputOption local_f0;
_Move_ctor_base local_e8 [32];
InputOption local_c8;
int8 local_c0;
int8 uStack_b8;
long local_b0;
int8 uStack_a8;
int8 local_a0;
int8 uStack_98;
int8 local_90;
int8 uStack_88;
int8 local_80;
int8 uStack_78;
long local_70;
int8 uStack_68;
int8 local_60;
int8 uStack_58;
long local_50;
int8 uStack_48;
int8 local_40;
int8 uStack_38;
*(int8 *)this = 0;
puVar2 = (int8 *)operator_new(0x140);
puVar2[1] = 0x100000001;
*puVar2 = &PTR___Sp_counted_ptr_inplace_00158158;
local_f0 = param_1[0x20];
local_118 = local_110;
/* try { // try from 001294e6 to 001294eb has its CatchHandler @ 001297b1 */
(**(code **)(std::__detail::__variant::
__gen_vtable<std::__detail::__variant::__variant_cookie,std::__detail::__variant::__variant_construct<std::__cxx11::string,std::__cxx11::string*,std::__detail::__variant::_Move_ctor_base<false,std::__cxx11::string,std::__cxx11::string*>&,std::__detail::__variant::_Move_ctor_base<false,std::__cxx11::string,std::__cxx11::string*>>(std::__detail::__variant::_Move_ctor_base<false,std::__cxx11::string,std::__cxx11::string*>&,std::__detail::__variant::_Move_ctor_base<false,std::__cxx11::string,std::__cxx11::string*>&&)::{lambda(auto:1&&)#1}&&,std::variant<std::__cxx11::string,std::__cxx11::string*>&&>
::_S_vtable + (ulong)(byte)local_f0 * 8))(&local_118,param_1);
local_118 = local_e8;
local_c8 = param_1[0x48];
/* try { // try from 00129505 to 00129507 has its CatchHandler @ 001297af */
(**(code **)(std::__detail::__variant::
__gen_vtable<std::__detail::__variant::__variant_cookie,std::__detail::__variant::__variant_construct<std::__cxx11::string,std::__cxx11::string*,std::__detail::__variant::_Move_ctor_base<false,std::__cxx11::string,std::__cxx11::string*>&,std::__detail::__variant::_Move_ctor_base<false,std::__cxx11::string,std::__cxx11::string*>>(std::__detail::__variant::_Move_ctor_base<false,std::__cxx11::string,std::__cxx11::string*>&,std::__detail::__variant::_Move_ctor_base<false,std::__cxx11::string,std::__cxx11::string*>&&)::{lambda(auto:1&&)#1}&&,std::variant<std::__cxx11::string,std::__cxx11::string*>&&>
::_S_vtable + (ulong)(byte)local_c8 * 8))(&local_118,param_1 + 0x28);
local_c0 = 0;
uStack_b8 = 0;
local_b0 = 0;
uStack_a8 = *(int8 *)(param_1 + 0x68);
lVar1 = *(long *)(param_1 + 0x60);
if (lVar1 != 0) {
local_c0 = *(int8 *)(param_1 + 0x50);
uStack_b8 = *(int8 *)(param_1 + 0x58);
*(int8 *)(param_1 + 0x60) = 0;
*(int8 *)(param_1 + 0x68) = 0;
local_b0 = lVar1;
}
local_a0 = *(int8 *)(param_1 + 0x70);
uStack_98 = *(int8 *)(param_1 + 0x78);
local_90 = *(int8 *)(param_1 + 0x80);
uStack_88 = *(int8 *)(param_1 + 0x88);
local_80 = 0;
uStack_78 = 0;
local_70 = 0;
uStack_68 = *(int8 *)(param_1 + 0xa8);
lVar1 = *(long *)(param_1 + 0xa0);
if (lVar1 != 0) {
local_80 = *(int8 *)(param_1 + 0x90);
uStack_78 = *(int8 *)(param_1 + 0x98);
*(int8 *)(param_1 + 0xa0) = 0;
*(int8 *)(param_1 + 0xa8) = 0;
local_70 = lVar1;
}
local_60 = 0;
uStack_58 = 0;
local_50 = 0;
uStack_48 = *(int8 *)(param_1 + 200);
lVar1 = *(long *)(param_1 + 0xc0);
if (lVar1 != 0) {
local_60 = *(int8 *)(param_1 + 0xb0);
uStack_58 = *(int8 *)(param_1 + 0xb8);
*(int8 *)(param_1 + 0xc0) = 0;
*(int8 *)(param_1 + 200) = 0;
local_50 = lVar1;
}
local_40 = *(int8 *)(param_1 + 0xd0);
uStack_38 = *(int8 *)(param_1 + 0xd8);
puVar2[2] = &PTR__ComponentBase_00157cc8;
puVar2[3] = 0;
puVar2[4] = 0;
puVar2[5] = 0;
puVar2[6] = 0;
std::__detail::__variant::_Move_ctor_base<false,std::__cxx11::string,std::__cxx11::string*>::
_Move_ctor_base((_Move_ctor_base<false,std::__cxx11::string,std::__cxx11::string*> *)(puVar2 + 7),
local_110);
std::__detail::__variant::_Move_ctor_base<false,std::__cxx11::string,std::__cxx11::string*>::
_Move_ctor_base((_Move_ctor_base<false,std::__cxx11::string,std::__cxx11::string*> *)
(puVar2 + 0xc),local_e8);
puVar2[0x11] = 0;
puVar2[0x12] = 0;
puVar2[0x13] = 0;
puVar2[0x14] = uStack_a8;
if (local_b0 != 0) {
puVar2[0x11] = local_c0;
puVar2[0x12] = uStack_b8;
puVar2[0x13] = local_b0;
local_b0 = 0;
uStack_a8 = 0;
}
puVar2[0x17] = local_90;
puVar2[0x18] = uStack_88;
puVar2[0x15] = local_a0;
puVar2[0x16] = uStack_98;
puVar2[0x19] = 0;
puVar2[0x1a] = 0;
puVar2[0x1b] = 0;
puVar2[0x1c] = uStack_68;
if (local_70 != 0) {
puVar2[0x19] = local_80;
puVar2[0x1a] = uStack_78;
puVar2[0x1b] = local_70;
local_70 = 0;
uStack_68 = 0;
}
puVar2[0x1d] = 0;
puVar2[0x1e] = 0;
puVar2[0x1f] = 0;
puVar2[0x20] = uStack_48;
if (local_50 != 0) {
puVar2[0x1d] = local_60;
puVar2[0x1e] = uStack_58;
puVar2[0x1f] = local_50;
local_50 = 0;
uStack_48 = 0;
}
puVar2[0x21] = local_40;
puVar2[0x22] = uStack_38;
puVar2[2] = &PTR__InputBase_001581a8;
*(int1 *)(puVar2 + 0x23) = 0;
*(int8 *)((long)puVar2 + 0x11c) = 0;
*(int8 *)((long)puVar2 + 0x124) = 0;
*(int8 *)((long)puVar2 + 300) = 0;
*(int8 *)((long)puVar2 + 0x134) = 0;
InputOption::~InputOption((InputOption *)local_110);
*(int8 **)(this + 8) = puVar2;
*(int8 **)this = puVar2 + 2;
return;
}
|
|
18,149
|
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 0x3422c
movq %r14, %rsi
callq 0x13640
testl %eax, %eax
je 0x34238
incq %r15
cmpq $0x6, %r15
jne 0x34207
movl $0x1, %eax
jmp 0x3423a
movq %r14, %rdi
callq 0x137d0
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_34207:
mov rdi, [rbx+r15*8]
test rdi, rdi
jz short loc_3422C
mov rsi, r14
call _strcmp
test eax, eax
jz short loc_34238
inc r15
cmp r15, 6
jnz short loc_34207
mov eax, 1
jmp short loc_3423A
loc_3422C:
mov rdi, r14
call _strdup
mov [rbx+r15*8], rax
loc_34238:
xor eax, eax
loc_3423A:
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_00134207:
MOV RDI,qword ptr [RBX + R15*0x8]
TEST RDI,RDI
JZ 0x0013422c
MOV RSI,R14
CALL 0x00113640
TEST EAX,EAX
JZ 0x00134238
INC R15
CMP R15,0x6
JNZ 0x00134207
MOV EAX,0x1
JMP 0x0013423a
LAB_0013422c:
MOV RDI,R14
CALL 0x001137d0
MOV qword ptr [RBX + R15*0x8],RAX
LAB_00134238:
XOR EAX,EAX
LAB_0013423a:
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;
}
|
|
18,150
|
unsigned long google::protobuf::internal::RepeatedPtrFieldBase::SpaceUsedExcludingSelfLong<google::protobuf::internal::GenericTypeHandler<google::protobuf::Message>>() const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/repeated_ptr_field.h
|
size_t SpaceUsedExcludingSelfLong() const {
size_t allocated_bytes = static_cast<size_t>(total_size_) * sizeof(void*);
if (rep_ != nullptr) {
for (int i = 0; i < rep_->allocated_size; ++i) {
allocated_bytes +=
TypeHandler::SpaceUsedLong(*cast<TypeHandler>(rep_->elements[i]));
}
allocated_bytes += kRepHeaderSize;
}
return allocated_bytes;
}
|
O0
|
c
|
unsigned long google::protobuf::internal::RepeatedPtrFieldBase::SpaceUsedExcludingSelfLong<google::protobuf::internal::GenericTypeHandler<google::protobuf::Message>>() const:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movslq 0xc(%rax), %rcx
shlq $0x3, %rcx
movq %rcx, 0x18(%rsp)
cmpq $0x0, 0x10(%rax)
je 0x1cea25
movl $0x0, 0x14(%rsp)
movq 0x8(%rsp), %rcx
movl 0x14(%rsp), %eax
movq 0x10(%rcx), %rcx
cmpl (%rcx), %eax
jge 0x1cea17
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movslq 0x14(%rsp), %rcx
movq 0x8(%rax,%rcx,8), %rdi
callq 0x1d2490
movq %rax, %rdi
callq 0x1d2bd0
addq 0x18(%rsp), %rax
movq %rax, 0x18(%rsp)
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x1ce9cf
movq 0x18(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
addq $0x28, %rsp
retq
nop
|
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase26SpaceUsedExcludingSelfLongINS0_16RepeatedPtrFieldINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE11TypeHandlerEEEmv:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_20], rax
movsxd rcx, dword ptr [rax+0Ch]
shl rcx, 3
mov [rsp+28h+var_10], rcx
cmp qword ptr [rax+10h], 0
jz short loc_1CEA25
mov [rsp+28h+var_14], 0
loc_1CE9CF:
mov rcx, [rsp+28h+var_20]
mov eax, [rsp+28h+var_14]
mov rcx, [rcx+10h]
cmp eax, [rcx]
jge short loc_1CEA17
mov rax, [rsp+28h+var_20]
mov rax, [rax+10h]
movsxd rcx, [rsp+28h+var_14]
mov rdi, [rax+rcx*8+8]
call _ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS0_16RepeatedPtrFieldINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE11TypeHandlerEEEPNT_4TypeEPv; google::protobuf::internal::RepeatedPtrFieldBase::cast<google::protobuf::RepeatedPtrField<std::string>::TypeHandler>(void *)
mov rdi, rax
call _ZN6google8protobuf8internal17StringTypeHandler13SpaceUsedLongERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::StringTypeHandler::SpaceUsedLong(std::string const&)
add rax, [rsp+28h+var_10]
mov [rsp+28h+var_10], rax
mov eax, [rsp+28h+var_14]
add eax, 1
mov [rsp+28h+var_14], eax
jmp short loc_1CE9CF
loc_1CEA17:
mov rax, [rsp+28h+var_10]
add rax, 8
mov [rsp+28h+var_10], rax
loc_1CEA25:
mov rax, [rsp+28h+var_10]
add rsp, 28h
retn
|
long long google::protobuf::internal::RepeatedPtrFieldBase::SpaceUsedExcludingSelfLong<google::protobuf::RepeatedPtrField<std::string>::TypeHandler>(
long long a1)
{
long long v1; // rax
int i; // [rsp+14h] [rbp-14h]
long long v4; // [rsp+18h] [rbp-10h]
v4 = 8LL * *(int *)(a1 + 12);
if ( *(_QWORD *)(a1 + 16) )
{
for ( i = 0; i < **(_DWORD **)(a1 + 16); ++i )
{
v1 = google::protobuf::internal::RepeatedPtrFieldBase::cast<google::protobuf::RepeatedPtrField<std::string>::TypeHandler>(*(_QWORD *)(*(_QWORD *)(a1 + 16) + 8LL * i + 8));
v4 += google::protobuf::internal::StringTypeHandler::SpaceUsedLong(v1);
}
v4 += 8LL;
}
return v4;
}
| |||
18,151
|
unsigned long google::protobuf::internal::RepeatedPtrFieldBase::SpaceUsedExcludingSelfLong<google::protobuf::internal::GenericTypeHandler<google::protobuf::Message>>() const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/repeated_ptr_field.h
|
size_t SpaceUsedExcludingSelfLong() const {
size_t allocated_bytes = static_cast<size_t>(total_size_) * sizeof(void*);
if (rep_ != nullptr) {
for (int i = 0; i < rep_->allocated_size; ++i) {
allocated_bytes +=
TypeHandler::SpaceUsedLong(*cast<TypeHandler>(rep_->elements[i]));
}
allocated_bytes += kRepHeaderSize;
}
return allocated_bytes;
}
|
O3
|
c
|
unsigned long google::protobuf::internal::RepeatedPtrFieldBase::SpaceUsedExcludingSelfLong<google::protobuf::internal::GenericTypeHandler<google::protobuf::Message>>() const:
pushq %r15
pushq %r14
pushq %rbx
movslq 0xc(%rdi), %rbx
shlq $0x3, %rbx
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x63a78
cmpl $0x0, (%rax)
jle 0x63a74
movq %rdi, %r14
xorl %r15d, %r15d
movq 0x8(%rax,%r15,8), %rdi
movq (%rdi), %rax
callq *0x70(%rax)
addq %rax, %rbx
incq %r15
movq 0x10(%r14), %rax
movslq (%rax), %rcx
cmpq %rcx, %r15
jl 0x63a57
addq $0x8, %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
|
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase26SpaceUsedExcludingSelfLongINS1_18GenericTypeHandlerINS0_7MessageEEEEEmv:
push r15
push r14
push rbx
movsxd rbx, dword ptr [rdi+0Ch]
shl rbx, 3
mov rax, [rdi+10h]
test rax, rax
jz short loc_63A78
cmp dword ptr [rax], 0
jle short loc_63A74
mov r14, rdi
xor r15d, r15d
loc_63A57:
mov rdi, [rax+r15*8+8]
mov rax, [rdi]
call qword ptr [rax+70h]
add rbx, rax
inc r15
mov rax, [r14+10h]
movsxd rcx, dword ptr [rax]
cmp r15, rcx
jl short loc_63A57
loc_63A74:
add rbx, 8
loc_63A78:
mov rax, rbx
pop rbx
pop r14
pop r15
retn
|
long long google::protobuf::internal::RepeatedPtrFieldBase::SpaceUsedExcludingSelfLong<google::protobuf::internal::GenericTypeHandler<google::protobuf::Message>>(
long long a1)
{
long long v1; // rbx
int *v2; // rax
long long v3; // r15
v1 = 8LL * *(int *)(a1 + 12);
v2 = *(int **)(a1 + 16);
if ( v2 )
{
if ( *v2 > 0 )
{
v3 = 0LL;
do
{
v1 += (*(long long ( **)(_QWORD))(**(_QWORD **)&v2[2 * v3 + 2] + 112LL))(*(_QWORD *)&v2[2 * v3 + 2]);
++v3;
v2 = *(int **)(a1 + 16);
}
while ( v3 < *v2 );
}
v1 += 8LL;
}
return v1;
}
|
SpaceUsedExcludingSelfLong<google::protobuf::internal::GenericTypeHandler<google::protobuf::Message>>:
PUSH R15
PUSH R14
PUSH RBX
MOVSXD RBX,dword ptr [RDI + 0xc]
SHL RBX,0x3
MOV RAX,qword ptr [RDI + 0x10]
TEST RAX,RAX
JZ 0x00163a78
CMP dword ptr [RAX],0x0
JLE 0x00163a74
MOV R14,RDI
XOR R15D,R15D
LAB_00163a57:
MOV RDI,qword ptr [RAX + R15*0x8 + 0x8]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x70]
ADD RBX,RAX
INC R15
MOV RAX,qword ptr [R14 + 0x10]
MOVSXD RCX,dword ptr [RAX]
CMP R15,RCX
JL 0x00163a57
LAB_00163a74:
ADD RBX,0x8
LAB_00163a78:
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
/* unsigned long
google::protobuf::internal::RepeatedPtrFieldBase::SpaceUsedExcludingSelfLong<google::protobuf::internal::GenericTypeHandler<google::protobuf::Message>
>() const */
ulong __thiscall
google::protobuf::internal::RepeatedPtrFieldBase::
SpaceUsedExcludingSelfLong<google::protobuf::internal::GenericTypeHandler<google::protobuf::Message>>
(RepeatedPtrFieldBase *this)
{
int *piVar1;
long lVar2;
ulong uVar3;
long lVar4;
uVar3 = (long)*(int *)(this + 0xc) << 3;
piVar1 = *(int **)(this + 0x10);
if (piVar1 != (int *)0x0) {
if (0 < *piVar1) {
lVar4 = 0;
do {
lVar2 = (**(code **)(**(long **)(piVar1 + lVar4 * 2 + 2) + 0x70))();
uVar3 = uVar3 + lVar2;
lVar4 = lVar4 + 1;
piVar1 = *(int **)(this + 0x10);
} while (lVar4 < *piVar1);
}
uVar3 = uVar3 + 8;
}
return uVar3;
}
|
|
18,152
|
ftxui::GlyphCount(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/screen/string.cpp
|
int GlyphCount(const std::string& input) {
int size = 0;
size_t start = 0;
size_t end = 0;
while (start < input.size()) {
uint32_t codepoint = 0;
const bool eaten = EatCodePoint(input, start, &end, &codepoint);
start = end;
// Ignore invalid characters:
if (!eaten || IsControl(codepoint)) {
continue;
}
// Ignore combining characters, except when they don't have a preceding to
// combine with.
if (IsCombining(codepoint)) {
if (size == 0) {
size++;
}
continue;
}
size++;
}
return size;
}
|
O3
|
cpp
|
ftxui::GlyphCount(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 $0x0, 0x10(%rsp)
movq 0x8(%rdi), %rbp
testq %rbp, %rbp
je 0x3aebe
movq %rdi, %rbx
xorl %r14d, %r14d
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r12
xorl %r13d, %r13d
movl $0x0, 0xc(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x3a5b4
movq 0x10(%rsp), %r13
testb %al, %al
je 0x3aeb7
movl 0xc(%rsp), %edi
testl %edi, %edi
je 0x3aeb7
cmpl $0x1f, %edi
ja 0x3ae99
cmpl $0xa, %edi
je 0x3aea1
jmp 0x3aeb7
leal -0x7f(%rdi), %eax
cmpl $0x21, %eax
jb 0x3aeb7
callq 0x3a6d0
testb %al, %al
je 0x3aeb4
cmpl $0x1, %r14d
adcl $0x0, %r14d
jmp 0x3aeb7
incl %r14d
cmpq %rbp, %r13
jb 0x3ae63
jmp 0x3aec1
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZN5ftxui10GlyphCountERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rsp+48h+var_3C+4], 0
mov rbp, [rdi+8]
test rbp, rbp
jz short loc_3AEBE
mov rbx, rdi
xor r14d, r14d
lea r15, [rsp+48h+var_3C+4]
lea r12, [rsp+48h+var_3C]
xor r13d, r13d
loc_3AE63:
mov dword ptr [rsp+48h+var_3C], 0
mov rdi, rbx
mov rsi, r13; unsigned int
mov rdx, r15
mov rcx, r12
call _ZN5ftxui12EatCodePointERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmPmPj; ftxui::EatCodePoint(std::string const&,ulong,ulong *,uint *)
mov r13, [rsp+48h+var_3C+4]
test al, al
jz short loc_3AEB7
mov edi, dword ptr [rsp+48h+var_3C]; this
test edi, edi
jz short loc_3AEB7
cmp edi, 1Fh
ja short loc_3AE99
cmp edi, 0Ah
jz short loc_3AEA1
jmp short loc_3AEB7
loc_3AE99:
lea eax, [rdi-7Fh]
cmp eax, 21h ; '!'
jb short loc_3AEB7
loc_3AEA1:
call _ZN5ftxui11IsCombiningEj; ftxui::IsCombining(uint)
test al, al
jz short loc_3AEB4
cmp r14d, 1
adc r14d, 0
jmp short loc_3AEB7
loc_3AEB4:
inc r14d
loc_3AEB7:
cmp r13, rbp
jb short loc_3AE63
jmp short loc_3AEC1
loc_3AEBE:
xor r14d, r14d
loc_3AEC1:
mov eax, r14d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long ftxui::GlyphCount(long long *a1)
{
unsigned long long v1; // rbp
unsigned int v2; // r14d
unsigned long long v3; // r13
char v4; // al
unsigned int v6[15]; // [rsp+Ch] [rbp-3Ch] BYREF
*(_QWORD *)&v6[1] = 0LL;
v1 = a1[1];
if ( v1 )
{
v2 = 0;
v3 = 0LL;
while ( 1 )
{
v6[0] = 0;
v4 = ftxui::EatCodePoint(a1, v3, &v6[1], (int *)v6);
v3 = *(_QWORD *)&v6[1];
if ( !v4 || !v6[0] )
goto LABEL_12;
if ( v6[0] > 0x1F )
{
if ( v6[0] - 127 >= 0x21 )
{
LABEL_9:
if ( ftxui::IsCombining((ftxui *)v6[0]) )
v2 += v2 == 0;
else
++v2;
}
}
else if ( v6[0] == 10 )
{
goto LABEL_9;
}
LABEL_12:
if ( v3 >= v1 )
return v2;
}
}
return 0;
}
|
GlyphCount:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],0x0
MOV RBP,qword ptr [RDI + 0x8]
TEST RBP,RBP
JZ 0x0013aebe
MOV RBX,RDI
XOR R14D,R14D
LEA R15,[RSP + 0x10]
LEA R12,[RSP + 0xc]
XOR R13D,R13D
LAB_0013ae63:
MOV dword ptr [RSP + 0xc],0x0
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R15
MOV RCX,R12
CALL 0x0013a5b4
MOV R13,qword ptr [RSP + 0x10]
TEST AL,AL
JZ 0x0013aeb7
MOV EDI,dword ptr [RSP + 0xc]
TEST EDI,EDI
JZ 0x0013aeb7
CMP EDI,0x1f
JA 0x0013ae99
CMP EDI,0xa
JZ 0x0013aea1
JMP 0x0013aeb7
LAB_0013ae99:
LEA EAX,[RDI + -0x7f]
CMP EAX,0x21
JC 0x0013aeb7
LAB_0013aea1:
CALL 0x0013a6d0
TEST AL,AL
JZ 0x0013aeb4
CMP R14D,0x1
ADC R14D,0x0
JMP 0x0013aeb7
LAB_0013aeb4:
INC R14D
LAB_0013aeb7:
CMP R13,RBP
JC 0x0013ae63
JMP 0x0013aec1
LAB_0013aebe:
XOR R14D,R14D
LAB_0013aec1:
MOV EAX,R14D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* ftxui::GlyphCount(std::__cxx11::string const&) */
int ftxui::GlyphCount(string *param_1)
{
ulong uVar1;
char cVar2;
ulong uVar3;
int iVar4;
uint local_3c;
ulong local_38;
local_38 = 0;
uVar1 = *(ulong *)(param_1 + 8);
if (uVar1 == 0) {
iVar4 = 0;
}
else {
iVar4 = 0;
uVar3 = 0;
do {
local_3c = 0;
cVar2 = EatCodePoint(param_1,uVar3,&local_38,&local_3c);
uVar3 = local_38;
if ((cVar2 != '\0') && (local_3c != 0)) {
if (local_3c < 0x20) {
if (local_3c == 10) {
LAB_0013aea1:
cVar2 = IsCombining(local_3c);
if (cVar2 == '\0') {
iVar4 = iVar4 + 1;
}
else {
iVar4 = iVar4 + (uint)(iVar4 == 0);
}
}
}
else if (0x20 < local_3c - 0x7f) goto LAB_0013aea1;
}
} while (uVar3 < uVar1);
}
return iVar4;
}
|
|
18,153
|
sort_locks
|
eloqsql/mysys/thr_lock.c
|
static void sort_locks(THR_LOCK_DATA **data,uint count)
{
THR_LOCK_DATA **pos,**end,**prev,*tmp;
/* Sort locks with insertion sort (fast because almost always few locks) */
for (pos=data+1,end=data+count; pos < end ; pos++)
{
tmp= *pos;
if (LOCK_CMP(tmp,pos[-1]))
{
prev=pos;
do {
prev[0]=prev[-1];
} while (--prev != data && LOCK_CMP(tmp,prev[-1]));
prev[0]=tmp;
}
}
}
|
O0
|
c
|
sort_locks:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0xf9739
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq -0x18(%rbp), %rax
movq -0x8(%rax), %rsi
callq 0xfaf80
cmpl $0x0, %eax
je 0xf9726
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq -0x8(%rax), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rcx
addq $-0x8, %rcx
movq %rcx, -0x28(%rbp)
xorl %eax, %eax
cmpq -0x8(%rbp), %rcx
movb %al, -0x31(%rbp)
je 0xf9714
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rax
movq -0x8(%rax), %rsi
callq 0xfaf80
cmpl $0x0, %eax
setne %al
movb %al, -0x31(%rbp)
movb -0x31(%rbp), %al
testb $0x1, %al
jne 0xf96d4
movq -0x30(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
jmp 0xf9728
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
jmp 0xf969d
addq $0x40, %rsp
popq %rbp
retq
nop
|
sort_locks:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov rax, [rbp+var_8]
add rax, 8
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
shl rcx, 3
add rax, rcx
mov [rbp+var_20], rax
loc_F969D:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnb loc_F9739
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_30], rax
mov rdi, [rbp+var_30]
mov rax, [rbp+var_18]
mov rsi, [rax-8]
call LOCK_CMP
cmp eax, 0
jz short loc_F9726
mov rax, [rbp+var_18]
mov [rbp+var_28], rax
loc_F96D4:
mov rax, [rbp+var_28]
mov rcx, [rax-8]
mov rax, [rbp+var_28]
mov [rax], rcx
mov rcx, [rbp+var_28]
add rcx, 0FFFFFFFFFFFFFFF8h
mov [rbp+var_28], rcx
xor eax, eax
cmp rcx, [rbp+var_8]
mov [rbp+var_31], al
jz short loc_F9714
mov rdi, [rbp+var_30]
mov rax, [rbp+var_28]
mov rsi, [rax-8]
call LOCK_CMP
cmp eax, 0
setnz al
mov [rbp+var_31], al
loc_F9714:
mov al, [rbp+var_31]
test al, 1
jnz short loc_F96D4
mov rcx, [rbp+var_30]
mov rax, [rbp+var_28]
mov [rax], rcx
loc_F9726:
jmp short $+2
loc_F9728:
mov rax, [rbp+var_18]
add rax, 8
mov [rbp+var_18], rax
jmp loc_F969D
loc_F9739:
add rsp, 40h
pop rbp
retn
|
_QWORD * sort_locks(_QWORD *a1, int a2)
{
_QWORD *result; // rax
bool v3; // [rsp+Fh] [rbp-31h]
long long v4; // [rsp+10h] [rbp-30h]
_QWORD *v5; // [rsp+18h] [rbp-28h]
_QWORD *i; // [rsp+28h] [rbp-18h]
for ( i = a1 + 1; ; ++i )
{
result = i;
if ( i >= &a1[a2] )
break;
v4 = *i;
if ( (unsigned int)LOCK_CMP(*i, *(i - 1)) )
{
v5 = i;
do
{
*v5 = *(v5 - 1);
--v5;
v3 = 0;
if ( v5 != a1 )
v3 = (unsigned int)LOCK_CMP(v4, *(v5 - 1)) != 0;
}
while ( v3 );
*v5 = v4;
}
}
return result;
}
|
sort_locks:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x8
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0xc]
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
LAB_001f969d:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x001f9739
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RAX + -0x8]
CALL 0x001faf80
CMP EAX,0x0
JZ 0x001f9726
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x28],RAX
LAB_001f96d4:
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x28]
ADD RCX,-0x8
MOV qword ptr [RBP + -0x28],RCX
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x8]
MOV byte ptr [RBP + -0x31],AL
JZ 0x001f9714
MOV RDI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RAX + -0x8]
CALL 0x001faf80
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x31],AL
LAB_001f9714:
MOV AL,byte ptr [RBP + -0x31]
TEST AL,0x1
JNZ 0x001f96d4
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
LAB_001f9726:
JMP 0x001f9728
LAB_001f9728:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x8
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001f969d
LAB_001f9739:
ADD RSP,0x40
POP RBP
RET
|
void sort_locks(int8 *param_1,uint param_2)
{
int8 uVar1;
int iVar2;
int8 *puVar3;
bool bVar4;
int8 *local_30;
int8 *local_20;
for (local_20 = param_1 + 1; local_20 < param_1 + param_2; local_20 = local_20 + 1) {
uVar1 = *local_20;
iVar2 = LOCK_CMP(uVar1,local_20[-1]);
if (iVar2 != 0) {
local_30 = local_20;
do {
*local_30 = local_30[-1];
puVar3 = local_30 + -1;
bVar4 = false;
if (puVar3 != param_1) {
iVar2 = LOCK_CMP(uVar1,local_30[-2]);
bVar4 = iVar2 != 0;
}
local_30 = puVar3;
} while (bVar4);
*puVar3 = uVar1;
}
}
return;
}
|
|
18,154
|
my_strdup
|
eloqsql/mysys/my_malloc.c
|
char *my_strdup(PSI_memory_key key, const char *from, myf my_flags)
{
char *ptr;
size_t length= strlen(from)+1;
DBUG_ENTER("my_strdup");
if ((ptr= (char*) my_malloc(key, length, my_flags)))
memcpy(ptr, from, length);
DBUG_RETURN(ptr);
}
|
O3
|
c
|
my_strdup:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movl %edi, %r12d
movq %rsi, %rdi
callq 0x24120
movq %rax, %r14
incq %r14
movl %r12d, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x260ad
testq %rax, %rax
je 0x263bb
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x24240
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
my_strdup:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r15, rdx
mov rbx, rsi
mov r12d, edi
mov rdi, rsi
call _strlen
mov r14, rax
inc r14
mov edi, r12d
mov rsi, r14
mov rdx, r15
call my_malloc
test rax, rax
jz short loc_263BB
mov rdi, rax
mov rsi, rbx
mov rdx, r14
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp _memcpy
loc_263BB:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long my_strdup(unsigned int a1, long long a2, int a3)
{
unsigned long long v4; // r14
long long result; // rax
v4 = strlen(a2) + 1;
result = my_malloc(a1, v4, a3);
if ( result )
return memcpy(result, a2, v4);
return result;
}
|
my_strdup:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R15,RDX
MOV RBX,RSI
MOV R12D,EDI
MOV RDI,RSI
CALL 0x00124120
MOV R14,RAX
INC R14
MOV EDI,R12D
MOV RSI,R14
MOV RDX,R15
CALL 0x001260ad
TEST RAX,RAX
JZ 0x001263bb
MOV RDI,RAX
MOV RSI,RBX
MOV RDX,R14
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP 0x00124240
LAB_001263bb:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
void my_strdup(int4 param_1,char *param_2,int8 param_3)
{
size_t sVar1;
void *__dest;
sVar1 = strlen(param_2);
__dest = (void *)my_malloc(param_1,sVar1 + 1,param_3);
if (__dest != (void *)0x0) {
memcpy(__dest,param_2,sVar1 + 1);
return;
}
return;
}
|
|
18,155
|
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces(int, OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/surfaceFactory.cpp
|
bool
SurfaceFactory::populateAllSurfaces(Index faceIndex,
SurfaceSet * surfaceSetPtr) const {
SurfaceSet & surfaces = *surfaceSetPtr;
// Abort if no Surfaces are specified to populate:
if (surfaces.GetNumSurfaces() == 0) {
return false;
}
//
// Be sure to re-initialize all Surfaces up-front, rather than
// deferring it to the assignment of each. A failure of any one
// surface may leave others unvisited -- leaving it unchanged
// from previous use.
//
surfaces.InitializeSurfaces();
// Quickly reject faces with no limit (typically holes) -- some cases
// require full topological inspection and will be rejected later:
if (!faceHasLimitSimple(faceIndex, getFaceSize(faceIndex))) {
return false;
}
// Determine if we have any non-linear cases to deal with -- which
// require gathering and inspection of the full neighborhood around
// the given face:
int numFVarSurfaces = surfaces.GetNumFVarSurfaces();
bool hasNonLinearSurfaces =
(surfaces.HasVertexSurface() && !_linearScheme) ||
(numFVarSurfaces && !_linearFVarInterp);
bool hasLinearSurfaces =
surfaces.HasVaryingSurface() ||
(surfaces.HasVertexSurface() && _linearScheme) ||
(numFVarSurfaces && _linearFVarInterp);
if (hasNonLinearSurfaces || _testNeighborhoodForLimit) {
if (!populateNonLinearSurfaces(faceIndex, &surfaces)) {
return false;
}
}
if (hasLinearSurfaces) {
if (!populateLinearSurfaces(faceIndex, &surfaces)) {
return false;
}
}
return true;
}
|
O0
|
cpp
|
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces(int, OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0xcfd50
cmpl $0x0, %eax
jne 0x1b831a
movb $0x0, -0x1(%rbp)
jmp 0x1b847a
movq -0x28(%rbp), %rdi
callq 0xcc0e0
movq -0x38(%rbp), %rdi
movl -0x14(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x14(%rbp), %esi
movq (%rdi), %rax
callq *0x18(%rax)
movq -0x38(%rbp), %rdi
movl -0x3c(%rbp), %esi
movl %eax, %edx
callq 0xc5c10
testb $0x1, %al
jne 0x1b8351
movb $0x0, -0x1(%rbp)
jmp 0x1b847a
movq -0x28(%rbp), %rdi
callq 0xd6030
movl %eax, -0x2c(%rbp)
movq -0x28(%rbp), %rdi
callq 0xcd440
testb $0x1, %al
jne 0x1b836c
jmp 0x1b8382
movq -0x38(%rbp), %rax
movb 0x28(%rax), %al
andb $0x1, %al
movzbl %al, %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x3d(%rbp)
je 0x1b83ac
xorl %eax, %eax
cmpl $0x0, -0x2c(%rbp)
movb %al, -0x3e(%rbp)
je 0x1b83a6
movq -0x38(%rbp), %rax
movb 0x28(%rax), %al
shrb %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
movb %al, -0x3e(%rbp)
movb -0x3e(%rbp), %al
movb %al, -0x3d(%rbp)
movb -0x3d(%rbp), %al
andb $0x1, %al
movb %al, -0x2d(%rbp)
movq -0x28(%rbp), %rdi
callq 0xcbcc0
movb %al, %cl
movb $0x1, %al
testb $0x1, %cl
movb %al, -0x3f(%rbp)
jne 0x1b8416
movq -0x28(%rbp), %rdi
callq 0xcd440
testb $0x1, %al
jne 0x1b83d8
jmp 0x1b83ee
movq -0x38(%rbp), %rax
movb 0x28(%rax), %al
andb $0x1, %al
movzbl %al, %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x3f(%rbp)
jne 0x1b8416
xorl %eax, %eax
cmpl $0x0, -0x2c(%rbp)
movb %al, -0x40(%rbp)
je 0x1b8410
movq -0x38(%rbp), %rax
movb 0x28(%rax), %al
shrb %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x40(%rbp)
movb -0x40(%rbp), %al
movb %al, -0x3f(%rbp)
movb -0x3f(%rbp), %al
andb $0x1, %al
movb %al, -0x2e(%rbp)
testb $0x1, -0x2d(%rbp)
jne 0x1b8438
movq -0x38(%rbp), %rax
movb 0x28(%rax), %al
shrb $0x2, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x1b8454
movq -0x38(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x28(%rbp), %rdx
callq 0xd5f30
testb $0x1, %al
jne 0x1b8452
movb $0x0, -0x1(%rbp)
jmp 0x1b847a
jmp 0x1b8454
testb $0x1, -0x2e(%rbp)
je 0x1b8476
movq -0x38(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x28(%rbp), %rdx
callq 0xc3110
testb $0x1, %al
jne 0x1b8474
movb $0x0, -0x1(%rbp)
jmp 0x1b847a
jmp 0x1b8476
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory19populateAllSurfacesEiPNS2_10SurfaceSetE:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov [rbp+var_38], rax
mov rax, [rbp+var_20]
mov [rbp+var_28], rax
mov rdi, [rbp+var_28]; this
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet14GetNumSurfacesEv; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::GetNumSurfaces(void)
cmp eax, 0
jnz short loc_1B831A
mov [rbp+var_1], 0
jmp loc_1B847A
loc_1B831A:
mov rdi, [rbp+var_28]; this
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet18InitializeSurfacesEv; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::InitializeSurfaces(void)
mov rdi, [rbp+var_38]
mov eax, [rbp+var_14]
mov [rbp+var_3C], eax
mov esi, [rbp+var_14]
mov rax, [rdi]
call qword ptr [rax+18h]
mov rdi, [rbp+var_38]; this
mov esi, [rbp+var_3C]; int
mov edx, eax; int
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory18faceHasLimitSimpleEii; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::faceHasLimitSimple(int,int)
test al, 1
jnz short loc_1B8351
mov [rbp+var_1], 0
jmp loc_1B847A
loc_1B8351:
mov rdi, [rbp+var_28]; this
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet18GetNumFVarSurfacesEv; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::GetNumFVarSurfaces(void)
mov [rbp+var_2C], eax
mov rdi, [rbp+var_28]; this
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet16HasVertexSurfaceEv; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::HasVertexSurface(void)
test al, 1
jnz short loc_1B836C
jmp short loc_1B8382
loc_1B836C:
mov rax, [rbp+var_38]
mov al, [rax+28h]
and al, 1
movzx ecx, al
mov al, 1
cmp ecx, 0
mov [rbp+var_3D], al
jz short loc_1B83AC
loc_1B8382:
xor eax, eax
cmp [rbp+var_2C], 0
mov [rbp+var_3E], al
jz short loc_1B83A6
mov rax, [rbp+var_38]
mov al, [rax+28h]
shr al, 1
and al, 1
movzx eax, al
cmp eax, 0
setnz al
xor al, 0FFh
mov [rbp+var_3E], al
loc_1B83A6:
mov al, [rbp+var_3E]
mov [rbp+var_3D], al
loc_1B83AC:
mov al, [rbp+var_3D]
and al, 1
mov [rbp+var_2D], al
mov rdi, [rbp+var_28]; this
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet17HasVaryingSurfaceEv; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::HasVaryingSurface(void)
mov cl, al
mov al, 1
test cl, 1
mov [rbp+var_3F], al
jnz short loc_1B8416
mov rdi, [rbp+var_28]; this
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet16HasVertexSurfaceEv; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::HasVertexSurface(void)
test al, 1
jnz short loc_1B83D8
jmp short loc_1B83EE
loc_1B83D8:
mov rax, [rbp+var_38]
mov al, [rax+28h]
and al, 1
movzx ecx, al
mov al, 1
cmp ecx, 0
mov [rbp+var_3F], al
jnz short loc_1B8416
loc_1B83EE:
xor eax, eax
cmp [rbp+var_2C], 0
mov [rbp+var_40], al
jz short loc_1B8410
mov rax, [rbp+var_38]
mov al, [rax+28h]
shr al, 1
and al, 1
movzx eax, al
cmp eax, 0
setnz al
mov [rbp+var_40], al
loc_1B8410:
mov al, [rbp+var_40]
mov [rbp+var_3F], al
loc_1B8416:
mov al, [rbp+var_3F]
and al, 1
mov [rbp+var_2E], al
test [rbp+var_2D], 1
jnz short loc_1B8438
mov rax, [rbp+var_38]
mov al, [rax+28h]
shr al, 2
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_1B8454
loc_1B8438:
mov rdi, [rbp+var_38]; this
mov esi, [rbp+var_14]; int
mov rdx, [rbp+var_28]; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory25populateNonLinearSurfacesEiPNS2_10SurfaceSetE; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateNonLinearSurfaces(int,OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *)
test al, 1
jnz short loc_1B8452
mov [rbp+var_1], 0
jmp short loc_1B847A
loc_1B8452:
jmp short $+2
loc_1B8454:
test [rbp+var_2E], 1
jz short loc_1B8476
mov rdi, [rbp+var_38]; this
mov esi, [rbp+var_14]; int
mov rdx, [rbp+var_28]; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory22populateLinearSurfacesEiPNS2_10SurfaceSetE; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(int,OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *)
test al, 1
jnz short loc_1B8474
mov [rbp+var_1], 0
jmp short loc_1B847A
loc_1B8474:
jmp short $+2
loc_1B8476:
mov [rbp+var_1], 1
loc_1B847A:
mov al, [rbp+var_1]
and al, 1
add rsp, 40h
pop rbp
retn
|
bool OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces(
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory *this,
unsigned int a2,
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *a3)
{
int v3; // eax
bool v5; // [rsp+0h] [rbp-40h]
char v6; // [rsp+1h] [rbp-3Fh]
char v7; // [rsp+2h] [rbp-3Eh]
char v8; // [rsp+3h] [rbp-3Dh]
int NumFVarSurfaces; // [rsp+14h] [rbp-2Ch]
if ( !(unsigned int)OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::GetNumSurfaces(a3) )
return 0;
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::InitializeSurfaces(a3);
v3 = (*(long long ( **)(OpenSubdiv::v3_6_0::Bfr::SurfaceFactory *, _QWORD))(*(_QWORD *)this + 24LL))(this, a2);
if ( (OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::faceHasLimitSimple(this, a2, v3) & 1) == 0 )
return 0;
NumFVarSurfaces = OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::GetNumFVarSurfaces(a3);
if ( (OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::HasVertexSurface(a3) & 1) == 0
|| (v8 = 1, (*((_BYTE *)this + 40) & 1) != 0) )
{
v7 = 0;
if ( NumFVarSurfaces )
v7 = ~((*((_BYTE *)this + 40) & 2) != 0);
v8 = v7;
}
v6 = 1;
if ( (OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::HasVaryingSurface(a3) & 1) == 0 )
{
if ( (OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::HasVertexSurface(a3) & 1) == 0
|| (v6 = 1, (*((_BYTE *)this + 40) & 1) == 0) )
{
v5 = 0;
if ( NumFVarSurfaces )
v5 = (*((_BYTE *)this + 40) & 2) != 0;
v6 = v5;
}
}
return ((v8 & 1) == 0 && (*((_BYTE *)this + 40) & 4) == 0
|| (OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateNonLinearSurfaces(this, a2, a3) & 1) != 0)
&& ((v6 & 1) == 0 || (OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(this, a2, a3) & 1) != 0);
}
| |||
18,156
|
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces(int, OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/surfaceFactory.cpp
|
bool
SurfaceFactory::populateAllSurfaces(Index faceIndex,
SurfaceSet * surfaceSetPtr) const {
SurfaceSet & surfaces = *surfaceSetPtr;
// Abort if no Surfaces are specified to populate:
if (surfaces.GetNumSurfaces() == 0) {
return false;
}
//
// Be sure to re-initialize all Surfaces up-front, rather than
// deferring it to the assignment of each. A failure of any one
// surface may leave others unvisited -- leaving it unchanged
// from previous use.
//
surfaces.InitializeSurfaces();
// Quickly reject faces with no limit (typically holes) -- some cases
// require full topological inspection and will be rejected later:
if (!faceHasLimitSimple(faceIndex, getFaceSize(faceIndex))) {
return false;
}
// Determine if we have any non-linear cases to deal with -- which
// require gathering and inspection of the full neighborhood around
// the given face:
int numFVarSurfaces = surfaces.GetNumFVarSurfaces();
bool hasNonLinearSurfaces =
(surfaces.HasVertexSurface() && !_linearScheme) ||
(numFVarSurfaces && !_linearFVarInterp);
bool hasLinearSurfaces =
surfaces.HasVaryingSurface() ||
(surfaces.HasVertexSurface() && _linearScheme) ||
(numFVarSurfaces && _linearFVarInterp);
if (hasNonLinearSurfaces || _testNeighborhoodForLimit) {
if (!populateNonLinearSurfaces(faceIndex, &surfaces)) {
return false;
}
}
if (hasLinearSurfaces) {
if (!populateLinearSurfaces(faceIndex, &surfaces)) {
return false;
}
}
return true;
}
|
O1
|
cpp
|
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces(int, OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const:
cmpl $0x0, (%rdx)
je 0x9dd79
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movq %rdx, %rdi
callq 0x39ec0
movq (%r14), %rax
movq %r14, %rdi
movl %ebp, %esi
callq *0x18(%rax)
addl $0xffff0000, %eax # imm = 0xFFFF0000
cmpl $0xffff0003, %eax # imm = 0xFFFF0003
jb 0x9dd6c
movq (%r14), %rax
movq %r14, %rdi
movl %ebp, %esi
callq *0x10(%rax)
testb %al, %al
je 0x9dd7c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
retq
movl 0x4(%rbx), %ecx
movq 0x8(%rbx), %rdx
testq %rdx, %rdx
je 0x9dd91
movb $0x1, %al
testb $0x1, 0x28(%r14)
je 0x9dda1
testl %ecx, %ecx
je 0x9dd9f
testb $0x2, 0x28(%r14)
sete %al
jmp 0x9dda1
xorl %eax, %eax
movb $0x1, %r15b
cmpq $0x0, 0x10(%rbx)
jne 0x9ddcb
testq %rdx, %rdx
je 0x9ddb7
testb $0x1, 0x28(%r14)
jne 0x9ddcb
testl %ecx, %ecx
je 0x9ddc8
movb 0x28(%r14), %r15b
andb $0x2, %r15b
shrb %r15b
jmp 0x9ddcb
xorl %r15d, %r15d
testb %al, %al
jne 0x9dddf
testb $0x4, 0x28(%r14)
jne 0x9dddf
movb $0x1, %al
testb %r15b, %r15b
je 0x9dd6e
jmp 0x9ddf5
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x3bec0
testb %r15b, %al
je 0x9dd6e
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x38040
movb $0x1, %al
jmp 0x9dd6e
nop
|
_ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory19populateAllSurfacesEiPNS2_10SurfaceSetE:
cmp dword ptr [rdx], 0
jz short loc_9DD79
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rdx
mov ebp, esi
mov r14, rdi
mov rdi, rdx; this
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet18InitializeSurfacesEv; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::InitializeSurfaces(void)
mov rax, [r14]
mov rdi, r14
mov esi, ebp
call qword ptr [rax+18h]
add eax, 0FFFF0000h
cmp eax, 0FFFF0003h
jb short loc_9DD6C
mov rax, [r14]
mov rdi, r14
mov esi, ebp
call qword ptr [rax+10h]
test al, al
jz short loc_9DD7C
loc_9DD6C:
xor eax, eax
loc_9DD6E:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_9DD79:
xor eax, eax
retn
loc_9DD7C:
mov ecx, [rbx+4]
mov rdx, [rbx+8]
test rdx, rdx
jz short loc_9DD91
mov al, 1
test byte ptr [r14+28h], 1
jz short loc_9DDA1
loc_9DD91:
test ecx, ecx
jz short loc_9DD9F
test byte ptr [r14+28h], 2
setz al
jmp short loc_9DDA1
loc_9DD9F:
xor eax, eax
loc_9DDA1:
mov r15b, 1
cmp qword ptr [rbx+10h], 0
jnz short loc_9DDCB
test rdx, rdx
jz short loc_9DDB7
test byte ptr [r14+28h], 1
jnz short loc_9DDCB
loc_9DDB7:
test ecx, ecx
jz short loc_9DDC8
mov r15b, [r14+28h]
and r15b, 2
shr r15b, 1
jmp short loc_9DDCB
loc_9DDC8:
xor r15d, r15d
loc_9DDCB:
test al, al
jnz short loc_9DDDF
test byte ptr [r14+28h], 4
jnz short loc_9DDDF
mov al, 1
test r15b, r15b
jz short loc_9DD6E
jmp short loc_9DDF5
loc_9DDDF:
mov rdi, r14; this
mov esi, ebp; int
mov rdx, rbx; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory25populateNonLinearSurfacesEiPNS2_10SurfaceSetE; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateNonLinearSurfaces(int,OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *)
test al, r15b
jz loc_9DD6E
loc_9DDF5:
mov rdi, r14; this
mov esi, ebp; int
mov rdx, rbx; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory22populateLinearSurfacesEiPNS2_10SurfaceSetE; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(int,OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *)
mov al, 1
jmp loc_9DD6E
|
char OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces(
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory *this,
unsigned int a2,
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *a3)
{
char result; // al
int v5; // ecx
long long v6; // rdx
bool v7; // al
char v8; // r15
if ( !*(_DWORD *)a3 )
return 0;
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::InitializeSurfaces(a3);
if ( (*(unsigned int ( **)(OpenSubdiv::v3_6_0::Bfr::SurfaceFactory *, _QWORD))(*(_QWORD *)this + 24LL))(
this,
a2)
- 0x10000 < 0xFFFF0003
|| (*(unsigned __int8 ( **)(OpenSubdiv::v3_6_0::Bfr::SurfaceFactory *, _QWORD))(*(_QWORD *)this + 16LL))(
this,
a2) )
{
return 0;
}
v5 = *((_DWORD *)a3 + 1);
v6 = *((_QWORD *)a3 + 1);
if ( !v6 || (v7 = 1, (*((_BYTE *)this + 40) & 1) != 0) )
{
if ( v5 )
v7 = (*((_BYTE *)this + 40) & 2) == 0;
else
v7 = 0;
}
v8 = 1;
if ( !*((_QWORD *)a3 + 2) && (!v6 || (*((_BYTE *)this + 40) & 1) == 0) )
{
if ( v5 )
v8 = (unsigned __int8)(*((_BYTE *)this + 40) & 2) >> 1;
else
v8 = 0;
}
if ( v7 || (*((_BYTE *)this + 40) & 4) != 0 )
{
result = OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateNonLinearSurfaces(this, a2, a3);
if ( ((unsigned __int8)v8 & (unsigned __int8)result) != 0 )
{
LABEL_23:
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(this, a2, a3);
return 1;
}
}
else
{
result = 1;
if ( v8 )
goto LABEL_23;
}
return result;
}
|
populateAllSurfaces:
CMP dword ptr [RDX],0x0
JZ 0x0019dd79
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV EBP,ESI
MOV R14,RDI
MOV RDI,RDX
CALL 0x00139ec0
MOV RAX,qword ptr [R14]
MOV RDI,R14
MOV ESI,EBP
CALL qword ptr [RAX + 0x18]
ADD EAX,0xffff0000
CMP EAX,0xffff0003
JC 0x0019dd6c
MOV RAX,qword ptr [R14]
MOV RDI,R14
MOV ESI,EBP
CALL qword ptr [RAX + 0x10]
TEST AL,AL
JZ 0x0019dd7c
LAB_0019dd6c:
XOR EAX,EAX
LAB_0019dd6e:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0019dd79:
XOR EAX,EAX
RET
LAB_0019dd7c:
MOV ECX,dword ptr [RBX + 0x4]
MOV RDX,qword ptr [RBX + 0x8]
TEST RDX,RDX
JZ 0x0019dd91
MOV AL,0x1
TEST byte ptr [R14 + 0x28],0x1
JZ 0x0019dda1
LAB_0019dd91:
TEST ECX,ECX
JZ 0x0019dd9f
TEST byte ptr [R14 + 0x28],0x2
SETZ AL
JMP 0x0019dda1
LAB_0019dd9f:
XOR EAX,EAX
LAB_0019dda1:
MOV R15B,0x1
CMP qword ptr [RBX + 0x10],0x0
JNZ 0x0019ddcb
TEST RDX,RDX
JZ 0x0019ddb7
TEST byte ptr [R14 + 0x28],0x1
JNZ 0x0019ddcb
LAB_0019ddb7:
TEST ECX,ECX
JZ 0x0019ddc8
MOV R15B,byte ptr [R14 + 0x28]
AND R15B,0x2
SHR R15B,0x1
JMP 0x0019ddcb
LAB_0019ddc8:
XOR R15D,R15D
LAB_0019ddcb:
TEST AL,AL
JNZ 0x0019dddf
TEST byte ptr [R14 + 0x28],0x4
JNZ 0x0019dddf
MOV AL,0x1
TEST R15B,R15B
JZ 0x0019dd6e
JMP 0x0019ddf5
LAB_0019dddf:
MOV RDI,R14
MOV ESI,EBP
MOV RDX,RBX
CALL 0x0013bec0
TEST AL,R15B
JZ 0x0019dd6e
LAB_0019ddf5:
MOV RDI,R14
MOV ESI,EBP
MOV RDX,RBX
CALL 0x00138040
MOV AL,0x1
JMP 0x0019dd6e
|
/* OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces(int,
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const */
byte __thiscall
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces
(SurfaceFactory *this,int param_1,SurfaceSet *param_2)
{
char extraout_AL;
byte bVar1;
int iVar2;
byte bVar3;
bool bVar4;
if (*(int *)param_2 != 0) {
SurfaceSet::InitializeSurfaces(param_2);
iVar2 = (**(code **)(*(long *)this + 0x18))(this,param_1);
if ((iVar2 - 0x10000U < 0xffff0003) ||
((**(code **)(*(long *)this + 0x10))(this,param_1), extraout_AL != '\0')) {
bVar1 = 0;
}
else {
if ((*(long *)(param_2 + 8) == 0) || (bVar4 = true, ((byte)this[0x28] & 1) != 0)) {
if (*(int *)(param_2 + 4) == 0) {
bVar4 = false;
}
else {
bVar4 = ((byte)this[0x28] & 2) == 0;
}
}
bVar3 = 1;
if ((*(long *)(param_2 + 0x10) == 0) &&
((*(long *)(param_2 + 8) == 0 || (((byte)this[0x28] & 1) == 0)))) {
if (*(int *)(param_2 + 4) == 0) {
bVar3 = 0;
}
else {
bVar3 = ((byte)this[0x28] & 2) >> 1;
}
}
if ((bVar4) || (((byte)this[0x28] & 4) != 0)) {
bVar1 = populateNonLinearSurfaces(this,param_1,param_2);
bVar3 = bVar1 & bVar3;
}
else {
bVar1 = 1;
}
if (bVar3 != 0) {
populateLinearSurfaces(this,param_1,param_2);
bVar1 = 1;
}
}
return bVar1;
}
return 0;
}
|
|
18,157
|
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces(int, OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/surfaceFactory.cpp
|
bool
SurfaceFactory::populateAllSurfaces(Index faceIndex,
SurfaceSet * surfaceSetPtr) const {
SurfaceSet & surfaces = *surfaceSetPtr;
// Abort if no Surfaces are specified to populate:
if (surfaces.GetNumSurfaces() == 0) {
return false;
}
//
// Be sure to re-initialize all Surfaces up-front, rather than
// deferring it to the assignment of each. A failure of any one
// surface may leave others unvisited -- leaving it unchanged
// from previous use.
//
surfaces.InitializeSurfaces();
// Quickly reject faces with no limit (typically holes) -- some cases
// require full topological inspection and will be rejected later:
if (!faceHasLimitSimple(faceIndex, getFaceSize(faceIndex))) {
return false;
}
// Determine if we have any non-linear cases to deal with -- which
// require gathering and inspection of the full neighborhood around
// the given face:
int numFVarSurfaces = surfaces.GetNumFVarSurfaces();
bool hasNonLinearSurfaces =
(surfaces.HasVertexSurface() && !_linearScheme) ||
(numFVarSurfaces && !_linearFVarInterp);
bool hasLinearSurfaces =
surfaces.HasVaryingSurface() ||
(surfaces.HasVertexSurface() && _linearScheme) ||
(numFVarSurfaces && _linearFVarInterp);
if (hasNonLinearSurfaces || _testNeighborhoodForLimit) {
if (!populateNonLinearSurfaces(faceIndex, &surfaces)) {
return false;
}
}
if (hasLinearSurfaces) {
if (!populateLinearSurfaces(faceIndex, &surfaces)) {
return false;
}
}
return true;
}
|
O2
|
cpp
|
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces(int, OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const:
cmpl $0x0, (%rdx)
je 0xa99cb
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movq %rdx, %rdi
callq 0x52220
movq (%r14), %rax
movq %r14, %rdi
movl %ebp, %esi
callq *0x18(%rax)
addl $0xffff0000, %eax # imm = 0xFFFF0000
cmpl $0xffff0003, %eax # imm = 0xFFFF0003
jb 0xa99be
movq (%r14), %rax
movq %r14, %rdi
movl %ebp, %esi
callq *0x10(%rax)
testb %al, %al
je 0xa99ce
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
retq
movl 0x4(%rbx), %ecx
movq 0x8(%rbx), %rsi
testq %rsi, %rsi
sete %dl
movb 0x28(%r14), %al
orb %al, %dl
testb $0x1, %dl
je 0xa9a24
testl %ecx, %ecx
setne %dil
testb $0x2, %al
sete %dl
andb %dil, %dl
movb $0x1, %r15b
cmpq $0x0, 0x10(%rbx)
jne 0xa9a43
testq %rsi, %rsi
sete %sil
testb $0x1, %al
sete %dil
orb %sil, %dil
cmpb $0x1, %dil
jne 0xa9a43
testl %ecx, %ecx
je 0xa9a40
movl %eax, %r15d
andb $0x2, %r15b
shrb %r15b
jmp 0xa9a43
movb $0x1, %r15b
cmpq $0x0, 0x10(%rbx)
jne 0xa9a4f
testl %ecx, %ecx
je 0xa9a3b
andb $0x2, %al
shrb %al
movl %eax, %r15d
jmp 0xa9a4f
xorl %r15d, %r15d
jmp 0xa9a4f
xorl %r15d, %r15d
testb %dl, %dl
jne 0xa9a4f
testb $0x4, %al
jne 0xa9a4f
movb $0x1, %al
jmp 0xa9a64
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x55500
testb %al, %al
je 0xa99c0
testb %r15b, %r15b
je 0xa99c0
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x4f040
movb $0x1, %al
jmp 0xa99c0
nop
|
_ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory19populateAllSurfacesEiPNS2_10SurfaceSetE:
cmp dword ptr [rdx], 0
jz short loc_A99CB
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rdx
mov ebp, esi
mov r14, rdi
mov rdi, rdx; this
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet18InitializeSurfacesEv; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::InitializeSurfaces(void)
mov rax, [r14]
mov rdi, r14
mov esi, ebp
call qword ptr [rax+18h]
add eax, 0FFFF0000h
cmp eax, 0FFFF0003h
jb short loc_A99BE
mov rax, [r14]
mov rdi, r14
mov esi, ebp
call qword ptr [rax+10h]
test al, al
jz short loc_A99CE
loc_A99BE:
xor eax, eax
loc_A99C0:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_A99CB:
xor eax, eax
retn
loc_A99CE:
mov ecx, [rbx+4]
mov rsi, [rbx+8]
test rsi, rsi
setz dl
mov al, [r14+28h]
or dl, al
test dl, 1
jz short loc_A9A24
test ecx, ecx
setnz dil
test al, 2
setz dl
and dl, dil
mov r15b, 1
cmp qword ptr [rbx+10h], 0
jnz short loc_A9A43
test rsi, rsi
setz sil
test al, 1
setz dil
or dil, sil
cmp dil, 1
jnz short loc_A9A43
test ecx, ecx
jz short loc_A9A40
mov r15d, eax
and r15b, 2
shr r15b, 1
jmp short loc_A9A43
loc_A9A24:
mov r15b, 1
cmp qword ptr [rbx+10h], 0
jnz short loc_A9A4F
test ecx, ecx
jz short loc_A9A3B
and al, 2
shr al, 1
mov r15d, eax
jmp short loc_A9A4F
loc_A9A3B:
xor r15d, r15d
jmp short loc_A9A4F
loc_A9A40:
xor r15d, r15d
loc_A9A43:
test dl, dl
jnz short loc_A9A4F
test al, 4
jnz short loc_A9A4F
mov al, 1
jmp short loc_A9A64
loc_A9A4F:
mov rdi, r14; this
mov esi, ebp; int
mov rdx, rbx; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory25populateNonLinearSurfacesEiPNS2_10SurfaceSetE; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateNonLinearSurfaces(int,OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *)
test al, al
jz loc_A99C0
loc_A9A64:
test r15b, r15b
jz loc_A99C0
mov rdi, r14; this
mov esi, ebp; int
mov rdx, rbx; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory22populateLinearSurfacesEiPNS2_10SurfaceSetE; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(int,OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *)
mov al, 1
jmp loc_A99C0
|
char OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces(
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory *this,
unsigned int a2,
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *a3)
{
char result; // al
int v6; // ecx
long long v7; // rsi
char v8; // al
char v9; // r15
if ( !*(_DWORD *)a3 )
return 0;
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::InitializeSurfaces(a3);
if ( (*(unsigned int ( **)(OpenSubdiv::v3_6_0::Bfr::SurfaceFactory *, _QWORD))(*(_QWORD *)this + 24LL))(
this,
a2)
- 0x10000 < 0xFFFF0003
|| (*(unsigned __int8 ( **)(OpenSubdiv::v3_6_0::Bfr::SurfaceFactory *, _QWORD))(*(_QWORD *)this + 16LL))(
this,
a2) )
{
return 0;
}
v6 = *((_DWORD *)a3 + 1);
v7 = *((_QWORD *)a3 + 1);
v8 = *((_BYTE *)this + 40);
if ( !(v8 & 1 | (v7 == 0)) )
{
v9 = 1;
if ( !*((_QWORD *)a3 + 2) )
{
if ( v6 )
v9 = (unsigned __int8)(v8 & 2) >> 1;
else
v9 = 0;
}
LABEL_20:
result = OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateNonLinearSurfaces(this, a2, a3);
if ( !result )
return result;
goto LABEL_21;
}
v9 = 1;
if ( !*((_QWORD *)a3 + 2) && (v7 == 0 || (v8 & 1) == 0) )
{
if ( v6 )
v9 = (unsigned __int8)(v8 & 2) >> 1;
else
v9 = 0;
}
if ( v6 != 0 && (v8 & 2) == 0 || (v8 & 4) != 0 )
goto LABEL_20;
result = 1;
LABEL_21:
if ( v9 )
{
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(this, a2, a3);
return 1;
}
return result;
}
|
populateAllSurfaces:
CMP dword ptr [RDX],0x0
JZ 0x001a99cb
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV EBP,ESI
MOV R14,RDI
MOV RDI,RDX
CALL 0x00152220
MOV RAX,qword ptr [R14]
MOV RDI,R14
MOV ESI,EBP
CALL qword ptr [RAX + 0x18]
ADD EAX,0xffff0000
CMP EAX,0xffff0003
JC 0x001a99be
MOV RAX,qword ptr [R14]
MOV RDI,R14
MOV ESI,EBP
CALL qword ptr [RAX + 0x10]
TEST AL,AL
JZ 0x001a99ce
LAB_001a99be:
XOR EAX,EAX
LAB_001a99c0:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001a99cb:
XOR EAX,EAX
RET
LAB_001a99ce:
MOV ECX,dword ptr [RBX + 0x4]
MOV RSI,qword ptr [RBX + 0x8]
TEST RSI,RSI
SETZ DL
MOV AL,byte ptr [R14 + 0x28]
OR DL,AL
TEST DL,0x1
JZ 0x001a9a24
TEST ECX,ECX
SETNZ DIL
TEST AL,0x2
SETZ DL
AND DL,DIL
MOV R15B,0x1
CMP qword ptr [RBX + 0x10],0x0
JNZ 0x001a9a43
TEST RSI,RSI
SETZ SIL
TEST AL,0x1
SETZ DIL
OR DIL,SIL
CMP DIL,0x1
JNZ 0x001a9a43
TEST ECX,ECX
JZ 0x001a9a40
MOV R15D,EAX
AND R15B,0x2
SHR R15B,0x1
JMP 0x001a9a43
LAB_001a9a24:
MOV R15B,0x1
CMP qword ptr [RBX + 0x10],0x0
JNZ 0x001a9a4f
TEST ECX,ECX
JZ 0x001a9a3b
AND AL,0x2
SHR AL,0x1
MOV R15D,EAX
JMP 0x001a9a4f
LAB_001a9a3b:
XOR R15D,R15D
JMP 0x001a9a4f
LAB_001a9a40:
XOR R15D,R15D
LAB_001a9a43:
TEST DL,DL
JNZ 0x001a9a4f
TEST AL,0x4
JNZ 0x001a9a4f
MOV AL,0x1
JMP 0x001a9a64
LAB_001a9a4f:
MOV RDI,R14
MOV ESI,EBP
MOV RDX,RBX
CALL 0x00155500
TEST AL,AL
JZ 0x001a99c0
LAB_001a9a64:
TEST R15B,R15B
JZ 0x001a99c0
MOV RDI,R14
MOV ESI,EBP
MOV RDX,RBX
CALL 0x0014f040
MOV AL,0x1
JMP 0x001a99c0
|
/* OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces(int,
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const */
char __thiscall
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces
(SurfaceFactory *this,int param_1,SurfaceSet *param_2)
{
SurfaceFactory SVar1;
char cVar2;
int iVar3;
byte bVar4;
if (*(int *)param_2 == 0) {
return '\0';
}
SurfaceSet::InitializeSurfaces(param_2);
iVar3 = (**(code **)(*(long *)this + 0x18))(this,param_1);
if ((iVar3 - 0x10000U < 0xffff0003) ||
(cVar2 = (**(code **)(*(long *)this + 0x10))(this,param_1), cVar2 != '\0')) {
return '\0';
}
iVar3 = *(int *)(param_2 + 4);
SVar1 = this[0x28];
if (*(long *)(param_2 + 8) == 0 || ((byte)SVar1 & 1) != 0) {
bVar4 = 1;
if ((*(long *)(param_2 + 0x10) == 0) && (((byte)SVar1 & 1) == 0 || *(long *)(param_2 + 8) == 0))
{
if (iVar3 == 0) {
bVar4 = 0;
}
else {
bVar4 = ((byte)SVar1 & 2) >> 1;
}
}
if ((((byte)SVar1 & 2) != 0 || iVar3 == 0) && (((byte)SVar1 & 4) == 0)) {
cVar2 = '\x01';
goto LAB_001a9a64;
}
}
else {
bVar4 = 1;
if (*(long *)(param_2 + 0x10) == 0) {
if (iVar3 == 0) {
bVar4 = 0;
}
else {
bVar4 = ((byte)SVar1 & 2) >> 1;
}
}
}
cVar2 = populateNonLinearSurfaces(this,param_1,param_2);
if (cVar2 == '\0') {
return '\0';
}
LAB_001a9a64:
if (bVar4 == 0) {
return cVar2;
}
populateLinearSurfaces(this,param_1,param_2);
return '\x01';
}
|
|
18,158
|
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces(int, OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/surfaceFactory.cpp
|
bool
SurfaceFactory::populateAllSurfaces(Index faceIndex,
SurfaceSet * surfaceSetPtr) const {
SurfaceSet & surfaces = *surfaceSetPtr;
// Abort if no Surfaces are specified to populate:
if (surfaces.GetNumSurfaces() == 0) {
return false;
}
//
// Be sure to re-initialize all Surfaces up-front, rather than
// deferring it to the assignment of each. A failure of any one
// surface may leave others unvisited -- leaving it unchanged
// from previous use.
//
surfaces.InitializeSurfaces();
// Quickly reject faces with no limit (typically holes) -- some cases
// require full topological inspection and will be rejected later:
if (!faceHasLimitSimple(faceIndex, getFaceSize(faceIndex))) {
return false;
}
// Determine if we have any non-linear cases to deal with -- which
// require gathering and inspection of the full neighborhood around
// the given face:
int numFVarSurfaces = surfaces.GetNumFVarSurfaces();
bool hasNonLinearSurfaces =
(surfaces.HasVertexSurface() && !_linearScheme) ||
(numFVarSurfaces && !_linearFVarInterp);
bool hasLinearSurfaces =
surfaces.HasVaryingSurface() ||
(surfaces.HasVertexSurface() && _linearScheme) ||
(numFVarSurfaces && _linearFVarInterp);
if (hasNonLinearSurfaces || _testNeighborhoodForLimit) {
if (!populateNonLinearSurfaces(faceIndex, &surfaces)) {
return false;
}
}
if (hasLinearSurfaces) {
if (!populateLinearSurfaces(faceIndex, &surfaces)) {
return false;
}
}
return true;
}
|
O3
|
cpp
|
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces(int, OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x0, (%rdx)
je 0xa0862
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movq %rdx, %rdi
callq 0x39ea0
movq (%r14), %rax
movq %r14, %rdi
movl %ebp, %esi
callq *0x18(%rax)
addl $0xffff0000, %eax # imm = 0xFFFF0000
cmpl $0xffff0003, %eax # imm = 0xFFFF0003
jb 0xa0862
movq (%r14), %rax
movq %r14, %rdi
movl %ebp, %esi
callq *0x10(%rax)
testb %al, %al
je 0xa086f
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl 0x4(%rbx), %edx
cmpq $0x0, 0x8(%rbx)
movb 0x28(%r14), %al
je 0xa089c
testb $0x1, %al
jne 0xa08c4
movb $0x1, %r15b
cmpq $0x0, 0x10(%rbx)
jne 0xa08df
testl %edx, %edx
je 0xa0916
andb $0x2, %al
shrb %al
movl %eax, %r15d
jmp 0xa08df
testl %edx, %edx
setne %sil
testb $0x2, %al
sete %cl
andb %sil, %cl
movb $0x1, %r15b
cmpq $0x0, 0x10(%rbx)
jne 0xa08d3
testl %edx, %edx
je 0xa0911
movl %eax, %r15d
andb $0x2, %r15b
shrb %r15b
jmp 0xa08d3
testl %edx, %edx
setne %dl
testb $0x2, %al
sete %cl
andb %dl, %cl
movb $0x1, %r15b
testb %cl, %cl
jne 0xa08df
testb $0x4, %al
jne 0xa08df
movb $0x1, %al
jmp 0xa08f4
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x3be70
testb %al, %al
je 0xa0864
testb %r15b, %r15b
je 0xa0864
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x38040
movb $0x1, %al
jmp 0xa0864
xorl %r15d, %r15d
jmp 0xa08d3
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3be70
nop
|
_ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory19populateAllSurfacesEiPNS2_10SurfaceSetE:
push rbp
push r15
push r14
push rbx
push rax
cmp dword ptr [rdx], 0
jz short loc_A0862
mov rbx, rdx
mov ebp, esi
mov r14, rdi
mov rdi, rdx; this
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory10SurfaceSet18InitializeSurfacesEv; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::InitializeSurfaces(void)
mov rax, [r14]
mov rdi, r14
mov esi, ebp
call qword ptr [rax+18h]
add eax, 0FFFF0000h
cmp eax, 0FFFF0003h
jb short loc_A0862
mov rax, [r14]
mov rdi, r14
mov esi, ebp
call qword ptr [rax+10h]
test al, al
jz short loc_A086F
loc_A0862:
xor eax, eax
loc_A0864:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_A086F:
mov edx, [rbx+4]
cmp qword ptr [rbx+8], 0
mov al, [r14+28h]
jz short loc_A089C
test al, 1
jnz short loc_A08C4
mov r15b, 1
cmp qword ptr [rbx+10h], 0
jnz short loc_A08DF
test edx, edx
jz loc_A0916
and al, 2
shr al, 1
mov r15d, eax
jmp short loc_A08DF
loc_A089C:
test edx, edx
setnz sil
test al, 2
setz cl
and cl, sil
mov r15b, 1
cmp qword ptr [rbx+10h], 0
jnz short loc_A08D3
test edx, edx
jz short loc_A0911
mov r15d, eax
and r15b, 2
shr r15b, 1
jmp short loc_A08D3
loc_A08C4:
test edx, edx
setnz dl
test al, 2
setz cl
and cl, dl
mov r15b, 1
loc_A08D3:
test cl, cl
jnz short loc_A08DF
test al, 4
jnz short loc_A08DF
mov al, 1
jmp short loc_A08F4
loc_A08DF:
mov rdi, r14; this
mov esi, ebp; int
mov rdx, rbx; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory25populateNonLinearSurfacesEiPNS2_10SurfaceSetE; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateNonLinearSurfaces(int,OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *)
test al, al
jz loc_A0864
loc_A08F4:
test r15b, r15b
jz loc_A0864
mov rdi, r14; this
mov esi, ebp; int
mov rdx, rbx; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *
call __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory22populateLinearSurfacesEiPNS2_10SurfaceSetE; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(int,OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *)
mov al, 1
jmp loc_A0864
loc_A0911:
xor r15d, r15d
jmp short loc_A08D3
loc_A0916:
mov rdi, r14; this
mov esi, ebp; int
mov rdx, rbx; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp __ZNK10OpenSubdiv6v3_6_03Bfr14SurfaceFactory25populateNonLinearSurfacesEiPNS2_10SurfaceSetE; OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateNonLinearSurfaces(int,OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *)
|
char OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces(
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory *this,
unsigned int a2,
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet *a3)
{
char result; // al
int v5; // edx
char v6; // al
char v7; // r15
bool v8; // cl
if ( !*(_DWORD *)a3 )
return 0;
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet::InitializeSurfaces(a3);
if ( (*(unsigned int ( **)(OpenSubdiv::v3_6_0::Bfr::SurfaceFactory *, _QWORD))(*(_QWORD *)this + 24LL))(
this,
a2)
- 0x10000 < 0xFFFF0003
|| (*(unsigned __int8 ( **)(OpenSubdiv::v3_6_0::Bfr::SurfaceFactory *, _QWORD))(*(_QWORD *)this + 16LL))(
this,
a2) )
{
return 0;
}
v5 = *((_DWORD *)a3 + 1);
v6 = *((_BYTE *)this + 40);
if ( *((_QWORD *)a3 + 1) )
{
if ( (v6 & 1) == 0 )
{
v7 = 1;
if ( !*((_QWORD *)a3 + 2) )
{
if ( !v5 )
return OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateNonLinearSurfaces(this, a2, a3);
v7 = (unsigned __int8)(v6 & 2) >> 1;
}
LABEL_18:
result = OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateNonLinearSurfaces(this, a2, a3);
if ( !result )
return result;
goto LABEL_19;
}
v8 = v5 != 0 && (v6 & 2) == 0;
v7 = 1;
}
else
{
v8 = v5 != 0 && (v6 & 2) == 0;
v7 = 1;
if ( !*((_QWORD *)a3 + 2) )
{
if ( v5 )
v7 = (unsigned __int8)(v6 & 2) >> 1;
else
v7 = 0;
}
}
if ( v8 || (v6 & 4) != 0 )
goto LABEL_18;
result = 1;
LABEL_19:
if ( v7 )
{
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateLinearSurfaces(this, a2, a3);
return 1;
}
return result;
}
|
populateAllSurfaces:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
CMP dword ptr [RDX],0x0
JZ 0x001a0862
MOV RBX,RDX
MOV EBP,ESI
MOV R14,RDI
MOV RDI,RDX
CALL 0x00139ea0
MOV RAX,qword ptr [R14]
MOV RDI,R14
MOV ESI,EBP
CALL qword ptr [RAX + 0x18]
ADD EAX,0xffff0000
CMP EAX,0xffff0003
JC 0x001a0862
MOV RAX,qword ptr [R14]
MOV RDI,R14
MOV ESI,EBP
CALL qword ptr [RAX + 0x10]
TEST AL,AL
JZ 0x001a086f
LAB_001a0862:
XOR EAX,EAX
LAB_001a0864:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001a086f:
MOV EDX,dword ptr [RBX + 0x4]
CMP qword ptr [RBX + 0x8],0x0
MOV AL,byte ptr [R14 + 0x28]
JZ 0x001a089c
TEST AL,0x1
JNZ 0x001a08c4
MOV R15B,0x1
CMP qword ptr [RBX + 0x10],0x0
JNZ 0x001a08df
TEST EDX,EDX
JZ 0x001a0916
AND AL,0x2
SHR AL,0x1
MOV R15D,EAX
JMP 0x001a08df
LAB_001a089c:
TEST EDX,EDX
SETNZ SIL
TEST AL,0x2
SETZ CL
AND CL,SIL
MOV R15B,0x1
CMP qword ptr [RBX + 0x10],0x0
JNZ 0x001a08d3
TEST EDX,EDX
JZ 0x001a0911
MOV R15D,EAX
AND R15B,0x2
SHR R15B,0x1
JMP 0x001a08d3
LAB_001a08c4:
TEST EDX,EDX
SETNZ DL
TEST AL,0x2
SETZ CL
AND CL,DL
MOV R15B,0x1
LAB_001a08d3:
TEST CL,CL
JNZ 0x001a08df
TEST AL,0x4
JNZ 0x001a08df
MOV AL,0x1
JMP 0x001a08f4
LAB_001a08df:
MOV RDI,R14
MOV ESI,EBP
MOV RDX,RBX
CALL 0x0013be70
TEST AL,AL
JZ 0x001a0864
LAB_001a08f4:
TEST R15B,R15B
JZ 0x001a0864
MOV RDI,R14
MOV ESI,EBP
MOV RDX,RBX
CALL 0x00138040
MOV AL,0x1
JMP 0x001a0864
LAB_001a0911:
XOR R15D,R15D
JMP 0x001a08d3
LAB_001a0916:
MOV RDI,R14
MOV ESI,EBP
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0013be70
|
/* OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces(int,
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::SurfaceSet*) const */
char __thiscall
OpenSubdiv::v3_6_0::Bfr::SurfaceFactory::populateAllSurfaces
(SurfaceFactory *this,int param_1,SurfaceSet *param_2)
{
SurfaceFactory SVar1;
bool bVar2;
char cVar3;
byte bVar4;
int iVar5;
if (*(int *)param_2 == 0) {
return '\0';
}
SurfaceSet::InitializeSurfaces(param_2);
iVar5 = (**(code **)(*(long *)this + 0x18))(this,param_1);
if (iVar5 - 0x10000U < 0xffff0003) {
return '\0';
}
cVar3 = (**(code **)(*(long *)this + 0x10))(this,param_1);
if (cVar3 != '\0') {
return '\0';
}
iVar5 = *(int *)(param_2 + 4);
SVar1 = this[0x28];
if (*(long *)(param_2 + 8) == 0) {
bVar2 = ((byte)SVar1 & 2) == 0 && iVar5 != 0;
bVar4 = 1;
if (*(long *)(param_2 + 0x10) == 0) {
if (iVar5 == 0) {
bVar4 = 0;
}
else {
bVar4 = ((byte)SVar1 & 2) >> 1;
}
}
LAB_001a08d3:
if ((!bVar2) && (((byte)SVar1 & 4) == 0)) {
cVar3 = '\x01';
goto LAB_001a08f4;
}
}
else {
if (((byte)SVar1 & 1) != 0) {
bVar2 = ((byte)SVar1 & 2) == 0 && iVar5 != 0;
bVar4 = 1;
goto LAB_001a08d3;
}
bVar4 = 1;
if (*(long *)(param_2 + 0x10) == 0) {
if (iVar5 == 0) {
cVar3 = populateNonLinearSurfaces(this,param_1,param_2);
return cVar3;
}
bVar4 = ((byte)SVar1 & 2) >> 1;
}
}
cVar3 = populateNonLinearSurfaces(this,param_1,param_2);
if (cVar3 == '\0') {
return '\0';
}
LAB_001a08f4:
if (bVar4 != 0) {
populateLinearSurfaces(this,param_1,param_2);
return '\x01';
}
return cVar3;
}
|
|
18,159
|
nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t)
|
monkey531[P]llama/common/json.hpp
|
static type_error create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x677ac(%rip), %rsi # 0xb6299
leaq 0x677af(%rip), %rdx # 0xb62a3
leaq 0x28(%rsp), %rdi
callq 0x22878
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x312c2
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
movq 0x8(%r15), %rsi
addq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x19a90
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x191f0
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x191f0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0x191f0
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x4eb97
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x196d0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ebb2
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x196d0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4ebc9
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x196d0
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3152a
leaq 0x9a5c1(%rip), %rax # 0xe91a0
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4ebfd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x196d0
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4ec8b
movq 0x18(%rsp), %rsi
jmp 0x4ec83
movq %rax, %rbx
jmp 0x4ec74
movq %rax, %rbx
jmp 0x4ec8b
movq %rdx, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4ec4d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x196d0
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
leaq 0x88(%rsp), %r12
movq %r14, %rsi
movq %r15, %rcx
movl %ebx, %r8d
movq %r12, %r9
callq 0x1b977
movq (%r12), %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4ec8b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x196d0
movq %rbx, %rdi
callq 0x19c00
|
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r15, rdx
mov ebp, esi
mov rbx, rdi
lea r13, [rsp+0C8h+var_90]
mov [r13-10h], r13
lea rsi, aTypeError; "type_error"
lea rdx, aTypeError+0Ah; ""
lea rdi, [rsp+0C8h+var_A0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0C8h+var_80]; int
lea rsi, [rsp+0C8h+var_A0]; int
mov edx, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea r14, [rsp+0C8h+var_50]
mov [r14-10h], r14
xor eax, eax
mov [r14-8], rax
mov [r14], al
lea r12, [rsp+0C8h+var_B0]
mov [r12-10h], r12
mov [r12-8], rax
mov [r12], al
mov rsi, [r15+8]
add rsi, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rsi, qword ptr [rsp+0C8h+var_80]
mov rdx, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [r15]
mov rdx, [r15+8]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+0C8h+var_60]; void *
cmp rdi, r14
jz short loc_4EB97
mov rsi, [rsp+0C8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4EB97:
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_4EBB2
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4EBB2:
mov rdi, [rsp+0C8h+var_A0]; void *
cmp rdi, r13
jz short loc_4EBC9
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4EBC9:
mov rdx, [rsp+0C8h+var_C0]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*)
lea rax, _ZTVN8nlohmann16json_abi_v3_11_36detail10type_errorE; `vtable for'nlohmann::json_abi_v3_11_3::detail::type_error
add rax, 10h
mov [rbx], rax
mov rdi, [rsp+0C8h+var_C0]; void *
cmp rdi, r12
jz short loc_4EBFD
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4EBFD:
mov rax, rbx
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
cmp rdi, r12
jz short loc_4EC8B
mov rsi, [rsp+arg_10]
jmp short loc_4EC83
mov rbx, rax
jmp short loc_4EC74
mov rbx, rax
jmp short loc_4EC8B
mov rbx, rdx
mov r15, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_4EC4D
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4EC4D:
lea rdi, [rsp+arg_60]
lea rdx, [rsp+arg_40]
lea r12, [rsp+arg_80]
mov rsi, r14
mov rcx, r15
mov r8d, ebx
mov r9, r12
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5__cold_1
mov rbx, [r12]
loc_4EC74:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_4EC8B
mov rsi, [rsp+arg_30]
loc_4EC83:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4EC8B:
mov rdi, rbx
call __Unwind_Resume
|
nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
nlohmann::json_abi_v3_11_3::detail::exception *this,
int a2,
_QWORD *a3)
{
char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF
_QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF
void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF
int v9[2]; // [rsp+48h] [rbp-80h] BYREF
long long v10; // [rsp+50h] [rbp-78h]
long long v11; // [rsp+58h] [rbp-70h] BYREF
void *v12; // [rsp+68h] [rbp-60h]
long long v13; // [rsp+70h] [rbp-58h]
_QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF
v7[0] = v8;
std::string::_M_construct<char const*>((long long)v7, "type_error", (long long)"");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2);
v12 = v14;
v13 = 0LL;
LOBYTE(v14[0]) = 0;
v5[0] = (char *)v6;
v5[1] = 0LL;
LOBYTE(v6[0]) = 0;
std::string::reserve(v5, v10 + a3[1]);
std::string::_M_append(v5, *(_QWORD *)v9, v10);
std::string::_M_append(v5, v12, v13);
std::string::_M_append(v5, *a3, a3[1]);
if ( v12 != v14 )
operator delete(v12, v14[0] + 1LL);
if ( *(long long **)v9 != &v11 )
operator delete(*(void **)v9, v11 + 1);
if ( v7[0] != v8 )
operator delete(v7[0], v8[0] + 1LL);
nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]);
*(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::type_error + 2;
if ( (_QWORD *)v5[0] != v6 )
operator delete(v5[0], v6[0] + 1LL);
return this;
}
|
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R15,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
LAB_0014eae6:
LEA RSI,[0x1b6299]
LEA RDX,[0x1b62a3]
LEA RDI,[RSP + 0x28]
CALL 0x00122878
LAB_0014eafe:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x001312c2
LEA R14,[RSP + 0x78]
MOV qword ptr [R14 + -0x10],R14
XOR EAX,EAX
MOV qword ptr [R14 + -0x8],RAX
MOV byte ptr [R14],AL
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
MOV qword ptr [R12 + -0x8],RAX
MOV byte ptr [R12],AL
MOV RSI,qword ptr [R15 + 0x8]
ADD RSI,qword ptr [RSP + 0x50]
LAB_0014eb3d:
LEA RDI,[RSP + 0x8]
CALL 0x00119a90
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
LEA RDI,[RSP + 0x8]
CALL 0x001191f0
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
LEA RDI,[RSP + 0x8]
CALL 0x001191f0
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RDI,[RSP + 0x8]
CALL 0x001191f0
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R14
JZ 0x0014eb97
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x001196d0
LAB_0014eb97:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0014ebb2
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x001196d0
LAB_0014ebb2:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x0014ebc9
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001196d0
LAB_0014ebc9:
MOV RDX,qword ptr [RSP + 0x8]
LAB_0014ebce:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0013152a
LAB_0014ebd8:
LEA RAX,[0x1e91a0]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x0014ebfd
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001196d0
LAB_0014ebfd:
MOV RAX,RBX
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
exception *
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(exception *param_1,int param_2,ulong *param_3)
{
char *local_c0;
int8 local_b8;
char local_b0;
int7 uStack_af;
long *local_a0 [2];
long local_90 [2];
long *local_80 [2];
long local_70 [2];
int1 *local_60;
int8 local_58;
int1 local_50;
int7 uStack_4f;
/* try { // try from 0014eae6 to 0014eafd has its CatchHandler @ 0014ec2b */
local_a0[0] = local_90;
std::__cxx11::string::_M_construct<char_const*>(local_a0,"type_error","");
/* try { // try from 0014eafe to 0014eb0e has its CatchHandler @ 0014ec26 */
nlohmann::json_abi_v3_11_3::detail::exception::name
((exception *)local_80,(string *)local_a0,param_2);
local_58 = 0;
local_50 = 0;
local_b8 = 0;
local_b0 = '\0';
/* try { // try from 0014eb3d to 0014eb7f has its CatchHandler @ 0014ec30 */
local_c0 = &local_b0;
local_60 = &local_50;
std::__cxx11::string::reserve((ulong)&local_c0);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60);
std::__cxx11::string::_M_append((char *)&local_c0,*param_3);
if (local_60 != &local_50) {
operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1);
}
if (local_80[0] != local_70) {
operator_delete(local_80[0],local_70[0] + 1);
}
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
/* try { // try from 0014ebce to 0014ebd7 has its CatchHandler @ 0014ec12 */
nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0);
*(int ***)param_1 = &PTR__exception_001e91b0;
if (local_c0 != &local_b0) {
operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1);
}
return param_1;
}
|
|
18,160
|
my_wc_mb_sjis
|
eloqsql/strings/ctype-sjis.c
|
static int
my_wc_mb_sjis(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int code;
if ((int) wc < 0x80) /* ASCII: [U+0000..U+007F] -> [00-7F] */
{
/*
This branch is for performance purposes on ASCII range,
to avoid using unicode_to_cp932[]: about 10% improvement.
*/
if (wc == 0x5c)
{
/*
Special case when converting from Unicode to SJIS:
U+005C -> [81][5F] FULL WIDTH REVERSE SOLIDUS
*/
code= MB2(0x815F);
goto mb;
}
if (s >= e)
return MY_CS_TOOSMALL;
s[0]= (uchar) wc; /* ASCII */
return 1;
}
if (wc > 0xFFFF ||
!(code= unicode_to_sjis[wc])) /* Bad Unicode code point */
return MY_CS_ILUNI;
if (code <= 0xFF)
{
/* JIS-X-0201 HALF WIDTH KATAKANA [U+FF61..U+FF9F] -> [A1..DF] */
if (s >= e)
return MY_CS_TOOSMALL;
s[0]= code;
return 1;
}
mb:
if (s + 2 > e)
return MY_CS_TOOSMALL2;
MY_PUT_MB2(s, code); /* JIS-X-0208 */
return 2;
}
|
O3
|
c
|
my_wc_mb_sjis:
pushq %rbp
movq %rsp, %rbp
cmpl $0x7f, %esi
jg 0xbb982
movl $0x815f, %edi # imm = 0x815F
cmpq $0x5c, %rsi
je 0xbb9b8
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0xbb9d2
movb %sil, (%rdx)
jmp 0xbb9b1
xorl %eax, %eax
cmpq $0xffff, %rsi # imm = 0xFFFF
ja 0xbb9d2
leaq 0x18f55c(%rip), %rdi # 0x24aef0
movzwl (%rdi,%rsi,2), %edi
testl %edi, %edi
je 0xbb9d2
cmpl $0xff, %edi
ja 0xbb9b8
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0xbb9d2
movb %dil, (%rdx)
movl $0x1, %eax
jmp 0xbb9d2
leaq 0x2(%rdx), %rsi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rsi
ja 0xbb9d2
rolw $0x8, %di
movw %di, (%rdx)
movl $0x2, %eax
popq %rbp
retq
|
my_wc_mb_sjis:
push rbp
mov rbp, rsp
cmp esi, 7Fh
jg short loc_BB982
mov edi, 815Fh
cmp rsi, 5Ch ; '\'
jz short loc_BB9B8
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_BB9D2
mov [rdx], sil
jmp short loc_BB9B1
loc_BB982:
xor eax, eax
cmp rsi, 0FFFFh
ja short loc_BB9D2
lea rdi, unicode_to_sjis
movzx edi, word ptr [rdi+rsi*2]
test edi, edi
jz short loc_BB9D2
cmp edi, 0FFh
ja short loc_BB9B8
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_BB9D2
mov [rdx], dil
loc_BB9B1:
mov eax, 1
jmp short loc_BB9D2
loc_BB9B8:
lea rsi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rsi, rcx
ja short loc_BB9D2
rol di, 8
mov [rdx], di
mov eax, 2
loc_BB9D2:
pop rbp
retn
|
long long my_wc_mb_sjis(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
unsigned int v4; // edi
long long result; // rax
if ( (int)a2 <= 127 )
{
LOWORD(v4) = -32417;
if ( a2 != 92 )
{
result = 4294967195LL;
if ( (unsigned long long)a3 >= a4 )
return result;
*a3 = a2;
return 1LL;
}
LABEL_11:
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
*(_WORD *)a3 = __ROL2__(v4, 8);
return 2LL;
}
return result;
}
result = 0LL;
if ( a2 <= 0xFFFF )
{
v4 = unicode_to_sjis[a2];
if ( unicode_to_sjis[a2] )
{
if ( v4 <= 0xFF )
{
result = 4294967195LL;
if ( (unsigned long long)a3 >= a4 )
return result;
*a3 = v4;
return 1LL;
}
goto LABEL_11;
}
}
return result;
}
|
my_wc_mb_sjis:
PUSH RBP
MOV RBP,RSP
CMP ESI,0x7f
JG 0x001bb982
MOV EDI,0x815f
CMP RSI,0x5c
JZ 0x001bb9b8
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x001bb9d2
MOV byte ptr [RDX],SIL
JMP 0x001bb9b1
LAB_001bb982:
XOR EAX,EAX
CMP RSI,0xffff
JA 0x001bb9d2
LEA RDI,[0x34aef0]
MOVZX EDI,word ptr [RDI + RSI*0x2]
TEST EDI,EDI
JZ 0x001bb9d2
CMP EDI,0xff
JA 0x001bb9b8
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x001bb9d2
MOV byte ptr [RDX],DIL
LAB_001bb9b1:
MOV EAX,0x1
JMP 0x001bb9d2
LAB_001bb9b8:
LEA RSI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RSI,RCX
JA 0x001bb9d2
ROL DI,0x8
MOV word ptr [RDX],DI
MOV EAX,0x2
LAB_001bb9d2:
POP RBP
RET
|
int8 my_wc_mb_sjis(int8 param_1,ulong param_2,ushort *param_3,ushort *param_4)
{
ushort uVar1;
if ((int)param_2 < 0x80) {
uVar1 = 0x815f;
if (param_2 == 0x5c) {
LAB_001bb9b8:
if (param_4 < param_3 + 1) {
return 0xffffff9a;
}
*param_3 = uVar1 << 8 | uVar1 >> 8;
return 2;
}
if (param_4 <= param_3) {
return 0xffffff9b;
}
*(char *)param_3 = (char)param_2;
}
else {
if (0xffff < param_2) {
return 0;
}
uVar1 = *(ushort *)(unicode_to_sjis + param_2 * 2);
if (uVar1 == 0) {
return 0;
}
if (0xff < uVar1) goto LAB_001bb9b8;
if (param_4 <= param_3) {
return 0xffffff9b;
}
*(char *)param_3 = (char)uVar1;
}
return 1;
}
|
|
18,161
|
emit_class_init_start
|
bluesky950520[P]quickjs/quickjs.c
|
static __exception int emit_class_init_start(JSParseState *s,
ClassFieldsDef *cf)
{
int label_add_brand;
cf->fields_init_fd = js_parse_function_class_fields_init(s);
if (!cf->fields_init_fd)
return -1;
s->cur_func = cf->fields_init_fd;
if (!cf->is_static) {
/* add the brand to the newly created instance */
/* XXX: would be better to add the code only if needed, maybe in a
later pass */
emit_op(s, OP_push_false); /* will be patched later */
cf->brand_push_pos = cf->fields_init_fd->last_opcode_pos;
label_add_brand = emit_goto(s, OP_if_false, -1);
emit_op(s, OP_scope_get_var);
emit_atom(s, JS_ATOM_this);
emit_u16(s, 0);
emit_op(s, OP_scope_get_var);
emit_atom(s, JS_ATOM_home_object);
emit_u16(s, 0);
emit_op(s, OP_add_brand);
emit_label(s, label_add_brand);
}
s->cur_func = s->cur_func->parent;
return 0;
}
|
O1
|
c
|
emit_class_init_start:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movq 0x90(%rdi), %rsi
movq (%rdi), %rdi
movq 0x18(%rbx), %r8
andl $0x0, (%rsp)
xorl %r12d, %r12d
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0x1194f
testq %rax, %rax
je 0x11cc8
andl $0x0, 0x88(%rax)
pushq $0x1
popq %rcx
movq %rcx, 0x48(%rax)
andl $0x0, 0x78(%rax)
movaps 0x8cb6b(%rip), %xmm0 # 0x9e810
movups %xmm0, 0x60(%rax)
movq %rcx, 0x70(%rax)
movl $0xffff8000, %ecx # imm = 0xFFFF8000
andl 0x84(%rax), %ecx
orl $0x600, %ecx # imm = 0x600
movw %cx, 0x84(%rax)
movq %rax, %r12
movq %r12, (%r15)
testq %r12, %r12
je 0x11e20
movq %r12, 0x90(%rbx)
cmpl $0x0, 0x14(%r15)
jne 0x11e0a
movl $0x138, %r14d # imm = 0x138
leaq (%r12,%r14), %rdi
movl 0x140(%r12), %eax
movl %eax, 0x168(%r12)
pushq $0x9
popq %rsi
callq 0x1b4d0
movq (%r15), %rax
movl 0x168(%rax), %eax
movl %eax, 0x10(%r15)
pushq $0x69
popq %rsi
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0x64d83
movl %eax, %ebp
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0xb7, %esi
callq 0x1b4d0
movq 0x90(%rbx), %rdi
addq %r14, %rdi
leaq 0x18(%rsp), %rsi
movl $0x8, (%rsi)
pushq $0x4
popq %r15
movq %r15, %rdx
callq 0x1b422
movq 0x90(%rbx), %rdi
addq %r14, %rdi
leaq 0x14(%rsp), %rsi
andw $0x0, (%rsi)
pushq $0x2
popq %r12
movq %r12, %rdx
callq 0x1b422
movq 0x90(%rbx), %rax
leaq (%rax,%r14), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0xb7, %esi
callq 0x1b4d0
movq 0x90(%rbx), %rdi
addq %r14, %rdi
leaq 0x1c(%rsp), %rsi
movl $0x74, (%rsi)
movq %r15, %rdx
callq 0x1b422
movq 0x90(%rbx), %rdi
addq %r14, %rdi
leaq 0x16(%rsp), %rsi
andw $0x0, (%rsi)
movq %r12, %rdx
callq 0x1b422
movq 0x90(%rbx), %rax
addq %rax, %r14
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
pushq $0x2d
popq %rsi
movq %r14, %rdi
callq 0x1b4d0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x64ef1
movq 0x90(%rbx), %rax
movq 0x8(%rax), %rax
movq %rax, 0x90(%rbx)
xorl %eax, %eax
jmp 0x11e23
pushq $-0x1
popq %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
emit_class_init_start:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 20h
mov r15, rsi
mov rbx, rdi
mov rsi, [rdi+90h]
mov rdi, [rdi]
mov r8, [rbx+18h]
and [rsp+48h+var_48], 0
xor r12d, r12d
xor edx, edx
xor ecx, ecx
xor r9d, r9d
call js_new_function_def
test rax, rax
jz short loc_11CC8
and dword ptr [rax+88h], 0
push 1
pop rcx
mov [rax+48h], rcx
and dword ptr [rax+78h], 0
movaps xmm0, cs:xmmword_9E810
movups xmmword ptr [rax+60h], xmm0
mov [rax+70h], rcx
mov ecx, 0FFFF8000h
and ecx, [rax+84h]
or ecx, 600h
mov [rax+84h], cx
mov r12, rax
loc_11CC8:
mov [r15], r12
test r12, r12
jz loc_11E20
mov [rbx+90h], r12
cmp dword ptr [r15+14h], 0
jnz loc_11E0A
mov r14d, 138h
lea rdi, [r12+r14]
mov eax, [r12+140h]
mov [r12+168h], eax
push 9
pop rsi
call dbuf_putc
mov rax, [r15]
mov eax, [rax+168h]
mov [r15+10h], eax
push 69h ; 'i'
pop rsi
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rdi, rbx
call emit_goto
mov ebp, eax
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 0B7h
call dbuf_putc
mov rdi, [rbx+90h]
add rdi, r14
lea rsi, [rsp+48h+var_30]
mov dword ptr [rsi], 8
push 4
pop r15
mov rdx, r15
call dbuf_put
mov rdi, [rbx+90h]
add rdi, r14
lea rsi, [rsp+48h+var_34]
and word ptr [rsi], 0
push 2
pop r12
mov rdx, r12
call dbuf_put
mov rax, [rbx+90h]
lea rdi, [rax+r14]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 0B7h
call dbuf_putc
mov rdi, [rbx+90h]
add rdi, r14
lea rsi, [rsp+48h+var_2C]
mov dword ptr [rsi], 74h ; 't'
mov rdx, r15
call dbuf_put
mov rdi, [rbx+90h]
add rdi, r14
lea rsi, [rsp+48h+var_32]
and word ptr [rsi], 0
mov rdx, r12
call dbuf_put
mov rax, [rbx+90h]
add r14, rax
mov ecx, [rax+140h]
mov [rax+168h], ecx
push 2Dh ; '-'
pop rsi
mov rdi, r14
call dbuf_putc
mov rdi, rbx
mov esi, ebp
call emit_label
loc_11E0A:
mov rax, [rbx+90h]
mov rax, [rax+8]
mov [rbx+90h], rax
xor eax, eax
jmp short loc_11E23
loc_11E20:
push 0FFFFFFFFFFFFFFFFh
pop rax
loc_11E23:
add rsp, 20h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long emit_class_init_start(long long *a1, _DWORD *a2)
{
_QWORD *v3; // r12
_QWORD *v4; // rax
unsigned int v5; // ebp
long long v6; // rax
long long v7; // rdi
long long v8; // rdi
long long v9; // rax
long long v10; // rdi
long long v11; // rdi
long long v12; // rax
__int16 v14; // [rsp+14h] [rbp-34h] BYREF
__int16 v15; // [rsp+16h] [rbp-32h] BYREF
int v16; // [rsp+18h] [rbp-30h] BYREF
int v17[11]; // [rsp+1Ch] [rbp-2Ch] BYREF
v3 = 0LL;
v4 = js_new_function_def(*a1, a1[18], 0, 0, a1[3], 0, 0);
if ( v4 )
{
*((_DWORD *)v4 + 34) = 0;
v4[9] = 1LL;
*((_DWORD *)v4 + 30) = 0;
*((_OWORD *)v4 + 6) = xmmword_9E810;
v4[14] = 1LL;
*((_WORD *)v4 + 66) = *((_WORD *)v4 + 66) & 0x8000 | 0x600;
v3 = v4;
}
*(_QWORD *)a2 = v3;
if ( !v3 )
return -1LL;
a1[18] = (long long)v3;
if ( !a2[5] )
{
*((_DWORD *)v3 + 90) = *((_DWORD *)v3 + 80);
dbuf_putc(v3 + 39, 9LL);
a2[4] = *(_DWORD *)(*(_QWORD *)a2 + 360LL);
v5 = emit_goto(a1, 105LL, -1LL);
v6 = a1[18];
*(_DWORD *)(v6 + 360) = *(_DWORD *)(v6 + 320);
dbuf_putc(v6 + 312, 183LL);
v7 = a1[18] + 312;
v16 = 8;
dbuf_put(v7, &v16, 4LL);
v8 = a1[18] + 312;
v14 = 0;
dbuf_put(v8, &v14, 2LL);
v9 = a1[18];
*(_DWORD *)(v9 + 360) = *(_DWORD *)(v9 + 320);
dbuf_putc(v9 + 312, 183LL);
v10 = a1[18] + 312;
v17[0] = 116;
dbuf_put(v10, v17, 4LL);
v11 = a1[18] + 312;
v15 = 0;
dbuf_put(v11, &v15, 2LL);
v12 = a1[18];
*(_DWORD *)(v12 + 360) = *(_DWORD *)(v12 + 320);
dbuf_putc(v12 + 312, 45LL);
emit_label(a1, v5);
}
a1[18] = *(_QWORD *)(a1[18] + 8);
return 0LL;
}
| |||
18,162
|
emit_class_init_start
|
bluesky950520[P]quickjs/quickjs.c
|
static __exception int emit_class_init_start(JSParseState *s,
ClassFieldsDef *cf)
{
int label_add_brand;
cf->fields_init_fd = js_parse_function_class_fields_init(s);
if (!cf->fields_init_fd)
return -1;
s->cur_func = cf->fields_init_fd;
if (!cf->is_static) {
/* add the brand to the newly created instance */
/* XXX: would be better to add the code only if needed, maybe in a
later pass */
emit_op(s, OP_push_false); /* will be patched later */
cf->brand_push_pos = cf->fields_init_fd->last_opcode_pos;
label_add_brand = emit_goto(s, OP_if_false, -1);
emit_op(s, OP_scope_get_var);
emit_atom(s, JS_ATOM_this);
emit_u16(s, 0);
emit_op(s, OP_scope_get_var);
emit_atom(s, JS_ATOM_home_object);
emit_u16(s, 0);
emit_op(s, OP_add_brand);
emit_label(s, label_add_brand);
}
s->cur_func = s->cur_func->parent;
return 0;
}
|
O2
|
c
|
emit_class_init_start:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x90(%rdi), %rsi
movq (%rdi), %rdi
movq 0x18(%rbx), %r8
andl $0x0, (%rsp)
xorl %ebp, %ebp
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0x4b7d3
testq %rax, %rax
je 0x5a0f3
andl $0x0, 0x88(%rax)
pushq $0x1
popq %rcx
movq %rcx, 0x48(%rax)
andl $0x0, 0x78(%rax)
movaps 0x2b748(%rip), %xmm0 # 0x85770
movups %xmm0, 0x60(%rax)
movq %rcx, 0x70(%rax)
movl $0xffff8000, %ecx # imm = 0xFFFF8000
andl 0x84(%rax), %ecx
orl $0x600, %ecx # imm = 0x600
movw %cx, 0x84(%rax)
movq %rax, (%r14)
movq %rax, 0x90(%rbx)
cmpl %ebp, 0x14(%r14)
jne 0x5a0e4
pushq $0x9
popq %rsi
movq %rbx, %rdi
callq 0x4fa1b
movq (%r14), %rax
movl 0x168(%rax), %eax
movl %eax, 0x10(%r14)
pushq $0x69
popq %rsi
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0x5605a
movl %eax, %ebp
movq %rbx, %rdi
movl $0xb7, %esi
callq 0x4fa1b
pushq $0x8
popq %rsi
movq %rbx, %rdi
callq 0x563de
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4fa3a
movq %rbx, %rdi
movl $0xb7, %esi
callq 0x4fa1b
pushq $0x74
popq %rsi
movq %rbx, %rdi
callq 0x563de
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4fa3a
pushq $0x2d
popq %rsi
movq %rbx, %rdi
callq 0x4fa1b
movq %rbx, %rdi
movl %ebp, %esi
callq 0x5617c
movq 0x90(%rbx), %rax
movq 0x8(%rax), %rax
movq %rax, 0x90(%rbx)
xorl %eax, %eax
jmp 0x5a0fa
andq $0x0, (%r14)
pushq $-0x1
popq %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
|
emit_class_init_start:
push rbp
push r14
push rbx
sub rsp, 10h
mov r14, rsi
mov rbx, rdi
mov rsi, [rdi+90h]
mov rdi, [rdi]
mov r8, [rbx+18h]
and [rsp+28h+var_28], 0
xor ebp, ebp
xor edx, edx
xor ecx, ecx
xor r9d, r9d
call js_new_function_def
test rax, rax
jz loc_5A0F3
and dword ptr [rax+88h], 0
push 1
pop rcx
mov [rax+48h], rcx
and dword ptr [rax+78h], 0
movaps xmm0, cs:xmmword_85770
movups xmmword ptr [rax+60h], xmm0
mov [rax+70h], rcx
mov ecx, 0FFFF8000h
and ecx, [rax+84h]
or ecx, 600h
mov [rax+84h], cx
mov [r14], rax
mov [rbx+90h], rax
cmp [r14+14h], ebp
jnz loc_5A0E4
push 9
pop rsi
mov rdi, rbx
call emit_op
mov rax, [r14]
mov eax, [rax+168h]
mov [r14+10h], eax
push 69h ; 'i'
pop rsi
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rdi, rbx
call emit_goto
mov ebp, eax
mov rdi, rbx
mov esi, 0B7h
call emit_op
push 8
pop rsi
mov rdi, rbx
call emit_u32
mov rdi, rbx
xor esi, esi
call emit_u16
mov rdi, rbx
mov esi, 0B7h
call emit_op
push 74h ; 't'
pop rsi
mov rdi, rbx
call emit_u32
mov rdi, rbx
xor esi, esi
call emit_u16
push 2Dh ; '-'
pop rsi
mov rdi, rbx
call emit_op
mov rdi, rbx
mov esi, ebp
call emit_label
mov rax, [rbx+90h]
loc_5A0E4:
mov rax, [rax+8]
mov [rbx+90h], rax
xor eax, eax
jmp short loc_5A0FA
loc_5A0F3:
and qword ptr [r14], 0
push 0FFFFFFFFFFFFFFFFh
pop rax
loc_5A0FA:
add rsp, 10h
pop rbx
pop r14
pop rbp
retn
|
long long emit_class_init_start(long long a1, _DWORD *a2)
{
long long v2; // rax
int v3; // ebp
v2 = js_new_function_def(*(_QWORD *)a1, *(_QWORD *)(a1 + 144), 0, 0, *(unsigned __int8 **)(a1 + 24), 0, 0);
if ( v2 )
{
*(_DWORD *)(v2 + 136) = 0;
*(_QWORD *)(v2 + 72) = 1LL;
*(_DWORD *)(v2 + 120) = 0;
*(_OWORD *)(v2 + 96) = xmmword_85770;
*(_QWORD *)(v2 + 112) = 1LL;
*(_WORD *)(v2 + 132) = *(_WORD *)(v2 + 132) & 0x8000 | 0x600;
*(_QWORD *)a2 = v2;
*(_QWORD *)(a1 + 144) = v2;
if ( !a2[5] )
{
emit_op(a1, 9);
a2[4] = *(_DWORD *)(*(_QWORD *)a2 + 360LL);
v3 = emit_goto(a1, 105, -1);
emit_op(a1, 183);
emit_u32(a1, 8u);
emit_u16(a1, 0);
emit_op(a1, 183);
emit_u32(a1, 0x74u);
emit_u16(a1, 0);
emit_op(a1, 45);
emit_label(a1, v3);
v2 = *(_QWORD *)(a1 + 144);
}
*(_QWORD *)(a1 + 144) = *(_QWORD *)(v2 + 8);
return 0LL;
}
else
{
*(_QWORD *)a2 = 0LL;
return -1LL;
}
}
|
emit_class_init_start:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV R14,RSI
MOV RBX,RDI
MOV RSI,qword ptr [RDI + 0x90]
MOV RDI,qword ptr [RDI]
MOV R8,qword ptr [RBX + 0x18]
AND dword ptr [RSP],0x0
XOR EBP,EBP
XOR EDX,EDX
XOR ECX,ECX
XOR R9D,R9D
CALL 0x0014b7d3
TEST RAX,RAX
JZ 0x0015a0f3
AND dword ptr [RAX + 0x88],0x0
PUSH 0x1
POP RCX
MOV qword ptr [RAX + 0x48],RCX
AND dword ptr [RAX + 0x78],0x0
MOVAPS XMM0,xmmword ptr [0x00185770]
MOVUPS xmmword ptr [RAX + 0x60],XMM0
MOV qword ptr [RAX + 0x70],RCX
MOV ECX,0xffff8000
AND ECX,dword ptr [RAX + 0x84]
OR ECX,0x600
MOV word ptr [RAX + 0x84],CX
MOV qword ptr [R14],RAX
MOV qword ptr [RBX + 0x90],RAX
CMP dword ptr [R14 + 0x14],EBP
JNZ 0x0015a0e4
PUSH 0x9
POP RSI
MOV RDI,RBX
CALL 0x0014fa1b
MOV RAX,qword ptr [R14]
MOV EAX,dword ptr [RAX + 0x168]
MOV dword ptr [R14 + 0x10],EAX
PUSH 0x69
POP RSI
PUSH -0x1
POP RDX
MOV RDI,RBX
CALL 0x0015605a
MOV EBP,EAX
MOV RDI,RBX
MOV ESI,0xb7
CALL 0x0014fa1b
PUSH 0x8
POP RSI
MOV RDI,RBX
CALL 0x001563de
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0014fa3a
MOV RDI,RBX
MOV ESI,0xb7
CALL 0x0014fa1b
PUSH 0x74
POP RSI
MOV RDI,RBX
CALL 0x001563de
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0014fa3a
PUSH 0x2d
POP RSI
MOV RDI,RBX
CALL 0x0014fa1b
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0015617c
MOV RAX,qword ptr [RBX + 0x90]
LAB_0015a0e4:
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x90],RAX
XOR EAX,EAX
JMP 0x0015a0fa
LAB_0015a0f3:
AND qword ptr [R14],0x0
PUSH -0x1
POP RAX
LAB_0015a0fa:
ADD RSP,0x10
POP RBX
POP R14
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int8 emit_class_init_start(int8 *param_1,long *param_2)
{
int4 uVar1;
int4 uVar2;
int4 uVar3;
long lVar4;
int8 uVar5;
lVar4 = js_new_function_def(*param_1,param_1[0x12],0,0,param_1[3],0,0);
if (lVar4 == 0) {
*param_2 = 0;
uVar5 = 0xffffffffffffffff;
}
else {
*(int4 *)(lVar4 + 0x88) = 0;
*(int8 *)(lVar4 + 0x48) = 1;
*(int4 *)(lVar4 + 0x78) = 0;
uVar2 = _UNK_0018577c;
uVar1 = _UNK_00185778;
uVar3 = _UNK_00185774;
*(int4 *)(lVar4 + 0x60) = _DAT_00185770;
*(int4 *)(lVar4 + 100) = uVar3;
*(int4 *)(lVar4 + 0x68) = uVar1;
*(int4 *)(lVar4 + 0x6c) = uVar2;
*(int8 *)(lVar4 + 0x70) = 1;
*(ushort *)(lVar4 + 0x84) = (ushort)*(int4 *)(lVar4 + 0x84) & 0x8000 | 0x600;
*param_2 = lVar4;
param_1[0x12] = lVar4;
if (*(int *)((long)param_2 + 0x14) == 0) {
emit_op(param_1,9);
*(int4 *)(param_2 + 2) = *(int4 *)(*param_2 + 0x168);
uVar3 = emit_goto(param_1,0x69,0xffffffffffffffff);
emit_op(param_1,0xb7);
emit_u32(param_1,8);
emit_u16(param_1,0);
emit_op(param_1,0xb7);
emit_u32(param_1,0x74);
emit_u16(param_1,0);
emit_op(param_1,0x2d);
emit_label(param_1,uVar3);
lVar4 = param_1[0x12];
}
param_1[0x12] = *(int8 *)(lVar4 + 8);
uVar5 = 0;
}
return uVar5;
}
|
|
18,163
|
bufwrite
|
aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_io.c
|
static void bufwrite(const void* src, int num, int szbuf, void* buf, int* ptrbuf) {
// check pointers
if (!src || !buf || !ptrbuf) {
mjERROR("NULL pointer passed to bufwrite");
}
// check size
if (*ptrbuf+num > szbuf) {
mjERROR("attempting to write outside model buffer");
}
// write, advance pointer
memcpy((char*)buf + *ptrbuf, src, num);
*ptrbuf += num;
}
|
O0
|
c
|
bufwrite:
subq $0x848, %rsp # imm = 0x848
movq %rdi, 0x840(%rsp)
movl %esi, 0x83c(%rsp)
movl %edx, 0x838(%rsp)
movq %rcx, 0x830(%rsp)
movq %r8, 0x828(%rsp)
cmpq $0x0, 0x840(%rsp)
je 0xbe1be
cmpq $0x0, 0x830(%rsp)
je 0xbe1be
cmpq $0x0, 0x828(%rsp)
jne 0xbe21b
movq $0x8, 0x418(%rsp)
leaq 0x420(%rsp), %rdi
leaq 0x4679b9(%rip), %rsi # 0x525b92
movl $0x400, %edx # imm = 0x400
callq 0x49400
leaq 0x420(%rsp), %rdi
addq 0x418(%rsp), %rdi
movl $0x400, %esi # imm = 0x400
subq 0x418(%rsp), %rsi
leaq 0x467994(%rip), %rdx # 0x525b9b
movb $0x0, %al
callq 0x49410
leaq 0x420(%rsp), %rdi
callq 0x49420
movq 0x828(%rsp), %rax
movl (%rax), %eax
addl 0x83c(%rsp), %eax
cmpl 0x838(%rsp), %eax
jle 0xbe280
movq $0x8, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x467948(%rip), %rsi # 0x525b92
movl $0x400, %edx # imm = 0x400
callq 0x49400
leaq 0x10(%rsp), %rdi
addq 0x8(%rsp), %rdi
movl $0x400, %esi # imm = 0x400
subq 0x8(%rsp), %rsi
leaq 0x46794e(%rip), %rdx # 0x525bbd
movb $0x0, %al
callq 0x49410
leaq 0x10(%rsp), %rdi
callq 0x49420
movq 0x830(%rsp), %rdi
movq 0x828(%rsp), %rax
movslq (%rax), %rax
addq %rax, %rdi
movq 0x840(%rsp), %rsi
movslq 0x83c(%rsp), %rdx
callq 0x49570
movl 0x83c(%rsp), %ecx
movq 0x828(%rsp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
addq $0x848, %rsp # imm = 0x848
retq
nopw %cs:(%rax,%rax)
|
bufwrite:
sub rsp, 848h
mov [rsp+848h+var_8], rdi
mov [rsp+848h+var_C], esi
mov [rsp+848h+var_10], edx
mov [rsp+848h+var_18], rcx
mov [rsp+848h+var_20], r8
cmp [rsp+848h+var_8], 0
jz short loc_BE1BE
cmp [rsp+848h+var_18], 0
jz short loc_BE1BE
cmp [rsp+848h+var_20], 0
jnz short loc_BE21B
loc_BE1BE:
mov [rsp+848h+var_430], 8
lea rdi, [rsp+848h+var_428]
lea rsi, aBufwrite; "bufwrite"
mov edx, 400h
call _strncpy
lea rdi, [rsp+848h+var_428]
add rdi, [rsp+848h+var_430]
mov esi, 400h
sub rsi, [rsp+848h+var_430]
lea rdx, aNullPointerPas; ": NULL pointer passed to bufwrite"
mov al, 0
call _snprintf
lea rdi, [rsp+848h+var_428]
call _mju_error_raw
loc_BE21B:
mov rax, [rsp+848h+var_20]
mov eax, [rax]
add eax, [rsp+848h+var_C]
cmp eax, [rsp+848h+var_10]
jle short loc_BE280
mov [rsp+848h+var_840], 8
lea rdi, [rsp+848h+var_838]
lea rsi, aBufwrite; "bufwrite"
mov edx, 400h
call _strncpy
lea rdi, [rsp+848h+var_838]
add rdi, [rsp+848h+var_840]
mov esi, 400h
sub rsi, [rsp+848h+var_840]
lea rdx, aAttemptingToWr; ": attempting to write outside model buf"...
mov al, 0
call _snprintf
lea rdi, [rsp+848h+var_838]
call _mju_error_raw
loc_BE280:
mov rdi, [rsp+848h+var_18]
mov rax, [rsp+848h+var_20]
movsxd rax, dword ptr [rax]
add rdi, rax
mov rsi, [rsp+848h+var_8]
movsxd rdx, [rsp+848h+var_C]
call _memcpy
mov ecx, [rsp+848h+var_C]
mov rax, [rsp+848h+var_20]
add ecx, [rax]
mov [rax], ecx
add rsp, 848h
retn
|
int * bufwrite(long long a1, int a2, int a3, long long a4, int *a5)
{
int *result; // rax
_BYTE v6[8]; // [rsp+10h] [rbp-838h] BYREF
_QWORD v7[129]; // [rsp+18h] [rbp-830h] BYREF
_BYTE v8[8]; // [rsp+420h] [rbp-428h] BYREF
long long v9; // [rsp+428h] [rbp-420h] BYREF
int *v10; // [rsp+828h] [rbp-20h]
long long v11; // [rsp+830h] [rbp-18h]
int v12; // [rsp+838h] [rbp-10h]
int v13; // [rsp+83Ch] [rbp-Ch]
long long v14; // [rsp+840h] [rbp-8h]
v14 = a1;
v13 = a2;
v12 = a3;
v11 = a4;
v10 = a5;
if ( !a1 || !v11 || !v10 )
{
v7[128] = 8LL;
strncpy(v8, "bufwrite", 1024LL);
snprintf(&v9, 1016LL, ": NULL pointer passed to bufwrite");
mju_error_raw(v8);
}
if ( v13 + *v10 > v12 )
{
strncpy(v6, "bufwrite", 1024LL);
snprintf(v7, 1016LL, ": attempting to write outside model buffer");
mju_error_raw(v6);
}
memcpy(*v10 + v11, v14, v13);
result = v10;
*v10 += v13;
return result;
}
|
bufwrite:
SUB RSP,0x848
MOV qword ptr [RSP + 0x840],RDI
MOV dword ptr [RSP + 0x83c],ESI
MOV dword ptr [RSP + 0x838],EDX
MOV qword ptr [RSP + 0x830],RCX
MOV qword ptr [RSP + 0x828],R8
CMP qword ptr [RSP + 0x840],0x0
JZ 0x001be1be
CMP qword ptr [RSP + 0x830],0x0
JZ 0x001be1be
CMP qword ptr [RSP + 0x828],0x0
JNZ 0x001be21b
LAB_001be1be:
MOV qword ptr [RSP + 0x418],0x8
LEA RDI,[RSP + 0x420]
LEA RSI,[0x625b92]
MOV EDX,0x400
CALL 0x00149400
LEA RDI,[RSP + 0x420]
ADD RDI,qword ptr [RSP + 0x418]
MOV ESI,0x400
SUB RSI,qword ptr [RSP + 0x418]
LEA RDX,[0x625b9b]
MOV AL,0x0
CALL 0x00149410
LEA RDI,[RSP + 0x420]
CALL 0x00149420
LAB_001be21b:
MOV RAX,qword ptr [RSP + 0x828]
MOV EAX,dword ptr [RAX]
ADD EAX,dword ptr [RSP + 0x83c]
CMP EAX,dword ptr [RSP + 0x838]
JLE 0x001be280
MOV qword ptr [RSP + 0x8],0x8
LEA RDI,[RSP + 0x10]
LEA RSI,[0x625b92]
MOV EDX,0x400
CALL 0x00149400
LEA RDI,[RSP + 0x10]
ADD RDI,qword ptr [RSP + 0x8]
MOV ESI,0x400
SUB RSI,qword ptr [RSP + 0x8]
LEA RDX,[0x625bbd]
MOV AL,0x0
CALL 0x00149410
LEA RDI,[RSP + 0x10]
CALL 0x00149420
LAB_001be280:
MOV RDI,qword ptr [RSP + 0x830]
MOV RAX,qword ptr [RSP + 0x828]
MOVSXD RAX,dword ptr [RAX]
ADD RDI,RAX
MOV RSI,qword ptr [RSP + 0x840]
MOVSXD RDX,dword ptr [RSP + 0x83c]
CALL 0x00149570
MOV ECX,dword ptr [RSP + 0x83c]
MOV RAX,qword ptr [RSP + 0x828]
ADD ECX,dword ptr [RAX]
MOV dword ptr [RAX],ECX
ADD RSP,0x848
RET
|
void bufwrite(void *param_1,int param_2,int param_3,long param_4,int *param_5)
{
char local_838 [8];
char acStack_830 [1024];
long local_430;
char local_428 [1032];
int *local_20;
long local_18;
int local_10;
int local_c;
void *local_8;
local_20 = param_5;
local_18 = param_4;
local_10 = param_3;
local_c = param_2;
local_8 = param_1;
if (((param_1 == (void *)0x0) || (param_4 == 0)) || (param_5 == (int *)0x0)) {
local_430 = 8;
strncpy(local_428,"bufwrite",0x400);
snprintf(local_428 + local_430,0x400 - local_430,": NULL pointer passed to bufwrite");
mju_error_raw(local_428);
}
if (local_10 < *local_20 + local_c) {
strncpy(local_838,"bufwrite",0x400);
snprintf(acStack_830,0x3f8,": attempting to write outside model buffer");
mju_error_raw(local_838);
}
memcpy((void *)(local_18 + *local_20),local_8,(long)local_c);
*local_20 = local_c + *local_20;
return;
}
|
|
18,164
|
bufwrite
|
aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_io.c
|
static void bufwrite(const void* src, int num, int szbuf, void* buf, int* ptrbuf) {
// check pointers
if (!src || !buf || !ptrbuf) {
mjERROR("NULL pointer passed to bufwrite");
}
// check size
if (*ptrbuf+num > szbuf) {
mjERROR("attempting to write outside model buffer");
}
// write, advance pointer
memcpy((char*)buf + *ptrbuf, src, num);
*ptrbuf += num;
}
|
O3
|
c
|
bufwrite:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp # imm = 0x408
movq %r8, %rbx
movq %rcx, %r14
movl %edx, %ebp
movl %esi, %r12d
movq %rdi, %r15
testq %rdi, %rdi
setne %al
testq %rcx, %rcx
setne %cl
andb %al, %cl
testq %r8, %r8
setne %al
testb %al, %cl
jne 0x6b11a
leaq 0x16061c(%rip), %rsi # 0x1cb706
movq %rsp, %r13
movl $0x400, %edx # imm = 0x400
movq %r13, %rdi
callq 0x2d240
vmovups 0x16060d(%rip), %ymm0 # 0x1cb70f
vmovups %ymm0, 0x8(%r13)
movw $0x65, 0x28(%r13)
movq %r13, %rdi
vzeroupper
callq 0x2d260
movl (%rbx), %eax
leal (%rax,%r12), %ecx
cmpl %ebp, %ecx
jle 0x6b164
leaq 0x1605db(%rip), %rsi # 0x1cb706
movq %rsp, %r13
movl $0x400, %edx # imm = 0x400
movq %r13, %rdi
callq 0x2d240
vmovups 0x1605ee(%rip), %ymm0 # 0x1cb731
vmovups %ymm0, 0x8(%r13)
vmovups 0x1605eb(%rip), %ymm0 # 0x1cb73c
vmovups %ymm0, 0x13(%r13)
movq %r13, %rdi
vzeroupper
callq 0x2d260
movl (%rbx), %eax
cltq
addq %rax, %r14
movslq %r12d, %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x2d3b0
addl %r12d, (%rbx)
addq $0x408, %rsp # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
bufwrite:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 408h
mov rbx, r8
mov r14, rcx
mov ebp, edx
mov r12d, esi
mov r15, rdi
test rdi, rdi
setnz al
test rcx, rcx
setnz cl
and cl, al
test r8, r8
setnz al
test cl, al
jnz short loc_6B11A
lea rsi, aBufwrite; "bufwrite"
mov r13, rsp
mov edx, 400h
mov rdi, r13
call _strncpy
vmovups ymm0, cs:ymmword_1CB70F
vmovups ymmword ptr [r13+8], ymm0
mov word ptr [r13+28h], 65h ; 'e'
mov rdi, r13
vzeroupper
call _mju_error_raw
loc_6B11A:
mov eax, [rbx]
lea ecx, [rax+r12]
cmp ecx, ebp
jle short loc_6B164
lea rsi, aBufwrite; "bufwrite"
mov r13, rsp
mov edx, 400h
mov rdi, r13
call _strncpy
vmovups ymm0, cs:ymmword_1CB731
vmovups ymmword ptr [r13+8], ymm0
vmovups ymm0, cs:ymmword_1CB731+0Bh
vmovups ymmword ptr [r13+13h], ymm0
mov rdi, r13
vzeroupper
call _mju_error_raw
mov eax, [rbx]
loc_6B164:
cdqe
add r14, rax
movsxd r12, r12d
mov rdi, r14
mov rsi, r15
mov rdx, r12
call _memcpy
add [rbx], r12d
add rsp, 408h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long bufwrite(
long long a1,
int a2,
int a3,
long long a4,
int *a5,
double a6,
double a7,
double a8,
double a9,
double a10,
double a11,
double a12)
{
int v17; // eax
long long v18; // rcx
long long result; // rax
_WORD v23[540]; // [rsp+0h] [rbp-438h] BYREF
if ( a5 == 0LL || a1 == 0 || a4 == 0 )
{
_R13 = v23;
strncpy(v23, "bufwrite", 1024LL);
__asm
{
vmovups ymm0, cs:ymmword_1CB70F
vmovups ymmword ptr [r13+8], ymm0
}
v23[20] = 101;
__asm { vzeroupper }
a6 = mju_error_raw(v23);
}
v17 = *a5;
v18 = (unsigned int)(*a5 + a2);
if ( (int)v18 > a3 )
{
_R13 = v23;
strncpy(v23, "bufwrite", 1024LL);
__asm
{
vmovups ymm0, cs:ymmword_1CB731
vmovups ymmword ptr [r13+8], ymm0
vmovups ymm0, cs:ymmword_1CB731+0Bh
vmovups ymmword ptr [r13+13h], ymm0
vzeroupper
}
a6 = mju_error_raw(v23);
v17 = *a5;
}
result = memcpy(v17 + a4, a1, a2, v18, a5, a6, a7, a8, a9, a10, a11, a12);
*a5 += a2;
return result;
}
|
bufwrite:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x408
MOV RBX,R8
MOV R14,RCX
MOV EBP,EDX
MOV R12D,ESI
MOV R15,RDI
TEST RDI,RDI
SETNZ AL
TEST RCX,RCX
SETNZ CL
AND CL,AL
TEST R8,R8
SETNZ AL
TEST CL,AL
JNZ 0x0016b11a
LEA RSI,[0x2cb706]
MOV R13,RSP
MOV EDX,0x400
MOV RDI,R13
CALL 0x0012d240
VMOVUPS YMM0,ymmword ptr [0x002cb70f]
VMOVUPS ymmword ptr [R13 + 0x8],YMM0
MOV word ptr [R13 + 0x28],0x65
MOV RDI,R13
VZEROUPPER
CALL 0x0012d260
LAB_0016b11a:
MOV EAX,dword ptr [RBX]
LEA ECX,[RAX + R12*0x1]
CMP ECX,EBP
JLE 0x0016b164
LEA RSI,[0x2cb706]
MOV R13,RSP
MOV EDX,0x400
MOV RDI,R13
CALL 0x0012d240
VMOVUPS YMM0,ymmword ptr [0x002cb731]
VMOVUPS ymmword ptr [R13 + 0x8],YMM0
VMOVUPS YMM0,ymmword ptr [0x002cb73c]
VMOVUPS ymmword ptr [R13 + 0x13],YMM0
MOV RDI,R13
VZEROUPPER
CALL 0x0012d260
MOV EAX,dword ptr [RBX]
LAB_0016b164:
CDQE
ADD R14,RAX
MOVSXD R12,R12D
MOV RDI,R14
MOV RSI,R15
MOV RDX,R12
CALL 0x0012d3b0
ADD dword ptr [RBX],R12D
ADD RSP,0x408
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void bufwrite(void *param_1,int param_2,int param_3,long param_4,int *param_5)
{
int iVar1;
char acStack_438 [8];
char local_430 [8];
char acStack_428 [3];
char acStack_425 [5];
char acStack_420 [3];
char acStack_41d [5];
char acStack_418 [3];
char acStack_415 [5];
int2 local_410;
char cStack_40e;
char acStack_40d [989];
if ((param_4 == 0 || param_1 == (void *)0x0) || param_5 == (int *)0x0) {
strncpy(acStack_438,"bufwrite",0x400);
local_430[0] = s___NULL_pointer_passed_to_bufwrit_002cb70f[0];
local_430[1] = s___NULL_pointer_passed_to_bufwrit_002cb70f[1];
local_430[2] = s___NULL_pointer_passed_to_bufwrit_002cb70f[2];
local_430[3] = s___NULL_pointer_passed_to_bufwrit_002cb70f[3];
local_430[4] = s___NULL_pointer_passed_to_bufwrit_002cb70f[4];
local_430[5] = s___NULL_pointer_passed_to_bufwrit_002cb70f[5];
local_430[6] = s___NULL_pointer_passed_to_bufwrit_002cb70f[6];
local_430[7] = s___NULL_pointer_passed_to_bufwrit_002cb70f[7];
acStack_428 = SUB83(s___NULL_pointer_passed_to_bufwrit_002cb70f._8_8_,0);
acStack_425 = SUB85(s___NULL_pointer_passed_to_bufwrit_002cb70f._8_8_,3);
acStack_420 = SUB83(s___NULL_pointer_passed_to_bufwrit_002cb70f._16_8_,0);
acStack_41d = SUB85(s___NULL_pointer_passed_to_bufwrit_002cb70f._16_8_,3);
acStack_418 = SUB83(s___NULL_pointer_passed_to_bufwrit_002cb70f._24_8_,0);
acStack_415 = SUB85(s___NULL_pointer_passed_to_bufwrit_002cb70f._24_8_,3);
local_410 = 0x65;
mju_error_raw(acStack_438);
}
iVar1 = *param_5;
if (param_3 < iVar1 + param_2) {
strncpy(acStack_438,"bufwrite",0x400);
local_430[0] = s___attempting_to_write_outside_mo_002cb731[0];
local_430[1] = s___attempting_to_write_outside_mo_002cb731[1];
local_430[2] = s___attempting_to_write_outside_mo_002cb731[2];
local_430[3] = s___attempting_to_write_outside_mo_002cb731[3];
local_430[4] = s___attempting_to_write_outside_mo_002cb731[4];
local_430[5] = s___attempting_to_write_outside_mo_002cb731[5];
local_430[6] = s___attempting_to_write_outside_mo_002cb731[6];
local_430[7] = s___attempting_to_write_outside_mo_002cb731[7];
acStack_428[0] = s___attempting_to_write_outside_mo_002cb731[8];
acStack_428[1] = s___attempting_to_write_outside_mo_002cb731[9];
acStack_428[2] = s___attempting_to_write_outside_mo_002cb731[10];
acStack_425[0] = s___attempting_to_write_outside_mo_002cb731[0xb];
acStack_425[1] = s___attempting_to_write_outside_mo_002cb731[0xc];
acStack_425[2] = s___attempting_to_write_outside_mo_002cb731[0xd];
acStack_425[3] = s___attempting_to_write_outside_mo_002cb731[0xe];
acStack_425[4] = s___attempting_to_write_outside_mo_002cb731[0xf];
acStack_420[0] = s___attempting_to_write_outside_mo_002cb731[0x10];
acStack_420[1] = s___attempting_to_write_outside_mo_002cb731[0x11];
acStack_420[2] = s___attempting_to_write_outside_mo_002cb731[0x12];
acStack_41d[0] = s___attempting_to_write_outside_mo_002cb731[0x13];
acStack_41d[1] = s___attempting_to_write_outside_mo_002cb731[0x14];
acStack_41d[2] = s___attempting_to_write_outside_mo_002cb731[0x15];
acStack_41d[3] = s___attempting_to_write_outside_mo_002cb731[0x16];
acStack_41d[4] = s___attempting_to_write_outside_mo_002cb731[0x17];
acStack_418[0] = s___attempting_to_write_outside_mo_002cb731[0x18];
acStack_418[1] = s___attempting_to_write_outside_mo_002cb731[0x19];
acStack_418[2] = s___attempting_to_write_outside_mo_002cb731[0x1a];
acStack_415[0] = s___attempting_to_write_outside_mo_002cb731[0x1b];
acStack_415[1] = s___attempting_to_write_outside_mo_002cb731[0x1c];
acStack_415[2] = s___attempting_to_write_outside_mo_002cb731[0x1d];
acStack_415[3] = s___attempting_to_write_outside_mo_002cb731[0x1e];
acStack_415[4] = s___attempting_to_write_outside_mo_002cb731[0x1f];
local_410 = (int2)s___attempting_to_write_outside_mo_002cb731._32_3_;
cStack_40e = SUB31(s___attempting_to_write_outside_mo_002cb731._32_3_,2);
acStack_40d[0] = s___attempting_to_write_outside_mo_002cb731[0x23];
acStack_40d[1] = s___attempting_to_write_outside_mo_002cb731[0x24];
acStack_40d[2] = s___attempting_to_write_outside_mo_002cb731[0x25];
acStack_40d[3] = s___attempting_to_write_outside_mo_002cb731[0x26];
acStack_40d[4] = s___attempting_to_write_outside_mo_002cb731[0x27];
acStack_40d[5] = s___attempting_to_write_outside_mo_002cb731[0x28];
acStack_40d[6] = s___attempting_to_write_outside_mo_002cb731[0x29];
acStack_40d[7] = s___attempting_to_write_outside_mo_002cb731[0x2a];
mju_error_raw(acStack_438);
iVar1 = *param_5;
}
memcpy((void *)(param_4 + iVar1),param_1,(long)param_2);
*param_5 = *param_5 + param_2;
return;
}
|
|
18,165
|
free_root
|
eloqsql/mysys/my_alloc.c
|
void free_root(MEM_ROOT *root, myf MyFlags)
{
reg1 USED_MEM *next,*old;
DBUG_ENTER("free_root");
DBUG_PRINT("enter",("root: %p flags: %lu", root, MyFlags));
#if !(defined(HAVE_valgrind) && defined(EXTRA_DEBUG))
/*
There is no point in using mark_blocks_free when using valgrind as
it will not reclaim any memory
*/
if (MyFlags & MY_MARK_BLOCKS_FREE)
{
mark_blocks_free(root);
DBUG_VOID_RETURN;
}
#endif
if (!(MyFlags & MY_KEEP_PREALLOC))
root->pre_alloc=0;
for (next=root->used; next ;)
{
old=next; next= next->next ;
if (old != root->pre_alloc)
my_free(old);
}
for (next=root->free ; next ;)
{
old=next; next= next->next;
if (old != root->pre_alloc)
my_free(old);
}
root->used=root->free=0;
if (root->pre_alloc)
{
root->free=root->pre_alloc;
root->free->left=root->pre_alloc->size-ALIGN_SIZE(sizeof(USED_MEM));
TRASH_MEM(root->pre_alloc);
root->free->next=0;
}
root->block_num= 4;
root->first_block_usage= 0;
DBUG_VOID_RETURN;
}
|
O3
|
c
|
free_root:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
testb $0x2, %sil
jne 0x5e4fc
testb $0x1, %sil
jne 0x5e495
movq $0x0, 0x10(%rbx)
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x5e4b4
movq (%rdi), %r14
cmpq 0x10(%rbx), %rdi
je 0x5e4ac
callq 0x62112
movq %r14, %rdi
testq %r14, %r14
jne 0x5e49e
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x5e4d2
movq (%rdi), %r14
cmpq 0x10(%rbx), %rdi
je 0x5e4ca
callq 0x62112
movq %r14, %rdi
testq %r14, %r14
jne 0x5e4bc
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x5e546
movq %rax, (%rbx)
movq 0x10(%rax), %rcx
addq $-0x18, %rcx
movq %rcx, 0x8(%rax)
movq (%rbx), %rax
movq $0x0, (%rax)
jmp 0x5e546
movq (%rbx), %rax
movq %rbx, %rcx
testq %rax, %rax
je 0x5e51b
movq %rax, %rcx
movq (%rax), %rax
movq 0x10(%rcx), %rdx
addq $-0x18, %rdx
movq %rdx, 0x8(%rcx)
jmp 0x5e502
movq 0x8(%rbx), %rax
movq %rax, (%rcx)
testq %rax, %rax
je 0x5e53e
movq (%rax), %rcx
movq 0x10(%rax), %rdx
addq $-0x18, %rdx
movq %rdx, 0x8(%rax)
movq %rcx, %rax
testq %rcx, %rcx
jne 0x5e527
movq $0x0, 0x8(%rbx)
movq $0x4, 0x28(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
|
free_root:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
test sil, 2
jnz short loc_5E4FC
test sil, 1
jnz short loc_5E495
mov qword ptr [rbx+10h], 0
loc_5E495:
mov rdi, [rbx+8]
test rdi, rdi
jz short loc_5E4B4
loc_5E49E:
mov r14, [rdi]
cmp rdi, [rbx+10h]
jz short loc_5E4AC
call my_free
loc_5E4AC:
mov rdi, r14
test r14, r14
jnz short loc_5E49E
loc_5E4B4:
mov rdi, [rbx]
test rdi, rdi
jz short loc_5E4D2
loc_5E4BC:
mov r14, [rdi]
cmp rdi, [rbx+10h]
jz short loc_5E4CA
call my_free
loc_5E4CA:
mov rdi, r14
test r14, r14
jnz short loc_5E4BC
loc_5E4D2:
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
mov rax, [rbx+10h]
test rax, rax
jz short loc_5E546
mov [rbx], rax
mov rcx, [rax+10h]
add rcx, 0FFFFFFFFFFFFFFE8h
mov [rax+8], rcx
mov rax, [rbx]
mov qword ptr [rax], 0
jmp short loc_5E546
loc_5E4FC:
mov rax, [rbx]
mov rcx, rbx
loc_5E502:
test rax, rax
jz short loc_5E51B
mov rcx, rax
mov rax, [rax]
mov rdx, [rcx+10h]
add rdx, 0FFFFFFFFFFFFFFE8h
mov [rcx+8], rdx
jmp short loc_5E502
loc_5E51B:
mov rax, [rbx+8]
mov [rcx], rax
test rax, rax
jz short loc_5E53E
loc_5E527:
mov rcx, [rax]
mov rdx, [rax+10h]
add rdx, 0FFFFFFFFFFFFFFE8h
mov [rax+8], rdx
mov rax, rcx
test rcx, rcx
jnz short loc_5E527
loc_5E53E:
mov qword ptr [rbx+8], 0
loc_5E546:
mov qword ptr [rbx+28h], 4
pop rbx
pop r14
pop rbp
retn
|
_QWORD * free_root(_QWORD *a1, char a2)
{
_QWORD *v3; // rdi
_QWORD *v4; // r14
_QWORD *v5; // rdi
_QWORD *v6; // r14
_QWORD *result; // rax
_QWORD *v8; // rax
_QWORD *v9; // rcx
_QWORD *v10; // rcx
if ( (a2 & 2) != 0 )
{
v8 = (_QWORD *)*a1;
v9 = a1;
while ( v8 )
{
v9 = v8;
v8 = (_QWORD *)*v8;
v9[1] = v9[2] - 24LL;
}
result = (_QWORD *)a1[1];
*v9 = result;
if ( result )
{
do
{
v10 = (_QWORD *)*result;
result[1] = result[2] - 24LL;
result = v10;
}
while ( v10 );
}
a1[1] = 0LL;
}
else
{
if ( (a2 & 1) == 0 )
a1[2] = 0LL;
v3 = (_QWORD *)a1[1];
if ( v3 )
{
do
{
v4 = (_QWORD *)*v3;
if ( v3 != (_QWORD *)a1[2] )
my_free(v3);
v3 = v4;
}
while ( v4 );
}
v5 = (_QWORD *)*a1;
if ( *a1 )
{
do
{
v6 = (_QWORD *)*v5;
if ( v5 != (_QWORD *)a1[2] )
my_free(v5);
v5 = v6;
}
while ( v6 );
}
*(_OWORD *)a1 = 0LL;
result = (_QWORD *)a1[2];
if ( result )
{
*a1 = result;
result[1] = result[2] - 24LL;
result = (_QWORD *)*a1;
*(_QWORD *)*a1 = 0LL;
}
}
a1[5] = 4LL;
return result;
}
|
free_root:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
TEST SIL,0x2
JNZ 0x0015e4fc
TEST SIL,0x1
JNZ 0x0015e495
MOV qword ptr [RBX + 0x10],0x0
LAB_0015e495:
MOV RDI,qword ptr [RBX + 0x8]
TEST RDI,RDI
JZ 0x0015e4b4
LAB_0015e49e:
MOV R14,qword ptr [RDI]
CMP RDI,qword ptr [RBX + 0x10]
JZ 0x0015e4ac
CALL 0x00162112
LAB_0015e4ac:
MOV RDI,R14
TEST R14,R14
JNZ 0x0015e49e
LAB_0015e4b4:
MOV RDI,qword ptr [RBX]
TEST RDI,RDI
JZ 0x0015e4d2
LAB_0015e4bc:
MOV R14,qword ptr [RDI]
CMP RDI,qword ptr [RBX + 0x10]
JZ 0x0015e4ca
CALL 0x00162112
LAB_0015e4ca:
MOV RDI,R14
TEST R14,R14
JNZ 0x0015e4bc
LAB_0015e4d2:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOV RAX,qword ptr [RBX + 0x10]
TEST RAX,RAX
JZ 0x0015e546
MOV qword ptr [RBX],RAX
MOV RCX,qword ptr [RAX + 0x10]
ADD RCX,-0x18
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBX]
MOV qword ptr [RAX],0x0
JMP 0x0015e546
LAB_0015e4fc:
MOV RAX,qword ptr [RBX]
MOV RCX,RBX
LAB_0015e502:
TEST RAX,RAX
JZ 0x0015e51b
MOV RCX,RAX
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RCX + 0x10]
ADD RDX,-0x18
MOV qword ptr [RCX + 0x8],RDX
JMP 0x0015e502
LAB_0015e51b:
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [RCX],RAX
TEST RAX,RAX
JZ 0x0015e53e
LAB_0015e527:
MOV RCX,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x10]
ADD RDX,-0x18
MOV qword ptr [RAX + 0x8],RDX
MOV RAX,RCX
TEST RCX,RCX
JNZ 0x0015e527
LAB_0015e53e:
MOV qword ptr [RBX + 0x8],0x0
LAB_0015e546:
MOV qword ptr [RBX + 0x28],0x4
POP RBX
POP R14
POP RBP
RET
|
void free_root(long *param_1,byte param_2)
{
int8 *puVar1;
long lVar2;
int8 *puVar3;
long *plVar4;
long *plVar5;
long *plVar6;
bool bVar7;
if ((param_2 & 2) == 0) {
if ((param_2 & 1) == 0) {
param_1[2] = 0;
}
puVar3 = (int8 *)param_1[1];
while (puVar3 != (int8 *)0x0) {
puVar1 = (int8 *)*puVar3;
bVar7 = puVar3 != (int8 *)param_1[2];
puVar3 = puVar1;
if (bVar7) {
my_free();
}
}
puVar3 = (int8 *)*param_1;
while (puVar3 != (int8 *)0x0) {
puVar1 = (int8 *)*puVar3;
bVar7 = puVar3 != (int8 *)param_1[2];
puVar3 = puVar1;
if (bVar7) {
my_free();
}
}
*param_1 = 0;
param_1[1] = 0;
lVar2 = param_1[2];
if (lVar2 != 0) {
*param_1 = lVar2;
*(long *)(lVar2 + 8) = *(long *)(lVar2 + 0x10) + -0x18;
*(int8 *)*param_1 = 0;
}
}
else {
plVar4 = (long *)*param_1;
plVar6 = param_1;
while (plVar5 = plVar4, plVar5 != (long *)0x0) {
plVar5[1] = plVar5[2] + -0x18;
plVar4 = (long *)*plVar5;
plVar6 = plVar5;
}
puVar3 = (int8 *)param_1[1];
*plVar6 = (long)puVar3;
while (puVar3 != (int8 *)0x0) {
puVar3[1] = puVar3[2] + -0x18;
puVar3 = (int8 *)*puVar3;
}
param_1[1] = 0;
}
param_1[5] = 4;
return;
}
|
|
18,166
|
sp_get_polygon_mbr
|
eloqsql/storage/maria/ma_sp_key.c
|
static int sp_get_polygon_mbr(uchar *(*wkb), uchar *end, uint n_dims,
uchar byte_order, double *mbr)
{
uint n_linear_rings;
uint n_points;
n_linear_rings = uint4korr((*wkb));
(*wkb) += 4;
for (; n_linear_rings > 0; --n_linear_rings)
{
n_points = uint4korr((*wkb));
(*wkb) += 4;
for (; n_points > 0; --n_points)
{
/* Add next point to mbr */
if (sp_add_point_to_mbr(wkb, end, n_dims, byte_order, mbr))
return -1;
}
}
return 0;
}
|
O0
|
c
|
sp_get_polygon_mbr:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %cl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movb %al, -0x1d(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
cmpl $0x0, -0x2c(%rbp)
jbe 0x87cbe
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
cmpl $0x0, -0x30(%rbp)
jbe 0x87cb1
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
movb -0x1d(%rbp), %al
movq -0x28(%rbp), %r8
movzbl %al, %ecx
callq 0x87cd0
cmpl $0x0, %eax
je 0x87ca4
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x87cc5
jmp 0x87ca6
movl -0x30(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x87c76
jmp 0x87cb3
movl -0x2c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x87c56
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
|
sp_get_polygon_mbr:
push rbp
mov rbp, rsp
sub rsp, 30h
mov al, cl
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_1D], al
mov [rbp+var_28], r8
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax]
mov [rbp+var_2C], eax
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
loc_87C56:
cmp [rbp+var_2C], 0
jbe short loc_87CBE
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax]
mov [rbp+var_30], eax
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
loc_87C76:
cmp [rbp+var_30], 0
jbe short loc_87CB1
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
mov al, [rbp+var_1D]
mov r8, [rbp+var_28]
movzx ecx, al
call sp_add_point_to_mbr
cmp eax, 0
jz short loc_87CA4
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_87CC5
loc_87CA4:
jmp short $+2
loc_87CA6:
mov eax, [rbp+var_30]
add eax, 0FFFFFFFFh
mov [rbp+var_30], eax
jmp short loc_87C76
loc_87CB1:
jmp short $+2
loc_87CB3:
mov eax, [rbp+var_2C]
add eax, 0FFFFFFFFh
mov [rbp+var_2C], eax
jmp short loc_87C56
loc_87CBE:
mov [rbp+var_4], 0
loc_87CC5:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long sp_get_polygon_mbr(_DWORD **a1, long long a2, unsigned int a3, unsigned __int8 a4, long long a5)
{
int j; // [rsp+0h] [rbp-30h]
int i; // [rsp+4h] [rbp-2Ch]
for ( i = *(*a1)++; i; --i )
{
for ( j = *(*a1)++; j; --j )
{
if ( (unsigned int)sp_add_point_to_mbr(a1, a2, a3, a4, a5) )
return (unsigned int)-1;
}
}
return 0;
}
|
sp_get_polygon_mbr:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV AL,CL
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV byte ptr [RBP + -0x1d],AL
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
LAB_00187c56:
CMP dword ptr [RBP + -0x2c],0x0
JBE 0x00187cbe
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x30],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
LAB_00187c76:
CMP dword ptr [RBP + -0x30],0x0
JBE 0x00187cb1
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
MOV AL,byte ptr [RBP + -0x1d]
MOV R8,qword ptr [RBP + -0x28]
MOVZX ECX,AL
CALL 0x00187cd0
CMP EAX,0x0
JZ 0x00187ca4
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00187cc5
LAB_00187ca4:
JMP 0x00187ca6
LAB_00187ca6:
MOV EAX,dword ptr [RBP + -0x30]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x30],EAX
JMP 0x00187c76
LAB_00187cb1:
JMP 0x00187cb3
LAB_00187cb3:
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x00187c56
LAB_00187cbe:
MOV dword ptr [RBP + -0x4],0x0
LAB_00187cc5:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4
sp_get_polygon_mbr(long *param_1,int8 param_2,int4 param_3,int1 param_4,
int8 param_5)
{
int iVar1;
int local_38;
int local_34;
local_34 = *(int *)*param_1;
*param_1 = *param_1 + 4;
do {
if (local_34 == 0) {
return 0;
}
local_38 = *(int *)*param_1;
*param_1 = *param_1 + 4;
for (; local_38 != 0; local_38 = local_38 + -1) {
iVar1 = sp_add_point_to_mbr(param_1,param_2,param_3,param_4,param_5);
if (iVar1 != 0) {
return 0xffffffff;
}
}
local_34 = local_34 + -1;
} while( true );
}
|
|
18,167
|
sp_get_polygon_mbr
|
eloqsql/storage/maria/ma_sp_key.c
|
static int sp_get_polygon_mbr(uchar *(*wkb), uchar *end, uint n_dims,
uchar byte_order, double *mbr)
{
uint n_linear_rings;
uint n_points;
n_linear_rings = uint4korr((*wkb));
(*wkb) += 4;
for (; n_linear_rings > 0; --n_linear_rings)
{
n_points = uint4korr((*wkb));
(*wkb) += 4;
for (; n_points > 0; --n_points)
{
/* Add next point to mbr */
if (sp_add_point_to_mbr(wkb, end, n_dims, byte_order, mbr))
return -1;
}
}
return 0;
}
|
O3
|
c
|
sp_get_polygon_mbr:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movl (%rcx), %eax
addq $0x4, %rcx
movq %rcx, (%rdi)
testl %eax, %eax
je 0x6657c
addq $-0x8, %rsi
movq (%rdi), %r8
movl (%r8), %ecx
addq $0x4, %r8
movq %r8, (%rdi)
testl %ecx, %ecx
je 0x66578
movb $0x1, %r8b
xorl %r9d, %r9d
movq (%rdi), %r10
cmpq %rsi, %r10
ja 0x66580
movsd (%r10), %xmm0
addq $0x8, %r10
movq %r10, (%rdi)
movsd (%rdx,%r9), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x6654f
movsd %xmm0, (%rdx,%r9)
ucomisd 0x8(%rdx,%r9), %xmm0
jbe 0x66562
orq $0x8, %r9
movsd %xmm0, (%rdx,%r9)
movl $0x10, %r9d
testb $0x1, %r8b
movl $0x0, %r8d
jne 0x66529
decl %ecx
jne 0x66523
decl %eax
jne 0x66512
xorl %eax, %eax
jmp 0x66585
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
popq %rbp
retq
nop
|
sp_get_polygon_mbr:
push rbp
mov rbp, rsp
mov rcx, [rdi]
mov eax, [rcx]
add rcx, 4
mov [rdi], rcx
test eax, eax
jz short loc_6657C
add rsi, 0FFFFFFFFFFFFFFF8h
loc_66512:
mov r8, [rdi]
mov ecx, [r8]
add r8, 4
mov [rdi], r8
test ecx, ecx
jz short loc_66578
loc_66523:
mov r8b, 1
xor r9d, r9d
loc_66529:
mov r10, [rdi]
cmp r10, rsi
ja short loc_66580
movsd xmm0, qword ptr [r10]
add r10, 8
mov [rdi], r10
movsd xmm1, qword ptr [rdx+r9]
ucomisd xmm1, xmm0
jbe short loc_6654F
movsd qword ptr [rdx+r9], xmm0
loc_6654F:
ucomisd xmm0, qword ptr [rdx+r9+8]
jbe short loc_66562
or r9, 8
movsd qword ptr [rdx+r9], xmm0
loc_66562:
mov r9d, 10h
test r8b, 1
mov r8d, 0
jnz short loc_66529
dec ecx
jnz short loc_66523
loc_66578:
dec eax
jnz short loc_66512
loc_6657C:
xor eax, eax
jmp short loc_66585
loc_66580:
mov eax, 0FFFFFFFFh
loc_66585:
pop rbp
retn
|
long long sp_get_polygon_mbr(double **a1, long long a2, long long a3)
{
int v3; // eax
unsigned long long v4; // rsi
int v5; // ecx
char v6; // r8
long long v7; // r9
double *v8; // r10
double v9; // xmm0_8
bool v10; // zf
v3 = *(_DWORD *)*a1;
*a1 = (double *)((char *)*a1 + 4);
if ( v3 )
{
v4 = a2 - 8;
do
{
v5 = *(_DWORD *)*a1;
*a1 = (double *)((char *)*a1 + 4);
if ( v5 )
{
while ( 2 )
{
v6 = 1;
v7 = 0LL;
do
{
v8 = *a1;
if ( (unsigned long long)*a1 > v4 )
return 0xFFFFFFFFLL;
v9 = *v8;
*a1 = v8 + 1;
if ( *(double *)(a3 + v7) > v9 )
*(double *)(a3 + v7) = v9;
if ( v9 > *(double *)(a3 + v7 + 8) )
*(double *)(a3 + (v7 | 8)) = v9;
v7 = 16LL;
v10 = (v6 & 1) == 0;
v6 = 0;
}
while ( !v10 );
if ( --v5 )
continue;
break;
}
}
--v3;
}
while ( v3 );
}
return 0LL;
}
|
sp_get_polygon_mbr:
PUSH RBP
MOV RBP,RSP
MOV RCX,qword ptr [RDI]
MOV EAX,dword ptr [RCX]
ADD RCX,0x4
MOV qword ptr [RDI],RCX
TEST EAX,EAX
JZ 0x0016657c
ADD RSI,-0x8
LAB_00166512:
MOV R8,qword ptr [RDI]
MOV ECX,dword ptr [R8]
ADD R8,0x4
MOV qword ptr [RDI],R8
TEST ECX,ECX
JZ 0x00166578
LAB_00166523:
MOV R8B,0x1
XOR R9D,R9D
LAB_00166529:
MOV R10,qword ptr [RDI]
CMP R10,RSI
JA 0x00166580
MOVSD XMM0,qword ptr [R10]
ADD R10,0x8
MOV qword ptr [RDI],R10
MOVSD XMM1,qword ptr [RDX + R9*0x1]
UCOMISD XMM1,XMM0
JBE 0x0016654f
MOVSD qword ptr [RDX + R9*0x1],XMM0
LAB_0016654f:
UCOMISD XMM0,qword ptr [RDX + R9*0x1 + 0x8]
JBE 0x00166562
OR R9,0x8
MOVSD qword ptr [RDX + R9*0x1],XMM0
LAB_00166562:
MOV R9D,0x10
TEST R8B,0x1
MOV R8D,0x0
JNZ 0x00166529
DEC ECX
JNZ 0x00166523
LAB_00166578:
DEC EAX
JNZ 0x00166512
LAB_0016657c:
XOR EAX,EAX
JMP 0x00166585
LAB_00166580:
MOV EAX,0xffffffff
LAB_00166585:
POP RBP
RET
|
int8 sp_get_polygon_mbr(int8 *param_1,long param_2,long param_3)
{
double dVar1;
double *pdVar2;
bool bVar3;
int iVar4;
int iVar5;
bool bVar6;
ulong uVar7;
iVar4 = *(int *)*param_1;
*param_1 = (int *)*param_1 + 1;
if (iVar4 != 0) {
do {
iVar5 = *(int *)*param_1;
*param_1 = (int *)*param_1 + 1;
for (; iVar5 != 0; iVar5 = iVar5 + -1) {
uVar7 = 0;
bVar3 = true;
do {
bVar6 = bVar3;
pdVar2 = (double *)*param_1;
if ((double *)(param_2 + -8) < pdVar2) {
return 0xffffffff;
}
dVar1 = *pdVar2;
*param_1 = pdVar2 + 1;
if (dVar1 < *(double *)(param_3 + uVar7)) {
*(double *)(param_3 + uVar7) = dVar1;
}
pdVar2 = (double *)(param_3 + 8 + uVar7);
if (*pdVar2 <= dVar1 && dVar1 != *pdVar2) {
*(double *)(param_3 + (uVar7 | 8)) = dVar1;
}
uVar7 = 0x10;
bVar3 = false;
} while (bVar6);
}
iVar4 = iVar4 + -1;
} while (iVar4 != 0);
}
return 0;
}
|
|
18,168
|
mi_keylength_part
|
eloqsql/storage/myisam/mi_search.c
|
uint _mi_keylength_part(MI_KEYDEF *keyinfo, register uchar *key,
HA_KEYSEG *end)
{
reg1 HA_KEYSEG *keyseg;
uchar *start= key;
for (keyseg=keyinfo->seg ; keyseg != end ; keyseg++)
{
if (keyseg->flag & HA_NULL_PART)
if (!*key++)
continue;
if (keyseg->flag & (HA_SPACE_PACK | HA_BLOB_PART | HA_VAR_LENGTH_PART))
{
uint length;
get_key_length(length,key);
key+=length;
}
else
key+= keyseg->length;
}
return (uint) (key-start);
}
|
O3
|
c
|
mi_keylength_part:
movq 0x28(%rdi), %rcx
movq %rsi, %rax
cmpq %rdx, %rcx
je 0x3f18c
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rax
movzwl 0x12(%rcx), %edi
testb $0x10, %dil
je 0x3f14b
cmpb $0x0, (%rax)
leaq 0x1(%rax), %rax
je 0x3f182
testb $0x29, %dil
je 0x3f165
movzbl (%rax), %edi
cmpq $0xff, %rdi
je 0x3f16b
movl $0x1, %r8d
jmp 0x3f17c
movzwl 0x14(%rcx), %edi
jmp 0x3f17f
movzwl 0x1(%rax), %edi
rolw $0x8, %di
movzwl %di, %edi
movl $0x3, %r8d
addq %r8, %rax
addq %rdi, %rax
addq $0x20, %rcx
cmpq %rdx, %rcx
jne 0x3f138
popq %rbp
subl %esi, %eax
retq
|
_mi_keylength_part:
mov rcx, [rdi+28h]
mov rax, rsi
cmp rcx, rdx
jz short loc_3F18C
push rbp
mov rbp, rsp
mov rax, rsi
loc_3F138:
movzx edi, word ptr [rcx+12h]
test dil, 10h
jz short loc_3F14B
cmp byte ptr [rax], 0
lea rax, [rax+1]
jz short loc_3F182
loc_3F14B:
test dil, 29h
jz short loc_3F165
movzx edi, byte ptr [rax]
cmp rdi, 0FFh
jz short loc_3F16B
mov r8d, 1
jmp short loc_3F17C
loc_3F165:
movzx edi, word ptr [rcx+14h]
jmp short loc_3F17F
loc_3F16B:
movzx edi, word ptr [rax+1]
rol di, 8
movzx edi, di
mov r8d, 3
loc_3F17C:
add rax, r8
loc_3F17F:
add rax, rdi
loc_3F182:
add rcx, 20h ; ' '
cmp rcx, rdx
jnz short loc_3F138
pop rbp
loc_3F18C:
sub eax, esi
retn
|
long long mi_keylength_part(long long a1, unsigned __int8 *a2, long long a3)
{
long long v3; // rcx
unsigned __int8 *v4; // rax
__int16 v5; // di
bool v6; // zf
long long v7; // rdi
long long v8; // r8
v3 = *(_QWORD *)(a1 + 40);
LODWORD(v4) = (_DWORD)a2;
if ( v3 != a3 )
{
v4 = a2;
do
{
v5 = *(_WORD *)(v3 + 18);
if ( (v5 & 0x10) == 0 || (v6 = *v4 == 0, ++v4, !v6) )
{
if ( (v5 & 0x29) != 0 )
{
v7 = *v4;
if ( v7 == 255 )
{
v7 = (unsigned __int16)__ROL2__(*(_WORD *)(v4 + 1), 8);
v8 = 3LL;
}
else
{
v8 = 1LL;
}
v4 += v8;
}
else
{
v7 = *(unsigned __int16 *)(v3 + 20);
}
v4 += v7;
}
v3 += 32LL;
}
while ( v3 != a3 );
}
return (unsigned int)((_DWORD)v4 - (_DWORD)a2);
}
|
_mi_keylength_part:
MOV RCX,qword ptr [RDI + 0x28]
MOV RAX,RSI
CMP RCX,RDX
JZ 0x0013f18c
PUSH RBP
MOV RBP,RSP
MOV RAX,RSI
LAB_0013f138:
MOVZX EDI,word ptr [RCX + 0x12]
TEST DIL,0x10
JZ 0x0013f14b
CMP byte ptr [RAX],0x0
LEA RAX,[RAX + 0x1]
JZ 0x0013f182
LAB_0013f14b:
TEST DIL,0x29
JZ 0x0013f165
MOVZX EDI,byte ptr [RAX]
CMP RDI,0xff
JZ 0x0013f16b
MOV R8D,0x1
JMP 0x0013f17c
LAB_0013f165:
MOVZX EDI,word ptr [RCX + 0x14]
JMP 0x0013f17f
LAB_0013f16b:
MOVZX EDI,word ptr [RAX + 0x1]
ROL DI,0x8
MOVZX EDI,DI
MOV R8D,0x3
LAB_0013f17c:
ADD RAX,R8
LAB_0013f17f:
ADD RAX,RDI
LAB_0013f182:
ADD RCX,0x20
CMP RCX,RDX
JNZ 0x0013f138
POP RBP
LAB_0013f18c:
SUB EAX,ESI
RET
|
int _mi_keylength_part(long param_1,byte *param_2,long param_3)
{
byte bVar1;
long lVar2;
int iVar3;
ulong uVar4;
long lVar5;
iVar3 = (int)param_2;
for (lVar2 = *(long *)(param_1 + 0x28); lVar2 != param_3; lVar2 = lVar2 + 0x20) {
if (((*(ushort *)(lVar2 + 0x12) & 0x10) == 0) ||
(bVar1 = *param_2, param_2 = param_2 + 1, bVar1 != 0)) {
if ((*(ushort *)(lVar2 + 0x12) & 0x29) == 0) {
uVar4 = (ulong)*(ushort *)(lVar2 + 0x14);
}
else {
uVar4 = (ulong)*param_2;
if (uVar4 == 0xff) {
uVar4 = (ulong)(ushort)(*(ushort *)(param_2 + 1) << 8 | *(ushort *)(param_2 + 1) >> 8);
lVar5 = 3;
}
else {
lVar5 = 1;
}
param_2 = param_2 + lVar5;
}
param_2 = param_2 + uVar4;
}
}
return (int)param_2 - iVar3;
}
|
|
18,169
|
ma_ft_del
|
eloqsql/storage/maria/ma_ft_update.c
|
int _ma_ft_del(MARIA_HA *info, uint keynr, uchar *keybuf, const uchar *record,
my_off_t pos)
{
int error= -1;
FT_WORD *wlist;
DBUG_ENTER("_ma_ft_del");
DBUG_PRINT("enter",("keynr: %d",keynr));
if ((wlist= _ma_ft_parserecord(info, keynr, record, &info->ft_memroot)))
error= _ma_ft_erase(info,keynr,keybuf,wlist,pos);
free_root(&info->ft_memroot, MYF(MY_MARK_BLOCKS_FREE));
DBUG_PRINT("exit",("Return: %d",error));
DBUG_RETURN(error);
}
|
O0
|
c
|
ma_ft_del:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl $0xffffffff, -0x2c(%rbp) # imm = 0xFFFFFFFF
jmp 0x79504
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x20(%rbp), %rdx
movq -0x8(%rbp), %rcx
addq $0x328, %rcx # imm = 0x328
callq 0x78d70
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x79544
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %r8
callq 0x79340
movl %eax, -0x2c(%rbp)
movq -0x8(%rbp), %rdi
addq $0x328, %rdi # imm = 0x328
movl $0x2, %esi
callq 0xf5540
jmp 0x7955b
jmp 0x7955d
movl -0x2c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
|
_ma_ft_del:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_2C], 0FFFFFFFFh
jmp short $+2
loc_79504:
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_8]
add rcx, 328h
call _ma_ft_parserecord
mov [rbp+var_38], rax
cmp rax, 0
jz short loc_79544
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_38]
mov r8, [rbp+var_28]
call _ma_ft_erase
mov [rbp+var_2C], eax
loc_79544:
mov rdi, [rbp+var_8]
add rdi, 328h
mov esi, 2
call free_root
jmp short $+2
loc_7955B:
jmp short $+2
loc_7955D:
mov eax, [rbp+var_2C]
mov [rbp+var_3C], eax
mov eax, [rbp+var_3C]
add rsp, 40h
pop rbp
retn
|
long long ma_ft_del(long long *a1, unsigned int a2, _BYTE *a3, long long a4, long long a5)
{
_QWORD *v6; // [rsp+8h] [rbp-38h]
unsigned int v7; // [rsp+14h] [rbp-2Ch]
v7 = -1;
v6 = (_QWORD *)ma_ft_parserecord(a1, a2, a4, (long long)(a1 + 101));
if ( v6 )
v7 = ma_ft_erase(a1, a2, a3, v6, a5);
free_root(a1 + 101, 2LL);
return v7;
}
|
_ma_ft_del:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV dword ptr [RBP + -0x2c],0xffffffff
JMP 0x00179504
LAB_00179504:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
ADD RCX,0x328
CALL 0x00178d70
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JZ 0x00179544
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + -0x28]
CALL 0x00179340
MOV dword ptr [RBP + -0x2c],EAX
LAB_00179544:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x328
MOV ESI,0x2
CALL 0x001f5540
JMP 0x0017955b
LAB_0017955b:
JMP 0x0017955d
LAB_0017955d:
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x3c],EAX
MOV EAX,dword ptr [RBP + -0x3c]
ADD RSP,0x40
POP RBP
RET
|
int4
_ma_ft_del(long param_1,int4 param_2,int8 param_3,int8 param_4,int8 param_5)
{
long lVar1;
int4 local_34;
local_34 = 0xffffffff;
lVar1 = _ma_ft_parserecord(param_1,param_2,param_4,param_1 + 0x328);
if (lVar1 != 0) {
local_34 = _ma_ft_erase(param_1,param_2,param_3,lVar1,param_5);
}
free_root(param_1 + 0x328,2);
return local_34;
}
|
|
18,170
|
plan
|
eloqsql/unittest/mytap/tap.c
|
void
plan(int count)
{
char *config= getenv("MYTAP_CONFIG");
size_t i;
start_time= start_timer();
if (config)
skip_big_tests= strcmp(config, "big");
setvbuf(tapout, 0, _IONBF, 0); /* provide output at once */
/*
Install signal handler
*/
for (i= 0; i < sizeof(install_signal)/sizeof(*install_signal); ++i)
signal(install_signal[i].signo, install_signal[i].handler);
g_test.plan= count;
switch (count)
{
case NO_PLAN:
break;
default:
if (count > 0)
{
fprintf(tapout, "1..%d\n", count);
fflush(tapout);
}
break;
}
}
|
O0
|
c
|
plan:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
leaq 0x7a0eb(%rip), %rdi # 0x153dad
callq 0x2a5e0
movq %rax, -0x10(%rbp)
callq 0xd9db0
movq %rax, 0xba09c9(%rip) # 0xc7a6a0
cmpq $0x0, -0x10(%rbp)
je 0xd9cf4
movq -0x10(%rbp), %rdi
leaq 0x7e9c6(%rip), %rsi # 0x1586af
callq 0x2a660
movl %eax, 0x1e59dc(%rip) # 0x2bf6d0
movq 0x1e32d5(%rip), %rax # 0x2bcfd0
movq (%rax), %rdi
xorl %eax, %eax
movl %eax, %ecx
movl $0x2, %edx
movq %rcx, %rsi
callq 0x2a3a0
movq $0x0, -0x18(%rbp)
cmpq $0xb, -0x18(%rbp)
jae 0xd9d5b
movq -0x18(%rbp), %rcx
leaq 0x1e59b7(%rip), %rax # 0x2bf6e0
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %edi
movq -0x18(%rbp), %rcx
leaq 0x1e59a3(%rip), %rax # 0x2bf6e0
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rsi
callq 0x2a300
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0xd9d17
movl -0x4(%rbp), %eax
movl %eax, 0xba08ac(%rip) # 0xc7a610
movl -0x4(%rbp), %eax
testl %eax, %eax
jne 0xd9d6f
jmp 0xd9d6d
jmp 0xd9da1
cmpl $0x0, -0x4(%rbp)
jle 0xd9d9f
movq 0x1e3254(%rip), %rax # 0x2bcfd0
movq (%rax), %rdi
movl -0x4(%rbp), %edx
leaq 0x7a031(%rip), %rsi # 0x153dba
movb $0x0, %al
callq 0x2a180
movq 0x1e3239(%rip), %rax # 0x2bcfd0
movq (%rax), %rdi
callq 0x2a3e0
jmp 0xd9da1
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
plan:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
lea rdi, aMytapConfig; "MYTAP_CONFIG"
call _getenv
mov [rbp+var_10], rax
call start_timer
mov cs:start_time, rax
cmp [rbp+var_10], 0
jz short loc_D9CF4
mov rdi, [rbp+var_10]
lea rsi, aUndoRecordTooB+10h; "big"
call _strcmp
mov cs:skip_big_tests, eax
loc_D9CF4:
mov rax, cs:stdout_ptr
mov rdi, [rax]
xor eax, eax
mov ecx, eax
mov edx, 2
mov rsi, rcx
call _setvbuf
mov [rbp+var_18], 0
loc_D9D17:
cmp [rbp+var_18], 0Bh
jnb short loc_D9D5B
mov rcx, [rbp+var_18]
lea rax, install_signal
shl rcx, 4
add rax, rcx
mov edi, [rax]
mov rcx, [rbp+var_18]
lea rax, install_signal
shl rcx, 4
add rax, rcx
mov rsi, [rax+8]
call _signal
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
jmp short loc_D9D17
loc_D9D5B:
mov eax, [rbp+var_4]
mov cs:g_test, eax
mov eax, [rbp+var_4]
test eax, eax
jnz short loc_D9D6F
jmp short $+2
loc_D9D6D:
jmp short loc_D9DA1
loc_D9D6F:
cmp [rbp+var_4], 0
jle short loc_D9D9F
mov rax, cs:stdout_ptr
mov rdi, [rax]
mov edx, [rbp+var_4]
lea rsi, a1D; "1..%d\n"
mov al, 0
call _fprintf
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
loc_D9D9F:
jmp short $+2
loc_D9DA1:
add rsp, 20h
pop rbp
retn
|
long long plan(int a1)
{
long long result; // rax
unsigned long long i; // [rsp+8h] [rbp-18h]
long long v3; // [rsp+10h] [rbp-10h]
v3 = getenv("MYTAP_CONFIG");
start_time = start_timer();
if ( v3 )
skip_big_tests = strcmp(v3, "big");
setvbuf(stdout, 0LL, 2LL);
for ( i = 0LL; i < 0xB; ++i )
signal(*((unsigned int *)&install_signal + 4 * i), *((_QWORD *)&install_signal + 2 * i + 1));
g_test = a1;
result = (unsigned int)a1;
if ( a1 > 0 )
{
fprintf(stdout, "1..%d\n", a1);
return fflush(stdout);
}
return result;
}
|
plan:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
LEA RDI,[0x253dad]
CALL 0x0012a5e0
MOV qword ptr [RBP + -0x10],RAX
CALL 0x001d9db0
MOV qword ptr [0x00d7a6a0],RAX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x001d9cf4
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x2586af]
CALL 0x0012a660
MOV dword ptr [0x003bf6d0],EAX
LAB_001d9cf4:
MOV RAX,qword ptr [0x003bcfd0]
MOV RDI,qword ptr [RAX]
XOR EAX,EAX
MOV ECX,EAX
MOV EDX,0x2
MOV RSI,RCX
CALL 0x0012a3a0
MOV qword ptr [RBP + -0x18],0x0
LAB_001d9d17:
CMP qword ptr [RBP + -0x18],0xb
JNC 0x001d9d5b
MOV RCX,qword ptr [RBP + -0x18]
LEA RAX,[0x3bf6e0]
SHL RCX,0x4
ADD RAX,RCX
MOV EDI,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
LEA RAX,[0x3bf6e0]
SHL RCX,0x4
ADD RAX,RCX
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x0012a300
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001d9d17
LAB_001d9d5b:
MOV EAX,dword ptr [RBP + -0x4]
MOV dword ptr [0x00d7a610],EAX
MOV EAX,dword ptr [RBP + -0x4]
TEST EAX,EAX
JNZ 0x001d9d6f
JMP 0x001d9d6d
LAB_001d9d6d:
JMP 0x001d9da1
LAB_001d9d6f:
CMP dword ptr [RBP + -0x4],0x0
JLE 0x001d9d9f
MOV RAX,qword ptr [0x003bcfd0]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [RBP + -0x4]
LEA RSI,[0x253dba]
MOV AL,0x0
CALL 0x0012a180
MOV RAX,qword ptr [0x003bcfd0]
MOV RDI,qword ptr [RAX]
CALL 0x0012a3e0
LAB_001d9d9f:
JMP 0x001d9da1
LAB_001d9da1:
ADD RSP,0x20
POP RBP
RET
|
void plan(uint param_1)
{
char *__s1;
ulong local_20;
__s1 = getenv("MYTAP_CONFIG");
start_time = start_timer();
if (__s1 != (char *)0x0) {
skip_big_tests = strcmp(__s1,"big");
}
setvbuf(*(FILE **)PTR_stdout_003bcfd0,(char *)0x0,2,0);
for (local_20 = 0; local_20 < 0xb; local_20 = local_20 + 1) {
signal(*(int *)(install_signal + local_20 * 0x10),
*(__sighandler_t *)(install_signal + local_20 * 0x10 + 8));
}
g_test = param_1;
if ((param_1 != 0) && (0 < (int)param_1)) {
fprintf(*(FILE **)PTR_stdout_003bcfd0,"1..%d\n",(ulong)param_1);
fflush(*(FILE **)PTR_stdout_003bcfd0);
}
return;
}
|
|
18,171
|
nglog::CapturedStream::CapturedStream(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
|
ng-log[P]ng-log/src/googletest.h
|
CapturedStream(int fd, string filename)
: fd_(fd), filename_(std::move(filename)) {
Capture();
}
|
O3
|
c
|
nglog::CapturedStream::CapturedStream(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %esi, (%rdi)
movl $0xffffffff, 0x4(%rdi) # imm = 0xFFFFFFFF
leaq 0x18(%rdi), %r12
movq %r12, 0x8(%rdi)
movq (%rdx), %rcx
leaq 0x10(%rdx), %rax
cmpq %rax, %rcx
je 0x9d5f
movq %rcx, 0x8(%rbx)
movq (%rax), %rcx
movq %rcx, 0x18(%rbx)
jmp 0x9d67
movups (%rax), %xmm0
movups %xmm0, (%r12)
leaq 0x4(%rbx), %r14
movq 0x8(%rdx), %rcx
movq %rcx, 0x10(%rbx)
movq %rax, (%rdx)
movq $0x0, 0x8(%rdx)
movb $0x0, 0x10(%rdx)
movq %rbx, %rdi
callq 0x9dbe
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r15
movq 0x8(%rbx), %rdi
cmpq %r12, %rdi
je 0x9da7
callq 0x7670
cmpl $-0x1, (%r14)
je 0x9db5
movq %r14, %rdi
callq 0x9a56
movq %r15, %rdi
callq 0x79b0
nop
|
_ZN5nglog14CapturedStreamC2EiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rdi
mov [rdi], esi
mov dword ptr [rdi+4], 0FFFFFFFFh
lea r12, [rdi+18h]
mov [rdi+8], r12
mov rcx, [rdx]
lea rax, [rdx+10h]
cmp rcx, rax
jz short loc_9D5F
mov [rbx+8], rcx
mov rcx, [rax]
mov [rbx+18h], rcx
jmp short loc_9D67
loc_9D5F:
movups xmm0, xmmword ptr [rax]
movups xmmword ptr [r12], xmm0
loc_9D67:
lea r14, [rbx+4]
mov rcx, [rdx+8]
mov [rbx+10h], rcx
mov [rdx], rax
mov qword ptr [rdx+8], 0
mov byte ptr [rdx+10h], 0
mov rdi, rbx; this
call _ZN5nglog14CapturedStream7CaptureEv; nglog::CapturedStream::Capture(void)
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
mov r15, rax
mov rdi, [rbx+8]
cmp rdi, r12
jz short loc_9DA7
call _free
loc_9DA7:
cmp dword ptr [r14], 0FFFFFFFFh
jz short loc_9DB5
mov rdi, r14; this
call _ZN5nglog5tools14FileDescriptor12unsafe_closeEv; nglog::tools::FileDescriptor::unsafe_close(void)
loc_9DB5:
mov rdi, r15
call __Unwind_Resume
|
long long nglog::CapturedStream::CapturedStream(nglog::CapturedStream *this, int a2, long long a3)
{
_OWORD *v3; // rax
*(_DWORD *)this = a2;
*((_DWORD *)this + 1) = -1;
*((_QWORD *)this + 1) = (char *)this + 24;
v3 = (_OWORD *)(a3 + 16);
if ( *(_QWORD *)a3 == a3 + 16 )
{
*(_OWORD *)((char *)this + 24) = *v3;
}
else
{
*((_QWORD *)this + 1) = *(_QWORD *)a3;
*((_QWORD *)this + 3) = *(_QWORD *)v3;
}
*((_QWORD *)this + 2) = *(_QWORD *)(a3 + 8);
*(_QWORD *)a3 = v3;
*(_QWORD *)(a3 + 8) = 0LL;
*(_BYTE *)(a3 + 16) = 0;
return nglog::CapturedStream::Capture(this);
}
|
CapturedStream:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV dword ptr [RDI],ESI
MOV dword ptr [RDI + 0x4],0xffffffff
LEA R12,[RDI + 0x18]
MOV qword ptr [RDI + 0x8],R12
MOV RCX,qword ptr [RDX]
LEA RAX,[RDX + 0x10]
CMP RCX,RAX
JZ 0x00109d5f
MOV qword ptr [RBX + 0x8],RCX
MOV RCX,qword ptr [RAX]
MOV qword ptr [RBX + 0x18],RCX
JMP 0x00109d67
LAB_00109d5f:
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS xmmword ptr [R12],XMM0
LAB_00109d67:
LEA R14,[RBX + 0x4]
MOV RCX,qword ptr [RDX + 0x8]
MOV qword ptr [RBX + 0x10],RCX
MOV qword ptr [RDX],RAX
MOV qword ptr [RDX + 0x8],0x0
MOV byte ptr [RDX + 0x10],0x0
LAB_00109d82:
MOV RDI,RBX
CALL 0x00109dbe
LAB_00109d8a:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* nglog::CapturedStream::CapturedStream(int, std::__cxx11::string) */
void __thiscall
nglog::CapturedStream::CapturedStream(CapturedStream *this,int4 param_1,long *param_3)
{
long *plVar1;
long lVar2;
*(int4 *)this = param_1;
*(int4 *)(this + 4) = 0xffffffff;
*(CapturedStream **)(this + 8) = this + 0x18;
plVar1 = param_3 + 2;
if ((long *)*param_3 == plVar1) {
lVar2 = param_3[3];
*(long *)(this + 0x18) = *plVar1;
*(long *)(this + 0x20) = lVar2;
}
else {
*(long *)(this + 8) = *param_3;
*(long *)(this + 0x18) = *plVar1;
}
*(long *)(this + 0x10) = param_3[1];
*param_3 = (long)plVar1;
param_3[1] = 0;
*(int1 *)(param_3 + 2) = 0;
/* try { // try from 00109d82 to 00109d89 has its CatchHandler @ 00109d96 */
Capture(this);
return;
}
|
|
18,172
|
testing::TestSuite::AddTestInfo(testing::TestInfo*)
|
seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc
|
void TestSuite::AddTestInfo(TestInfo* test_info) {
test_info_list_.push_back(test_info);
test_indices_.push_back(static_cast<int>(test_indices_.size()));
}
|
O1
|
cpp
|
testing::TestSuite::AddTestInfo(testing::TestInfo*):
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rax
movq %rdi, %rbx
movq %rsi, 0x8(%rsp)
movq 0x38(%rdi), %rsi
cmpq 0x40(%rdi), %rsi
je 0x259ea
movq %rax, (%rsi)
addq $0x8, 0x38(%rbx)
jmp 0x259f8
leaq 0x30(%rbx), %rdi
leaq 0x8(%rsp), %rdx
callq 0x3eaa4
movq 0x50(%rbx), %rsi
movq %rsi, %rax
subq 0x48(%rbx), %rax
shrq $0x2, %rax
movl %eax, 0x4(%rsp)
cmpq 0x58(%rbx), %rsi
je 0x25a1d
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x50(%rbx)
jmp 0x25a2e
addq $0x48, %rbx
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
callq 0x3ebe0
addq $0x10, %rsp
popq %rbx
retq
|
_ZN7testing9TestSuite11AddTestInfoEPNS_8TestInfoE:
push rbx
sub rsp, 10h
mov rax, rsi
mov rbx, rdi
mov [rsp+18h+var_10], rsi
mov rsi, [rdi+38h]
cmp rsi, [rdi+40h]
jz short loc_259EA
mov [rsi], rax
add qword ptr [rbx+38h], 8
jmp short loc_259F8
loc_259EA:
lea rdi, [rbx+30h]
lea rdx, [rsp+18h+var_10]
call _ZNSt6vectorIPN7testing8TestInfoESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_; std::vector<testing::TestInfo *>::_M_realloc_insert<testing::TestInfo * const&>(__gnu_cxx::__normal_iterator<testing::TestInfo **,std::vector<testing::TestInfo *>>,testing::TestInfo * const&)
loc_259F8:
mov rsi, [rbx+50h]
mov rax, rsi
sub rax, [rbx+48h]
shr rax, 2
mov [rsp+18h+var_14], eax
cmp rsi, [rbx+58h]
jz short loc_25A1D
mov [rsi], eax
add rsi, 4
mov [rbx+50h], rsi
jmp short loc_25A2E
loc_25A1D:
add rbx, 48h ; 'H'
lea rdx, [rsp+18h+var_14]
mov rdi, rbx
call _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int &&)
loc_25A2E:
add rsp, 10h
pop rbx
retn
|
unsigned long long testing::TestSuite::AddTestInfo(testing::TestSuite *this, testing::TestInfo *a2)
{
_QWORD *v3; // rsi
_DWORD *v4; // rsi
unsigned long long result; // rax
int v6; // [rsp+4h] [rbp-14h] BYREF
testing::TestInfo *v7; // [rsp+8h] [rbp-10h] BYREF
v7 = a2;
v3 = (_QWORD *)*((_QWORD *)this + 7);
if ( v3 == *((_QWORD **)this + 8) )
{
std::vector<testing::TestInfo *>::_M_realloc_insert<testing::TestInfo * const&>((char *)this + 48, v3, &v7);
}
else
{
*v3 = a2;
*((_QWORD *)this + 7) += 8LL;
}
v4 = (_DWORD *)*((_QWORD *)this + 10);
result = ((unsigned long long)v4 - *((_QWORD *)this + 9)) >> 2;
v6 = result;
if ( v4 == *((_DWORD **)this + 11) )
return std::vector<int>::_M_realloc_insert<int>((char *)this + 72, v4, &v6);
*v4 = result;
*((_QWORD *)this + 10) = v4 + 1;
return result;
}
|
AddTestInfo:
PUSH RBX
SUB RSP,0x10
MOV RAX,RSI
MOV RBX,RDI
MOV qword ptr [RSP + 0x8],RSI
MOV RSI,qword ptr [RDI + 0x38]
CMP RSI,qword ptr [RDI + 0x40]
JZ 0x001259ea
MOV qword ptr [RSI],RAX
ADD qword ptr [RBX + 0x38],0x8
JMP 0x001259f8
LAB_001259ea:
LEA RDI,[RBX + 0x30]
LEA RDX,[RSP + 0x8]
CALL 0x0013eaa4
LAB_001259f8:
MOV RSI,qword ptr [RBX + 0x50]
MOV RAX,RSI
SUB RAX,qword ptr [RBX + 0x48]
SHR RAX,0x2
MOV dword ptr [RSP + 0x4],EAX
CMP RSI,qword ptr [RBX + 0x58]
JZ 0x00125a1d
MOV dword ptr [RSI],EAX
ADD RSI,0x4
MOV qword ptr [RBX + 0x50],RSI
JMP 0x00125a2e
LAB_00125a1d:
ADD RBX,0x48
LEA RDX,[RSP + 0x4]
MOV RDI,RBX
CALL 0x0013ebe0
LAB_00125a2e:
ADD RSP,0x10
POP RBX
RET
|
/* testing::TestSuite::AddTestInfo(testing::TestInfo*) */
void __thiscall testing::TestSuite::AddTestInfo(TestSuite *this,TestInfo *param_1)
{
int8 *puVar1;
int4 *puVar2;
int4 local_14;
TestInfo *local_10;
puVar1 = *(int8 **)(this + 0x38);
local_10 = param_1;
if (puVar1 == *(int8 **)(this + 0x40)) {
std::vector<testing::TestInfo*,std::allocator<testing::TestInfo*>>::
_M_realloc_insert<testing::TestInfo*const&>
((vector<testing::TestInfo*,std::allocator<testing::TestInfo*>> *)(this + 0x30),puVar1
,&local_10);
}
else {
*puVar1 = param_1;
*(long *)(this + 0x38) = *(long *)(this + 0x38) + 8;
}
puVar2 = *(int4 **)(this + 0x50);
local_14 = (int4)((ulong)((long)puVar2 - *(long *)(this + 0x48)) >> 2);
if (puVar2 == *(int4 **)(this + 0x58)) {
std::vector<int,std::allocator<int>>::_M_realloc_insert<int>
((vector<int,std::allocator<int>> *)(this + 0x48),puVar2,&local_14);
}
else {
*puVar2 = local_14;
*(int4 **)(this + 0x50) = puVar2 + 1;
}
return;
}
|
|
18,173
|
minja::SetTemplateToken::SetTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::shared_ptr<minja::Expression>&&)
|
llama.cpp/common/minja/minja.hpp
|
SetTemplateToken(const Location & loc, SpaceHandling pre, SpaceHandling post, const std::string & ns, const std::vector<std::string> & vns, std::shared_ptr<Expression> && v)
: TemplateToken(Type::Set, loc, pre, post), ns(ns), var_names(vns), value(std::move(v)) {}
|
O3
|
cpp
|
minja::SetTemplateToken::SetTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::shared_ptr<minja::Expression>&&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r9, %r14
movq %rdi, %rbx
leaq 0x730a6(%rip), %r12 # 0x163920
addq $0x10, %r12
movq %r12, (%rdi)
movl $0xa, 0x8(%rdi)
movq (%rsi), %rax
movq %rax, 0x10(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x18(%rdi)
testq %rax, %rax
je 0xf08b1
movq 0x746f5(%rip), %rdi # 0x164f98
cmpb $0x0, (%rdi)
je 0xf08ad
incl 0x8(%rax)
jmp 0xf08b1
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x20(%rbx)
movl %edx, 0x28(%rbx)
movl %ecx, 0x2c(%rbx)
leaq 0x73972(%rip), %rax # 0x164238
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x30(%rbx), %r15
leaq 0x40(%rbx), %r13
movq %r13, 0x30(%rbx)
movq (%r8), %rsi
movq 0x8(%r8), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x28e14
leaq 0x50(%rbx), %rdi
movq %r14, %rsi
callq 0x674b0
movq 0x30(%rsp), %rax
xorl %ecx, %ecx
movq %rcx, 0x70(%rbx)
movups (%rax), %xmm0
movq %rcx, 0x8(%rax)
movups %xmm0, 0x68(%rbx)
movq %rcx, (%rax)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%r15), %rdi
cmpq %r13, %rdi
je 0xf0936
movq (%r13), %rsi
incq %rsi
callq 0x21190
jmp 0xf0936
movq %rax, %r14
movq %r12, (%rbx)
addq $0x18, %rbx
movq %rbx, %rdi
callq 0x72cea
movq %r14, %rdi
callq 0x21c20
nop
|
_ZN5minja16SetTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISA_SaISA_EEOSt10shared_ptrINS_10ExpressionEE:
push r15
push r14
push r13
push r12
push rbx
mov r14, r9
mov rbx, rdi
lea r12, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken
add r12, 10h
mov [rdi], r12
mov dword ptr [rdi+8], 0Ah
mov rax, [rsi]
mov [rdi+10h], rax
mov rax, [rsi+8]
mov [rdi+18h], rax
test rax, rax
jz short loc_F08B1
mov rdi, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rdi], 0
jz short loc_F08AD
inc dword ptr [rax+8]
jmp short loc_F08B1
loc_F08AD:
lock inc dword ptr [rax+8]
loc_F08B1:
mov rax, [rsi+10h]
mov [rbx+20h], rax
mov [rbx+28h], edx
mov [rbx+2Ch], ecx
lea rax, _ZTVN5minja16SetTemplateTokenE; `vtable for'minja::SetTemplateToken
add rax, 10h
mov [rbx], rax
lea r15, [rbx+30h]
lea r13, [rbx+40h]
mov [rbx+30h], r13
mov rsi, [r8]
mov rdx, [r8+8]
add rdx, rsi
mov rdi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rdi, [rbx+50h]
mov rsi, r14
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
mov rax, [rsp+28h+arg_0]
xor ecx, ecx
mov [rbx+70h], rcx
movups xmm0, xmmword ptr [rax]
mov [rax+8], rcx
movups xmmword ptr [rbx+68h], xmm0
mov [rax], rcx
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r14, rax
mov rdi, [r15]; void *
cmp rdi, r13
jz short loc_F0936
mov rsi, [r13+0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_F0936
mov r14, rax
loc_F0936:
mov [rbx], r12
add rbx, 18h
mov rdi, rbx
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, r14
call __Unwind_Resume
|
long long minja::SetTemplateToken::SetTemplateToken(
long long a1,
_QWORD *a2,
int a3,
int a4,
long long a5,
_QWORD *a6,
__int128 *a7)
{
long long v8; // rax
long long result; // rax
__int128 v10; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::TemplateToken + 2;
*(_DWORD *)(a1 + 8) = 10;
*(_QWORD *)(a1 + 16) = *a2;
v8 = a2[1];
*(_QWORD *)(a1 + 24) = v8;
if ( v8 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v8 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v8 + 8));
}
*(_QWORD *)(a1 + 32) = a2[2];
*(_DWORD *)(a1 + 40) = a3;
*(_DWORD *)(a1 + 44) = a4;
*(_QWORD *)a1 = &`vtable for'minja::SetTemplateToken + 2;
*(_QWORD *)(a1 + 48) = a1 + 64;
std::string::_M_construct<char *>(a1 + 48, *(_BYTE **)a5, *(_QWORD *)a5 + *(_QWORD *)(a5 + 8));
std::vector<std::string>::vector(a1 + 80, a6);
result = (long long)a7;
*(_QWORD *)(a1 + 112) = 0LL;
v10 = *a7;
*((_QWORD *)a7 + 1) = 0LL;
*(_OWORD *)(a1 + 104) = v10;
*(_QWORD *)a7 = 0LL;
return result;
}
|
SetTemplateToken:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R14,R9
MOV RBX,RDI
LEA R12,[0x263920]
ADD R12,0x10
MOV qword ptr [RDI],R12
MOV dword ptr [RDI + 0x8],0xa
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x10],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x18],RAX
TEST RAX,RAX
JZ 0x001f08b1
MOV RDI,qword ptr [0x00264f98]
CMP byte ptr [RDI],0x0
JZ 0x001f08ad
INC dword ptr [RAX + 0x8]
JMP 0x001f08b1
LAB_001f08ad:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001f08b1:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RBX + 0x20],RAX
MOV dword ptr [RBX + 0x28],EDX
MOV dword ptr [RBX + 0x2c],ECX
LEA RAX,[0x264238]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LEA R15,[RBX + 0x30]
LEA R13,[RBX + 0x40]
MOV qword ptr [RBX + 0x30],R13
MOV RSI,qword ptr [R8]
MOV RDX,qword ptr [R8 + 0x8]
ADD RDX,RSI
LAB_001f08e3:
MOV RDI,R15
CALL 0x00128e14
LEA RDI,[RBX + 0x50]
LAB_001f08ef:
MOV RSI,R14
CALL 0x001674b0
LAB_001f08f7:
MOV RAX,qword ptr [RSP + 0x30]
XOR ECX,ECX
MOV qword ptr [RBX + 0x70],RCX
MOVUPS XMM0,xmmword ptr [RAX]
MOV qword ptr [RAX + 0x8],RCX
MOVUPS xmmword ptr [RBX + 0x68],XMM0
MOV qword ptr [RAX],RCX
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* minja::SetTemplateToken::SetTemplateToken(minja::Location const&, minja::SpaceHandling,
minja::SpaceHandling, std::__cxx11::string const&, std::vector<std::__cxx11::string,
std::allocator<std::__cxx11::string > > const&, std::shared_ptr<minja::Expression>&&) */
void __thiscall
minja::SetTemplateToken::SetTemplateToken
(SetTemplateToken *this,int8 *param_1,int4 param_3,int4 param_4,
long *param_5,vector *param_6,int8 *param_7)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR__TemplateToken_00263930;
*(int4 *)(this + 8) = 10;
*(int8 *)(this + 0x10) = *param_1;
lVar1 = param_1[1];
*(long *)(this + 0x18) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_00264f98 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x20) = param_1[2];
*(int4 *)(this + 0x28) = param_3;
*(int4 *)(this + 0x2c) = param_4;
*(int ***)this = &PTR__SetTemplateToken_00264248;
*(SetTemplateToken **)(this + 0x30) = this + 0x40;
/* try { // try from 001f08e3 to 001f08ea has its CatchHandler @ 001f0933 */
std::__cxx11::string::_M_construct<char*>(this + 0x30,*param_5,param_5[1] + *param_5);
/* try { // try from 001f08ef to 001f08f6 has its CatchHandler @ 001f091a */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x50),
param_6);
*(int8 *)(this + 0x70) = 0;
uVar2 = param_7[1];
param_7[1] = 0;
*(int8 *)(this + 0x68) = *param_7;
*(int8 *)(this + 0x70) = uVar2;
*param_7 = 0;
return;
}
|
|
18,174
|
ImPlot::TagX(double, ImVec4 const&, char const*, ...)
|
zkingston[P]unknot/build_O1/_deps/implot-src/implot.cpp
|
IMPLOT_API void TagX(double x, const ImVec4& color, const char* fmt, ...) {
ImPlotContext& gp = *GImPlot;
IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "TagX() needs to be called between BeginPlot() and EndPlot()!");
va_list args;
va_start(args, fmt);
TagV(gp.CurrentPlot->CurrentX,x,color,fmt,args);
va_end(args);
}
|
O1
|
cpp
|
ImPlot::TagX(double, ImVec4 const&, char const*, ...):
pushq %r15
pushq %r14
pushq %rbx
subq $0xe0, %rsp
movq %rsi, %rbx
movq %rdi, %r14
testb %al, %al
je 0xc1040
movaps %xmm1, 0x70(%rsp)
movaps %xmm2, 0x80(%rsp)
movaps %xmm3, 0x90(%rsp)
movaps %xmm4, 0xa0(%rsp)
movaps %xmm5, 0xb0(%rsp)
movaps %xmm6, 0xc0(%rsp)
movaps %xmm7, 0xd0(%rsp)
movq %r9, 0x58(%rsp)
movq %r8, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq 0x275c45(%rip), %r15 # 0x336ca0
cmpq $0x0, 0x50(%r15)
jne 0xc107a
leaq 0x1d9aed(%rip), %rdi # 0x29ab56
movsd %xmm0, 0x8(%rsp)
callq 0x2161f4
movsd 0x8(%rsp), %xmm0
leaq 0x30(%rsp), %rax
leaq 0x10(%rsp), %rcx
movq %rax, 0x10(%rcx)
leaq 0x100(%rsp), %rax
movq %rax, 0x8(%rcx)
movabsq $0x4000000010, %rax # imm = 0x4000000010
movq %rax, (%rcx)
movq 0x50(%r15), %rax
movl 0x978(%rax), %edi
movq %r14, %rsi
movq %rbx, %rdx
callq 0xc0d76
addq $0xe0, %rsp
popq %rbx
popq %r14
popq %r15
retq
|
_ZN6ImPlot4TagXEdRK6ImVec4PKcz:
push r15
push r14
push rbx
sub rsp, 0E0h
mov rbx, rsi
mov r14, rdi
test al, al
jz short loc_C1040
movaps [rsp+0F8h+var_88], xmm1
movaps [rsp+0F8h+var_78], xmm2
movaps [rsp+0F8h+var_68], xmm3
movaps [rsp+0F8h+var_58], xmm4
movaps [rsp+0F8h+var_48], xmm5
movaps [rsp+0F8h+var_38], xmm6
movaps [rsp+0F8h+var_28], xmm7
loc_C1040:
mov [rsp+0F8h+var_A0], r9
mov [rsp+0F8h+var_A8], r8
mov [rsp+0F8h+var_B0], rcx
mov [rsp+0F8h+var_B8], rdx
mov r15, cs:GImPlot
cmp qword ptr [r15+50h], 0
jnz short loc_C107A
lea rdi, aTagxNeedsToBeC; "TagX() needs to be called between Begin"...
movsd [rsp+0F8h+var_F0], xmm0
call _ZN5ImGui8ErrorLogEPKc; ImGui::ErrorLog(char const*)
movsd xmm0, [rsp+0F8h+var_F0]
loc_C107A:
lea rax, [rsp+0F8h+var_C8]
lea rcx, [rsp+0F8h+var_E8]
mov [rcx+10h], rax
lea rax, [rsp+0F8h+arg_0]
mov [rcx+8], rax
mov rax, 4000000010h
mov [rcx], rax
mov rax, [r15+50h]
mov edi, [rax+978h]; int
mov rsi, r14
mov rdx, rbx
call _ZN6ImPlot4TagVEidRK6ImVec4PKcP13__va_list_tag; ImPlot::TagV(int,double,ImVec4 const&,char const*,__va_list_tag *)
add rsp, 0E0h
pop rbx
pop r14
pop r15
retn
|
long long ImPlot::TagX(long long a1, const char *a2, double a3, ...)
{
ImGui *v3; // r15
va_list va; // [rsp+10h] [rbp-E8h] BYREF
v3 = GImPlot;
if ( !*((_QWORD *)GImPlot + 10) )
ImGui::ErrorLog((ImGui *)"TagX() needs to be called between BeginPlot() and EndPlot()!", a2);
va_start(va, a3);
return ImPlot::TagV((ImPlot *)*(unsigned int *)(*((_QWORD *)v3 + 10) + 2424LL), a1, a2, va, a3);
}
|
TagX:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xe0
MOV RBX,RSI
MOV R14,RDI
TEST AL,AL
JZ 0x001c1040
MOVAPS xmmword ptr [RSP + 0x70],XMM1
MOVAPS xmmword ptr [RSP + 0x80],XMM2
MOVAPS xmmword ptr [RSP + 0x90],XMM3
MOVAPS xmmword ptr [RSP + 0xa0],XMM4
MOVAPS xmmword ptr [RSP + 0xb0],XMM5
MOVAPS xmmword ptr [RSP + 0xc0],XMM6
MOVAPS xmmword ptr [RSP + 0xd0],XMM7
LAB_001c1040:
MOV qword ptr [RSP + 0x58],R9
MOV qword ptr [RSP + 0x50],R8
MOV qword ptr [RSP + 0x48],RCX
MOV qword ptr [RSP + 0x40],RDX
MOV R15,qword ptr [0x00436ca0]
CMP qword ptr [R15 + 0x50],0x0
JNZ 0x001c107a
LEA RDI,[0x39ab56]
MOVSD qword ptr [RSP + 0x8],XMM0
CALL 0x003161f4
MOVSD XMM0,qword ptr [RSP + 0x8]
LAB_001c107a:
LEA RAX,[RSP + 0x30]
LEA RCX,[RSP + 0x10]
MOV qword ptr [RCX + 0x10],RAX
LEA RAX,[RSP + 0x100]
MOV qword ptr [RCX + 0x8],RAX
MOV RAX,0x4000000010
MOV qword ptr [RCX],RAX
MOV RAX,qword ptr [R15 + 0x50]
MOV EDI,dword ptr [RAX + 0x978]
MOV RSI,R14
MOV RDX,RBX
CALL 0x001c0d76
ADD RSP,0xe0
POP RBX
POP R14
POP R15
RET
|
/* ImPlot::TagX(double, ImVec4 const&, char const*, ...) */
void ImPlot::TagX(double param_1,ImVec4 *param_2,char *param_3,...)
{
long lVar1;
char in_AL;
int8 in_RCX;
int8 in_RDX;
int8 in_R8;
int8 in_R9;
int8 in_XMM1_Qa;
int8 in_XMM2_Qa;
int8 in_XMM3_Qa;
int8 in_XMM4_Qa;
int8 in_XMM5_Qa;
int8 in_XMM6_Qa;
int8 in_XMM7_Qa;
int8 local_e8;
int1 *local_e0;
int1 *local_d8;
int1 local_c8 [16];
int8 local_b8;
int8 local_b0;
int8 local_a8;
int8 local_a0;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int8 local_38;
int8 local_28;
lVar1 = GImPlot;
if (in_AL != '\0') {
local_88 = in_XMM1_Qa;
local_78 = in_XMM2_Qa;
local_68 = in_XMM3_Qa;
local_58 = in_XMM4_Qa;
local_48 = in_XMM5_Qa;
local_38 = in_XMM6_Qa;
local_28 = in_XMM7_Qa;
}
local_b8 = in_RDX;
local_b0 = in_RCX;
local_a8 = in_R8;
local_a0 = in_R9;
if (*(long *)(GImPlot + 0x50) == 0) {
ImGui::ErrorLog("TagX() needs to be called between BeginPlot() and EndPlot()!");
}
local_d8 = local_c8;
local_e0 = &stack0x00000008;
local_e8 = 0x4000000010;
TagV(*(int *)(*(long *)(lVar1 + 0x50) + 0x978),param_1,param_2,param_3,(__va_list_tag *)&local_e8)
;
return;
}
|
|
18,175
|
pocketflow::Flow::internalRun(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::any, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::any>>>&)
|
The-Pocket[P]PocketFlow-CPP/pocketflow.h
|
std::optional<std::string> internalRun(Context& sharedContext) override {
// Flow's prep is usually no-op unless overridden
[[maybe_unused]] std::nullptr_t prepRes = prep(sharedContext); // Call prep, ignore result
// Orchestrate starting with empty initial params (can be overridden by BatchFlow)
std::optional<std::string> orchRes = orchestrate(sharedContext, {});
// Flow's post processes the *result* of the orchestration
return post(sharedContext, nullptr, orchRes);
}
|
O1
|
c
|
pocketflow::Flow::internalRun(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::any, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::any>>>&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rsi), %rax
movq %rsi, %rdi
movq %rdx, %rsi
callq *0x50(%rax)
leaq 0x38(%rsp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, 0x8(%rax)
movaps %xmm0, 0x18(%rax)
movaps %xmm0, -0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq $0x0, 0x20(%rax)
movq (%r15), %rax
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rcx
movq %r15, %rsi
movq %r14, %rdx
callq *0x70(%rax)
leaq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0x90d0
movq $0x0, (%r12)
movq (%r15), %rax
leaq 0x30(%rsp), %rcx
leaq 0x8(%rsp), %r8
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq *0x60(%rax)
cmpb $0x1, 0x28(%rsp)
jne 0x7116
leaq 0x18(%rsp), %rax
movb $0x0, 0x10(%rax)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7116
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5180
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
cmpb $0x1, 0x28(%rsp)
jne 0x715d
leaq 0x18(%rsp), %rax
movb $0x0, 0x10(%rax)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x715d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5180
jmp 0x715d
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x90d0
movq %rbx, %rdi
callq 0x52a0
nop
|
_ZN10pocketflow4Flow11internalRunERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt3anySt4lessIS7_ESaISt4pairIKS7_S8_EEE:
push r15
push r14
push r12
push rbx
sub rsp, 68h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov rax, [rsi]
mov rdi, rsi
mov rsi, rdx
call qword ptr [rax+50h]
lea rax, [rsp+88h+var_50]
xorps xmm0, xmm0
movaps xmmword ptr [rax+8], xmm0
movaps xmmword ptr [rax+18h], xmm0
movaps xmmword ptr [rax-8], xmm0
mov [rax+10h], rax
mov [rax+18h], rax
mov qword ptr [rax+20h], 0
mov rax, [r15]
lea rdi, [rsp+88h+var_80]
lea rcx, [rsp+88h+var_58]
mov rsi, r15
mov rdx, r14
call qword ptr [rax+70h]
lea r12, [rsp+88h+var_58]
mov rdi, r12
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3anyESt10_Select1stIS9_ESt4lessIS5_ESaIS9_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::any>,std::_Select1st<std::pair<std::string const,std::any>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::any>>>::~_Rb_tree()
mov qword ptr [r12], 0
mov rax, [r15]
lea rcx, [rsp+88h+var_58]
lea r8, [rsp+88h+var_80]
mov rdi, rbx
mov rsi, r15
mov rdx, r14
call qword ptr [rax+60h]
cmp [rsp+88h+var_60], 1
jnz short loc_7116
lea rax, [rsp+88h+var_70]
mov byte ptr [rax+10h], 0
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7116
mov rsi, [rsp+88h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7116:
mov rax, rbx
add rsp, 68h
pop rbx
pop r12
pop r14
pop r15
retn
mov rbx, rax
cmp [rsp+arg_20], 1
jnz short loc_715D
lea rax, [rsp+arg_10]
mov byte ptr [rax+10h], 0
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_715D
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_715D
mov rbx, rax
lea rdi, [rsp+arg_28]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3anyESt10_Select1stIS9_ESt4lessIS5_ESaIS9_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::any>,std::_Select1st<std::pair<std::string const,std::any>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::any>>>::~_Rb_tree()
loc_715D:
mov rdi, rbx
call __Unwind_Resume
|
long long pocketflow::Flow::internalRun(long long a1, long long a2, long long a3)
{
void *v6[2]; // [rsp+8h] [rbp-80h] BYREF
long long v7; // [rsp+18h] [rbp-70h] BYREF
char v8; // [rsp+28h] [rbp-60h]
__int128 v9; // [rsp+30h] [rbp-58h] BYREF
long long v10; // [rsp+40h] [rbp-48h]
char *v11; // [rsp+48h] [rbp-40h]
char *v12; // [rsp+50h] [rbp-38h]
long long v13; // [rsp+58h] [rbp-30h]
(*(void ( **)(long long, long long))(*(_QWORD *)a2 + 80LL))(a2, a3);
v10 = 0LL;
v9 = 0LL;
v11 = (char *)&v9 + 8;
v12 = (char *)&v9 + 8;
v13 = 0LL;
(*(void ( **)(void **, long long, long long, __int128 *))(*(_QWORD *)a2 + 112LL))(v6, a2, a3, &v9);
std::_Rb_tree<std::string,std::pair<std::string const,std::any>,std::_Select1st<std::pair<std::string const,std::any>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::any>>>::~_Rb_tree(&v9);
*(_QWORD *)&v9 = 0LL;
(*(void ( **)(long long, long long, long long, __int128 *, void **))(*(_QWORD *)a2 + 96LL))(a1, a2, a3, &v9, v6);
if ( v8 == 1 )
{
v8 = 0;
if ( v6[0] != &v7 )
operator delete(v6[0], v7 + 1);
}
return a1;
}
|
internalRun:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI]
MOV RDI,RSI
MOV RSI,RDX
CALL qword ptr [RAX + 0x50]
LEA RAX,[RSP + 0x38]
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RAX + 0x8],XMM0
MOVAPS xmmword ptr [RAX + 0x18],XMM0
MOVAPS xmmword ptr [RAX + -0x8],XMM0
MOV qword ptr [RAX + 0x10],RAX
MOV qword ptr [RAX + 0x18],RAX
MOV qword ptr [RAX + 0x20],0x0
MOV RAX,qword ptr [R15]
LAB_001070af:
LEA RDI,[RSP + 0x8]
LEA RCX,[RSP + 0x30]
MOV RSI,R15
MOV RDX,R14
CALL qword ptr [RAX + 0x70]
LEA R12,[RSP + 0x30]
MOV RDI,R12
CALL 0x001090d0
MOV qword ptr [R12],0x0
MOV RAX,qword ptr [R15]
LAB_001070da:
LEA RCX,[RSP + 0x30]
LEA R8,[RSP + 0x8]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL qword ptr [RAX + 0x60]
LAB_001070f0:
CMP byte ptr [RSP + 0x28],0x1
JNZ 0x00107116
LEA RAX,[RSP + 0x18]
MOV byte ptr [RAX + 0x10],0x0
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00107116
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00105180
LAB_00107116:
MOV RAX,RBX
ADD RSP,0x68
POP RBX
POP R12
POP R14
POP R15
RET
|
/* pocketflow::Flow::internalRun(std::map<std::__cxx11::string, std::any,
std::less<std::__cxx11::string >, std::allocator<std::pair<std::__cxx11::string const, std::any>
> >&) */
map * pocketflow::Flow::internalRun(map *param_1)
{
long *in_RSI;
long *local_80 [2];
long local_70 [2];
char local_60;
int8 local_58;
int8 uStack_50;
int8 local_48;
int8 *puStack_40;
int8 *local_38;
int8 uStack_30;
(**(code **)(*in_RSI + 0x50))();
puStack_40 = &uStack_50;
local_48 = 0;
local_58 = 0;
uStack_50 = 0;
uStack_30 = 0;
/* try { // try from 001070af to 001070c1 has its CatchHandler @ 00107150 */
local_38 = puStack_40;
(**(code **)(*in_RSI + 0x70))(local_80);
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::any>,std::_Select1st<std::pair<std::__cxx11::string_const,std::any>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::any>>>
::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::any>,std::_Select1st<std::pair<std::__cxx11::string_const,std::any>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::any>>>
*)&local_58);
local_58 = 0;
/* try { // try from 001070da to 001070ef has its CatchHandler @ 00107125 */
(**(code **)(*in_RSI + 0x60))(param_1);
if (local_60 == '\x01') {
local_60 = 0;
if (local_80[0] != local_70) {
operator_delete(local_80[0],local_70[0] + 1);
}
}
return param_1;
}
|
|
18,176
|
pocketflow::Flow::internalRun(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::any, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::any>>>&)
|
The-Pocket[P]PocketFlow-CPP/pocketflow.h
|
std::optional<std::string> internalRun(Context& sharedContext) override {
// Flow's prep is usually no-op unless overridden
[[maybe_unused]] std::nullptr_t prepRes = prep(sharedContext); // Call prep, ignore result
// Orchestrate starting with empty initial params (can be overridden by BatchFlow)
std::optional<std::string> orchRes = orchestrate(sharedContext, {});
// Flow's post processes the *result* of the orchestration
return post(sharedContext, nullptr, orchRes);
}
|
O2
|
c
|
pocketflow::Flow::internalRun(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::any, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::any>>>&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rsi), %rax
movq %rsi, %rdi
movq %rdx, %rsi
callq *0x50(%rax)
leaq 0x8(%rsp), %rax
andq $0x0, 0x8(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
movq (%r15), %rax
leaq 0x30(%rsp), %rdi
movq %rsp, %rcx
movq %r15, %rsi
movq %r14, %rdx
callq *0x70(%rax)
movq %rsp, %r12
movq %r12, %rdi
callq 0x7fd4
andq $0x0, (%r12)
movq (%r15), %rax
movq %rsp, %rcx
leaq 0x30(%rsp), %r8
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq *0x60(%rax)
leaq 0x30(%rsp), %rdi
callq 0x7f3c
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x7f3c
jmp 0x67b2
movq %rax, %rbx
movq %rsp, %rdi
callq 0x7fd4
movq %rbx, %rdi
callq 0x52d0
|
_ZN10pocketflow4Flow11internalRunERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt3anySt4lessIS7_ESaISt4pairIKS7_S8_EEE:
push r15
push r14
push r12
push rbx
sub rsp, 58h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov rax, [rsi]
mov rdi, rsi
mov rsi, rdx
call qword ptr [rax+50h]
lea rax, [rsp+78h+var_70]
and qword ptr [rax+8], 0
xorps xmm0, xmm0
movaps xmmword ptr [rax-8], xmm0
mov [rax+10h], rax
mov [rax+18h], rax
and qword ptr [rax+20h], 0
mov rax, [r15]
lea rdi, [rsp+78h+var_48]
mov rcx, rsp
mov rsi, r15
mov rdx, r14
call qword ptr [rax+70h]
mov r12, rsp
mov rdi, r12
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3anyESt10_Select1stIS9_ESt4lessIS5_ESaIS9_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::any>,std::_Select1st<std::pair<std::string const,std::any>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::any>>>::~_Rb_tree()
and qword ptr [r12], 0
mov rax, [r15]
mov rcx, rsp
lea r8, [rsp+78h+var_48]
mov rdi, rbx
mov rsi, r15
mov rdx, r14
call qword ptr [rax+60h]
lea rdi, [rsp+78h+var_48]
call _ZNSt22_Optional_payload_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8_M_resetEv; std::_Optional_payload_base<std::string>::_M_reset(void)
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_28]
call _ZNSt22_Optional_payload_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8_M_resetEv; std::_Optional_payload_base<std::string>::_M_reset(void)
jmp short loc_67B2
mov rbx, rax
mov rdi, rsp
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3anyESt10_Select1stIS9_ESt4lessIS5_ESaIS9_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::any>,std::_Select1st<std::pair<std::string const,std::any>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::any>>>::~_Rb_tree()
loc_67B2:
mov rdi, rbx
call __Unwind_Resume
|
long long pocketflow::Flow::internalRun(long long a1, long long a2, long long a3)
{
__int128 v6; // [rsp+0h] [rbp-78h] BYREF
long long v7; // [rsp+10h] [rbp-68h]
char *v8; // [rsp+18h] [rbp-60h]
char *v9; // [rsp+20h] [rbp-58h]
long long v10; // [rsp+28h] [rbp-50h]
_BYTE v11[72]; // [rsp+30h] [rbp-48h] BYREF
(*(void ( **)(long long, long long))(*(_QWORD *)a2 + 80LL))(a2, a3);
v7 = 0LL;
v6 = 0LL;
v8 = (char *)&v6 + 8;
v9 = (char *)&v6 + 8;
v10 = 0LL;
(*(void ( **)(_BYTE *, long long, long long, __int128 *))(*(_QWORD *)a2 + 112LL))(v11, a2, a3, &v6);
std::_Rb_tree<std::string,std::pair<std::string const,std::any>,std::_Select1st<std::pair<std::string const,std::any>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::any>>>::~_Rb_tree(&v6);
*(_QWORD *)&v6 = 0LL;
(*(void ( **)(long long, long long, long long, __int128 *, _BYTE *))(*(_QWORD *)a2 + 96LL))(a1, a2, a3, &v6, v11);
std::_Optional_payload_base<std::string>::_M_reset(v11);
return a1;
}
|
internalRun:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI]
MOV RDI,RSI
MOV RSI,RDX
CALL qword ptr [RAX + 0x50]
LEA RAX,[RSP + 0x8]
AND qword ptr [RAX + 0x8],0x0
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RAX + -0x8],XMM0
MOV qword ptr [RAX + 0x10],RAX
MOV qword ptr [RAX + 0x18],RAX
AND qword ptr [RAX + 0x20],0x0
MOV RAX,qword ptr [R15]
LAB_00106747:
LEA RDI,[RSP + 0x30]
MOV RCX,RSP
MOV RSI,R15
MOV RDX,R14
CALL qword ptr [RAX + 0x70]
MOV R12,RSP
MOV RDI,R12
CALL 0x00107fd4
AND qword ptr [R12],0x0
MOV RAX,qword ptr [R15]
LAB_0010676b:
MOV RCX,RSP
LEA R8,[RSP + 0x30]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL qword ptr [RAX + 0x60]
LAB_0010677f:
LEA RDI,[RSP + 0x30]
CALL 0x00107f3c
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R14
POP R15
RET
|
/* pocketflow::Flow::internalRun(std::map<std::__cxx11::string, std::any,
std::less<std::__cxx11::string >, std::allocator<std::pair<std::__cxx11::string const, std::any>
> >&) */
map * pocketflow::Flow::internalRun(map *param_1)
{
long *in_RSI;
int8 local_78;
int8 uStack_70;
int8 local_68;
int8 *local_60;
int8 *local_58;
int8 local_50;
_Optional_payload_base<std::__cxx11::string> local_48 [40];
(**(code **)(*in_RSI + 0x50))();
local_60 = &uStack_70;
local_68 = 0;
local_78 = 0;
uStack_70 = 0;
local_50 = 0;
/* try { // try from 00106747 to 00106757 has its CatchHandler @ 001067a7 */
local_58 = local_60;
(**(code **)(*in_RSI + 0x70))(local_48);
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::any>,std::_Select1st<std::pair<std::__cxx11::string_const,std::any>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::any>>>
::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::any>,std::_Select1st<std::pair<std::__cxx11::string_const,std::any>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::any>>>
*)&local_78);
local_78 = 0;
/* try { // try from 0010676b to 0010677e has its CatchHandler @ 00106798 */
(**(code **)(*in_RSI + 0x60))(param_1);
std::_Optional_payload_base<std::__cxx11::string>::_M_reset(local_48);
return param_1;
}
|
|
18,177
|
strmake_root
|
eloqsql/mysys/my_alloc.c
|
char *strmake_root(MEM_ROOT *root, const char *str, size_t len)
{
char *pos;
if ((pos=alloc_root(root,len+1)))
{
if (len)
memcpy(pos,str,len);
pos[len]=0;
}
return pos;
}
|
O3
|
c
|
strmake_root:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x1(%rdx), %rsi
callq 0xbdfeb
movq %rax, %r15
testq %rax, %rax
je 0xbe3e6
testq %rbx, %rbx
je 0xbe3e1
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2b0b0
movb $0x0, (%r15,%rbx)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
strmake_root:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdx
mov r14, rsi
lea rsi, [rdx+1]
call alloc_root
mov r15, rax
test rax, rax
jz short loc_BE3E6
test rbx, rbx
jz short loc_BE3E1
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call _memcpy
loc_BE3E1:
mov byte ptr [r15+rbx], 0
loc_BE3E6:
mov rax, r15
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
char * strmake_root(long long a1, long long a2, long long a3)
{
char *v4; // rax
char *v5; // r15
v4 = alloc_root(a1, a3 + 1);
v5 = v4;
if ( v4 )
{
if ( a3 )
memcpy(v4, a2, a3);
v5[a3] = 0;
}
return v5;
}
|
strmake_root:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
LEA RSI,[RDX + 0x1]
CALL 0x001bdfeb
MOV R15,RAX
TEST RAX,RAX
JZ 0x001be3e6
TEST RBX,RBX
JZ 0x001be3e1
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x0012b0b0
LAB_001be3e1:
MOV byte ptr [R15 + RBX*0x1],0x0
LAB_001be3e6:
MOV RAX,R15
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void * strmake_root(int8 param_1,void *param_2,size_t param_3)
{
void *__dest;
__dest = (void *)alloc_root(param_1,param_3 + 1);
if (__dest != (void *)0x0) {
if (param_3 != 0) {
memcpy(__dest,param_2,param_3);
}
*(int1 *)((long)__dest + param_3) = 0;
}
return __dest;
}
|
|
18,178
|
js_operator_private_in
|
bluesky950520[P]quickjs/quickjs.c
|
static __exception int js_operator_private_in(JSContext *ctx, JSValue *sp)
{
JSValue op1, op2;
int ret;
op1 = sp[-2]; /* object */
op2 = sp[-1]; /* field name or method function */
if (JS_VALUE_GET_TAG(op1) != JS_TAG_OBJECT) {
JS_ThrowTypeError(ctx, "invalid 'in' operand");
return -1;
}
if (JS_IsObject(op2)) {
/* method: use the brand */
ret = JS_CheckBrand(ctx, op1, op2);
if (ret < 0)
return -1;
} else {
JSAtom atom;
JSObject *p;
JSShapeProperty *prs;
JSProperty *pr;
/* field */
atom = JS_ValueToAtom(ctx, op2);
if (unlikely(atom == JS_ATOM_NULL))
return -1;
p = JS_VALUE_GET_OBJ(op1);
prs = find_own_property(&pr, p, atom);
JS_FreeAtom(ctx, atom);
ret = (prs != NULL);
}
JS_FreeValue(ctx, op1);
JS_FreeValue(ctx, op2);
sp[-2] = JS_NewBool(ctx, ret);
return 0;
}
|
O0
|
c
|
js_operator_private_in:
subq $0xe8, %rsp
movq %rdi, 0x78(%rsp)
movq %rsi, 0x70(%rsp)
movq 0x70(%rsp), %rax
movq -0x20(%rax), %rcx
movq %rcx, 0x60(%rsp)
movq -0x18(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x70(%rsp), %rax
movq -0x10(%rax), %rcx
movq %rcx, 0x50(%rsp)
movq -0x8(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x68(%rsp), %rax
cmpl $-0x1, %eax
je 0x6bb76
movq 0x78(%rsp), %rdi
leaq 0xa146a(%rip), %rsi # 0x10cfbf
movb $0x0, %al
callq 0x2c040
movq %rax, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movl $0xffffffff, 0x84(%rsp) # imm = 0xFFFFFFFF
jmp 0x6be31
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x29cb0
cmpl $0x0, %eax
je 0x6bbc8
movq 0x78(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0x50(%rsp), %rcx
movq 0x58(%rsp), %r8
callq 0x63cb0
movl %eax, 0x4c(%rsp)
cmpl $0x0, 0x4c(%rsp)
jge 0x6bbc3
movl $0xffffffff, 0x84(%rsp) # imm = 0xFFFFFFFF
jmp 0x6be31
jmp 0x6bd93
movq 0x78(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq 0x2ff40
movl %eax, 0x34(%rsp)
cmpl $0x0, 0x34(%rsp)
sete %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x6bc09
movl $0xffffffff, 0x84(%rsp) # imm = 0xFFFFFFFF
jmp 0x6be31
movq 0x60(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rcx
movl 0x34(%rsp), %eax
leaq 0x18(%rsp), %rdx
movq %rdx, 0xb8(%rsp)
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
movq 0xb0(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0xa0(%rsp)
movl 0xac(%rsp), %eax
movq 0xa0(%rsp), %rcx
movl 0x20(%rcx), %ecx
andq %rcx, %rax
movq %rax, 0x88(%rsp)
movq 0xa0(%rsp), %rdi
callq 0x5c5f0
xorl %ecx, %ecx
subq 0x88(%rsp), %rcx
subq $0x1, %rcx
movl (%rax,%rcx,4), %eax
movq %rax, 0x88(%rsp)
movq 0xa0(%rsp), %rdi
callq 0x2afc0
movq %rax, 0x90(%rsp)
cmpq $0x0, 0x88(%rsp)
je 0x6bd4b
movq 0x90(%rsp), %rax
movq 0x88(%rsp), %rcx
subq $0x1, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rax
movl 0x4(%rax), %eax
cmpl 0xac(%rsp), %eax
sete %al
testb $0x1, %al
jne 0x6bcf1
jmp 0x6bd2d
movq 0xb0(%rsp), %rax
movq 0x20(%rax), %rcx
movq 0x88(%rsp), %rax
subq $0x1, %rax
shlq $0x4, %rax
addq %rax, %rcx
movq 0xb8(%rsp), %rax
movq %rcx, (%rax)
movq 0x98(%rsp), %rax
movq %rax, 0xc0(%rsp)
jmp 0x6bd66
movq 0x98(%rsp), %rax
movl (%rax), %eax
andl $0x3ffffff, %eax # imm = 0x3FFFFFF
movl %eax, %eax
movq %rax, 0x88(%rsp)
jmp 0x6bca4
movq 0xb8(%rsp), %rax
movq $0x0, (%rax)
movq $0x0, 0xc0(%rsp)
movq 0xc0(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x78(%rsp), %rdi
movl 0x34(%rsp), %esi
callq 0x27d80
cmpq $0x0, 0x20(%rsp)
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x4c(%rsp)
movq 0x78(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
callq 0x229d0
movq 0x78(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq 0x229d0
movq 0x70(%rsp), %rax
movq 0x78(%rsp), %rdx
movl 0x4c(%rsp), %ecx
movq %rdx, 0xd0(%rsp)
movl %ecx, 0xcc(%rsp)
movl 0xcc(%rsp), %ecx
testl %ecx, %ecx
setne %cl
movzbl %cl, %ecx
movl %ecx, 0xd8(%rsp)
movq $0x1, 0xe0(%rsp)
movq 0xd8(%rsp), %rdx
movq 0xe0(%rsp), %rcx
movq %rdx, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movq 0x8(%rsp), %rcx
movq %rcx, -0x20(%rax)
movq 0x10(%rsp), %rcx
movq %rcx, -0x18(%rax)
movl $0x0, 0x84(%rsp)
movl 0x84(%rsp), %eax
addq $0xe8, %rsp
retq
|
js_operator_private_in:
sub rsp, 0E8h
mov [rsp+0E8h+var_70], rdi
mov [rsp+0E8h+var_78], rsi
mov rax, [rsp+0E8h+var_78]
mov rcx, [rax-20h]
mov [rsp+0E8h+var_88], rcx
mov rax, [rax-18h]
mov [rsp+0E8h+var_80], rax
mov rax, [rsp+0E8h+var_78]
mov rcx, [rax-10h]
mov [rsp+0E8h+var_98], rcx
mov rax, [rax-8]
mov [rsp+0E8h+var_90], rax
mov rax, [rsp+0E8h+var_80]
cmp eax, 0FFFFFFFFh
jz short loc_6BB76
mov rdi, [rsp+0E8h+var_70]
lea rsi, aInvalidInOpera; "invalid 'in' operand"
mov al, 0
call JS_ThrowTypeError
mov [rsp+0E8h+var_B0], rax
mov [rsp+0E8h+var_A8], rdx
mov [rsp+0E8h+var_64], 0FFFFFFFFh
jmp loc_6BE31
loc_6BB76:
mov rdi, [rsp+0E8h+var_98]
mov rsi, [rsp+0E8h+var_90]
call JS_IsObject
cmp eax, 0
jz short loc_6BBC8
mov rdi, [rsp+0E8h+var_70]
mov rsi, [rsp+0E8h+var_88]
mov rdx, [rsp+0E8h+var_80]
mov rcx, [rsp+0E8h+var_98]
mov r8, [rsp+0E8h+var_90]
call JS_CheckBrand
mov [rsp+0E8h+var_9C], eax
cmp [rsp+0E8h+var_9C], 0
jge short loc_6BBC3
mov [rsp+0E8h+var_64], 0FFFFFFFFh
jmp loc_6BE31
loc_6BBC3:
jmp loc_6BD93
loc_6BBC8:
mov rdi, [rsp+0E8h+var_70]
mov rsi, [rsp+0E8h+var_98]
mov rdx, [rsp+0E8h+var_90]
call JS_ValueToAtom
mov [rsp+0E8h+var_B4], eax
cmp [rsp+0E8h+var_B4], 0
setz al
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_6BC09
mov [rsp+0E8h+var_64], 0FFFFFFFFh
jmp loc_6BE31
loc_6BC09:
mov rax, [rsp+0E8h+var_88]
mov [rsp+0E8h+var_C0], rax
mov rcx, [rsp+0E8h+var_C0]
mov eax, [rsp+0E8h+var_B4]
lea rdx, [rsp+0E8h+var_D0]
mov [rsp+0E8h+var_30], rdx
mov [rsp+0E8h+var_38], rcx
mov [rsp+0E8h+var_3C], eax
mov rax, [rsp+0E8h+var_38]
mov rax, [rax+18h]
mov [rsp+0E8h+var_48], rax
mov eax, [rsp+0E8h+var_3C]
mov rcx, [rsp+0E8h+var_48]
mov ecx, [rcx+20h]
and rax, rcx
mov [rsp+0E8h+var_60], rax
mov rdi, [rsp+0E8h+var_48]
call prop_hash_end
xor ecx, ecx
sub rcx, [rsp+0E8h+var_60]
sub rcx, 1
mov eax, [rax+rcx*4]
mov [rsp+0E8h+var_60], rax
mov rdi, [rsp+0E8h+var_48]
call get_shape_prop
mov [rsp+0E8h+var_58], rax
loc_6BCA4:
cmp [rsp+0E8h+var_60], 0
jz loc_6BD4B
mov rax, [rsp+0E8h+var_58]
mov rcx, [rsp+0E8h+var_60]
sub rcx, 1
shl rcx, 3
add rax, rcx
mov [rsp+0E8h+var_50], rax
mov rax, [rsp+0E8h+var_50]
mov eax, [rax+4]
cmp eax, [rsp+0E8h+var_3C]
setz al
test al, 1
jnz short loc_6BCF1
jmp short loc_6BD2D
loc_6BCF1:
mov rax, [rsp+0E8h+var_38]
mov rcx, [rax+20h]
mov rax, [rsp+0E8h+var_60]
sub rax, 1
shl rax, 4
add rcx, rax
mov rax, [rsp+0E8h+var_30]
mov [rax], rcx
mov rax, [rsp+0E8h+var_50]
mov [rsp+0E8h+var_28], rax
jmp short loc_6BD66
loc_6BD2D:
mov rax, [rsp+0E8h+var_50]
mov eax, [rax]
and eax, 3FFFFFFh
mov eax, eax
mov [rsp+0E8h+var_60], rax
jmp loc_6BCA4
loc_6BD4B:
mov rax, [rsp+0E8h+var_30]
mov qword ptr [rax], 0
mov [rsp+0E8h+var_28], 0
loc_6BD66:
mov rax, [rsp+0E8h+var_28]
mov [rsp+0E8h+var_C8], rax
mov rdi, [rsp+0E8h+var_70]
mov esi, [rsp+0E8h+var_B4]
call JS_FreeAtom
cmp [rsp+0E8h+var_C8], 0
setnz al
and al, 1
movzx eax, al
mov [rsp+0E8h+var_9C], eax
loc_6BD93:
mov rdi, [rsp+0E8h+var_70]
mov rsi, [rsp+0E8h+var_88]
mov rdx, [rsp+0E8h+var_80]
call JS_FreeValue
mov rdi, [rsp+0E8h+var_70]
mov rsi, [rsp+0E8h+var_98]
mov rdx, [rsp+0E8h+var_90]
call JS_FreeValue
mov rax, [rsp+0E8h+var_78]
mov rdx, [rsp+0E8h+var_70]
mov ecx, [rsp+0E8h+var_9C]
mov [rsp+0E8h+var_18], rdx
mov [rsp+0E8h+var_1C], ecx
mov ecx, [rsp+0E8h+var_1C]
test ecx, ecx
setnz cl
movzx ecx, cl
mov dword ptr [rsp+0E8h+var_10], ecx
mov [rsp+0E8h+var_8], 1
mov rdx, [rsp+0E8h+var_10]
mov rcx, [rsp+0E8h+var_8]
mov [rsp+0E8h+var_E0], rdx
mov [rsp+0E8h+var_D8], rcx
mov rcx, [rsp+0E8h+var_E0]
mov [rax-20h], rcx
mov rcx, [rsp+0E8h+var_D8]
mov [rax-18h], rcx
mov [rsp+0E8h+var_64], 0
loc_6BE31:
mov eax, [rsp+0E8h+var_64]
add rsp, 0E8h
retn
|
long long js_operator_private_in(
long long a1,
long long a2,
long long a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
long long a12,
long long a13,
long long a14)
{
long long v14; // rcx
long long v15; // rdx
long long v16; // r9
__m128 v17; // xmm4
__m128 v18; // xmm5
long long v19; // rax
long long v20; // rax
char v22; // [rsp+0h] [rbp-E8h]
char v23; // [rsp+18h] [rbp-D0h] BYREF
_DWORD *v24; // [rsp+20h] [rbp-C8h]
long long v25; // [rsp+28h] [rbp-C0h]
unsigned int v26; // [rsp+34h] [rbp-B4h]
long long v27; // [rsp+38h] [rbp-B0h]
long long v28; // [rsp+40h] [rbp-A8h]
int v29; // [rsp+4Ch] [rbp-9Ch]
long long v30; // [rsp+50h] [rbp-98h]
long long v31; // [rsp+58h] [rbp-90h]
long long v32; // [rsp+60h] [rbp-88h]
long long v33; // [rsp+68h] [rbp-80h]
long long v34; // [rsp+70h] [rbp-78h]
long long v35; // [rsp+78h] [rbp-70h]
long long v37; // [rsp+88h] [rbp-60h]
long long shape_prop; // [rsp+90h] [rbp-58h]
_DWORD *v39; // [rsp+98h] [rbp-50h]
long long v40; // [rsp+A0h] [rbp-48h]
unsigned int v41; // [rsp+ACh] [rbp-3Ch]
long long v42; // [rsp+B0h] [rbp-38h]
char *v43; // [rsp+B8h] [rbp-30h]
_DWORD *v44; // [rsp+C0h] [rbp-28h]
int v45; // [rsp+CCh] [rbp-1Ch]
long long v46; // [rsp+D0h] [rbp-18h]
long long v47; // [rsp+D8h] [rbp-10h]
long long v48; // [rsp+E0h] [rbp-8h]
v35 = a1;
v34 = a2;
v32 = *(_QWORD *)(a2 - 32);
v33 = *(_QWORD *)(a2 - 24);
v14 = *(_QWORD *)(a2 - 16);
v30 = v14;
v31 = *(_QWORD *)(a2 - 8);
if ( (_DWORD)v33 == -1 )
{
if ( JS_IsObject(v30, v31) )
{
v29 = JS_CheckBrand(v35, v32, v33, v30, v31, v16, a4, a5, a6, a7, v17, v18, a10, a11);
if ( v29 < 0 )
return (unsigned int)-1;
}
else
{
v26 = JS_ValueToAtom(v35, v30, v31);
if ( !v26 )
return (unsigned int)-1;
v25 = v32;
v43 = &v23;
v42 = v32;
v41 = v26;
v40 = *(_QWORD *)(v32 + 24);
v37 = *(_DWORD *)(v40 + 32) & v26;
v19 = prop_hash_end(v40);
v37 = *(unsigned int *)(v19 + 4 * (-v37 - 1));
shape_prop = get_shape_prop(v40);
while ( v37 )
{
v39 = (_DWORD *)(8 * (v37 - 1) + shape_prop);
if ( v39[1] == v41 )
{
*(_QWORD *)v43 = 16 * (v37 - 1) + *(_QWORD *)(v42 + 32);
v44 = v39;
goto LABEL_15;
}
v37 = *v39 & 0x3FFFFFF;
}
*(_QWORD *)v43 = 0LL;
v44 = 0LL;
LABEL_15:
v24 = v44;
JS_FreeAtom(v35, v26);
v29 = v24 != 0LL;
}
JS_FreeValue(v35, v32, v33);
JS_FreeValue(v35, v30, v31);
v20 = v34;
v46 = v35;
v45 = v29;
LODWORD(v47) = v29 != 0;
v48 = 1LL;
*(_QWORD *)(v34 - 32) = v47;
*(_QWORD *)(v20 - 24) = 1LL;
return 0;
}
v27 = JS_ThrowTypeError(
v35,
(long long)"invalid 'in' operand",
a3,
v14,
a13,
a14,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
v22);
v28 = v15;
return (unsigned int)-1;
}
|
js_operator_private_in:
SUB RSP,0xe8
MOV qword ptr [RSP + 0x78],RDI
MOV qword ptr [RSP + 0x70],RSI
MOV RAX,qword ptr [RSP + 0x70]
MOV RCX,qword ptr [RAX + -0x20]
MOV qword ptr [RSP + 0x60],RCX
MOV RAX,qword ptr [RAX + -0x18]
MOV qword ptr [RSP + 0x68],RAX
MOV RAX,qword ptr [RSP + 0x70]
MOV RCX,qword ptr [RAX + -0x10]
MOV qword ptr [RSP + 0x50],RCX
MOV RAX,qword ptr [RAX + -0x8]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x68]
CMP EAX,-0x1
JZ 0x0016bb76
MOV RDI,qword ptr [RSP + 0x78]
LEA RSI,[0x20cfbf]
MOV AL,0x0
CALL 0x0012c040
MOV qword ptr [RSP + 0x38],RAX
MOV qword ptr [RSP + 0x40],RDX
MOV dword ptr [RSP + 0x84],0xffffffff
JMP 0x0016be31
LAB_0016bb76:
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x58]
CALL 0x00129cb0
CMP EAX,0x0
JZ 0x0016bbc8
MOV RDI,qword ptr [RSP + 0x78]
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x68]
MOV RCX,qword ptr [RSP + 0x50]
MOV R8,qword ptr [RSP + 0x58]
CALL 0x00163cb0
MOV dword ptr [RSP + 0x4c],EAX
CMP dword ptr [RSP + 0x4c],0x0
JGE 0x0016bbc3
MOV dword ptr [RSP + 0x84],0xffffffff
JMP 0x0016be31
LAB_0016bbc3:
JMP 0x0016bd93
LAB_0016bbc8:
MOV RDI,qword ptr [RSP + 0x78]
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x58]
CALL 0x0012ff40
MOV dword ptr [RSP + 0x34],EAX
CMP dword ptr [RSP + 0x34],0x0
SETZ AL
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0016bc09
MOV dword ptr [RSP + 0x84],0xffffffff
JMP 0x0016be31
LAB_0016bc09:
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x28],RAX
MOV RCX,qword ptr [RSP + 0x28]
MOV EAX,dword ptr [RSP + 0x34]
LEA RDX,[RSP + 0x18]
MOV qword ptr [RSP + 0xb8],RDX
MOV qword ptr [RSP + 0xb0],RCX
MOV dword ptr [RSP + 0xac],EAX
MOV RAX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0xa0],RAX
MOV EAX,dword ptr [RSP + 0xac]
MOV RCX,qword ptr [RSP + 0xa0]
MOV ECX,dword ptr [RCX + 0x20]
AND RAX,RCX
MOV qword ptr [RSP + 0x88],RAX
MOV RDI,qword ptr [RSP + 0xa0]
CALL 0x0015c5f0
XOR ECX,ECX
SUB RCX,qword ptr [RSP + 0x88]
SUB RCX,0x1
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV qword ptr [RSP + 0x88],RAX
MOV RDI,qword ptr [RSP + 0xa0]
CALL 0x0012afc0
MOV qword ptr [RSP + 0x90],RAX
LAB_0016bca4:
CMP qword ptr [RSP + 0x88],0x0
JZ 0x0016bd4b
MOV RAX,qword ptr [RSP + 0x90]
MOV RCX,qword ptr [RSP + 0x88]
SUB RCX,0x1
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RSP + 0x98],RAX
MOV RAX,qword ptr [RSP + 0x98]
MOV EAX,dword ptr [RAX + 0x4]
CMP EAX,dword ptr [RSP + 0xac]
SETZ AL
TEST AL,0x1
JNZ 0x0016bcf1
JMP 0x0016bd2d
LAB_0016bcf1:
MOV RAX,qword ptr [RSP + 0xb0]
MOV RCX,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RSP + 0x88]
SUB RAX,0x1
SHL RAX,0x4
ADD RCX,RAX
MOV RAX,qword ptr [RSP + 0xb8]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RSP + 0x98]
MOV qword ptr [RSP + 0xc0],RAX
JMP 0x0016bd66
LAB_0016bd2d:
MOV RAX,qword ptr [RSP + 0x98]
MOV EAX,dword ptr [RAX]
AND EAX,0x3ffffff
MOV EAX,EAX
MOV qword ptr [RSP + 0x88],RAX
JMP 0x0016bca4
LAB_0016bd4b:
MOV RAX,qword ptr [RSP + 0xb8]
MOV qword ptr [RAX],0x0
MOV qword ptr [RSP + 0xc0],0x0
LAB_0016bd66:
MOV RAX,qword ptr [RSP + 0xc0]
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x78]
MOV ESI,dword ptr [RSP + 0x34]
CALL 0x00127d80
CMP qword ptr [RSP + 0x20],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RSP + 0x4c],EAX
LAB_0016bd93:
MOV RDI,qword ptr [RSP + 0x78]
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x68]
CALL 0x001229d0
MOV RDI,qword ptr [RSP + 0x78]
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x58]
CALL 0x001229d0
MOV RAX,qword ptr [RSP + 0x70]
MOV RDX,qword ptr [RSP + 0x78]
MOV ECX,dword ptr [RSP + 0x4c]
MOV qword ptr [RSP + 0xd0],RDX
MOV dword ptr [RSP + 0xcc],ECX
MOV ECX,dword ptr [RSP + 0xcc]
TEST ECX,ECX
SETNZ CL
MOVZX ECX,CL
MOV dword ptr [RSP + 0xd8],ECX
MOV qword ptr [RSP + 0xe0],0x1
MOV RDX,qword ptr [RSP + 0xd8]
MOV RCX,qword ptr [RSP + 0xe0]
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RSP + 0x10],RCX
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + -0x20],RCX
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX + -0x18],RCX
MOV dword ptr [RSP + 0x84],0x0
LAB_0016be31:
MOV EAX,dword ptr [RSP + 0x84]
ADD RSP,0xe8
RET
|
int4 js_operator_private_in(int8 param_1,long param_2)
{
int iVar1;
long lVar2;
long local_d0;
uint *local_c8;
long local_c0;
uint local_b4;
uint local_9c;
int8 local_98;
int8 local_90;
long local_88;
int8 local_80;
long local_78;
int8 local_70;
int4 local_64;
ulong local_60;
long local_58;
uint *local_50;
long local_48;
uint local_3c;
long local_38;
long *local_30;
uint *local_28;
int4 uStack_c;
local_88 = *(long *)(param_2 + -0x20);
local_80 = *(int8 *)(param_2 + -0x18);
local_98 = *(int8 *)(param_2 + -0x10);
local_90 = *(int8 *)(param_2 + -8);
local_78 = param_2;
local_70 = param_1;
if ((int)local_80 == -1) {
iVar1 = JS_IsObject(local_98,local_90);
if (iVar1 == 0) {
local_b4 = JS_ValueToAtom(local_70,local_98,local_90);
if (local_b4 == 0) {
return 0xffffffff;
}
local_c0 = local_88;
local_30 = &local_d0;
local_38 = local_88;
local_48 = *(long *)(local_88 + 0x18);
local_60 = (ulong)(local_b4 & *(uint *)(local_48 + 0x20));
local_3c = local_b4;
lVar2 = prop_hash_end(local_48);
local_60 = (ulong)*(uint *)(lVar2 + (-1 - local_60) * 4);
local_58 = get_shape_prop(local_48);
while (local_60 != 0) {
local_50 = (uint *)(local_58 + (local_60 - 1) * 8);
if (local_50[1] == local_3c) {
*local_30 = *(long *)(local_38 + 0x20) + (local_60 - 1) * 0x10;
local_28 = local_50;
goto LAB_0016bd66;
}
local_60 = (ulong)(*local_50 & 0x3ffffff);
}
*local_30 = 0;
local_28 = (uint *)0x0;
LAB_0016bd66:
local_c8 = local_28;
JS_FreeAtom(local_70,local_b4);
local_9c = (uint)(local_c8 != (uint *)0x0);
}
else {
local_9c = JS_CheckBrand(local_70,local_88,local_80,local_98,local_90);
if ((int)local_9c < 0) {
return 0xffffffff;
}
}
JS_FreeValue(local_70,local_88,local_80);
JS_FreeValue(local_70,local_98,local_90);
*(ulong *)(local_78 + -0x20) = CONCAT44(uStack_c,(uint)(local_9c != 0));
*(int8 *)(local_78 + -0x18) = 1;
local_64 = 0;
}
else {
JS_ThrowTypeError(param_1,"invalid \'in\' operand");
local_64 = 0xffffffff;
}
return local_64;
}
|
|
18,179
|
evmone::baseline::(anonymous namespace)::invoke(evmone::Result (*)(evmone::StackTop, long, evmone::ExecutionState&) noexcept, evmone::baseline::(anonymous namespace)::Position, long&, evmone::ExecutionState&)
|
corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evmone/baseline_execution.cpp
|
[[release_inline]] inline code_iterator invoke(
Result (*instr_fn)(StackTop, int64_t, ExecutionState&) noexcept, Position pos, int64_t& gas,
ExecutionState& state) noexcept
{
const auto o = instr_fn(pos.stack_top, gas, state);
gas = o.gas_left;
if (o.status != EVMC_SUCCESS)
{
state.status = o.status;
return nullptr;
}
return pos.code_it + 1;
}
|
O0
|
cpp
|
evmone::baseline::(anonymous namespace)::invoke(evmone::Result (*)(evmone::StackTop, long, evmone::ExecutionState&) noexcept, evmone::baseline::(anonymous namespace)::Position, long&, evmone::ExecutionState&):
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rsi, -0x18(%rbp)
movq %rdx, -0x10(%rbp)
movq %rdi, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x3fb80
movq -0x50(%rbp), %rax
movq -0x28(%rbp), %rcx
movq (%rcx), %rsi
movq -0x30(%rbp), %rdx
movq -0x48(%rbp), %rdi
callq *%rax
movl %eax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
cmpl $0x0, -0x40(%rbp)
je 0x59a62
movl -0x40(%rbp), %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x78(%rax)
movq $0x0, -0x8(%rbp)
jmp 0x59a6e
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
_ZN6evmone8baseline12_GLOBAL__N_16invokeEPDoFNS_6ResultENS_8StackTopElRNS_14ExecutionStateEENS1_8PositionERlS5_:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_18], rsi
mov [rbp+var_10], rdx
mov [rbp+var_20], rdi
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov rax, [rbp+var_20]
mov [rbp+var_50], rax
mov rsi, [rbp+var_10]
lea rdi, [rbp+var_48]
call _ZN6evmone8StackTopC2EPN4intx4uintILj256EEE; evmone::StackTop::StackTop(intx::uint<256u> *)
mov rax, [rbp+var_50]
mov rcx, [rbp+var_28]
mov rsi, [rcx]
mov rdx, [rbp+var_30]
mov rdi, [rbp+var_48]
call rax
mov [rbp+var_40], eax
mov [rbp+var_38], rdx
mov rcx, [rbp+var_38]
mov rax, [rbp+var_28]
mov [rax], rcx
cmp [rbp+var_40], 0
jz short loc_59A62
mov ecx, [rbp+var_40]
mov rax, [rbp+var_30]
mov [rax+78h], ecx
mov [rbp+var_8], 0
jmp short loc_59A6E
loc_59A62:
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_8], rax
loc_59A6E:
mov rax, [rbp+var_8]
add rsp, 50h
pop rbp
retn
|
long long evmone::baseline::`anonymous namespace'::invoke(
long long ( *a1)(_QWORD, _QWORD, _QWORD),
long long a2,
long long a3,
_QWORD *a4,
long long a5)
{
long long v5; // rdx
long long v7; // [rsp+8h] [rbp-48h] BYREF
int v8; // [rsp+10h] [rbp-40h]
long long v9; // [rsp+18h] [rbp-38h]
long long v10; // [rsp+20h] [rbp-30h]
_QWORD *v11; // [rsp+28h] [rbp-28h]
long long ( *v12)(_QWORD, _QWORD, _QWORD); // [rsp+30h] [rbp-20h]
long long v13; // [rsp+38h] [rbp-18h]
long long v14; // [rsp+40h] [rbp-10h]
v13 = a2;
v14 = a3;
v12 = a1;
v11 = a4;
v10 = a5;
evmone::StackTop::StackTop(&v7, a3);
v8 = a1(v7, *v11, v10);
v9 = v5;
*v11 = v5;
if ( !v8 )
return v13 + 1;
*(_DWORD *)(v10 + 120) = v8;
return 0LL;
}
|
invoke:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x10],RDX
MOV qword ptr [RBP + -0x20],RDI
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x50],RAX
MOV RSI,qword ptr [RBP + -0x10]
LEA RDI,[RBP + -0x48]
CALL 0x0013fb80
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RCX]
MOV RDX,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [RBP + -0x48]
CALL RAX
MOV dword ptr [RBP + -0x40],EAX
MOV qword ptr [RBP + -0x38],RDX
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
CMP dword ptr [RBP + -0x40],0x0
JZ 0x00159a62
MOV ECX,dword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x78],ECX
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00159a6e
LAB_00159a62:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
LAB_00159a6e:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x50
POP RBP
RET
|
/* evmone::baseline::(anonymous namespace)::invoke(evmone::Result (*)(evmone::StackTop, long,
evmone::ExecutionState&) noexcept, evmone::baseline::(anonymous namespace)::Position, long&,
evmone::ExecutionState&) */
long __thiscall
evmone::baseline::(anonymous_namespace)::invoke
(_anonymous_namespace_ *this,long param_1,uint *param_3,int8 *param_4,long param_5)
{
int iVar1;
int8 extraout_RDX;
int8 local_50 [3];
long local_38;
int8 *local_30;
_anonymous_namespace_ *local_28;
long local_20;
uint *local_18;
long local_10;
local_38 = param_5;
local_30 = param_4;
local_28 = this;
local_20 = param_1;
local_18 = param_3;
StackTop::StackTop((StackTop *)local_50,param_3);
iVar1 = (*(code *)this)(local_50[0],*local_30,local_38);
*local_30 = extraout_RDX;
if (iVar1 == 0) {
local_10 = local_20 + 1;
}
else {
*(int *)(local_38 + 0x78) = iVar1;
local_10 = 0;
}
return local_10;
}
|
|
18,180
|
mariadb_compression_algorithm_str
|
eloqsql/libmariadb/libmariadb/ma_compress.c
|
const char *_mariadb_compression_algorithm_str(enum enum_ma_compression_algorithm algorithm)
{
switch(algorithm) {
case COMPRESSION_NONE:
case COMPRESSION_ZLIB:
case COMPRESSION_ZSTD:
return compression_algorithms[algorithm] ;
default:
return compression_algorithms[COMPRESSION_UNKNOWN];
}
}
|
O0
|
c
|
mariadb_compression_algorithm_str:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0xc(%rbp)
movl -0xc(%rbp), %eax
subl $0x2, %eax
ja 0x2b7e7
jmp 0x2b7d1
movl -0xc(%rbp), %eax
movl %eax, %ecx
leaq 0x3ba33(%rip), %rax # 0x67210
movq (%rax,%rcx,8), %rax
movq %rax, -0x8(%rbp)
jmp 0x2b7f6
leaq 0x3ba22(%rip), %rax # 0x67210
movq 0x18(%rax), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopl (%rax)
|
_mariadb_compression_algorithm_str:
push rbp
mov rbp, rsp
mov [rbp+var_C], edi
mov eax, [rbp+var_C]
sub eax, 2
ja short loc_2B7E7
jmp short $+2
loc_2B7D1:
mov eax, [rbp+var_C]
mov ecx, eax
lea rax, compression_algorithms
mov rax, [rax+rcx*8]
mov [rbp+var_8], rax
jmp short loc_2B7F6
loc_2B7E7:
lea rax, compression_algorithms
mov rax, [rax+18h]
mov [rbp+var_8], rax
loc_2B7F6:
mov rax, [rbp+var_8]
pop rbp
retn
|
char * mariadb_compression_algorithm_str(unsigned int a1)
{
if ( a1 > 2 )
return compression_algorithms[3];
else
return compression_algorithms[a1];
}
|
_mariadb_compression_algorithm_str:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0xc],EDI
MOV EAX,dword ptr [RBP + -0xc]
SUB EAX,0x2
JA 0x0012b7e7
JMP 0x0012b7d1
LAB_0012b7d1:
MOV EAX,dword ptr [RBP + -0xc]
MOV ECX,EAX
LEA RAX,[0x167210]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0012b7f6
LAB_0012b7e7:
LEA RAX,[0x167210]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x8],RAX
LAB_0012b7f6:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
int8 _mariadb_compression_algorithm_str(uint param_1)
{
int8 local_10;
if (param_1 < 3) {
local_10 = *(int8 *)(compression_algorithms + (ulong)param_1 * 8);
}
else {
local_10 = compression_algorithms._24_8_;
}
return local_10;
}
|
|
18,181
|
mariadb_compression_algorithm_str
|
eloqsql/libmariadb/libmariadb/ma_compress.c
|
const char *_mariadb_compression_algorithm_str(enum enum_ma_compression_algorithm algorithm)
{
switch(algorithm) {
case COMPRESSION_NONE:
case COMPRESSION_ZLIB:
case COMPRESSION_ZSTD:
return compression_algorithms[algorithm] ;
default:
return compression_algorithms[COMPRESSION_UNKNOWN];
}
}
|
O3
|
c
|
mariadb_compression_algorithm_str:
pushq %rbp
movq %rsp, %rbp
movl %edi, %eax
shlq $0x3, %rax
cmpl $0x3, %edi
leaq 0x2c734(%rip), %rcx # 0x4f100
movl $0x18, %edx
cmovbq %rax, %rdx
movq (%rcx,%rdx), %rax
popq %rbp
retq
|
_mariadb_compression_algorithm_str:
push rbp
mov rbp, rsp
mov eax, edi
shl rax, 3
cmp edi, 3
lea rcx, compression_algorithms
mov edx, 18h
cmovb rdx, rax
mov rax, [rcx+rdx]
pop rbp
retn
|
char * mariadb_compression_algorithm_str(unsigned int a1)
{
long long v1; // rdx
v1 = 3LL;
if ( a1 < 3 )
v1 = a1;
return compression_algorithms[v1];
}
|
_mariadb_compression_algorithm_str:
PUSH RBP
MOV RBP,RSP
MOV EAX,EDI
SHL RAX,0x3
CMP EDI,0x3
LEA RCX,[0x14f100]
MOV EDX,0x18
CMOVC RDX,RAX
MOV RAX,qword ptr [RCX + RDX*0x1]
POP RBP
RET
|
int8 _mariadb_compression_algorithm_str(uint param_1)
{
long lVar1;
lVar1 = 0x18;
if (param_1 < 3) {
lVar1 = (ulong)param_1 << 3;
}
return *(int8 *)(compression_algorithms + lVar1);
}
|
|
18,182
|
google::protobuf::compiler::cpp::QualifiedFileLevelSymbol(google::protobuf::FileDescriptor const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::compiler::cpp::Options const&)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/cpp/helpers.cc
|
std::string QualifiedFileLevelSymbol(const FileDescriptor* file,
const std::string& name,
const Options& options) {
if (file->package().empty()) {
return StrCat("::", name);
}
return StrCat(Namespace(file, options), "::", name);
}
|
O0
|
cpp
|
google::protobuf::compiler::cpp::QualifiedFileLevelSymbol(google::protobuf::FileDescriptor const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::compiler::cpp::Options const&):
subq $0x158, %rsp # imm = 0x158
movq %rdi, 0x8(%rsp)
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movq %rdi, 0x150(%rsp)
movq %rsi, 0x148(%rsp)
movq %rdx, 0x140(%rsp)
movq %rcx, 0x138(%rsp)
movq 0x148(%rsp), %rdi
callq 0x58260
movq %rax, %rdi
callq 0x212d0
testb $0x1, %al
jne 0x50d3f
jmp 0x50d87
leaq 0x108(%rsp), %rdi
leaq 0x389ac0(%rip), %rsi # 0x3da80e
callq 0x4d6b0
movq 0x140(%rsp), %rsi
leaq 0xd8(%rsp), %rdi
callq 0x4d660
movq 0x8(%rsp), %rdi
leaq 0x108(%rsp), %rsi
leaq 0xd8(%rsp), %rdx
callq 0x223ac0
jmp 0x50e2f
movq 0x148(%rsp), %rsi
movq 0x138(%rsp), %rdx
leaq 0x88(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x516e0
movq (%rsp), %rsi
leaq 0xa8(%rsp), %rdi
callq 0x4d660
jmp 0x50dbb
leaq 0x389a4c(%rip), %rsi # 0x3da80e
leaq 0x48(%rsp), %rdi
callq 0x4d6b0
jmp 0x50dce
movq 0x140(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x4d660
jmp 0x50de2
movq 0x8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0x48(%rsp), %rdx
leaq 0x18(%rsp), %rcx
callq 0x223d90
jmp 0x50e00
leaq 0x88(%rsp), %rdi
callq 0x21cc8
jmp 0x50e2f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x80(%rsp)
movl %eax, 0x7c(%rsp)
leaq 0x88(%rsp), %rdi
callq 0x21cc8
jmp 0x50e3c
movq 0x10(%rsp), %rax
addq $0x158, %rsp # imm = 0x158
retq
movq 0x80(%rsp), %rdi
callq 0x21700
nopl (%rax)
|
_ZN6google8protobuf8compiler3cpp24QualifiedFileLevelSymbolEPKNS0_14FileDescriptorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS2_7OptionsE:
sub rsp, 158h
mov qword ptr [rsp+158h+var_150], rdi; int
mov rax, rdi
mov qword ptr [rsp+158h+var_148], rax; int
mov [rsp+158h+var_8], rdi
mov [rsp+158h+var_10], rsi
mov [rsp+158h+var_18], rdx
mov [rsp+158h+var_20], rcx
mov rdi, [rsp+158h+var_10]
call _ZNK6google8protobuf14FileDescriptor7packageB5cxx11Ev; google::protobuf::FileDescriptor::package(void)
mov rdi, rax
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_50D3F
jmp short loc_50D87
loc_50D3F:
lea rdi, [rsp+158h+var_50]; this
lea rsi, asc_3DA80C+2; char *
call _ZN6google8protobuf7strings8AlphaNumC2EPKc; google::protobuf::strings::AlphaNum::AlphaNum(char const*)
mov rsi, [rsp+158h+var_18]
lea rdi, [rsp+158h+var_80]
call _ZN6google8protobuf7strings8AlphaNumC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::strings::AlphaNum::AlphaNum(std::string const&)
mov rdi, qword ptr [rsp+158h+var_150]; int
lea rsi, [rsp+158h+var_50]; int
lea rdx, [rsp+158h+var_80]; int
call _ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_; google::protobuf::StrCat(google::protobuf::strings::AlphaNum const&,google::protobuf::strings::AlphaNum const&)
jmp loc_50E2F
loc_50D87:
mov rsi, [rsp+158h+var_10]
mov rdx, [rsp+158h+var_20]
lea rdi, [rsp+158h+var_D0]; int
mov qword ptr [rsp+158h+var_158], rdi; int
call _ZN6google8protobuf8compiler3cpp9NamespaceB5cxx11EPKNS0_14FileDescriptorERKNS2_7OptionsE; google::protobuf::compiler::cpp::Namespace(google::protobuf::FileDescriptor const*,google::protobuf::compiler::cpp::Options const&)
mov rsi, qword ptr [rsp+158h+var_158]
lea rdi, [rsp+158h+var_B0]
call _ZN6google8protobuf7strings8AlphaNumC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::strings::AlphaNum::AlphaNum(std::string const&)
jmp short $+2
loc_50DBB:
lea rsi, asc_3DA80C+2; char *
lea rdi, [rsp+158h+var_110]; this
call _ZN6google8protobuf7strings8AlphaNumC2EPKc; google::protobuf::strings::AlphaNum::AlphaNum(char const*)
jmp short $+2
loc_50DCE:
mov rsi, [rsp+158h+var_18]
lea rdi, [rsp+158h+var_140]
call _ZN6google8protobuf7strings8AlphaNumC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::strings::AlphaNum::AlphaNum(std::string const&)
jmp short $+2
loc_50DE2:
mov rdi, qword ptr [rsp+158h+var_150]; int
lea rsi, [rsp+158h+var_B0]; int
lea rdx, [rsp+158h+var_110]; int
lea rcx, [rsp+158h+var_140]; int
call _ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_S4_; google::protobuf::StrCat(google::protobuf::strings::AlphaNum const&,google::protobuf::strings::AlphaNum const&,google::protobuf::strings::AlphaNum const&)
jmp short $+2
loc_50E00:
lea rdi, [rsp+158h+var_D0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_50E2F
mov rcx, rax
mov eax, edx
mov [rsp+arg_78], rcx
mov [rsp+arg_74], eax
lea rdi, [rsp+arg_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_50E3C
loc_50E2F:
mov rax, qword ptr [rsp+158h+var_148]
add rsp, 158h
retn
loc_50E3C:
mov rdi, [rsp+arg_78]
call __Unwind_Resume
|
long long google::protobuf::compiler::cpp::QualifiedFileLevelSymbol(
long long a1,
long long a2,
long long a3,
long long a4)
{
long long v4; // rax
int v5; // ecx
int v6; // r8d
int v7; // r9d
int v8; // r8d
int v9; // r9d
int v11; // [rsp+0h] [rbp-158h]
long long v12; // [rsp+0h] [rbp-158h]
int v13; // [rsp+8h] [rbp-150h]
int v14[2]; // [rsp+10h] [rbp-148h]
int v15; // [rsp+10h] [rbp-148h]
void *v16; // [rsp+18h] [rbp-140h] BYREF
void *v17; // [rsp+20h] [rbp-138h]
int v18; // [rsp+28h] [rbp-130h]
int v19; // [rsp+30h] [rbp-128h]
void *v20; // [rsp+38h] [rbp-120h]
int v21; // [rsp+40h] [rbp-118h]
int v22; // [rsp+48h] [rbp-110h] BYREF
int v23; // [rsp+50h] [rbp-108h]
int v24; // [rsp+58h] [rbp-100h]
int v25; // [rsp+60h] [rbp-F8h]
int v26; // [rsp+68h] [rbp-F0h]
int v27; // [rsp+70h] [rbp-E8h]
int v28; // [rsp+78h] [rbp-E0h]
int v29; // [rsp+80h] [rbp-D8h]
int v30; // [rsp+88h] [rbp-D0h] BYREF
int v31; // [rsp+90h] [rbp-C8h]
long long v32; // [rsp+98h] [rbp-C0h]
int v33; // [rsp+A0h] [rbp-B8h]
_QWORD v34[6]; // [rsp+A8h] [rbp-B0h] BYREF
_QWORD v35[6]; // [rsp+D8h] [rbp-80h] BYREF
int v36[12]; // [rsp+108h] [rbp-50h] BYREF
long long v37; // [rsp+138h] [rbp-20h]
long long v38; // [rsp+140h] [rbp-18h]
long long v39; // [rsp+148h] [rbp-10h]
long long v40; // [rsp+150h] [rbp-8h]
v40 = a1;
v39 = a2;
v38 = a3;
v37 = a4;
v4 = google::protobuf::FileDescriptor::package[abi:cxx11](a2);
if ( (std::string::empty(v4) & 1) != 0 )
{
google::protobuf::strings::AlphaNum::AlphaNum((google::protobuf::strings::AlphaNum *)v36, "::");
google::protobuf::strings::AlphaNum::AlphaNum(v35, v38);
google::protobuf::StrCat[abi:cxx11](
a1,
(int)v36,
(int)v35,
v5,
v6,
v7,
v11,
a1,
a1,
(int)v16,
v17,
v18,
v19,
(int)v20,
v21,
v22,
v23,
v24,
v25,
v26,
v27,
v28,
v29,
v30,
v31,
v32);
}
else
{
google::protobuf::compiler::cpp::Namespace[abi:cxx11](
(int)&v30,
(int)&v30,
a1,
a1,
v16,
(int)v17,
v18,
v19,
(int)v20,
v21,
v22,
v23,
v24,
v25,
v26,
v27,
v28,
v29,
v30,
v31,
v32);
google::protobuf::strings::AlphaNum::AlphaNum(v34, v12);
google::protobuf::strings::AlphaNum::AlphaNum((google::protobuf::strings::AlphaNum *)&v22, "::");
google::protobuf::strings::AlphaNum::AlphaNum(&v16, v38);
google::protobuf::StrCat[abi:cxx11](
v13,
(int)v34,
(int)&v22,
(int)&v16,
v8,
v9,
v12,
v13,
v15,
(int)v16,
(int)v17,
v18,
v19,
v20,
v21,
v22,
v23,
v24,
v25,
v26,
v27,
v28,
v29,
v30,
v31,
v32,
v33,
v34[0],
v34[1]);
std::string::~string(&v30);
}
return *(_QWORD *)v14;
}
|
QualifiedFileLevelSymbol:
SUB RSP,0x158
MOV qword ptr [RSP + 0x8],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x150],RDI
MOV qword ptr [RSP + 0x148],RSI
MOV qword ptr [RSP + 0x140],RDX
MOV qword ptr [RSP + 0x138],RCX
MOV RDI,qword ptr [RSP + 0x148]
CALL 0x00158260
MOV RDI,RAX
CALL 0x001212d0
TEST AL,0x1
JNZ 0x00150d3f
JMP 0x00150d87
LAB_00150d3f:
LEA RDI,[RSP + 0x108]
LEA RSI,[0x4da80e]
CALL 0x0014d6b0
MOV RSI,qword ptr [RSP + 0x140]
LEA RDI,[RSP + 0xd8]
CALL 0x0014d660
MOV RDI,qword ptr [RSP + 0x8]
LEA RSI,[RSP + 0x108]
LEA RDX,[RSP + 0xd8]
CALL 0x00323ac0
JMP 0x00150e2f
LAB_00150d87:
MOV RSI,qword ptr [RSP + 0x148]
MOV RDX,qword ptr [RSP + 0x138]
LEA RDI,[RSP + 0x88]
MOV qword ptr [RSP],RDI
CALL 0x001516e0
MOV RSI,qword ptr [RSP]
LAB_00150dac:
LEA RDI,[RSP + 0xa8]
CALL 0x0014d660
JMP 0x00150dbb
LAB_00150dbb:
LEA RSI,[0x4da80e]
LEA RDI,[RSP + 0x48]
CALL 0x0014d6b0
JMP 0x00150dce
LAB_00150dce:
MOV RSI,qword ptr [RSP + 0x140]
LEA RDI,[RSP + 0x18]
CALL 0x0014d660
JMP 0x00150de2
LAB_00150de2:
MOV RDI,qword ptr [RSP + 0x8]
LEA RSI,[RSP + 0xa8]
LEA RDX,[RSP + 0x48]
LEA RCX,[RSP + 0x18]
CALL 0x00323d90
LAB_00150dfe:
JMP 0x00150e00
LAB_00150e00:
LEA RDI,[RSP + 0x88]
CALL 0x00121cc8
JMP 0x00150e2f
LAB_00150e2f:
MOV RAX,qword ptr [RSP + 0x10]
ADD RSP,0x158
RET
|
/* google::protobuf::compiler::cpp::QualifiedFileLevelSymbol(google::protobuf::FileDescriptor
const*, std::__cxx11::string const&, google::protobuf::compiler::cpp::Options const&) */
cpp * __thiscall
google::protobuf::compiler::cpp::QualifiedFileLevelSymbol
(cpp *this,FileDescriptor *param_1,string *param_2,Options *param_3)
{
ulong uVar1;
AlphaNum local_140 [48];
AlphaNum local_110 [64];
cpp local_d0 [32];
AlphaNum local_b0 [48];
AlphaNum local_80 [48];
AlphaNum local_50 [48];
Options *local_20;
string *local_18;
FileDescriptor *local_10;
cpp *local_8;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
local_8 = this;
FileDescriptor::package_abi_cxx11_(param_1);
uVar1 = std::__cxx11::string::empty();
if ((uVar1 & 1) == 0) {
Namespace_abi_cxx11_(local_d0,local_10,local_20);
/* try { // try from 00150dac to 00150dfd has its CatchHandler @ 00150e0f */
strings::AlphaNum::AlphaNum(local_b0,(string *)local_d0);
strings::AlphaNum::AlphaNum(local_110,"::");
strings::AlphaNum::AlphaNum(local_140,local_18);
StrCat_abi_cxx11_((protobuf *)this,local_b0,local_110,local_140);
std::__cxx11::string::~string((string *)local_d0);
}
else {
strings::AlphaNum::AlphaNum(local_50,"::");
strings::AlphaNum::AlphaNum(local_80,local_18);
StrCat_abi_cxx11_((protobuf *)this,local_50,local_80);
}
return this;
}
|
|
18,183
|
google::protobuf::compiler::cpp::QualifiedFileLevelSymbol(google::protobuf::FileDescriptor const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::compiler::cpp::Options const&)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/cpp/helpers.cc
|
std::string QualifiedFileLevelSymbol(const FileDescriptor* file,
const std::string& name,
const Options& options) {
if (file->package().empty()) {
return StrCat("::", name);
}
return StrCat(Namespace(file, options), "::", name);
}
|
O3
|
cpp
|
google::protobuf::compiler::cpp::QualifiedFileLevelSymbol(google::protobuf::FileDescriptor const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::compiler::cpp::Options const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0xb0, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movq 0x10(%rsi), %rax
cmpq $0x0, 0x8(%rax)
je 0x34640
movq %rsp, %r15
movq %r15, %rdi
movq %rcx, %rdx
callq 0x34d8d
movups (%r15), %xmm0
leaq 0x50(%rsp), %rsi
movups %xmm0, (%rsi)
leaq 0x1972c1(%rip), %rax # 0x1cb8be
leaq 0x20(%rsp), %rdx
movq %rax, (%rdx)
movq $0x2, 0x8(%rdx)
movq (%r14), %rax
leaq 0x80(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r14), %rax
movq %rax, 0x8(%rcx)
movq %rbx, %rdi
callq 0x10b516
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x34672
callq 0x1f4a0
jmp 0x34672
leaq 0x197277(%rip), %rax # 0x1cb8be
leaq 0x50(%rsp), %rsi
movq %rax, (%rsi)
movq $0x2, 0x8(%rsi)
movq (%r14), %rax
leaq 0x20(%rsp), %rdx
movq %rax, (%rdx)
movq 0x8(%r14), %rax
movq %rax, 0x8(%rdx)
movq %rbx, %rdi
callq 0x10b48d
movq %rbx, %rax
addq $0xb0, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x34698
callq 0x1f4a0
movq %rbx, %rdi
callq 0x1f860
|
_ZN6google8protobuf8compiler3cpp24QualifiedFileLevelSymbolEPKNS0_14FileDescriptorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS2_7OptionsE:
push r15
push r14
push rbx
sub rsp, 0B0h
mov r14, rdx
mov rbx, rdi
mov rax, [rsi+10h]
cmp qword ptr [rax+8], 0
jz short loc_34640
mov r15, rsp
mov rdi, r15
mov rdx, rcx
call _ZN6google8protobuf8compiler3cpp9NamespaceB5cxx11EPKNS0_14FileDescriptorERKNS2_7OptionsE; google::protobuf::compiler::cpp::Namespace(google::protobuf::FileDescriptor const*,google::protobuf::compiler::cpp::Options const&)
movups xmm0, xmmword ptr [r15]
lea rsi, [rsp+0C8h+var_78]
movups xmmword ptr [rsi], xmm0
lea rax, asc_1CB8BC+2; "::"
lea rdx, [rsp+0C8h+var_A8]
mov [rdx], rax
mov qword ptr [rdx+8], 2
mov rax, [r14]
lea rcx, [rsp+0C8h+var_48]
mov [rcx], rax
mov rax, [r14+8]
mov [rcx+8], rax
mov rdi, rbx
call _ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_S4_; google::protobuf::StrCat(google::protobuf::strings::AlphaNum const&,google::protobuf::strings::AlphaNum const&,google::protobuf::strings::AlphaNum const&)
lea rax, [rsp+0C8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_34672
call __ZdlPv; operator delete(void *)
jmp short loc_34672
loc_34640:
lea rax, asc_1CB8BC+2; "::"
lea rsi, [rsp+0C8h+var_78]
mov [rsi], rax
mov qword ptr [rsi+8], 2
mov rax, [r14]
lea rdx, [rsp+0C8h+var_A8]
mov [rdx], rax
mov rax, [r14+8]
mov [rdx+8], rax
mov rdi, rbx
call _ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_; google::protobuf::StrCat(google::protobuf::strings::AlphaNum const&,google::protobuf::strings::AlphaNum const&)
loc_34672:
mov rax, rbx
add rsp, 0B0h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
lea rax, [rsp+arg_8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_34698
call __ZdlPv; operator delete(void *)
loc_34698:
mov rdi, rbx
call __Unwind_Resume
|
long long google::protobuf::compiler::cpp::QualifiedFileLevelSymbol(
long long a1,
long long a2,
char **a3,
long long a4)
{
__int128 v6; // [rsp+0h] [rbp-C8h] BYREF
char v7; // [rsp+10h] [rbp-B8h] BYREF
char *v8; // [rsp+20h] [rbp-A8h]
long long v9; // [rsp+28h] [rbp-A0h]
__int128 v10; // [rsp+50h] [rbp-78h]
char *v11; // [rsp+80h] [rbp-48h]
char *v12; // [rsp+88h] [rbp-40h]
if ( *(_QWORD *)(*(_QWORD *)(a2 + 16) + 8LL) )
{
google::protobuf::compiler::cpp::Namespace[abi:cxx11](&v6, a2, a4);
v10 = v6;
v8 = "::";
v9 = 2LL;
v11 = *a3;
v12 = a3[1];
google::protobuf::StrCat[abi:cxx11](a1);
if ( (char *)v6 != &v7 )
operator delete((void *)v6);
}
else
{
*(_QWORD *)&v10 = "::";
*((_QWORD *)&v10 + 1) = 2LL;
v8 = *a3;
v9 = (long long)a3[1];
google::protobuf::StrCat[abi:cxx11](a1);
}
return a1;
}
|
QualifiedFileLevelSymbol:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xb0
MOV R14,RDX
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x10]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x00134640
MOV R15,RSP
MOV RDI,R15
MOV RDX,RCX
CALL 0x00134d8d
MOVUPS XMM0,xmmword ptr [R15]
LEA RSI,[RSP + 0x50]
MOVUPS xmmword ptr [RSI],XMM0
LEA RAX,[0x2cb8be]
LEA RDX,[RSP + 0x20]
MOV qword ptr [RDX],RAX
MOV qword ptr [RDX + 0x8],0x2
MOV RAX,qword ptr [R14]
LEA RCX,[RSP + 0x80]
MOV qword ptr [RCX],RAX
MOV RAX,qword ptr [R14 + 0x8]
MOV qword ptr [RCX + 0x8],RAX
LAB_00134623:
MOV RDI,RBX
CALL 0x0020b516
LAB_0013462b:
LEA RAX,[RSP + 0x10]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00134672
CALL 0x0011f4a0
JMP 0x00134672
LAB_00134640:
LEA RAX,[0x2cb8be]
LEA RSI,[RSP + 0x50]
MOV qword ptr [RSI],RAX
MOV qword ptr [RSI + 0x8],0x2
MOV RAX,qword ptr [R14]
LEA RDX,[RSP + 0x20]
MOV qword ptr [RDX],RAX
MOV RAX,qword ptr [R14 + 0x8]
MOV qword ptr [RDX + 0x8],RAX
MOV RDI,RBX
CALL 0x0020b48d
LAB_00134672:
MOV RAX,RBX
ADD RSP,0xb0
POP RBX
POP R14
POP R15
RET
|
/* google::protobuf::compiler::cpp::QualifiedFileLevelSymbol(google::protobuf::FileDescriptor
const*, std::__cxx11::string const&, google::protobuf::compiler::cpp::Options const&) */
cpp * __thiscall
google::protobuf::compiler::cpp::QualifiedFileLevelSymbol
(cpp *this,FileDescriptor *param_1,string *param_2,Options *param_3)
{
int1 *local_c8;
int8 uStack_c0;
int1 local_b8 [16];
int *local_a8;
int8 local_a0;
int1 *local_78;
int8 uStack_70;
int8 local_48;
int8 local_40;
if (*(long *)(*(long *)(param_1 + 0x10) + 8) == 0) {
local_78 = &DAT_002cb8be;
uStack_70 = 2;
local_a8 = *(int **)param_2;
local_a0 = *(int8 *)(param_2 + 8);
StrCat_abi_cxx11_((protobuf *)this,(AlphaNum *)&local_78,(AlphaNum *)&local_a8);
}
else {
Namespace_abi_cxx11_((cpp *)&local_c8,param_1,param_3);
local_78 = local_c8;
uStack_70 = uStack_c0;
local_a8 = &DAT_002cb8be;
local_a0 = 2;
local_48 = *(int8 *)param_2;
local_40 = *(int8 *)(param_2 + 8);
/* try { // try from 00134623 to 0013462a has its CatchHandler @ 00134682 */
StrCat_abi_cxx11_((protobuf *)this,(AlphaNum *)&local_78,(AlphaNum *)&local_a8,
(AlphaNum *)&local_48);
if (local_c8 != local_b8) {
operator_delete(local_c8);
}
}
return this;
}
|
|
18,184
|
ma_net_safe_read
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
ulong
ma_net_safe_read(MYSQL *mysql)
{
NET *net= &mysql->net;
ulong len=0;
restart:
if (net->pvio != 0)
len=ma_net_read(net);
if (len == packet_error || len == 0)
{
end_server(mysql);
#ifdef HAVE_TLS
/* don't overwrite possible tls protocol errors */
if (net->last_errno != CR_SSL_CONNECTION_ERROR)
#endif
{
my_set_error(mysql, net->last_errno == ER_NET_PACKET_TOO_LARGE ?
CR_NET_PACKET_TOO_LARGE:
CR_SERVER_LOST,
SQLSTATE_UNKNOWN, 0, errno);
}
return(packet_error);
}
if (net->read_pos[0] == 255)
{
if (len > 3)
{
char *pos=(char*) net->read_pos+1;
uint last_errno=uint2korr(pos);
pos+=2;
len-=2;
if (last_errno== 65535 &&
((mariadb_connection(mysql) && (mysql->server_capabilities & CLIENT_PROGRESS)) ||
(!(mysql->extension->mariadb_server_capabilities & MARIADB_CLIENT_PROGRESS << 32))))
{
if (cli_report_progress(mysql, (uchar *)pos, (uint) (len-1)))
{
/* Wrong packet */
my_set_error(mysql, CR_MALFORMED_PACKET, SQLSTATE_UNKNOWN, 0);
return (packet_error);
}
goto restart;
}
net->last_errno= last_errno;
if (pos[0]== '#')
{
ma_strmake(net->sqlstate, pos+1, SQLSTATE_LENGTH);
pos+= SQLSTATE_LENGTH + 1;
}
else
{
strncpy(net->sqlstate, SQLSTATE_UNKNOWN, SQLSTATE_LENGTH);
}
ma_strmake(net->last_error,(char*) pos,
min(len,sizeof(net->last_error)-1));
}
else
{
my_set_error(mysql, CR_UNKNOWN_ERROR, SQLSTATE_UNKNOWN, 0);
}
mysql->server_status&= ~SERVER_MORE_RESULTS_EXIST;
return(packet_error);
}
return len;
}
|
O3
|
c
|
ma_net_safe_read:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r12d, %r12d
cmpq $0x0, (%rbx)
movq %r12, %r14
je 0x4432b
movq %rbx, %rdi
callq 0x60568
movq %rax, %r14
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpq %rax, %r14
je 0x44452
testq %r14, %r14
je 0x44452
movq 0x20(%rbx), %r15
cmpb $-0x1, (%r15)
jne 0x44558
cmpq $0x4, %r14
jb 0x444d4
movzwl 0x1(%r15), %eax
leaq 0x3(%r15), %r13
leaq -0x2(%r14), %r12
cmpl $0xffff, %eax # imm = 0xFFFF
jne 0x444f1
addl $-0x3, %r14d
cmpl $0x5, %r14d
jb 0x444ae
movq 0x480(%rbx), %rax
testq %rax, %rax
je 0x44317
movq 0x80(%rax), %rax
testq %rax, %rax
je 0x44317
movzbl 0x9(%r15), %r8d
cmpq $0xfa, %r8
ja 0x443f8
leaq 0xa(%r15), %rcx
movl %r8d, %edx
addq %rcx, %rdx
movl %r14d, %esi
addq %rsi, %r13
cmpq %r13, %rdx
ja 0x444ae
movzbl 0x4(%r15), %esi
movzbl 0x5(%r15), %edx
movzwl 0x6(%r15), %edi
movzbl 0x8(%r15), %r9d
shll $0x10, %r9d
orl %edi, %r9d
xorps %xmm0, %xmm0
cvtsi2sd %r9d, %xmm0
divsd 0x671ea(%rip), %xmm0 # 0xab5d8
movq %rbx, %rdi
callq *%rax
jmp 0x44317
cmpq $0xfd, %r8
je 0x4442b
cmpl $0xfc, %r8d
je 0x44420
cmpl $0xfb, %r8d
jne 0x44445
leaq 0xa(%r15), %rcx
movq $-0x1, %r8
jmp 0x443ae
leaq 0xc(%r15), %rcx
movzwl 0xa(%r15), %r8d
jmp 0x443ae
leaq 0xd(%r15), %rcx
movzwl 0xa(%r15), %edx
movzbl 0xc(%r15), %r8d
shll $0x10, %r8d
orq %rdx, %r8
jmp 0x443ae
leaq 0x12(%r15), %rcx
movl 0xa(%r15), %r8d
jmp 0x443ae
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0x4456a
movl 0x90(%rbx), %eax
cmpl $0x7ea, %eax # imm = 0x7EA
je 0x44558
cmpl $0x481, %eax # imm = 0x481
movl $0x7e4, %eax # imm = 0x7E4
movl $0x7dd, %r15d # imm = 0x7DD
cmovel %eax, %r15d
leaq 0x3090f4(%rip), %rax # 0x34d580
movq (%rax), %r12
callq 0x37a20
movl (%rax), %r8d
movq %rbx, %rdi
movl %r15d, %esi
movq %r12, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x4459d
jmp 0x44558
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
leaq 0x3090c5(%rip), %rax # 0x34d580
movq (%rax), %rdx
movq %rbx, %rdi
movl $0x7eb, %esi # imm = 0x7EB
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x4459d
jmp 0x44558
leaq 0x3090a5(%rip), %rax # 0x34d580
movq (%rax), %rdx
movq %rbx, %rdi
movl $0x7d0, %esi # imm = 0x7D0
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x4459d
jmp 0x4454b
movl %eax, 0x90(%rbx)
leaq 0x297(%rbx), %rdi
cmpb $0x23, (%r13)
jne 0x4451c
leaq 0x4(%r15), %rsi
movl $0x5, %edx
callq 0x53ecf
addq $0x9, %r15
movq %r15, %r13
jmp 0x44530
leaq 0x30905d(%rip), %rax # 0x34d580
movq (%rax), %rsi
movl $0x5, %edx
callq 0x37130
leaq 0x97(%rbx), %rdi
movl $0x1ff, %edx # imm = 0x1FF
cmpq %rdx, %r12
cmovbq %r12, %rdx
movq %r13, %rsi
callq 0x53ecf
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
andb $-0x9, 0x380(%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
ma_net_safe_read:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
xor r12d, r12d
loc_44317:
cmp qword ptr [rbx], 0
mov r14, r12
jz short loc_4432B
mov rdi, rbx
call ma_net_read
mov r14, rax
loc_4432B:
mov eax, 0FFFFFFFFh
cmp r14, rax
jz loc_44452
test r14, r14
jz loc_44452
mov r15, [rbx+20h]
cmp byte ptr [r15], 0FFh
jnz loc_44558
cmp r14, 4
jb loc_444D4
movzx eax, word ptr [r15+1]
lea r13, [r15+3]
lea r12, [r14-2]
cmp eax, 0FFFFh
jnz loc_444F1
add r14d, 0FFFFFFFDh
cmp r14d, 5
jb loc_444AE
mov rax, [rbx+480h]
test rax, rax
jz short loc_44317
mov rax, [rax+80h]
test rax, rax
jz loc_44317
movzx r8d, byte ptr [r15+9]
cmp r8, 0FAh
ja short loc_443F8
lea rcx, [r15+0Ah]
loc_443AE:
mov edx, r8d
add rdx, rcx
mov esi, r14d
add r13, rsi
cmp rdx, r13
ja loc_444AE
movzx esi, byte ptr [r15+4]
movzx edx, byte ptr [r15+5]
movzx edi, word ptr [r15+6]
movzx r9d, byte ptr [r15+8]
shl r9d, 10h
or r9d, edi
xorps xmm0, xmm0
cvtsi2sd xmm0, r9d
divsd xmm0, cs:qword_AB5D8
mov rdi, rbx
call rax
jmp loc_44317
loc_443F8:
cmp r8, 0FDh
jz short loc_4442B
cmp r8d, 0FCh
jz short loc_44420
cmp r8d, 0FBh
jnz short loc_44445
lea rcx, [r15+0Ah]
mov r8, 0FFFFFFFFFFFFFFFFh
jmp short loc_443AE
loc_44420:
lea rcx, [r15+0Ch]
movzx r8d, word ptr [r15+0Ah]
jmp short loc_443AE
loc_4442B:
lea rcx, [r15+0Dh]
movzx edx, word ptr [r15+0Ah]
movzx r8d, byte ptr [r15+0Ch]
shl r8d, 10h
or r8, rdx
jmp loc_443AE
loc_44445:
lea rcx, [r15+12h]
mov r8d, [r15+0Ah]
jmp loc_443AE
loc_44452:
mov r14d, 0FFFFFFFFh
mov rdi, rbx
call end_server
mov eax, [rbx+90h]
cmp eax, 7EAh
jz loc_44558
cmp eax, 481h
mov eax, 7E4h
mov r15d, 7DDh
cmovz r15d, eax
lea rax, SQLSTATE_UNKNOWN
mov r12, [rax]
call ___errno_location
mov r8d, [rax]
mov rdi, rbx
mov esi, r15d
mov rdx, r12
xor ecx, ecx
xor eax, eax
call my_set_error
jmp loc_44558
loc_444AE:
mov r14d, 0FFFFFFFFh
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov rdi, rbx
mov esi, 7EBh
xor ecx, ecx
xor eax, eax
call my_set_error
jmp loc_44558
loc_444D4:
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov rdi, rbx
mov esi, 7D0h
xor ecx, ecx
xor eax, eax
call my_set_error
jmp short loc_4454B
loc_444F1:
mov [rbx+90h], eax
lea rdi, [rbx+297h]
cmp byte ptr [r13+0], 23h ; '#'
jnz short loc_4451C
lea rsi, [r15+4]
mov edx, 5
call ma_strmake
add r15, 9
mov r13, r15
jmp short loc_44530
loc_4451C:
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
loc_44530:
lea rdi, [rbx+97h]
mov edx, 1FFh
cmp r12, rdx
cmovb rdx, r12
mov rsi, r13
call ma_strmake
loc_4454B:
mov r14d, 0FFFFFFFFh
and byte ptr [rbx+380h], 0F7h
loc_44558:
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
unsigned long long ma_net_safe_read(
long long a1,
long long a2,
long long a3,
long long a4,
unsigned long long a5,
int a6)
{
char v6; // al
unsigned long long v8; // r12
unsigned long long v9; // r14
long long v10; // r15
int v11; // eax
_BYTE *v12; // r13
unsigned int v13; // r14d
long long v14; // rax
void ( *v15)(long long, _QWORD, _QWORD, double); // rax
long long v16; // rcx
int v17; // eax
int v18; // r15d
int v19; // r12d
_DWORD *v20; // rax
int v21; // r9d
long long v22; // rdi
long long v23; // rdx
char v25; // [rsp-8h] [rbp-30h]
v25 = v6;
v8 = 0LL;
while ( 1 )
{
v9 = v8;
if ( *(_QWORD *)a1 )
v9 = ma_net_read(a1);
if ( v9 == 0xFFFFFFFF || !v9 )
break;
v10 = *(_QWORD *)(a1 + 32);
if ( *(_BYTE *)v10 != 0xFF )
return v9;
if ( v9 < 4 )
{
my_set_error(a1, 2000, (_DWORD)SQLSTATE_UNKNOWN, 0, a5, a6, v25);
LABEL_35:
v9 = 0xFFFFFFFFLL;
*(_BYTE *)(a1 + 896) &= ~8u;
return v9;
}
v11 = *(unsigned __int16 *)(v10 + 1);
v12 = (_BYTE *)(v10 + 3);
v8 = v9 - 2;
if ( v11 != 0xFFFF )
{
*(_DWORD *)(a1 + 144) = v11;
v22 = a1 + 663;
if ( *v12 == 35 )
{
ma_strmake(v22, v10 + 4, 5LL);
v12 = (_BYTE *)(v10 + 9);
}
else
{
strncpy(v22, SQLSTATE_UNKNOWN, 5LL);
}
v23 = 511LL;
if ( v8 < 0x1FF )
v23 = v9 - 2;
ma_strmake(a1 + 151, v12, v23);
goto LABEL_35;
}
v13 = v9 - 3;
if ( v13 < 5 )
goto LABEL_27;
v14 = *(_QWORD *)(a1 + 1152);
if ( v14 )
{
v15 = *(void ( **)(long long, _QWORD, _QWORD, double))(v14 + 128);
if ( v15 )
{
a5 = *(unsigned __int8 *)(v10 + 9);
if ( a5 > 0xFA )
{
if ( a5 == 253 )
{
v16 = v10 + 13;
LODWORD(a5) = *(unsigned __int16 *)(v10 + 10) | (*(unsigned __int8 *)(v10 + 12) << 16);
}
else if ( (_DWORD)a5 == 252 )
{
v16 = v10 + 12;
LODWORD(a5) = *(unsigned __int16 *)(v10 + 10);
}
else if ( (_DWORD)a5 == 251 )
{
v16 = v10 + 10;
LODWORD(a5) = -1;
}
else
{
v16 = v10 + 18;
LODWORD(a5) = *(_DWORD *)(v10 + 10);
}
}
else
{
v16 = v10 + 10;
}
if ( v16 + (unsigned long long)(unsigned int)a5 > (unsigned long long)&v12[v13] )
{
LABEL_27:
v9 = 0xFFFFFFFFLL;
my_set_error(a1, 2027, (_DWORD)SQLSTATE_UNKNOWN, 0, a5, a6, v25);
return v9;
}
v15(
a1,
*(unsigned __int8 *)(v10 + 4),
*(unsigned __int8 *)(v10 + 5),
(double)(*(unsigned __int16 *)(v10 + 6) | (*(unsigned __int8 *)(v10 + 8) << 16)) / 1000.0);
}
}
}
v9 = 0xFFFFFFFFLL;
end_server(a1);
v17 = *(_DWORD *)(a1 + 144);
if ( v17 != 2026 )
{
v18 = 2013;
if ( v17 == 1153 )
v18 = 2020;
v19 = (int)SQLSTATE_UNKNOWN;
v20 = (_DWORD *)__errno_location();
my_set_error(a1, v18, v19, 0, *v20, v21, v25);
}
return v9;
}
|
ma_net_safe_read:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
XOR R12D,R12D
LAB_00144317:
CMP qword ptr [RBX],0x0
MOV R14,R12
JZ 0x0014432b
MOV RDI,RBX
CALL 0x00160568
MOV R14,RAX
LAB_0014432b:
MOV EAX,0xffffffff
CMP R14,RAX
JZ 0x00144452
TEST R14,R14
JZ 0x00144452
MOV R15,qword ptr [RBX + 0x20]
CMP byte ptr [R15],0xff
JNZ 0x00144558
CMP R14,0x4
JC 0x001444d4
MOVZX EAX,word ptr [R15 + 0x1]
LEA R13,[R15 + 0x3]
LEA R12,[R14 + -0x2]
CMP EAX,0xffff
JNZ 0x001444f1
ADD R14D,-0x3
CMP R14D,0x5
JC 0x001444ae
MOV RAX,qword ptr [RBX + 0x480]
TEST RAX,RAX
JZ 0x00144317
MOV RAX,qword ptr [RAX + 0x80]
TEST RAX,RAX
JZ 0x00144317
MOVZX R8D,byte ptr [R15 + 0x9]
CMP R8,0xfa
JA 0x001443f8
LEA RCX,[R15 + 0xa]
LAB_001443ae:
MOV EDX,R8D
ADD RDX,RCX
MOV ESI,R14D
ADD R13,RSI
CMP RDX,R13
JA 0x001444ae
MOVZX ESI,byte ptr [R15 + 0x4]
MOVZX EDX,byte ptr [R15 + 0x5]
MOVZX EDI,word ptr [R15 + 0x6]
MOVZX R9D,byte ptr [R15 + 0x8]
SHL R9D,0x10
OR R9D,EDI
XORPS XMM0,XMM0
CVTSI2SD XMM0,R9D
DIVSD XMM0,qword ptr [0x001ab5d8]
MOV RDI,RBX
CALL RAX
JMP 0x00144317
LAB_001443f8:
CMP R8,0xfd
JZ 0x0014442b
CMP R8D,0xfc
JZ 0x00144420
CMP R8D,0xfb
JNZ 0x00144445
LEA RCX,[R15 + 0xa]
MOV R8,-0x1
JMP 0x001443ae
LAB_00144420:
LEA RCX,[R15 + 0xc]
MOVZX R8D,word ptr [R15 + 0xa]
JMP 0x001443ae
LAB_0014442b:
LEA RCX,[R15 + 0xd]
MOVZX EDX,word ptr [R15 + 0xa]
MOVZX R8D,byte ptr [R15 + 0xc]
SHL R8D,0x10
OR R8,RDX
JMP 0x001443ae
LAB_00144445:
LEA RCX,[R15 + 0x12]
MOV R8D,dword ptr [R15 + 0xa]
JMP 0x001443ae
LAB_00144452:
MOV R14D,0xffffffff
MOV RDI,RBX
CALL 0x0014456a
MOV EAX,dword ptr [RBX + 0x90]
CMP EAX,0x7ea
JZ 0x00144558
CMP EAX,0x481
MOV EAX,0x7e4
MOV R15D,0x7dd
CMOVZ R15D,EAX
LEA RAX,[0x44d580]
MOV R12,qword ptr [RAX]
CALL 0x00137a20
MOV R8D,dword ptr [RAX]
MOV RDI,RBX
MOV ESI,R15D
MOV RDX,R12
XOR ECX,ECX
XOR EAX,EAX
CALL 0x0014459d
JMP 0x00144558
LAB_001444ae:
MOV R14D,0xffffffff
LEA RAX,[0x44d580]
MOV RDX,qword ptr [RAX]
MOV RDI,RBX
MOV ESI,0x7eb
XOR ECX,ECX
XOR EAX,EAX
CALL 0x0014459d
JMP 0x00144558
LAB_001444d4:
LEA RAX,[0x44d580]
MOV RDX,qword ptr [RAX]
MOV RDI,RBX
MOV ESI,0x7d0
XOR ECX,ECX
XOR EAX,EAX
CALL 0x0014459d
JMP 0x0014454b
LAB_001444f1:
MOV dword ptr [RBX + 0x90],EAX
LEA RDI,[RBX + 0x297]
CMP byte ptr [R13],0x23
JNZ 0x0014451c
LEA RSI,[R15 + 0x4]
MOV EDX,0x5
CALL 0x00153ecf
ADD R15,0x9
MOV R13,R15
JMP 0x00144530
LAB_0014451c:
LEA RAX,[0x44d580]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00137130
LAB_00144530:
LEA RDI,[RBX + 0x97]
MOV EDX,0x1ff
CMP R12,RDX
CMOVC RDX,R12
MOV RSI,R13
CALL 0x00153ecf
LAB_0014454b:
MOV R14D,0xffffffff
AND byte ptr [RBX + 0x380],0xf7
LAB_00144558:
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
ulong ma_net_safe_read(long *param_1)
{
byte bVar1;
char *pcVar2;
code *pcVar3;
int *puVar4;
ulong uVar5;
int *piVar6;
char *pcVar7;
uint uVar8;
ulong uVar9;
uint uVar10;
int4 uVar11;
char *pcVar12;
uVar9 = 0;
do {
do {
uVar5 = uVar9;
if (*param_1 != 0) {
uVar5 = ma_net_read(param_1);
}
if ((uVar5 == 0xffffffff) || (uVar5 == 0)) {
end_server(param_1);
puVar4 = SQLSTATE_UNKNOWN;
if ((int)param_1[0x12] == 0x7ea) {
return 0xffffffff;
}
uVar11 = 0x7dd;
if ((int)param_1[0x12] == 0x481) {
uVar11 = 0x7e4;
}
piVar6 = __errno_location();
my_set_error(param_1,uVar11,puVar4,0,*piVar6);
return 0xffffffff;
}
pcVar2 = (char *)param_1[4];
if (*pcVar2 != -1) {
return uVar5;
}
if (uVar5 < 4) {
my_set_error(param_1,2000,SQLSTATE_UNKNOWN,0);
LAB_0014454b:
*(byte *)(param_1 + 0x70) = *(byte *)(param_1 + 0x70) & 0xf7;
return 0xffffffff;
}
pcVar12 = pcVar2 + 3;
uVar9 = uVar5 - 2;
if (*(ushort *)(pcVar2 + 1) != 0xffff) {
*(uint *)(param_1 + 0x12) = (uint)*(ushort *)(pcVar2 + 1);
if (*pcVar12 == '#') {
ma_strmake((char *)((long)param_1 + 0x297),pcVar2 + 4,5);
pcVar12 = pcVar2 + 9;
}
else {
strncpy((char *)((long)param_1 + 0x297),SQLSTATE_UNKNOWN,5);
}
uVar5 = 0x1ff;
if (uVar9 < 0x1ff) {
uVar5 = uVar9;
}
ma_strmake((long)param_1 + 0x97,pcVar12,uVar5);
goto LAB_0014454b;
}
uVar10 = (int)uVar5 - 3;
if (uVar10 < 5) goto LAB_001444ae;
} while ((param_1[0x90] == 0) ||
(pcVar3 = *(code **)(param_1[0x90] + 0x80), pcVar3 == (code *)0x0));
bVar1 = pcVar2[9];
uVar8 = (uint)bVar1;
if (uVar8 < 0xfb) {
pcVar7 = pcVar2 + 10;
}
else if (uVar8 == 0xfd) {
pcVar7 = pcVar2 + 0xd;
uVar8 = (uint)*(uint3 *)(pcVar2 + 10);
}
else if (bVar1 == 0xfc) {
pcVar7 = pcVar2 + 0xc;
uVar8 = (uint)*(ushort *)(pcVar2 + 10);
}
else if (bVar1 == 0xfb) {
pcVar7 = pcVar2 + 10;
uVar8 = 0xffffffff;
}
else {
pcVar7 = pcVar2 + 0x12;
uVar8 = *(uint *)(pcVar2 + 10);
}
if (pcVar12 + uVar10 < pcVar7 + uVar8) {
LAB_001444ae:
my_set_error(param_1,0x7eb,SQLSTATE_UNKNOWN,0);
return 0xffffffff;
}
(*pcVar3)((double)*(uint3 *)(pcVar2 + 6) / _DAT_001ab5d8,param_1,pcVar2[4],pcVar2[5]);
} while( true );
}
|
|
18,185
|
unicode_normalize
|
bluesky950520[P]quickjs/libunicode.c
|
int unicode_normalize(uint32_t **pdst, const uint32_t *src, int src_len,
UnicodeNormalizationEnum n_type,
void *opaque, DynBufReallocFunc *realloc_func)
{
int *buf, buf_len, i, p, starter_pos, cc, last_cc, out_len;
BOOL is_compat;
DynBuf dbuf_s, *dbuf = &dbuf_s;
is_compat = n_type >> 1;
dbuf_init2(dbuf, opaque, realloc_func);
if (dbuf_realloc(dbuf, sizeof(int) * src_len))
goto fail;
/* common case: latin1 is unaffected by NFC */
if (n_type == UNICODE_NFC) {
for(i = 0; i < src_len; i++) {
if (src[i] >= 0x100)
goto not_latin1;
}
buf = (int *)dbuf->buf;
memcpy(buf, src, src_len * sizeof(int));
*pdst = (uint32_t *)buf;
return src_len;
not_latin1: ;
}
to_nfd_rec(dbuf, (const int *)src, src_len, is_compat);
if (dbuf_error(dbuf)) {
fail:
*pdst = NULL;
return -1;
}
buf = (int *)dbuf->buf;
buf_len = dbuf->size / sizeof(int);
sort_cc(buf, buf_len);
if (buf_len <= 1 || (n_type & 1) != 0) {
/* NFD / NFKD */
*pdst = (uint32_t *)buf;
return buf_len;
}
i = 1;
out_len = 1;
while (i < buf_len) {
/* find the starter character and test if it is blocked from
the character at 'i' */
last_cc = unicode_get_cc(buf[i]);
starter_pos = out_len - 1;
while (starter_pos >= 0) {
cc = unicode_get_cc(buf[starter_pos]);
if (cc == 0)
break;
if (cc >= last_cc)
goto next;
last_cc = 256;
starter_pos--;
}
if (starter_pos >= 0 &&
(p = compose_pair(buf[starter_pos], buf[i])) != 0) {
buf[starter_pos] = p;
i++;
} else {
next:
buf[out_len++] = buf[i++];
}
}
*pdst = (uint32_t *)buf;
return out_len;
}
|
O1
|
c
|
unicode_normalize:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %ecx, %ebp
movl %edx, %r13d
movq %rsi, %r12
movq %rdi, %r14
leaq 0x58(%rsp), %r15
movq %r15, %rdi
movq %r8, %rsi
movq %r9, %rdx
callq 0x1b32b
movslq %r13d, %rbx
shlq $0x2, %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1b375
testl %eax, %eax
jne 0x98a24
movq %r13, %r15
testl %ebp, %ebp
je 0x98a45
movl %ebp, %ecx
shrl %ecx
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x98d67
cmpl $0x0, 0x18(%rbx)
je 0x98a76
xorl %r13d, %r13d
movl $0xffffffff, %r15d # imm = 0xFFFFFFFF
movq %r13, (%r14)
movl %r15d, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %r15d, %r15d
jle 0x98a61
movl %r15d, %eax
xorl %ecx, %ecx
cmpl $0xff, (%r12,%rcx,4)
ja 0x98a07
incq %rcx
cmpq %rcx, %rax
jne 0x98a4f
movq 0x58(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0xe5b0
jmp 0x98a2d
movl %ebp, 0x30(%rsp)
movq 0x58(%rsp), %r13
movq 0x60(%rsp), %r15
shrq $0x2, %r15
testl %r15d, %r15d
movq %r14, 0x18(%rsp)
jle 0x98b97
movl %r15d, %ebp
andl $0x7fffffff, %ebp # imm = 0x7FFFFFFF
xorl %ebx, %ebx
movq %r15, 0x10(%rsp)
movq %rbp, 0x38(%rsp)
movslq %ebx, %rax
movq %rax, 0x8(%rsp)
movl (%r13,%rax,4), %edi
callq 0x98f03
testl %eax, %eax
je 0x98b8c
leal 0x1(%rbx), %eax
cmpl %r15d, %eax
jge 0x98b7b
leal -0x1(%rbx), %ecx
movl %ecx, 0x34(%rsp)
movslq %eax, %r14
movq %rbx, 0x20(%rsp)
movl (%r13,%r14,4), %r15d
movl %r15d, %edi
callq 0x98f03
testl %eax, %eax
je 0x98b7f
movl %r15d, 0x28(%rsp)
movl %ebx, %r15d
cmpl 0x20(%rsp), %ebx
jl 0x98b52
movl %eax, %r12d
movq %r14, 0x40(%rsp)
movslq %ebx, %r14
incq %r14
movl %ebx, %r15d
movq %r13, %rbp
movl -0x4(%r13,%r14,4), %r13d
movl %r13d, %edi
callq 0x98f03
cmpl %r12d, %eax
jle 0x98b45
movl %r13d, (%rbp,%r14,4)
decl %r15d
decq %r14
cmpq 0x8(%rsp), %r14
movq %rbp, %r13
jg 0x98b14
movl 0x34(%rsp), %r15d
jmp 0x98b48
movq %rbp, %r13
movq 0x38(%rsp), %rbp
movq 0x40(%rsp), %r14
movslq %r15d, %rax
movl 0x28(%rsp), %ecx
movl %ecx, 0x4(%r13,%rax,4)
incq %r14
incl %ebx
cmpq %rbp, %r14
jne 0x98ae0
movq 0x10(%rsp), %r15
movl %r15d, %ebx
movq 0x18(%rsp), %r14
jmp 0x98b8c
movl %eax, %ebx
jmp 0x98b8c
movl %r14d, %ebx
movq 0x18(%rsp), %r14
movq 0x10(%rsp), %r15
incl %ebx
cmpl %r15d, %ebx
jl 0x98aab
testb $0x1, 0x30(%rsp)
jne 0x98a2d
cmpl $0x2, %r15d
jl 0x98a2d
movl %r15d, %r12d
andl $0x7fffffff, %r12d # imm = 0x7FFFFFFF
movl $0x1, %r15d
movl $0x1, %eax
movq %r13, 0x50(%rsp)
movq %r12, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movl (%r13,%rax,4), %edi
movq %rdi, 0x8(%rsp)
callq 0x98f03
movl %eax, %ebx
movl %r15d, %r14d
testl %r14d, %r14d
jle 0x98d3c
movl -0x4(%r13,%r14,4), %ebp
movl %ebp, %edi
callq 0x98f03
testl %eax, %eax
je 0x98c0e
decq %r14
cmpl %ebx, %eax
movl $0x100, %ebx # imm = 0x100
jl 0x98be4
jmp 0x98d3c
movq 0x8(%rsp), %rax
addl $0xffffee9f, %eax # imm = 0xFFFFEE9F
cmpl $0x14, %eax
ja 0x98c49
leal -0x1100(%rbp), %eax
cmpl $0x12, %eax
ja 0x98c49
imull $0x24c, %ebp, %eax # imm = 0x24C
movq 0x8(%rsp), %rdx
leal (%rdx,%rdx,8), %ecx
leal (%rcx,%rcx,2), %ecx
addl %edx, %ecx
leal (%rax,%rcx), %ebx
addl $0xffd7b964, %ebx # imm = 0xFFD7B964
jmp 0x98d31
leal -0xac00(%rbp), %eax
cmpl $0x2ba3, %eax # imm = 0x2BA3
ja 0x98c8b
movq 0x8(%rsp), %rcx
addl $0xffffee59, %ecx # imm = 0xFFFFEE59
cmpl $0x1b, %ecx
ja 0x98c8b
movl %eax, %edx
shrl $0x2, %edx
imulq $0x24924925, %rdx, %rdx # imm = 0x24924925
shrq $0x20, %rdx
leal (%rdx,%rdx,8), %esi
leal (%rsi,%rsi,2), %esi
addl %edx, %esi
subl %esi, %eax
jne 0x98c8b
addl %ecx, %ebp
movl %ebp, %ebx
jmp 0x98d31
movq %r15, 0x10(%rsp)
xorl %r12d, %r12d
movl $0x3c4, %r13d # imm = 0x3C4
leal (%r12,%r13), %eax
movl %eax, %r15d
shrl $0x1f, %r15d
addl %eax, %r15d
sarl %r15d
movslq %r15d, %rax
leaq 0x11a2c(%rip), %rcx # 0xaa6e0
movzwl (%rcx,%rax,2), %ebx
movl %ebx, %edx
shrl $0x6, %edx
andl $0x3f, %ebx
leaq 0xe079(%rip), %rax # 0xa6d40
movl (%rax,%rdx,4), %r9d
movl %r9d, %ecx
shrl $0xe, %ecx
movl %r9d, %r8d
shrl $0x7, %r8d
andl $0x7f, %r8d
shrl %r9d
andl $0x3f, %r9d
addl %ecx, %ebx
leaq 0x48(%rsp), %rdi
movl %ebx, %esi
callq 0x9a60e
movq 0x8(%rsp), %rax
subl 0x4c(%rsp), %eax
movl %ebp, %ecx
subl 0x48(%rsp), %ecx
cmovel %eax, %ecx
testl %ecx, %ecx
js 0x98d11
je 0x98d22
incl %r15d
movl %r15d, %r12d
jmp 0x98d17
decl %r15d
movl %r15d, %r13d
cmpl %r13d, %r12d
jle 0x98c99
xorl %ebx, %ebx
movq 0x10(%rsp), %r15
movq 0x50(%rsp), %r13
movq 0x20(%rsp), %r12
testl %ebx, %ebx
je 0x98d3c
movl %ebx, -0x4(%r13,%r14,4)
jmp 0x98d4c
movslq %r15d, %rax
incl %r15d
movq 0x8(%rsp), %rcx
movl %ecx, (%r13,%rax,4)
movq 0x28(%rsp), %rax
incq %rax
cmpq %r12, %rax
jne 0x98bcb
movq 0x18(%rsp), %r14
jmp 0x98a2d
|
unicode_normalize:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov ebp, ecx
mov r13d, edx
mov r12, rsi
mov r14, rdi
lea r15, [rsp+0B8h+var_60]
mov rdi, r15
mov rsi, r8
mov rdx, r9
call dbuf_init2
movsxd rbx, r13d
shl rbx, 2
mov rdi, r15
mov rsi, rbx
call dbuf_realloc
test eax, eax
jnz short loc_98A24
mov r15, r13
test ebp, ebp
jz short loc_98A45
loc_98A07:
mov ecx, ebp
shr ecx, 1
lea rbx, [rsp+0B8h+var_60]
mov rdi, rbx
mov rsi, r12
mov edx, r15d
call to_nfd_rec
cmp dword ptr [rbx+18h], 0
jz short loc_98A76
loc_98A24:
xor r13d, r13d
mov r15d, 0FFFFFFFFh
loc_98A2D:
mov [r14], r13
mov eax, r15d
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_98A45:
test r15d, r15d
jle short loc_98A61
mov eax, r15d
xor ecx, ecx
loc_98A4F:
cmp dword ptr [r12+rcx*4], 0FFh
ja short loc_98A07
inc rcx
cmp rax, rcx
jnz short loc_98A4F
loc_98A61:
mov r13, [rsp+0B8h+var_60]
mov rdi, r13
mov rsi, r12
mov rdx, rbx
call _memcpy
jmp short loc_98A2D
loc_98A76:
mov [rsp+0B8h+var_88], ebp
mov r13, [rsp+0B8h+var_60]
mov r15, [rsp+0B8h+var_58]
shr r15, 2
test r15d, r15d
mov [rsp+0B8h+var_A0], r14
jle loc_98B97
mov ebp, r15d
and ebp, 7FFFFFFFh
xor ebx, ebx
mov [rsp+0B8h+var_A8], r15
mov [rsp+0B8h+var_80], rbp
loc_98AAB:
movsxd rax, ebx
mov [rsp+0B8h+var_B0], rax
mov edi, [r13+rax*4+0]
call unicode_get_cc
test eax, eax
jz loc_98B8C
lea eax, [rbx+1]
cmp eax, r15d
jge loc_98B7B
lea ecx, [rbx-1]
mov [rsp+0B8h+var_84], ecx
movsxd r14, eax
mov [rsp+0B8h+var_98], rbx
loc_98AE0:
mov r15d, [r13+r14*4+0]
mov edi, r15d
call unicode_get_cc
test eax, eax
jz loc_98B7F
mov dword ptr [rsp+0B8h+var_90], r15d
mov r15d, ebx
cmp ebx, dword ptr [rsp+0B8h+var_98]
jl short loc_98B52
mov r12d, eax
mov [rsp+0B8h+var_78], r14
movsxd r14, ebx
inc r14
mov r15d, ebx
loc_98B14:
mov rbp, r13
mov r13d, [r13+r14*4-4]
mov edi, r13d
call unicode_get_cc
cmp eax, r12d
jle short loc_98B45
mov [rbp+r14*4+0], r13d
dec r15d
dec r14
cmp r14, [rsp+0B8h+var_B0]
mov r13, rbp
jg short loc_98B14
mov r15d, [rsp+0B8h+var_84]
jmp short loc_98B48
loc_98B45:
mov r13, rbp
loc_98B48:
mov rbp, [rsp+0B8h+var_80]
mov r14, [rsp+0B8h+var_78]
loc_98B52:
movsxd rax, r15d
mov ecx, dword ptr [rsp+0B8h+var_90]
mov [r13+rax*4+4], ecx
inc r14
inc ebx
cmp r14, rbp
jnz loc_98AE0
mov r15, [rsp+0B8h+var_A8]
mov ebx, r15d
mov r14, [rsp+0B8h+var_A0]
jmp short loc_98B8C
loc_98B7B:
mov ebx, eax
jmp short loc_98B8C
loc_98B7F:
mov ebx, r14d
mov r14, [rsp+0B8h+var_A0]
mov r15, [rsp+0B8h+var_A8]
loc_98B8C:
inc ebx
cmp ebx, r15d
jl loc_98AAB
loc_98B97:
test byte ptr [rsp+0B8h+var_88], 1
jnz loc_98A2D
cmp r15d, 2
jl loc_98A2D
mov r12d, r15d
and r12d, 7FFFFFFFh
mov r15d, 1
mov eax, 1
mov [rsp+0B8h+var_68], r13
mov [rsp+0B8h+var_98], r12
loc_98BCB:
mov [rsp+0B8h+var_90], rax
mov edi, [r13+rax*4+0]
mov [rsp+0B8h+var_B0], rdi
call unicode_get_cc
mov ebx, eax
mov r14d, r15d
loc_98BE4:
test r14d, r14d
jle loc_98D3C
mov ebp, [r13+r14*4-4]
mov edi, ebp
call unicode_get_cc
test eax, eax
jz short loc_98C0E
dec r14
cmp eax, ebx
mov ebx, 100h
jl short loc_98BE4
jmp loc_98D3C
loc_98C0E:
mov rax, [rsp+0B8h+var_B0]
add eax, 0FFFFEE9Fh
cmp eax, 14h
ja short loc_98C49
lea eax, [rbp-1100h]
cmp eax, 12h
ja short loc_98C49
imul eax, ebp, 24Ch
mov rdx, [rsp+0B8h+var_B0]
lea ecx, [rdx+rdx*8]
lea ecx, [rcx+rcx*2]
add ecx, edx
lea ebx, [rax+rcx]
add ebx, 0FFD7B964h
jmp loc_98D31
loc_98C49:
lea eax, [rbp-0AC00h]
cmp eax, 2BA3h
ja short loc_98C8B
mov rcx, [rsp+0B8h+var_B0]
add ecx, 0FFFFEE59h
cmp ecx, 1Bh
ja short loc_98C8B
mov edx, eax
shr edx, 2
imul rdx, 24924925h
shr rdx, 20h
lea esi, [rdx+rdx*8]
lea esi, [rsi+rsi*2]
add esi, edx
sub eax, esi
jnz short loc_98C8B
add ebp, ecx
mov ebx, ebp
jmp loc_98D31
loc_98C8B:
mov [rsp+0B8h+var_A8], r15
xor r12d, r12d
mov r13d, 3C4h
loc_98C99:
lea eax, [r12+r13]
mov r15d, eax
shr r15d, 1Fh
add r15d, eax
sar r15d, 1
movsxd rax, r15d
lea rcx, unicode_comp_table
movzx ebx, word ptr [rcx+rax*2]
mov edx, ebx
shr edx, 6
and ebx, 3Fh
lea rax, unicode_decomp_table1
mov r9d, [rax+rdx*4]
mov ecx, r9d
shr ecx, 0Eh
mov r8d, r9d
shr r8d, 7
and r8d, 7Fh
shr r9d, 1
and r9d, 3Fh
add ebx, ecx
lea rdi, [rsp+0B8h+var_70]
mov esi, ebx
call unicode_decomp_entry
mov rax, [rsp+0B8h+var_B0]
sub eax, [rsp+0B8h+var_6C]
mov ecx, ebp
sub ecx, [rsp+0B8h+var_70]
cmovz ecx, eax
test ecx, ecx
js short loc_98D11
jz short loc_98D22
inc r15d
mov r12d, r15d
jmp short loc_98D17
loc_98D11:
dec r15d
mov r13d, r15d
loc_98D17:
cmp r12d, r13d
jle loc_98C99
xor ebx, ebx
loc_98D22:
mov r15, [rsp+0B8h+var_A8]
mov r13, [rsp+0B8h+var_68]
mov r12, [rsp+0B8h+var_98]
loc_98D31:
test ebx, ebx
jz short loc_98D3C
mov [r13+r14*4-4], ebx
jmp short loc_98D4C
loc_98D3C:
movsxd rax, r15d
inc r15d
mov rcx, [rsp+0B8h+var_B0]
mov [r13+rax*4+0], ecx
loc_98D4C:
mov rax, [rsp+0B8h+var_90]
inc rax
cmp rax, r12
jnz loc_98BCB
mov r14, [rsp+0B8h+var_A0]
jmp loc_98A2D
|
long long unicode_normalize(
_QWORD *a1,
long long a2,
int a3,
unsigned int a4,
long long a5,
long long ( *a6)())
{
_QWORD *v8; // r14
unsigned long long v9; // rbx
long long v10; // r15
long long v11; // r13
long long v13; // rcx
long long v14; // rbp
int v15; // ebx
long long v16; // r14
unsigned int v17; // r15d
int cc; // eax
int v19; // r15d
int v20; // r12d
long long v21; // r14
long long v22; // rbp
unsigned int v23; // r13d
long long v24; // r12
long long v25; // rax
int v26; // ebx
long long v27; // r14
unsigned int v28; // ebp
int v29; // eax
bool v30; // cc
unsigned int v31; // ebx
int v32; // r12d
int v33; // r13d
int v34; // r15d
long long v35; // rdx
long long v36; // rcx
int v37; // ecx
long long v38; // rax
long long v39; // [rsp+8h] [rbp-B0h]
unsigned int v40; // [rsp+8h] [rbp-B0h]
unsigned long long v41; // [rsp+10h] [rbp-A8h]
long long v42; // [rsp+10h] [rbp-A8h]
int v43; // [rsp+20h] [rbp-98h]
long long v44; // [rsp+20h] [rbp-98h]
unsigned int v45; // [rsp+28h] [rbp-90h]
long long v46; // [rsp+28h] [rbp-90h]
char v47; // [rsp+30h] [rbp-88h]
int v48; // [rsp+34h] [rbp-84h]
long long v49; // [rsp+38h] [rbp-80h]
long long v50; // [rsp+40h] [rbp-78h]
_DWORD v51[2]; // [rsp+48h] [rbp-70h] BYREF
long long v52; // [rsp+50h] [rbp-68h]
long long v53; // [rsp+58h] [rbp-60h] BYREF
unsigned long long v54; // [rsp+60h] [rbp-58h]
int v55; // [rsp+70h] [rbp-48h]
v8 = a1;
dbuf_init2((long long)&v53, a5, a6);
v9 = 4LL * a3;
if ( (unsigned int)dbuf_realloc((long long)&v53, v9) )
goto LABEL_4;
LODWORD(v10) = a3;
if ( !a4 )
{
if ( a3 <= 0 )
{
LABEL_10:
v11 = v53;
memcpy(v53, a2, v9);
goto LABEL_5;
}
v13 = 0LL;
while ( *(_DWORD *)(a2 + 4 * v13) <= 0xFFu )
{
if ( a3 == ++v13 )
goto LABEL_10;
}
}
to_nfd_rec(&v53, a2, (unsigned int)a3, a4 >> 1);
if ( v55 )
{
LABEL_4:
v11 = 0LL;
LODWORD(v10) = -1;
}
else
{
v47 = a4;
v11 = v53;
v10 = v54 >> 2;
if ( (int)(v54 >> 2) > 0 )
{
v14 = (v54 >> 2) & 0x7FFFFFFF;
v15 = 0;
v41 = v54 >> 2;
v49 = v14;
do
{
v39 = v15;
if ( (unsigned int)unicode_get_cc(*(unsigned int *)(v11 + 4LL * v15)) )
{
if ( v15 + 1 >= (int)v10 )
{
++v15;
}
else
{
v48 = v15 - 1;
v16 = v15 + 1;
v43 = v15;
while ( 1 )
{
v17 = *(_DWORD *)(v11 + 4 * v16);
cc = unicode_get_cc(v17);
if ( !cc )
break;
v45 = v17;
v19 = v15;
if ( v15 >= v43 )
{
v20 = cc;
v50 = v16;
v21 = v15 + 1LL;
v19 = v15;
while ( 1 )
{
v22 = v11;
v23 = *(_DWORD *)(v11 + 4 * v21 - 4);
if ( (int)unicode_get_cc(v23) <= v20 )
break;
*(_DWORD *)(v22 + 4 * v21) = v23;
--v19;
--v21;
v11 = v22;
if ( v21 <= v39 )
{
v19 = v48;
goto LABEL_23;
}
}
v11 = v22;
LABEL_23:
v14 = v49;
v16 = v50;
}
*(_DWORD *)(v11 + 4LL * v19 + 4) = v45;
++v16;
++v15;
if ( v16 == v14 )
{
LODWORD(v10) = v41;
v15 = v41;
v8 = a1;
goto LABEL_28;
}
}
v15 = v16;
v8 = a1;
LODWORD(v10) = v41;
}
}
LABEL_28:
++v15;
}
while ( v15 < (int)v10 );
}
if ( (v47 & 1) == 0 && (int)v10 >= 2 )
{
v24 = v10 & 0x7FFFFFFF;
v10 = 1LL;
v25 = 1LL;
v52 = v11;
v44 = v24;
do
{
v46 = v25;
v40 = *(_DWORD *)(v11 + 4 * v25);
v26 = unicode_get_cc(v40);
v27 = (unsigned int)v10;
while ( (int)v27 > 0 )
{
v28 = *(_DWORD *)(v11 + 4 * v27 - 4);
v29 = unicode_get_cc(v28);
if ( !v29 )
{
if ( v40 - 4449 > 0x14 || v28 - 4352 > 0x12 )
{
if ( v28 - 44032 > 0x2BA3 || v40 - 4519 > 0x1B || (v28 - 44032) % 0x1C )
{
v42 = v10;
v32 = 0;
v33 = 964;
do
{
v34 = (v32 + v33) / 2;
v35 = unicode_comp_table[v34] >> 6;
v36 = unicode_decomp_table1[v35] >> 14;
v31 = v36 + (unicode_comp_table[v34] & 0x3F);
unicode_decomp_entry(
v51,
v31,
v35,
v36,
(unicode_decomp_table1[v35] >> 7) & 0x7F,
(unicode_decomp_table1[v35] >> 1) & 0x3F);
v37 = v28 - v51[0];
if ( v28 == v51[0] )
v37 = v40 - v51[1];
if ( v37 < 0 )
{
v33 = v34 - 1;
}
else
{
if ( !v37 )
goto LABEL_53;
v32 = v34 + 1;
}
}
while ( v32 <= v33 );
v31 = 0;
LABEL_53:
v10 = v42;
v11 = v52;
v24 = v44;
}
else
{
v31 = v40 - 4519 + v28;
}
}
else
{
v31 = 588 * v28 + 28 * v40 - 2639516;
}
if ( v31 )
{
*(_DWORD *)(v11 + 4 * v27 - 4) = v31;
goto LABEL_57;
}
break;
}
--v27;
v30 = v29 < v26;
v26 = 256;
if ( !v30 )
break;
}
v38 = (int)v10;
v10 = (unsigned int)(v10 + 1);
*(_DWORD *)(v11 + 4 * v38) = v40;
LABEL_57:
v25 = v46 + 1;
}
while ( v46 + 1 != v24 );
v8 = a1;
}
}
LABEL_5:
*v8 = v11;
return (unsigned int)v10;
}
|
unicode_normalize:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV EBP,ECX
MOV R13D,EDX
MOV R12,RSI
MOV R14,RDI
LEA R15,[RSP + 0x58]
MOV RDI,R15
MOV RSI,R8
MOV RDX,R9
CALL 0x0011b32b
MOVSXD RBX,R13D
SHL RBX,0x2
MOV RDI,R15
MOV RSI,RBX
CALL 0x0011b375
TEST EAX,EAX
JNZ 0x00198a24
MOV R15,R13
TEST EBP,EBP
JZ 0x00198a45
LAB_00198a07:
MOV ECX,EBP
SHR ECX,0x1
LEA RBX,[RSP + 0x58]
MOV RDI,RBX
MOV RSI,R12
MOV EDX,R15D
CALL 0x00198d67
CMP dword ptr [RBX + 0x18],0x0
JZ 0x00198a76
LAB_00198a24:
XOR R13D,R13D
MOV R15D,0xffffffff
LAB_00198a2d:
MOV qword ptr [R14],R13
MOV EAX,R15D
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00198a45:
TEST R15D,R15D
JLE 0x00198a61
MOV EAX,R15D
XOR ECX,ECX
LAB_00198a4f:
CMP dword ptr [R12 + RCX*0x4],0xff
JA 0x00198a07
INC RCX
CMP RAX,RCX
JNZ 0x00198a4f
LAB_00198a61:
MOV R13,qword ptr [RSP + 0x58]
MOV RDI,R13
MOV RSI,R12
MOV RDX,RBX
CALL 0x0010e5b0
JMP 0x00198a2d
LAB_00198a76:
MOV dword ptr [RSP + 0x30],EBP
MOV R13,qword ptr [RSP + 0x58]
MOV R15,qword ptr [RSP + 0x60]
SHR R15,0x2
TEST R15D,R15D
MOV qword ptr [RSP + 0x18],R14
JLE 0x00198b97
MOV EBP,R15D
AND EBP,0x7fffffff
XOR EBX,EBX
MOV qword ptr [RSP + 0x10],R15
MOV qword ptr [RSP + 0x38],RBP
LAB_00198aab:
MOVSXD RAX,EBX
MOV qword ptr [RSP + 0x8],RAX
MOV EDI,dword ptr [R13 + RAX*0x4]
CALL 0x00198f03
TEST EAX,EAX
JZ 0x00198b8c
LEA EAX,[RBX + 0x1]
CMP EAX,R15D
JGE 0x00198b7b
LEA ECX,[RBX + -0x1]
MOV dword ptr [RSP + 0x34],ECX
MOVSXD R14,EAX
MOV qword ptr [RSP + 0x20],RBX
LAB_00198ae0:
MOV R15D,dword ptr [R13 + R14*0x4]
MOV EDI,R15D
CALL 0x00198f03
TEST EAX,EAX
JZ 0x00198b7f
MOV dword ptr [RSP + 0x28],R15D
MOV R15D,EBX
CMP EBX,dword ptr [RSP + 0x20]
JL 0x00198b52
MOV R12D,EAX
MOV qword ptr [RSP + 0x40],R14
MOVSXD R14,EBX
INC R14
MOV R15D,EBX
LAB_00198b14:
MOV RBP,R13
MOV R13D,dword ptr [R13 + R14*0x4 + -0x4]
MOV EDI,R13D
CALL 0x00198f03
CMP EAX,R12D
JLE 0x00198b45
MOV dword ptr [RBP + R14*0x4],R13D
DEC R15D
DEC R14
CMP R14,qword ptr [RSP + 0x8]
MOV R13,RBP
JG 0x00198b14
MOV R15D,dword ptr [RSP + 0x34]
JMP 0x00198b48
LAB_00198b45:
MOV R13,RBP
LAB_00198b48:
MOV RBP,qword ptr [RSP + 0x38]
MOV R14,qword ptr [RSP + 0x40]
LAB_00198b52:
MOVSXD RAX,R15D
MOV ECX,dword ptr [RSP + 0x28]
MOV dword ptr [R13 + RAX*0x4 + 0x4],ECX
INC R14
INC EBX
CMP R14,RBP
JNZ 0x00198ae0
MOV R15,qword ptr [RSP + 0x10]
MOV EBX,R15D
MOV R14,qword ptr [RSP + 0x18]
JMP 0x00198b8c
LAB_00198b7b:
MOV EBX,EAX
JMP 0x00198b8c
LAB_00198b7f:
MOV EBX,R14D
MOV R14,qword ptr [RSP + 0x18]
MOV R15,qword ptr [RSP + 0x10]
LAB_00198b8c:
INC EBX
CMP EBX,R15D
JL 0x00198aab
LAB_00198b97:
TEST byte ptr [RSP + 0x30],0x1
JNZ 0x00198a2d
CMP R15D,0x2
JL 0x00198a2d
MOV R12D,R15D
AND R12D,0x7fffffff
MOV R15D,0x1
MOV EAX,0x1
MOV qword ptr [RSP + 0x50],R13
MOV qword ptr [RSP + 0x20],R12
LAB_00198bcb:
MOV qword ptr [RSP + 0x28],RAX
MOV EDI,dword ptr [R13 + RAX*0x4]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x00198f03
MOV EBX,EAX
MOV R14D,R15D
LAB_00198be4:
TEST R14D,R14D
JLE 0x00198d3c
MOV EBP,dword ptr [R13 + R14*0x4 + -0x4]
MOV EDI,EBP
CALL 0x00198f03
TEST EAX,EAX
JZ 0x00198c0e
DEC R14
CMP EAX,EBX
MOV EBX,0x100
JL 0x00198be4
JMP 0x00198d3c
LAB_00198c0e:
MOV RAX,qword ptr [RSP + 0x8]
ADD EAX,0xffffee9f
CMP EAX,0x14
JA 0x00198c49
LEA EAX,[RBP + -0x1100]
CMP EAX,0x12
JA 0x00198c49
IMUL EAX,EBP,0x24c
MOV RDX,qword ptr [RSP + 0x8]
LEA ECX,[RDX + RDX*0x8]
LEA ECX,[RCX + RCX*0x2]
ADD ECX,EDX
LEA EBX,[RAX + RCX*0x1]
ADD EBX,0xffd7b964
JMP 0x00198d31
LAB_00198c49:
LEA EAX,[RBP + -0xac00]
CMP EAX,0x2ba3
JA 0x00198c8b
MOV RCX,qword ptr [RSP + 0x8]
ADD ECX,0xffffee59
CMP ECX,0x1b
JA 0x00198c8b
MOV EDX,EAX
SHR EDX,0x2
IMUL RDX,RDX,0x24924925
SHR RDX,0x20
LEA ESI,[RDX + RDX*0x8]
LEA ESI,[RSI + RSI*0x2]
ADD ESI,EDX
SUB EAX,ESI
JNZ 0x00198c8b
ADD EBP,ECX
MOV EBX,EBP
JMP 0x00198d31
LAB_00198c8b:
MOV qword ptr [RSP + 0x10],R15
XOR R12D,R12D
MOV R13D,0x3c4
LAB_00198c99:
LEA EAX,[R12 + R13*0x1]
MOV R15D,EAX
SHR R15D,0x1f
ADD R15D,EAX
SAR R15D,0x1
MOVSXD RAX,R15D
LEA RCX,[0x1aa6e0]
MOVZX EBX,word ptr [RCX + RAX*0x2]
MOV EDX,EBX
SHR EDX,0x6
AND EBX,0x3f
LEA RAX,[0x1a6d40]
MOV R9D,dword ptr [RAX + RDX*0x4]
MOV ECX,R9D
SHR ECX,0xe
MOV R8D,R9D
SHR R8D,0x7
AND R8D,0x7f
SHR R9D,0x1
AND R9D,0x3f
ADD EBX,ECX
LEA RDI,[RSP + 0x48]
MOV ESI,EBX
CALL 0x0019a60e
MOV RAX,qword ptr [RSP + 0x8]
SUB EAX,dword ptr [RSP + 0x4c]
MOV ECX,EBP
SUB ECX,dword ptr [RSP + 0x48]
CMOVZ ECX,EAX
TEST ECX,ECX
JS 0x00198d11
JZ 0x00198d22
INC R15D
MOV R12D,R15D
JMP 0x00198d17
LAB_00198d11:
DEC R15D
MOV R13D,R15D
LAB_00198d17:
CMP R12D,R13D
JLE 0x00198c99
XOR EBX,EBX
LAB_00198d22:
MOV R15,qword ptr [RSP + 0x10]
MOV R13,qword ptr [RSP + 0x50]
MOV R12,qword ptr [RSP + 0x20]
LAB_00198d31:
TEST EBX,EBX
JZ 0x00198d3c
MOV dword ptr [R13 + R14*0x4 + -0x4],EBX
JMP 0x00198d4c
LAB_00198d3c:
MOVSXD RAX,R15D
INC R15D
MOV RCX,qword ptr [RSP + 0x8]
MOV dword ptr [R13 + RAX*0x4],ECX
LAB_00198d4c:
MOV RAX,qword ptr [RSP + 0x28]
INC RAX
CMP RAX,R12
JNZ 0x00198bcb
MOV R14,qword ptr [RSP + 0x18]
JMP 0x00198a2d
|
ulong unicode_normalize(long *param_1,void *param_2,uint param_3,uint param_4,int8 param_5,
int8 param_6)
{
int4 uVar1;
int4 uVar2;
int iVar3;
bool bVar4;
int iVar5;
uint uVar6;
int iVar7;
int iVar8;
int iVar9;
ulong uVar10;
uint uVar11;
uint uVar12;
void *pvVar13;
ulong uVar14;
long lVar15;
ulong uVar16;
uint uVar17;
uint uVar18;
int iVar19;
int iVar20;
ulong uVar21;
int local_70;
int local_6c;
void *local_68;
void *local_60;
ulong local_58;
int local_48;
uVar21 = (ulong)param_3;
dbuf_init2(&local_60,param_5,param_6);
iVar5 = dbuf_realloc(&local_60,(long)(int)param_3 << 2);
if (iVar5 == 0) {
if (param_4 == 0) {
if (0 < (int)param_3) {
uVar14 = 0;
do {
if (0xff < *(uint *)((long)param_2 + uVar14 * 4)) goto LAB_00198a07;
uVar14 = uVar14 + 1;
} while (uVar21 != uVar14);
}
memcpy(local_60,param_2,(long)(int)param_3 << 2);
pvVar13 = local_60;
goto LAB_00198a2d;
}
LAB_00198a07:
to_nfd_rec(&local_60,param_2,uVar21,param_4 >> 1);
if (local_48 == 0) {
uVar21 = local_58 >> 2;
uVar17 = (uint)uVar21;
if (0 < (int)uVar17) {
uVar12 = 0;
do {
iVar5 = unicode_get_cc(*(int4 *)((long)local_60 + (long)(int)uVar12 * 4));
uVar6 = uVar12;
if ((iVar5 != 0) && (uVar6 = uVar12 + 1, (int)uVar6 < (int)uVar17)) {
uVar14 = (ulong)(int)uVar6;
uVar11 = uVar12;
do {
uVar1 = *(int4 *)((long)local_60 + uVar14 * 4);
iVar5 = unicode_get_cc(uVar1);
if (iVar5 == 0) {
uVar6 = (uint)uVar14;
break;
}
uVar6 = uVar11;
if ((int)uVar12 <= (int)uVar11) {
lVar15 = (long)(int)uVar11 + 1;
uVar18 = uVar11;
do {
uVar2 = *(int4 *)((long)local_60 + lVar15 * 4 + -4);
iVar7 = unicode_get_cc(uVar2);
uVar6 = uVar18;
if (iVar7 <= iVar5) break;
*(int4 *)((long)local_60 + lVar15 * 4) = uVar2;
uVar18 = uVar18 - 1;
lVar15 = lVar15 + -1;
uVar6 = uVar12 - 1;
} while ((int)uVar12 < lVar15);
}
*(int4 *)((long)local_60 + (long)(int)uVar6 * 4 + 4) = uVar1;
uVar14 = uVar14 + 1;
uVar11 = uVar11 + 1;
uVar6 = uVar17;
} while (uVar14 != (uVar17 & 0x7fffffff));
}
uVar12 = uVar6 + 1;
} while ((int)uVar12 < (int)uVar17);
}
pvVar13 = local_60;
if (((param_4 & 1) == 0) && (1 < (int)uVar17)) {
uVar21 = 1;
uVar14 = 1;
local_68 = local_60;
LAB_00198bcb:
iVar5 = *(int *)((long)pvVar13 + uVar14 * 4);
iVar7 = unicode_get_cc();
uVar16 = uVar21;
do {
if ((int)uVar16 < 1) break;
iVar3 = *(int *)((long)pvVar13 + uVar16 * 4 + -4);
iVar8 = unicode_get_cc(iVar3);
if (iVar8 == 0) {
if ((iVar5 - 0x1161U < 0x15) && (iVar3 - 0x1100U < 0x13)) {
iVar7 = iVar3 * 0x24c + iVar5 * 0x1c + -0x28469c;
goto LAB_00198d31;
}
uVar12 = iVar3 - 0xac00;
if (((0x2ba3 < uVar12) || (0x1b < iVar5 - 0x11a7U)) ||
(uVar12 != (uVar12 / 0x1c) * 0x1c)) {
iVar8 = 0;
iVar20 = 0x3c4;
goto LAB_00198c99;
}
iVar7 = iVar3 + (iVar5 - 0x11a7U);
goto LAB_00198d31;
}
uVar16 = uVar16 - 1;
bVar4 = iVar8 < iVar7;
iVar7 = 0x100;
} while (bVar4);
goto LAB_00198d3c;
}
goto LAB_00198a2d;
}
}
uVar21 = 0xffffffff;
pvVar13 = (void *)0x0;
LAB_00198a2d:
*param_1 = (long)pvVar13;
return uVar21 & 0xffffffff;
LAB_00198c99:
do {
iVar19 = (iVar8 + iVar20) / 2;
uVar10 = (ulong)(*(ushort *)(unicode_comp_table + (long)iVar19 * 2) >> 6);
uVar12 = *(uint *)(unicode_decomp_table1 + uVar10 * 4);
iVar7 = (*(ushort *)(unicode_comp_table + (long)iVar19 * 2) & 0x3f) + (uVar12 >> 0xe);
unicode_decomp_entry(&local_70,iVar7,uVar10,uVar12 >> 0xe,uVar12 >> 7 & 0x7f,uVar12 >> 1 & 0x3f)
;
iVar9 = iVar3 - local_70;
if (iVar3 - local_70 == 0) {
iVar9 = iVar5 - local_6c;
}
pvVar13 = local_68;
if (iVar9 < 0) {
iVar20 = iVar19 + -1;
}
else {
if (iVar9 == 0) goto LAB_00198d31;
iVar8 = iVar19 + 1;
}
} while (iVar8 <= iVar20);
iVar7 = 0;
LAB_00198d31:
if (iVar7 == 0) {
LAB_00198d3c:
iVar7 = (int)uVar21;
uVar21 = (ulong)(iVar7 + 1);
*(int *)((long)pvVar13 + (long)iVar7 * 4) = iVar5;
}
else {
*(int *)((long)pvVar13 + uVar16 * 4 + -4) = iVar7;
}
uVar14 = uVar14 + 1;
if (uVar14 == (uVar17 & 0x7fffffff)) goto LAB_00198a2d;
goto LAB_00198bcb;
}
|
|
18,186
|
my_hash_free
|
eloqsql/mysys/hash.c
|
void my_hash_free(HASH *hash)
{
DBUG_ENTER("my_hash_free");
DBUG_PRINT("enter",("hash:%p elements: %ld",
hash, hash->records));
my_hash_free_elements(hash);
hash->free= 0;
delete_dynamic(&hash->array);
hash->blength= 0;
DBUG_VOID_RETURN;
}
|
O0
|
c
|
my_hash_free:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
jmp 0xb4d6e
movq -0x8(%rbp), %rdi
callq 0xb4db0
movq -0x8(%rbp), %rax
movq $0x0, 0x60(%rax)
movq -0x8(%rbp), %rdi
addq $0x28, %rdi
callq 0xaf670
movq -0x8(%rbp), %rax
movq $0x0, 0x10(%rax)
jmp 0xb4d9e
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_hash_free:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
jmp short $+2
loc_B4D6E:
mov rdi, [rbp+var_8]
call my_hash_free_elements
mov rax, [rbp+var_8]
mov qword ptr [rax+60h], 0
mov rdi, [rbp+var_8]
add rdi, 28h ; '('
call delete_dynamic
mov rax, [rbp+var_8]
mov qword ptr [rax+10h], 0
jmp short $+2
loc_B4D9E:
add rsp, 10h
pop rbp
retn
|
long long my_hash_free(long long a1)
{
long long result; // rax
my_hash_free_elements(a1);
*(_QWORD *)(a1 + 96) = 0LL;
delete_dynamic(a1 + 40);
result = a1;
*(_QWORD *)(a1 + 16) = 0LL;
return result;
}
|
my_hash_free:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
JMP 0x001b4d6e
LAB_001b4d6e:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001b4db0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x60],0x0
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x28
CALL 0x001af670
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],0x0
JMP 0x001b4d9e
LAB_001b4d9e:
ADD RSP,0x10
POP RBP
RET
|
void my_hash_free(long param_1)
{
my_hash_free_elements(param_1);
*(int8 *)(param_1 + 0x60) = 0;
delete_dynamic(param_1 + 0x28);
*(int8 *)(param_1 + 0x10) = 0;
return;
}
|
|
18,187
|
u64toa
|
bluesky950520[P]quickjs/cutils.c
|
size_t u64toa(char buf[minimum_length(21)], uint64_t n)
{
if (likely(n < 0x100000000))
return u32toa(buf, n);
size_t len;
if (n >= TEN_POW_7) {
uint64_t n1 = n / TEN_POW_7;
n %= TEN_POW_7;
if (n1 >= TEN_POW_7) {
uint32_t quo = n1 / TEN_POW_7;
n1 %= TEN_POW_7;
len = u7toa_shift(buf, quo);
len = u07toa_shift(buf, n1, len);
} else {
len = u7toa_shift(buf, n1);
}
return u07toa_shift(buf, n, len);
}
return u7toa_shift(buf, n);
}
|
O2
|
c
|
u64toa:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq %rsi, %rax
shrq $0x20, %rax
jne 0x1a116
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1a032
movl $0x989680, %edi # imm = 0x989680
movq %rsi, %rax
xorl %edx, %edx
divq %rdi
movq %rax, %rcx
movq %rdx, %r14
movabsq $0x5af3107a4000, %r8 # imm = 0x5AF3107A4000
cmpq %r8, %rsi
jb 0x1a166
movq %rsi, %rax
xorl %edx, %edx
divq %r8
movq %rax, %rsi
movq %rcx, %rax
xorl %edx, %edx
divq %rdi
movq %rdx, %r15
movq %rbx, %rdi
callq 0x1a08c
movq %rbx, %rdi
movl %r15d, %esi
movq %rax, %rdx
callq 0x1a0c5
jmp 0x1a170
movq %rbx, %rdi
movl %ecx, %esi
callq 0x1a08c
movq %rbx, %rdi
movl %r14d, %esi
movq %rax, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x1a0c5
|
u64toa:
push r15
push r14
push rbx
mov rbx, rdi
mov rax, rsi
shr rax, 20h
jnz short loc_1A116
mov rdi, rbx
pop rbx
pop r14
pop r15
jmp u32toa
loc_1A116:
mov edi, 989680h
mov rax, rsi
xor edx, edx
div rdi
mov rcx, rax
mov r14, rdx
mov r8, 5AF3107A4000h
cmp rsi, r8
jb short loc_1A166
mov rax, rsi
xor edx, edx
div r8
mov rsi, rax
mov rax, rcx
xor edx, edx
div rdi
mov r15, rdx
mov rdi, rbx
call u7toa_shift
mov rdi, rbx
mov esi, r15d
mov rdx, rax
call u07toa_shift
jmp short loc_1A170
loc_1A166:
mov rdi, rbx
mov esi, ecx
call u7toa_shift
loc_1A170:
mov rdi, rbx
mov esi, r14d
mov rdx, rax
pop rbx
pop r14
pop r15
jmp u07toa_shift
|
long long u64toa(_BYTE *a1, unsigned long long a2)
{
unsigned long long v3; // rcx
unsigned long long v4; // r15
long long v5; // rax
long long v6; // rax
if ( !HIDWORD(a2) )
return u32toa(a1, a2);
v3 = a2 / 0x989680;
if ( a2 < 0x5AF3107A4000LL )
{
v6 = u7toa_shift(a1, v3);
}
else
{
v4 = v3 % 0x989680;
v5 = u7toa_shift(a1, a2 / 0x5AF3107A4000LL);
v6 = u07toa_shift((long long)a1, v4, v5);
}
return u07toa_shift((long long)a1, a2 % 0x989680, v6);
}
|
u64toa:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV RAX,RSI
SHR RAX,0x20
JNZ 0x0011a116
MOV RDI,RBX
POP RBX
POP R14
POP R15
JMP 0x0011a032
LAB_0011a116:
MOV EDI,0x989680
MOV RAX,RSI
XOR EDX,EDX
DIV RDI
MOV RCX,RAX
MOV R14,RDX
MOV R8,0x5af3107a4000
CMP RSI,R8
JC 0x0011a166
MOV RAX,RSI
XOR EDX,EDX
DIV R8
MOV RSI,RAX
MOV RAX,RCX
XOR EDX,EDX
DIV RDI
MOV R15,RDX
MOV RDI,RBX
CALL 0x0011a08c
MOV RDI,RBX
MOV ESI,R15D
MOV RDX,RAX
CALL 0x0011a0c5
JMP 0x0011a170
LAB_0011a166:
MOV RDI,RBX
MOV ESI,ECX
CALL 0x0011a08c
LAB_0011a170:
MOV RDI,RBX
MOV ESI,R14D
MOV RDX,RAX
POP RBX
POP R14
POP R15
JMP 0x0011a0c5
|
void u64toa(int8 param_1,ulong param_2)
{
int8 uVar1;
if (param_2 >> 0x20 == 0) {
u32toa(param_1);
return;
}
if (param_2 < 100000000000000) {
uVar1 = u7toa_shift(param_1,param_2 / 10000000 & 0xffffffff);
}
else {
uVar1 = u7toa_shift(param_1,param_2 / 100000000000000);
uVar1 = u07toa_shift(param_1,(param_2 / 10000000) % 10000000,uVar1);
}
u07toa_shift(param_1,param_2 % 10000000,uVar1);
return;
}
|
|
18,188
|
my_wc_mb_cp932
|
eloqsql/strings/ctype-cp932.c
|
static int
my_wc_mb_cp932(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int code;
if ((int) wc < 0x80) /* ASCII: [U+0000..U+007F] -> [00-7F] */
{
/*
This branch is for performance purposes on ASCII range,
to avoid using unicode_to_cp932[]: about 10% improvement.
*/
if (s >= e)
return MY_CS_TOOSMALL;
s[0]= (uchar) wc;
return 1;
}
if (wc > 0xFFFF ||
!(code= unicode_to_cp932[wc])) /* Bad Unicode code point */
return MY_CS_ILUNI;
if (code <= 0xFF)
{
/* JIS-X-0201 HALF WIDTH KATAKANA [U+FF61..U+FF9F] -> [A1..DF] */
if (s >= e)
return MY_CS_TOOSMALL;
s[0]= code;
return 1;
}
if (s + 2 > e)
return MY_CS_TOOSMALL2;
MY_PUT_MB2(s, code); /* JIS-X-0208(MS) */
return 2;
}
|
O3
|
c
|
my_wc_mb_cp932:
pushq %rbp
movq %rsp, %rbp
cmpl $0x7f, %esi
jg 0xb7a34
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0xb7a82
movb %sil, (%rdx)
movl $0x1, %eax
jmp 0xb7a82
xorl %eax, %eax
cmpq $0xffff, %rsi # imm = 0xFFFF
ja 0xb7a82
leaq 0x6e95a(%rip), %rdi # 0x1263a0
movzwl (%rdi,%rsi,2), %esi
testw %si, %si
je 0xb7a82
movzwl %si, %eax
cmpl $0xff, %eax
ja 0xb7a68
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0xb7a82
movb %sil, (%rdx)
jmp 0xb7a2d
leaq 0x2(%rdx), %rdi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rdi
ja 0xb7a82
rolw $0x8, %si
movw %si, (%rdx)
movl $0x2, %eax
popq %rbp
retq
|
my_wc_mb_cp932:
push rbp
mov rbp, rsp
cmp esi, 7Fh
jg short loc_B7A34
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_B7A82
mov [rdx], sil
loc_B7A2D:
mov eax, 1
jmp short loc_B7A82
loc_B7A34:
xor eax, eax
cmp rsi, 0FFFFh
ja short loc_B7A82
lea rdi, unicode_to_cp932
movzx esi, word ptr [rdi+rsi*2]
test si, si
jz short loc_B7A82
movzx eax, si
cmp eax, 0FFh
ja short loc_B7A68
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_B7A82
mov [rdx], sil
jmp short loc_B7A2D
loc_B7A68:
lea rdi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rdi, rcx
ja short loc_B7A82
rol si, 8
mov [rdx], si
mov eax, 2
loc_B7A82:
pop rbp
retn
|
long long my_wc_mb_cp932(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
long long result; // rax
unsigned __int16 v5; // si
if ( (int)a2 <= 127 )
{
result = 4294967195LL;
if ( (unsigned long long)a3 >= a4 )
return result;
*a3 = a2;
return 1LL;
}
result = 0LL;
if ( a2 <= 0xFFFF )
{
v5 = unicode_to_cp932[a2];
if ( v5 )
{
if ( v5 > 0xFFu )
{
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
*(_WORD *)a3 = __ROL2__(v5, 8);
return 2LL;
}
}
else
{
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
*a3 = v5;
return 1LL;
}
}
}
}
return result;
}
|
my_wc_mb_cp932:
PUSH RBP
MOV RBP,RSP
CMP ESI,0x7f
JG 0x001b7a34
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x001b7a82
MOV byte ptr [RDX],SIL
LAB_001b7a2d:
MOV EAX,0x1
JMP 0x001b7a82
LAB_001b7a34:
XOR EAX,EAX
CMP RSI,0xffff
JA 0x001b7a82
LEA RDI,[0x2263a0]
MOVZX ESI,word ptr [RDI + RSI*0x2]
TEST SI,SI
JZ 0x001b7a82
MOVZX EAX,SI
CMP EAX,0xff
JA 0x001b7a68
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x001b7a82
MOV byte ptr [RDX],SIL
JMP 0x001b7a2d
LAB_001b7a68:
LEA RDI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RDI,RCX
JA 0x001b7a82
ROL SI,0x8
MOV word ptr [RDX],SI
MOV EAX,0x2
LAB_001b7a82:
POP RBP
RET
|
int8 my_wc_mb_cp932(int8 param_1,ulong param_2,ushort *param_3,ushort *param_4)
{
ushort uVar1;
if ((int)param_2 < 0x80) {
if (param_4 <= param_3) {
return 0xffffff9b;
}
*(char *)param_3 = (char)param_2;
}
else {
if (0xffff < param_2) {
return 0;
}
uVar1 = *(ushort *)(unicode_to_cp932 + param_2 * 2);
if (uVar1 == 0) {
return 0;
}
if (0xff < uVar1) {
if (param_4 < param_3 + 1) {
return 0xffffff9a;
}
*param_3 = uVar1 << 8 | uVar1 >> 8;
return 2;
}
if (param_4 <= param_3) {
return 0xffffff9b;
}
*(char *)param_3 = (char)uVar1;
}
return 1;
}
|
|
18,189
|
my_atod
|
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
|
double my_atod(const char *number, const char *end, int *error)
{
double val= 0.0;
char buffer[MAX_DBL_STR + 1];
int len= (int)(end - number);
*error= errno= 0;
if (len > MAX_DBL_STR)
{
*error= 1;
len= MAX_DBL_STR;
}
memcpy(buffer, number, len);
buffer[len]= '\0';
val= strtod(buffer, NULL);
if (errno)
*error= errno;
return val;
}
|
O3
|
c
|
my_atod:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x448, %rsp # imm = 0x448
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
subq %rdi, %r15
callq 0x13060
movq %rax, %r14
movl $0x0, (%rax)
xorl %eax, %eax
cmpl $0x436, %r15d # imm = 0x436
setge %al
movl %eax, (%rbx)
movslq %r15d, %rax
movl $0x435, %r15d # imm = 0x435
cmovlq %rax, %r15
leaq -0x470(%rbp), %r13
movl $0x436, %ecx # imm = 0x436
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x13770
movb $0x0, -0x470(%rbp,%r15)
movq %r13, %rdi
xorl %esi, %esi
callq 0x13350
movl (%r14), %eax
testl %eax, %eax
je 0x26922
movl %eax, (%rbx)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x26943
addq $0x448, %rsp # imm = 0x448
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x13500
|
my_atod:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 448h
mov rbx, rdx
mov r15, rsi
mov r12, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
sub r15, rdi
call ___errno_location
mov r14, rax
mov dword ptr [rax], 0
xor eax, eax
cmp r15d, 436h
setnl al
mov [rbx], eax
movsxd rax, r15d
mov r15d, 435h
cmovl r15, rax
lea r13, [rbp+var_470]
mov ecx, 436h
mov rdi, r13
mov rsi, r12
mov rdx, r15
call ___memcpy_chk
mov [rbp+r15+var_470], 0
mov rdi, r13
xor esi, esi
call _strtod
mov eax, [r14]
test eax, eax
jz short loc_26922
mov [rbx], eax
loc_26922:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_26943
add rsp, 448h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_26943:
call ___stack_chk_fail
|
unsigned long long my_atod(long long a1, int a2, _DWORD *a3)
{
_DWORD *v4; // r14
long long v5; // r15
_BYTE v7[1088]; // [rsp+0h] [rbp-470h] BYREF
unsigned long long v8; // [rsp+440h] [rbp-30h]
v8 = __readfsqword(0x28u);
v4 = (_DWORD *)__errno_location(a1);
*v4 = 0;
*a3 = a2 - (int)a1 >= 1078;
v5 = 1077LL;
if ( a2 - (int)a1 < 1078 )
v5 = a2 - (int)a1;
__memcpy_chk(v7, a1, v5, 1078LL);
v7[v5] = 0;
strtod(v7, 0LL);
if ( *v4 )
*a3 = *v4;
return __readfsqword(0x28u);
}
|
my_atod:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x448
MOV RBX,RDX
MOV R15,RSI
MOV R12,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
SUB R15,RDI
CALL 0x00113060
MOV R14,RAX
MOV dword ptr [RAX],0x0
XOR EAX,EAX
CMP R15D,0x436
SETGE AL
MOV dword ptr [RBX],EAX
MOVSXD RAX,R15D
MOV R15D,0x435
CMOVL R15,RAX
LEA R13,[RBP + -0x470]
MOV ECX,0x436
MOV RDI,R13
MOV RSI,R12
MOV RDX,R15
CALL 0x00113770
MOV byte ptr [RBP + R15*0x1 + -0x470],0x0
MOV RDI,R13
XOR ESI,ESI
CALL 0x00113350
MOV EAX,dword ptr [R14]
TEST EAX,EAX
JZ 0x00126922
MOV dword ptr [RBX],EAX
LAB_00126922:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00126943
ADD RSP,0x448
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00126943:
CALL 0x00113500
|
void my_atod(int8 param_1,int param_2,uint *param_3)
{
uint *puVar1;
long lVar2;
long in_FS_OFFSET;
char local_478 [1088];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
param_2 = param_2 - (int)param_1;
puVar1 = (uint *)__errno_location();
*puVar1 = 0;
*param_3 = (uint)(0x435 < param_2);
lVar2 = 0x435;
if (param_2 < 0x436) {
lVar2 = (long)param_2;
}
__memcpy_chk(local_478,param_1,lVar2,0x436);
local_478[lVar2] = '\0';
strtod(local_478,(char **)0x0);
if (*puVar1 != 0) {
*param_3 = *puVar1;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
18,190
|
my_fstat
|
eloqsql/mysys/my_lib.c
|
int my_fstat(File Filedes, MY_STAT *stat_area,
myf MyFlags __attribute__((unused)))
{
DBUG_ENTER("my_fstat");
DBUG_PRINT("my",("fd: %d MyFlags: %lu", Filedes, MyFlags));
#ifdef _WIN32
DBUG_RETURN(my_win_fstat(Filedes, stat_area));
#elif defined HAVE_valgrind
{
int s= fstat(Filedes, stat_area);
if (!s)
MSAN_STAT_WORKAROUND(stat_area);
DBUG_RETURN(s);
}
#else
DBUG_RETURN(fstat(Filedes, (struct stat *) stat_area));
#endif
}
|
O0
|
c
|
my_fstat:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
jmp 0x64cc5
jmp 0x64cc7
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x24520
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
|
my_fstat:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
jmp short $+2
loc_64CC5:
jmp short $+2
loc_64CC7:
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call _fstat64
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
add rsp, 20h
pop rbp
retn
|
long long my_fstat(unsigned int a1, long long a2)
{
return (unsigned int)fstat64(a1, a2);
}
|
my_fstat:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
JMP 0x00164cc5
LAB_00164cc5:
JMP 0x00164cc7
LAB_00164cc7:
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00124520
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
ADD RSP,0x20
POP RBP
RET
|
int my_fstat(int param_1,stat64 *param_2)
{
int iVar1;
iVar1 = fstat64(param_1,param_2);
return iVar1;
}
|
|
18,191
|
ma_insert_dynamic
|
eloqsql/libmariadb/libmariadb/ma_array.c
|
my_bool ma_insert_dynamic(DYNAMIC_ARRAY *array, void *element)
{
void *buffer;
if (array->elements == array->max_element)
{ /* Call only when necessary */
if (!(buffer=ma_alloc_dynamic(array)))
return TRUE;
}
else
{
buffer=array->buffer+(array->elements * array->size_of_element);
array->elements++;
}
memcpy(buffer,element,(size_t) array->size_of_element);
return FALSE;
}
|
O3
|
c
|
ma_insert_dynamic:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x8(%rdi), %ecx
cmpl 0xc(%rdi), %ecx
jne 0x332a3
movq %r14, %rdi
callq 0x332ca
testq %rax, %rax
je 0x332c6
movq %rax, %rdi
movl 0x14(%r14), %eax
jmp 0x332b5
movl 0x14(%r14), %eax
movl %eax, %edi
imull %ecx, %edi
addq (%r14), %rdi
incl %ecx
movl %ecx, 0x8(%r14)
movl %eax, %edx
movq %rbx, %rsi
callq 0x13390
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
movb $0x1, %al
jmp 0x332c1
|
ma_insert_dynamic:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rsi
mov r14, rdi
mov ecx, [rdi+8]
cmp ecx, [rdi+0Ch]
jnz short loc_332A3
mov rdi, r14
call ma_alloc_dynamic
test rax, rax
jz short loc_332C6
mov rdi, rax
mov eax, [r14+14h]
jmp short loc_332B5
loc_332A3:
mov eax, [r14+14h]
mov edi, eax
imul edi, ecx
add rdi, [r14]
inc ecx
mov [r14+8], ecx
loc_332B5:
mov edx, eax
mov rsi, rbx
call _memcpy
xor eax, eax
loc_332C1:
pop rbx
pop r14
pop rbp
retn
loc_332C6:
mov al, 1
jmp short loc_332C1
|
long long ma_insert_dynamic(long long a1, long long a2)
{
int v3; // ecx
long long v4; // rax
long long v5; // rdi
unsigned int v6; // eax
v3 = *(_DWORD *)(a1 + 8);
if ( v3 != *(_DWORD *)(a1 + 12) )
{
v6 = *(_DWORD *)(a1 + 20);
v5 = *(_QWORD *)a1 + v3 * v6;
*(_DWORD *)(a1 + 8) = v3 + 1;
goto LABEL_5;
}
v4 = ma_alloc_dynamic(a1);
if ( v4 )
{
v5 = v4;
v6 = *(_DWORD *)(a1 + 20);
LABEL_5:
memcpy(v5, a2, v6);
return 0LL;
}
return 1LL;
}
|
ma_insert_dynamic:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
MOV ECX,dword ptr [RDI + 0x8]
CMP ECX,dword ptr [RDI + 0xc]
JNZ 0x001332a3
MOV RDI,R14
CALL 0x001332ca
TEST RAX,RAX
JZ 0x001332c6
MOV RDI,RAX
MOV EAX,dword ptr [R14 + 0x14]
JMP 0x001332b5
LAB_001332a3:
MOV EAX,dword ptr [R14 + 0x14]
MOV EDI,EAX
IMUL EDI,ECX
ADD RDI,qword ptr [R14]
INC ECX
MOV dword ptr [R14 + 0x8],ECX
LAB_001332b5:
MOV EDX,EAX
MOV RSI,RBX
CALL 0x00113390
XOR EAX,EAX
LAB_001332c1:
POP RBX
POP R14
POP RBP
RET
LAB_001332c6:
MOV AL,0x1
JMP 0x001332c1
|
int8 ma_insert_dynamic(long *param_1,void *param_2)
{
int iVar1;
uint uVar2;
void *__dest;
iVar1 = (int)param_1[1];
if (iVar1 == *(int *)((long)param_1 + 0xc)) {
__dest = (void *)ma_alloc_dynamic(param_1);
if (__dest == (void *)0x0) {
return 1;
}
uVar2 = *(uint *)((long)param_1 + 0x14);
}
else {
uVar2 = *(uint *)((long)param_1 + 0x14);
__dest = (void *)((ulong)(uVar2 * iVar1) + *param_1);
*(int *)(param_1 + 1) = iVar1 + 1;
}
memcpy(__dest,param_2,(ulong)uVar2);
return 0;
}
|
|
18,192
|
translog_read_record_header
|
eloqsql/storage/maria/ma_loghandler.c
|
int translog_read_record_header(LSN lsn, TRANSLOG_HEADER_BUFFER *buff)
{
TRANSLOG_PAGE_SIZE_BUFF psize_buff;
uchar *page;
translog_size_t res, page_offset= LSN_OFFSET(lsn) % TRANSLOG_PAGE_SIZE;
PAGECACHE_BLOCK_LINK *direct_link;
TRANSLOG_ADDRESS addr;
TRANSLOG_VALIDATOR_DATA data;
DBUG_ENTER("translog_read_record_header");
DBUG_PRINT("enter", ("LSN: " LSN_FMT, LSN_IN_PARTS(lsn)));
DBUG_ASSERT(LSN_OFFSET(lsn) % TRANSLOG_PAGE_SIZE != 0);
DBUG_ASSERT(translog_status == TRANSLOG_OK ||
translog_status == TRANSLOG_READONLY);
buff->lsn= lsn;
buff->groups_no= 0;
data.addr= &addr;
data.was_recovered= 0;
addr= lsn;
addr-= page_offset; /* offset decreasing */
res= (!(page= translog_get_page(&data, psize_buff.buffer, &direct_link))) ?
RECHEADER_READ_ERROR :
translog_read_record_header_from_buffer(page, page_offset, buff, 0);
translog_free_link(direct_link);
DBUG_RETURN(res);
}
|
O3
|
c
|
translog_read_record_header:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x2030, %rsp # imm = 0x2030
movq %rsi, %rbx
movq %rdi, %r14
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
movq %rdi, (%rsi)
movl $0x0, 0x418(%rsi)
leaq -0x2028(%rbp), %rax
leaq -0x2038(%rbp), %rdi
movq %rax, (%rdi)
movb $0x0, 0x8(%rdi)
movq %r14, %rcx
andq $-0x2000, %rcx # imm = 0xE000
movq %rcx, (%rax)
leaq -0x2018(%rbp), %rsi
leaq -0x2020(%rbp), %rdx
callq 0x6a4a8
testq %rax, %rax
je 0x6ae59
andl $0x1fff, %r14d # imm = 0x1FFF
movq %rax, %rdi
movl %r14d, %esi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x6bf9c
movl %eax, %ebx
jmp 0x6ae5e
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
movq -0x2020(%rbp), %rdi
callq 0x6bf6a
movq %fs:0x28, %rax
cmpq -0x18(%rbp), %rax
jne 0x6ae87
movl %ebx, %eax
addq $0x2030, %rsp # imm = 0x2030
popq %rbx
popq %r14
popq %rbp
retq
callq 0x29220
|
translog_read_record_header:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 2030h
mov rbx, rsi
mov r14, rdi
mov rax, fs:28h
mov [rbp+var_18], rax
mov [rsi], rdi
mov dword ptr [rsi+418h], 0
lea rax, [rbp+var_2028]
lea rdi, [rbp+var_2038]
mov [rdi], rax
mov byte ptr [rdi+8], 0
mov rcx, r14
and rcx, 0FFFFFFFFFFFFE000h
mov [rax], rcx
lea rsi, [rbp+var_2018]
lea rdx, [rbp+var_2020]
call translog_get_page
test rax, rax
jz short loc_6AE59
and r14d, 1FFFh
mov rdi, rax
mov esi, r14d
mov rdx, rbx
xor ecx, ecx
call translog_read_record_header_from_buffer
mov ebx, eax
jmp short loc_6AE5E
loc_6AE59:
mov ebx, 0FFFFFFFFh
loc_6AE5E:
mov rdi, [rbp+var_2020]
call translog_free_link
mov rax, fs:28h
cmp rax, [rbp+var_18]
jnz short loc_6AE87
mov eax, ebx
add rsp, 2030h
pop rbx
pop r14
pop rbp
retn
loc_6AE87:
call ___stack_chk_fail
|
long long translog_read_record_header(long long a1, long long a2)
{
long long page; // rax
unsigned int record_header_from_buffer; // ebx
unsigned long long *v5; // [rsp+8h] [rbp-2038h] BYREF
char v6; // [rsp+10h] [rbp-2030h]
unsigned long long v7; // [rsp+18h] [rbp-2028h] BYREF
long long v8; // [rsp+20h] [rbp-2020h] BYREF
_BYTE v9[8192]; // [rsp+28h] [rbp-2018h] BYREF
unsigned long long v10; // [rsp+2028h] [rbp-18h]
v10 = __readfsqword(0x28u);
*(_QWORD *)a2 = a1;
*(_DWORD *)(a2 + 1048) = 0;
v5 = &v7;
v6 = 0;
v7 = a1 & 0xFFFFFFFFFFFFE000LL;
page = translog_get_page((long long **)&v5, (long long)v9, &v8);
if ( page )
record_header_from_buffer = translog_read_record_header_from_buffer(page, a1 & 0x1FFF, a2, 0LL);
else
record_header_from_buffer = -1;
translog_free_link(v8);
return record_header_from_buffer;
}
|
translog_read_record_header:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x2030
MOV RBX,RSI
MOV R14,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
MOV qword ptr [RSI],RDI
MOV dword ptr [RSI + 0x418],0x0
LEA RAX,[RBP + -0x2028]
LEA RDI,[RBP + -0x2038]
MOV qword ptr [RDI],RAX
MOV byte ptr [RDI + 0x8],0x0
MOV RCX,R14
AND RCX,-0x2000
MOV qword ptr [RAX],RCX
LEA RSI,[RBP + -0x2018]
LEA RDX,[RBP + -0x2020]
CALL 0x0016a4a8
TEST RAX,RAX
JZ 0x0016ae59
AND R14D,0x1fff
MOV RDI,RAX
MOV ESI,R14D
MOV RDX,RBX
XOR ECX,ECX
CALL 0x0016bf9c
MOV EBX,EAX
JMP 0x0016ae5e
LAB_0016ae59:
MOV EBX,0xffffffff
LAB_0016ae5e:
MOV RDI,qword ptr [RBP + -0x2020]
CALL 0x0016bf6a
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x18]
JNZ 0x0016ae87
MOV EAX,EBX
ADD RSP,0x2030
POP RBX
POP R14
POP RBP
RET
LAB_0016ae87:
CALL 0x00129220
|
int4 translog_read_record_header(ulong param_1,ulong *param_2)
{
int4 uVar1;
long lVar2;
long in_FS_OFFSET;
ulong *local_2040;
int1 local_2038;
ulong local_2030;
int8 local_2028;
int1 local_2020 [8192];
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
*param_2 = param_1;
*(int4 *)(param_2 + 0x83) = 0;
local_2040 = &local_2030;
local_2038 = 0;
local_2030 = param_1 & 0xffffffffffffe000;
lVar2 = translog_get_page(&local_2040,local_2020,&local_2028);
if (lVar2 == 0) {
uVar1 = 0xffffffff;
}
else {
uVar1 = translog_read_record_header_from_buffer(lVar2,(uint)param_1 & 0x1fff,param_2,0);
}
translog_free_link(local_2028);
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return uVar1;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
18,193
|
js_global_escape
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_global_escape(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue str;
StringBuffer b_s, *b = &b_s;
JSString *p;
int i, len, c;
str = JS_ToString(ctx, argv[0]);
if (JS_IsException(str))
return str;
p = JS_VALUE_GET_STRING(str);
string_buffer_init(ctx, b, p->len);
for (i = 0, len = p->len; i < len; i++) {
c = string_get(p, i);
if (isUnescaped(c)) {
string_buffer_putc16(b, c);
} else {
encodeURI_hex(b, c);
}
}
JS_FreeValue(ctx, str);
return string_buffer_end(b);
}
|
O2
|
c
|
js_global_escape:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r14
movq (%r8), %rsi
movq 0x8(%r8), %rdx
callq 0x1ebec
movq %rax, %rbx
cmpl $0x6, %edx
je 0x6a000
movq %rdx, 0x10(%rsp)
movl $0x7fffffff, %edx # imm = 0x7FFFFFFF
andl 0x4(%rbx), %edx
leaq 0x18(%rsp), %r12
movq %r14, 0x8(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x31bf2
movq 0x4(%rbx), %r14
andl $0x7fffffff, %r14d # imm = 0x7FFFFFFF
xorl %r13d, %r13d
pushq $0x45
popq %rbp
cmpq %r13, %r14
je 0x69fe1
testb $-0x80, 0x7(%rbx)
jne 0x69f9e
movzbl 0x18(%rbx,%r13), %r15d
jmp 0x69fad
movzwl 0x18(%rbx,%r13,2), %r15d
cmpl $0xff, %r15d
ja 0x69fd1
leaq 0x1e90c(%rip), %rdi # 0x888c0
movl %r15d, %esi
movq %rbp, %rdx
callq 0xe4a0
testq %rax, %rax
je 0x69fd1
movq %r12, %rdi
movl %r15d, %esi
callq 0x418a6
jmp 0x69fdc
movq %r12, %rdi
movl %r15d, %esi
callq 0x6a2c5
incq %r13
jmp 0x69f8b
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
movq 0x10(%rsp), %rdx
callq 0x1bbce
leaq 0x18(%rsp), %rdi
callq 0x30684
movq %rax, %rbx
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
js_global_escape:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r14, rdi
mov rsi, [r8]
mov rdx, [r8+8]
call JS_ToString
mov rbx, rax
cmp edx, 6
jz loc_6A000
mov [rsp+68h+var_58], rdx
mov edx, 7FFFFFFFh
and edx, [rbx+4]
lea r12, [rsp+68h+var_50]
mov [rsp+68h+var_60], r14
mov rdi, r14
mov rsi, r12
call string_buffer_init
mov r14, [rbx+4]
and r14d, 7FFFFFFFh
xor r13d, r13d
push 45h ; 'E'
pop rbp
loc_69F8B:
cmp r14, r13
jz short loc_69FE1
test byte ptr [rbx+7], 80h
jnz short loc_69F9E
movzx r15d, byte ptr [rbx+r13+18h]
jmp short loc_69FAD
loc_69F9E:
movzx r15d, word ptr [rbx+r13*2+18h]
cmp r15d, 0FFh
ja short loc_69FD1
loc_69FAD:
lea rdi, isUnescaped_unescaped_chars; "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklm"...
mov esi, r15d
mov rdx, rbp
call _memchr
test rax, rax
jz short loc_69FD1
mov rdi, r12
mov esi, r15d
call string_buffer_putc16
jmp short loc_69FDC
loc_69FD1:
mov rdi, r12
mov esi, r15d
call encodeURI_hex
loc_69FDC:
inc r13
jmp short loc_69F8B
loc_69FE1:
mov rdi, [rsp+68h+var_60]
mov rsi, rbx
mov rdx, [rsp+68h+var_58]
call JS_FreeValue
lea rdi, [rsp+68h+var_50]
call string_buffer_end
mov rbx, rax
loc_6A000:
mov rax, rbx
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long js_global_escape(long long a1, long long a2, long long a3, long long a4, long long *a5)
{
long long v5; // rax
long long v6; // rdx
long long v7; // rbx
long long v8; // r14
long long i; // r13
unsigned int v10; // r15d
long long v12; // [rsp+10h] [rbp-58h]
long long v13[10]; // [rsp+18h] [rbp-50h] BYREF
v5 = JS_ToString(a1, *a5, a5[1]);
v7 = v5;
if ( (_DWORD)v6 != 6 )
{
v12 = v6;
string_buffer_init(a1, (long long)v13, *(_DWORD *)(v5 + 4) & 0x7FFFFFFF);
v8 = *(_QWORD *)(v7 + 4) & 0x7FFFFFFFLL;
for ( i = 0LL; ; ++i )
{
if ( v8 == i )
{
JS_FreeValue(a1, v7, v12);
return string_buffer_end(v13);
}
if ( *(char *)(v7 + 7) < 0 )
{
v10 = *(unsigned __int16 *)(v7 + 2 * i + 24);
if ( v10 > 0xFF )
goto LABEL_9;
}
else
{
v10 = *(unsigned __int8 *)(v7 + i + 24);
}
if ( memchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@*_+-./", v10, 69LL) )
{
string_buffer_putc16((long long)v13, v10);
continue;
}
LABEL_9:
encodeURI_hex(v13, v10);
}
}
return v7;
}
|
js_global_escape:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R14,RDI
MOV RSI,qword ptr [R8]
MOV RDX,qword ptr [R8 + 0x8]
CALL 0x0011ebec
MOV RBX,RAX
CMP EDX,0x6
JZ 0x0016a000
MOV qword ptr [RSP + 0x10],RDX
MOV EDX,0x7fffffff
AND EDX,dword ptr [RBX + 0x4]
LEA R12,[RSP + 0x18]
MOV qword ptr [RSP + 0x8],R14
MOV RDI,R14
MOV RSI,R12
CALL 0x00131bf2
MOV R14,qword ptr [RBX + 0x4]
AND R14D,0x7fffffff
XOR R13D,R13D
PUSH 0x45
POP RBP
LAB_00169f8b:
CMP R14,R13
JZ 0x00169fe1
TEST byte ptr [RBX + 0x7],0x80
JNZ 0x00169f9e
MOVZX R15D,byte ptr [RBX + R13*0x1 + 0x18]
JMP 0x00169fad
LAB_00169f9e:
MOVZX R15D,word ptr [RBX + R13*0x2 + 0x18]
CMP R15D,0xff
JA 0x00169fd1
LAB_00169fad:
LEA RDI,[0x1888c0]
MOV ESI,R15D
MOV RDX,RBP
CALL 0x0010e4a0
TEST RAX,RAX
JZ 0x00169fd1
MOV RDI,R12
MOV ESI,R15D
CALL 0x001418a6
JMP 0x00169fdc
LAB_00169fd1:
MOV RDI,R12
MOV ESI,R15D
CALL 0x0016a2c5
LAB_00169fdc:
INC R13
JMP 0x00169f8b
LAB_00169fe1:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,RBX
MOV RDX,qword ptr [RSP + 0x10]
CALL 0x0011bbce
LEA RDI,[RSP + 0x18]
CALL 0x00130684
MOV RBX,RAX
LAB_0016a000:
MOV RAX,RBX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long js_global_escape(int8 param_1)
{
ushort uVar1;
int8 uVar2;
void *pvVar3;
long lVar4;
int8 *in_R8;
ulong uVar5;
uint __c;
int1 auVar6 [16];
int1 local_50 [32];
auVar6 = JS_ToString(param_1,*in_R8,in_R8[1]);
lVar4 = auVar6._0_8_;
if (auVar6._8_4_ != 6) {
string_buffer_init(param_1,local_50,*(uint *)(lVar4 + 4) & 0x7fffffff);
uVar2 = *(int8 *)(lVar4 + 4);
for (uVar5 = 0; ((uint)uVar2 & 0x7fffffff) != uVar5; uVar5 = uVar5 + 1) {
if ((*(byte *)(lVar4 + 7) & 0x80) == 0) {
__c = (uint)*(byte *)(lVar4 + 0x18 + uVar5);
LAB_00169fad:
pvVar3 = memchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@*_+-./",__c,
0x45);
if (pvVar3 == (void *)0x0) goto LAB_00169fd1;
string_buffer_putc16(local_50,__c);
}
else {
uVar1 = *(ushort *)(lVar4 + 0x18 + uVar5 * 2);
__c = (uint)uVar1;
if (uVar1 < 0x100) goto LAB_00169fad;
LAB_00169fd1:
encodeURI_hex(local_50,__c);
}
}
JS_FreeValue(param_1,lVar4,auVar6._8_8_);
lVar4 = string_buffer_end(local_50);
}
return lVar4;
}
|
|
18,194
|
common_embd_normalize(float const*, float*, int, int)
|
llama.cpp/common/common.cpp
|
void common_embd_normalize(const float * inp, float * out, int n, int embd_norm) {
double sum = 0.0;
switch (embd_norm) {
case -1: // no normalisation
sum = 1.0;
break;
case 0: // max absolute
for (int i = 0; i < n; i++) {
if (sum < std::abs(inp[i])) {
sum = std::abs(inp[i]);
}
}
sum /= 32760.0; // make an int16 range
break;
case 2: // euclidean
for (int i = 0; i < n; i++) {
sum += inp[i] * inp[i];
}
sum = std::sqrt(sum);
break;
default: // p-norm (euclidean is p-norm p=2)
for (int i = 0; i < n; i++) {
sum += std::pow(std::abs(inp[i]), embd_norm);
}
sum = std::pow(sum, 1.0 / embd_norm);
break;
}
const float norm = sum > 0.0 ? 1.0 / sum : 0.0f;
for (int i = 0; i < n; i++) {
out[i] = inp[i] * norm;
}
}
|
O3
|
cpp
|
common_embd_normalize(float const*, float*, int, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movsd 0x17f2c(%rip), %xmm3 # 0x112d40
movapd %xmm3, %xmm0
cmpl $-0x1, %ecx
je 0xfaf29
testl %ecx, %ecx
je 0xfae67
cmpl $0x2, %ecx
jne 0xfae9d
xorpd %xmm1, %xmm1
xorpd %xmm0, %xmm0
testl %ebp, %ebp
jle 0xfae54
movl %ebp, %eax
xorl %ecx, %ecx
movss (%r14,%rcx,4), %xmm2
mulss %xmm2, %xmm2
cvtss2sd %xmm2, %xmm2
addsd %xmm2, %xmm0
incq %rcx
cmpq %rcx, %rax
jne 0xfae3a
ucomisd %xmm1, %xmm0
jb 0xfaef7
sqrtsd %xmm0, %xmm0
jmp 0xfaf29
testl %ebp, %ebp
jle 0xfaefe
movl %ebp, %eax
xorpd %xmm2, %xmm2
xorl %ecx, %ecx
movaps 0x299c2(%rip), %xmm1 # 0x124840
movss (%r14,%rcx,4), %xmm0
andps %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
maxsd %xmm2, %xmm0
incq %rcx
movapd %xmm0, %xmm2
cmpq %rcx, %rax
jne 0xfae7e
jmp 0xfaf02
cvtsi2sd %ecx, %xmm2
testl %ebp, %ebp
jle 0xfaf0c
movl %ebp, %r15d
xorpd %xmm0, %xmm0
xorl %r12d, %r12d
movsd %xmm2, 0x8(%rsp)
movsd %xmm0, (%rsp)
movss (%r14,%r12,4), %xmm0
andps 0x29979(%rip), %xmm0 # 0x124840
cvtss2sd %xmm0, %xmm0
movapd %xmm2, %xmm1
callq 0x205c0
movsd 0x8(%rsp), %xmm2
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movsd (%rsp), %xmm0
incq %r12
cmpq %r12, %r15
jne 0xfaeb5
jmp 0xfaf10
callq 0x20810
jmp 0xfaf21
xorpd %xmm0, %xmm0
divsd 0x2996e(%rip), %xmm0 # 0x124878
jmp 0xfaf29
xorpd %xmm0, %xmm0
movsd 0x17e28(%rip), %xmm1 # 0x112d40
divsd %xmm2, %xmm1
callq 0x205c0
movsd 0x17e17(%rip), %xmm3 # 0x112d40
testl %ebp, %ebp
jle 0xfaf5f
divsd %xmm0, %xmm3
xorps %xmm1, %xmm1
cmpltsd %xmm0, %xmm1
andpd %xmm3, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
movl %ebp, %eax
xorl %ecx, %ecx
movss (%r14,%rcx,4), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, (%rbx,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0xfaf48
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
_Z21common_embd_normalizePKfPfii:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov ebp, edx
mov rbx, rsi
mov r14, rdi
movsd xmm3, cs:qword_112D40
movapd xmm0, xmm3
cmp ecx, 0FFFFFFFFh
jz loc_FAF29
test ecx, ecx
jz short loc_FAE67
cmp ecx, 2
jnz short loc_FAE9D
xorpd xmm1, xmm1
xorpd xmm0, xmm0
test ebp, ebp
jle short loc_FAE54
mov eax, ebp
xor ecx, ecx
loc_FAE3A:
movss xmm2, dword ptr [r14+rcx*4]
mulss xmm2, xmm2
cvtss2sd xmm2, xmm2
addsd xmm0, xmm2
inc rcx
cmp rax, rcx
jnz short loc_FAE3A
loc_FAE54:
ucomisd xmm0, xmm1
jb loc_FAEF7
sqrtsd xmm0, xmm0
jmp loc_FAF29
loc_FAE67:
test ebp, ebp
jle loc_FAEFE
mov eax, ebp
xorpd xmm2, xmm2
xor ecx, ecx
movaps xmm1, cs:xmmword_124840
loc_FAE7E:
movss xmm0, dword ptr [r14+rcx*4]
andps xmm0, xmm1
cvtss2sd xmm0, xmm0
maxsd xmm0, xmm2
inc rcx
movapd xmm2, xmm0
cmp rax, rcx
jnz short loc_FAE7E
jmp short loc_FAF02
loc_FAE9D:
cvtsi2sd xmm2, ecx
test ebp, ebp
jle short loc_FAF0C
mov r15d, ebp
xorpd xmm0, xmm0
xor r12d, r12d
movsd [rsp+38h+var_30], xmm2
loc_FAEB5:
movsd [rsp+38h+var_38], xmm0
movss xmm0, dword ptr [r14+r12*4]
andps xmm0, cs:xmmword_124840
cvtss2sd xmm0, xmm0
movapd xmm1, xmm2
call _pow
movsd xmm2, [rsp+38h+var_30]
movsd xmm1, [rsp+38h+var_38]
addsd xmm1, xmm0
movsd [rsp+38h+var_38], xmm1
movsd xmm0, [rsp+38h+var_38]
inc r12
cmp r15, r12
jnz short loc_FAEB5
jmp short loc_FAF10
loc_FAEF7:
call _sqrt
jmp short loc_FAF21
loc_FAEFE:
xorpd xmm0, xmm0
loc_FAF02:
divsd xmm0, cs:qword_124878
jmp short loc_FAF29
loc_FAF0C:
xorpd xmm0, xmm0
loc_FAF10:
movsd xmm1, cs:qword_112D40
divsd xmm1, xmm2
call _pow
loc_FAF21:
movsd xmm3, cs:qword_112D40
loc_FAF29:
test ebp, ebp
jle short loc_FAF5F
divsd xmm3, xmm0
xorps xmm1, xmm1
cmpltsd xmm1, xmm0
andpd xmm1, xmm3
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
mov eax, ebp
xor ecx, ecx
loc_FAF48:
movss xmm1, dword ptr [r14+rcx*4]
mulss xmm1, xmm0
movss dword ptr [rbx+rcx*4], xmm1
inc rcx
cmp rax, rcx
jnz short loc_FAF48
loc_FAF5F:
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
void common_embd_normalize(const float *a1, float *a2, int a3, int a4)
{
__m128d v5; // xmm0
double v6; // xmm0_8
long long i; // rcx
double v8; // xmm2_8
long long v9; // rcx
double v10; // xmm0_8
double v11; // xmm2_8
double v12; // xmm0_8
long long v13; // r12
double v14; // xmm0_8
float v15; // xmm0_4
long long v16; // rcx
double v17; // [rsp+0h] [rbp-38h]
double v18; // [rsp+8h] [rbp-30h]
v5.m128d_f64[0] = 1.0;
if ( a4 != -1 )
{
if ( a4 )
{
if ( a4 == 2 )
{
v6 = 0.0;
if ( a3 > 0 )
{
for ( i = 0LL; i != a3; ++i )
v6 = v6 + (float)(a1[i] * a1[i]);
}
if ( v6 < 0.0 )
v5.m128d_f64[0] = sqrt(v6);
else
v5.m128d_f64[0] = sqrt(v6);
}
else
{
v11 = (double)a4;
if ( a3 <= 0 )
{
v12 = 0.0;
}
else
{
v12 = 0.0;
v13 = 0LL;
v18 = (double)a4;
do
{
v17 = v12;
v14 = pow(fabs(a1[v13]), v11);
v11 = v18;
v12 = v17 + v14;
++v13;
}
while ( a3 != v13 );
}
v5.m128d_f64[0] = pow(v12, 1.0 / v11);
}
}
else
{
if ( a3 <= 0 )
{
v10 = 0.0;
}
else
{
v8 = 0.0;
v9 = 0LL;
do
{
v10 = fmax(fabs(a1[v9++]), v8);
v8 = v10;
}
while ( a3 != v9 );
}
v5.m128d_f64[0] = v10 / 32760.0;
}
}
if ( a3 > 0 )
{
v15 = COERCE_DOUBLE(*(_OWORD *)&_mm_cmplt_sd((__m128d)0LL, v5) & COERCE_UNSIGNED_INT64(1.0 / v5.m128d_f64[0]));
v16 = 0LL;
do
{
a2[v16] = a1[v16] * v15;
++v16;
}
while ( a3 != v16 );
}
}
|
common_embd_normalize:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV EBP,EDX
MOV RBX,RSI
MOV R14,RDI
MOVSD XMM3,qword ptr [0x00212d40]
MOVAPD XMM0,XMM3
CMP ECX,-0x1
JZ 0x001faf29
TEST ECX,ECX
JZ 0x001fae67
CMP ECX,0x2
JNZ 0x001fae9d
XORPD XMM1,XMM1
XORPD XMM0,XMM0
TEST EBP,EBP
JLE 0x001fae54
MOV EAX,EBP
XOR ECX,ECX
LAB_001fae3a:
MOVSS XMM2,dword ptr [R14 + RCX*0x4]
MULSS XMM2,XMM2
CVTSS2SD XMM2,XMM2
ADDSD XMM0,XMM2
INC RCX
CMP RAX,RCX
JNZ 0x001fae3a
LAB_001fae54:
UCOMISD XMM0,XMM1
JC 0x001faef7
SQRTSD XMM0,XMM0
JMP 0x001faf29
LAB_001fae67:
TEST EBP,EBP
JLE 0x001faefe
MOV EAX,EBP
XORPD XMM2,XMM2
XOR ECX,ECX
MOVAPS XMM1,xmmword ptr [0x00224840]
LAB_001fae7e:
MOVSS XMM0,dword ptr [R14 + RCX*0x4]
ANDPS XMM0,XMM1
CVTSS2SD XMM0,XMM0
MAXSD XMM0,XMM2
INC RCX
MOVAPD XMM2,XMM0
CMP RAX,RCX
JNZ 0x001fae7e
JMP 0x001faf02
LAB_001fae9d:
CVTSI2SD XMM2,ECX
TEST EBP,EBP
JLE 0x001faf0c
MOV R15D,EBP
XORPD XMM0,XMM0
XOR R12D,R12D
MOVSD qword ptr [RSP + 0x8],XMM2
LAB_001faeb5:
MOVSD qword ptr [RSP],XMM0
MOVSS XMM0,dword ptr [R14 + R12*0x4]
ANDPS XMM0,xmmword ptr [0x00224840]
CVTSS2SD XMM0,XMM0
MOVAPD XMM1,XMM2
CALL 0x001205c0
MOVSD XMM2,qword ptr [RSP + 0x8]
MOVSD XMM1,qword ptr [RSP]
ADDSD XMM1,XMM0
MOVSD qword ptr [RSP],XMM1
MOVSD XMM0,qword ptr [RSP]
INC R12
CMP R15,R12
JNZ 0x001faeb5
JMP 0x001faf10
LAB_001faef7:
CALL 0x00120810
JMP 0x001faf21
LAB_001faefe:
XORPD XMM0,XMM0
LAB_001faf02:
DIVSD XMM0,qword ptr [0x00224878]
JMP 0x001faf29
LAB_001faf0c:
XORPD XMM0,XMM0
LAB_001faf10:
MOVSD XMM1,qword ptr [0x00212d40]
DIVSD XMM1,XMM2
CALL 0x001205c0
LAB_001faf21:
MOVSD XMM3,qword ptr [0x00212d40]
LAB_001faf29:
TEST EBP,EBP
JLE 0x001faf5f
DIVSD XMM3,XMM0
XORPS XMM1,XMM1
CMPLTSD XMM1,XMM0
ANDPD XMM1,XMM3
XORPS XMM0,XMM0
CVTSD2SS XMM0,XMM1
MOV EAX,EBP
XOR ECX,ECX
LAB_001faf48:
MOVSS XMM1,dword ptr [R14 + RCX*0x4]
MULSS XMM1,XMM0
MOVSS dword ptr [RBX + RCX*0x4],XMM1
INC RCX
CMP RAX,RCX
JNZ 0x001faf48
LAB_001faf5f:
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* common_embd_normalize(float const*, float*, int, int) */
void common_embd_normalize(float *param_1,float *param_2,int param_3,int param_4)
{
ulong uVar1;
double dVar2;
double dVar3;
dVar2 = DAT_00212d40;
if (param_4 != -1) {
if (param_4 == 0) {
if (param_3 < 1) {
dVar2 = 0.0;
}
else {
uVar1 = 0;
dVar3 = 0.0;
do {
dVar2 = (double)(float)((uint)param_1[uVar1] & _DAT_00224840);
if ((double)(float)((uint)param_1[uVar1] & _DAT_00224840) <= dVar3) {
dVar2 = dVar3;
}
uVar1 = uVar1 + 1;
dVar3 = dVar2;
} while ((uint)param_3 != uVar1);
}
dVar2 = dVar2 / _DAT_00224878;
}
else if (param_4 == 2) {
dVar2 = 0.0;
if (0 < param_3) {
uVar1 = 0;
do {
dVar2 = dVar2 + (double)(param_1[uVar1] * param_1[uVar1]);
uVar1 = uVar1 + 1;
} while ((uint)param_3 != uVar1);
}
if (0.0 <= dVar2) {
dVar2 = SQRT(dVar2);
}
else {
dVar2 = sqrt(dVar2);
}
}
else {
if (param_3 < 1) {
dVar2 = 0.0;
}
else {
dVar2 = 0.0;
uVar1 = 0;
do {
dVar3 = pow((double)(float)((uint)param_1[uVar1] & _DAT_00224840),(double)param_4);
dVar2 = dVar2 + dVar3;
uVar1 = uVar1 + 1;
} while ((uint)param_3 != uVar1);
}
dVar2 = pow(dVar2,DAT_00212d40 / (double)param_4);
}
}
if (0 < param_3) {
dVar3 = DAT_00212d40 / dVar2;
uVar1 = 0;
do {
param_2[uVar1] = param_1[uVar1] * (float)(double)(-(ulong)(0.0 < dVar2) & (ulong)dVar3);
uVar1 = uVar1 + 1;
} while ((uint)param_3 != uVar1);
}
return;
}
|
|
18,195
|
mysql_net_store_length
|
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
|
unsigned char *mysql_net_store_length(unsigned char *packet, size_t length)
{
if (length < (unsigned long long) L64(251)) {
*packet = (unsigned char) length;
return packet + 1;
}
if (length < (unsigned long long) L64(65536)) {
*packet++ = 252;
int2store(packet,(uint) length);
return packet + 2;
}
if (length < (unsigned long long) L64(16777216)) {
*packet++ = 253;
int3store(packet,(ulong) length);
return packet + 3;
}
*packet++ = 254;
int8store(packet, length);
return packet + 8;
}
|
O3
|
c
|
mysql_net_store_length:
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rcx
movq %rdi, %rax
cmpq $0xfa, %rsi
ja 0x1fa4b
movb %cl, (%rax)
movl $0x1, %ecx
jmp 0x1fac8
cmpq $0xffff, %rcx # imm = 0xFFFF
ja 0x1fa64
movb $-0x4, (%rax)
movb %cl, 0x1(%rax)
movb %ch, 0x2(%rax)
movl $0x3, %ecx
jmp 0x1fac8
cmpq $0xffffff, %rcx # imm = 0xFFFFFF
ja 0x1fa83
movb $-0x3, (%rax)
movb %cl, 0x1(%rax)
movb %ch, 0x2(%rax)
shrl $0x10, %ecx
movb %cl, 0x3(%rax)
movl $0x4, %ecx
jmp 0x1fac8
movb $-0x2, (%rax)
movq %rcx, %rdx
shrq $0x20, %rdx
movb %cl, 0x1(%rax)
movb %ch, 0x2(%rax)
movl %ecx, %esi
shrl $0x10, %esi
movb %sil, 0x3(%rax)
movl %ecx, %esi
shrl $0x18, %esi
movb %sil, 0x4(%rax)
movb %dl, 0x5(%rax)
movq %rcx, %rdx
shrq $0x28, %rdx
movb %dl, 0x6(%rax)
movq %rcx, %rdx
shrq $0x30, %rdx
movb %dl, 0x7(%rax)
shrq $0x38, %rcx
movb %cl, 0x8(%rax)
movl $0x9, %ecx
addq %rcx, %rax
popq %rbp
retq
|
mysql_net_store_length:
push rbp
mov rbp, rsp
mov rcx, rsi
mov rax, rdi
cmp rsi, 0FAh
ja short loc_1FA4B
mov [rax], cl
mov ecx, 1
jmp short loc_1FAC8
loc_1FA4B:
cmp rcx, 0FFFFh
ja short loc_1FA64
mov byte ptr [rax], 0FCh
mov [rax+1], cl
mov [rax+2], ch
mov ecx, 3
jmp short loc_1FAC8
loc_1FA64:
cmp rcx, 0FFFFFFh
ja short loc_1FA83
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_1FAC8
loc_1FA83:
mov byte ptr [rax], 0FEh
mov rdx, rcx
shr rdx, 20h
mov [rax+1], cl
mov [rax+2], ch
mov esi, ecx
shr esi, 10h
mov [rax+3], sil
mov esi, ecx
shr esi, 18h
mov [rax+4], sil
mov [rax+5], dl
mov rdx, rcx
shr rdx, 28h
mov [rax+6], dl
mov rdx, rcx
shr rdx, 30h
mov [rax+7], dl
shr rcx, 38h
mov [rax+8], cl
mov ecx, 9
loc_1FAC8:
add rax, rcx
pop rbp
retn
|
long long mysql_net_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;
*(_QWORD *)(a1 + 1) = a2;
v2 = 9LL;
}
else
{
*(_BYTE *)a1 = -3;
*(_WORD *)(a1 + 1) = a2;
*(_BYTE *)(a1 + 3) = BYTE2(a2);
v2 = 4LL;
}
}
else
{
*(_BYTE *)a1 = -4;
*(_WORD *)(a1 + 1) = a2;
v2 = 3LL;
}
}
else
{
*(_BYTE *)a1 = a2;
v2 = 1LL;
}
return v2 + a1;
}
|
mysql_net_store_length:
PUSH RBP
MOV RBP,RSP
MOV RCX,RSI
MOV RAX,RDI
CMP RSI,0xfa
JA 0x0011fa4b
MOV byte ptr [RAX],CL
MOV ECX,0x1
JMP 0x0011fac8
LAB_0011fa4b:
CMP RCX,0xffff
JA 0x0011fa64
MOV byte ptr [RAX],0xfc
MOV byte ptr [RAX + 0x1],CL
MOV byte ptr [RAX + 0x2],CH
MOV ECX,0x3
JMP 0x0011fac8
LAB_0011fa64:
CMP RCX,0xffffff
JA 0x0011fa83
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 0x0011fac8
LAB_0011fa83:
MOV byte ptr [RAX],0xfe
MOV RDX,RCX
SHR RDX,0x20
MOV byte ptr [RAX + 0x1],CL
MOV byte ptr [RAX + 0x2],CH
MOV ESI,ECX
SHR ESI,0x10
MOV byte ptr [RAX + 0x3],SIL
MOV ESI,ECX
SHR ESI,0x18
MOV byte ptr [RAX + 0x4],SIL
MOV byte ptr [RAX + 0x5],DL
MOV RDX,RCX
SHR RDX,0x28
MOV byte ptr [RAX + 0x6],DL
MOV RDX,RCX
SHR RDX,0x30
MOV byte ptr [RAX + 0x7],DL
SHR RCX,0x38
MOV byte ptr [RAX + 0x8],CL
MOV ECX,0x9
LAB_0011fac8:
ADD RAX,RCX
POP RBP
RET
|
int1 * mysql_net_store_length(int1 *param_1,ulong param_2)
{
int1 uVar1;
int1 uVar2;
int1 uVar4;
long lVar3;
uVar1 = (int1)param_2;
if (param_2 < 0xfb) {
*param_1 = uVar1;
lVar3 = 1;
}
else {
uVar4 = (int1)(param_2 >> 8);
if (param_2 < 0x10000) {
*param_1 = 0xfc;
param_1[1] = uVar1;
param_1[2] = uVar4;
lVar3 = 3;
}
else {
uVar2 = (int1)(param_2 >> 0x10);
if (param_2 < 0x1000000) {
*param_1 = 0xfd;
param_1[1] = uVar1;
param_1[2] = uVar4;
param_1[3] = uVar2;
lVar3 = 4;
}
else {
*param_1 = 0xfe;
param_1[1] = uVar1;
param_1[2] = uVar4;
param_1[3] = uVar2;
param_1[4] = (char)(param_2 >> 0x18);
param_1[5] = (char)(param_2 >> 0x20);
param_1[6] = (char)(param_2 >> 0x28);
param_1[7] = (char)(param_2 >> 0x30);
param_1[8] = (char)(param_2 >> 0x38);
lVar3 = 9;
}
}
}
return param_1 + lVar3;
}
|
|
18,196
|
Item_bool_func::get_full_func_mm_tree_for_args(RANGE_OPT_PARAM*, Item*, Item*)
|
eloqsql/sql/item_cmpfunc.h
|
SEL_TREE *get_full_func_mm_tree_for_args(RANGE_OPT_PARAM *param,
Item *item, Item *value)
{
DBUG_ENTER("Item_bool_func::get_full_func_mm_tree_for_args");
Item *field= item->real_item();
if (field->type() == Item::FIELD_ITEM && !field->const_item() &&
(!value || !value->is_expensive()))
DBUG_RETURN(get_full_func_mm_tree(param, (Item_field *) field, value));
DBUG_RETURN(NULL);
}
|
O0
|
c
|
Item_bool_func::get_full_func_mm_tree_for_args(RANGE_OPT_PARAM*, Item*, Item*):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rdi
movq (%rdi), %rax
callq *0x2f0(%rax)
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq (%rdi), %rax
callq *0xc8(%rax)
cmpl $0x0, %eax
jne 0x8729f9
movq -0x30(%rbp), %rdi
movq (%rdi), %rax
callq *0x208(%rax)
testb $0x1, %al
jne 0x8729f9
cmpq $0x0, -0x28(%rbp)
je 0x8729dc
movq -0x28(%rbp), %rdi
movq (%rdi), %rax
callq *0x5b8(%rax)
testb $0x1, %al
jne 0x8729f9
jmp 0x8729de
movq -0x38(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0xd8a5f0
movq %rax, -0x8(%rbp)
jmp 0x872a03
jmp 0x8729fb
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
|
_ZN14Item_bool_func30get_full_func_mm_tree_for_argsEP15RANGE_OPT_PARAMP4ItemS3_:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_10]
mov [rbp+var_38], rax
mov rdi, [rbp+var_20]
mov rax, [rdi]
call qword ptr [rax+2F0h]
mov [rbp+var_30], rax
mov rdi, [rbp+var_30]
mov rax, [rdi]
call qword ptr [rax+0C8h]
cmp eax, 0
jnz short loc_8729F9
mov rdi, [rbp+var_30]
mov rax, [rdi]
call qword ptr [rax+208h]
test al, 1
jnz short loc_8729F9
cmp [rbp+var_28], 0
jz short loc_8729DC
mov rdi, [rbp+var_28]
mov rax, [rdi]
call qword ptr [rax+5B8h]
test al, 1
jnz short loc_8729F9
loc_8729DC:
jmp short $+2
loc_8729DE:
mov rdi, [rbp+var_38]; this
mov rsi, [rbp+var_18]; RANGE_OPT_PARAM *
mov rdx, [rbp+var_30]; Item_field *
mov rcx, [rbp+var_28]; Item *
call _ZN14Item_bool_func21get_full_func_mm_treeEP15RANGE_OPT_PARAMP10Item_fieldP4Item; Item_bool_func::get_full_func_mm_tree(RANGE_OPT_PARAM *,Item_field *,Item *)
mov [rbp+var_8], rax
jmp short loc_872A03
loc_8729F9:
jmp short $+2
loc_8729FB:
mov [rbp+var_8], 0
loc_872A03:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
|
long long Item_bool_func::get_full_func_mm_tree_for_args(
Item_bool_func *this,
RANGE_OPT_PARAM *a2,
Item *a3,
Item *a4)
{
Item_field *v5; // [rsp+10h] [rbp-30h]
v5 = (Item_field *)(*(long long ( **)(Item *))(*(_QWORD *)a3 + 752LL))(a3);
if ( (*(unsigned int ( **)(Item_field *))(*(_QWORD *)v5 + 200LL))(v5)
|| ((*(long long ( **)(Item_field *))(*(_QWORD *)v5 + 520LL))(v5) & 1) != 0
|| a4 && ((*(long long ( **)(Item *))(*(_QWORD *)a4 + 1464LL))(a4) & 1) != 0 )
{
return 0LL;
}
else
{
return Item_bool_func::get_full_func_mm_tree(this, a2, v5, a4);
}
}
|
__cxx_global_var_init.157:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x50
LEA RDI,[0x1ddbe50]
MOV ESI,0x29
LEA RDX,[0x14a0322]
LEA RCX,[0x14a0328]
XOR R8D,R8D
LEA R9,[0x1bdf530]
LEA R14,[0x1bdf550]
LEA RBX,[0x1bdf570]
LEA R11,[0x1bdf590]
LEA R10,[0x14a001a]
LEA RAX,[0x1bde020]
ADD RAX,0xf0
MOV qword ptr [RSP],R14
MOV qword ptr [RSP + 0x8],RBX
MOV qword ptr [RSP + 0x10],R11
MOV dword ptr [RSP + 0x18],0x9
MOV dword ptr [RSP + 0x20],0x7
MOV dword ptr [RSP + 0x28],0x2c
MOV dword ptr [RSP + 0x30],0x0
MOV qword ptr [RSP + 0x38],R10
MOV qword ptr [RSP + 0x40],RAX
CALL 0x00b46fc0
ADD RSP,0x50
POP RBX
POP R14
POP RBP
RET
|
void __cxx_global_var_init_157(void)
{
MY_LOCALE::MY_LOCALE
((MY_LOCALE *)my_locale_pt_PT,0x29,"pt_PT","Portuguese - Portugal",false,
(st_typelib *)my_locale_typelib_month_names_pt_PT,
(st_typelib *)my_locale_typelib_ab_month_names_pt_PT,
(st_typelib *)my_locale_typelib_day_names_pt_PT,
(st_typelib *)my_locale_typelib_ab_day_names_pt_PT,9,7,0x2c,0,&DAT_014a001a,
(my_locale_errmsgs *)&PTR_s_portuguese_01bde110);
return;
}
|
|
18,197
|
push_scope
|
bluesky950520[P]quickjs/quickjs.c
|
static int push_scope(JSParseState *s) {
if (s->cur_func) {
JSFunctionDef *fd = s->cur_func;
int scope = fd->scope_count;
/* XXX: should check for scope overflow */
if ((fd->scope_count + 1) > fd->scope_size) {
int new_size;
size_t slack;
JSVarScope *new_buf;
/* XXX: potential arithmetic overflow */
new_size = max_int(fd->scope_count + 1, fd->scope_size * 3 / 2);
if (fd->scopes == fd->def_scope_array) {
new_buf = js_realloc2(s->ctx, NULL, new_size * sizeof(*fd->scopes), &slack);
if (!new_buf)
return -1;
memcpy(new_buf, fd->scopes, fd->scope_count * sizeof(*fd->scopes));
} else {
new_buf = js_realloc2(s->ctx, fd->scopes, new_size * sizeof(*fd->scopes), &slack);
if (!new_buf)
return -1;
}
new_size += slack / sizeof(*new_buf);
fd->scopes = new_buf;
fd->scope_size = new_size;
}
fd->scope_count++;
fd->scopes[scope].parent = fd->scope_level;
fd->scopes[scope].first = fd->scope_first;
emit_op(s, OP_enter_scope);
emit_u16(s, scope);
return fd->scope_level = scope;
}
return 0;
}
|
O1
|
c
|
push_scope:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq 0x90(%rdi), %r12
testq %r12, %r12
je 0x584f6
movq %rdi, %r14
movl 0xf0(%r12), %eax
movl 0xf4(%r12), %ebx
cmpl %eax, %ebx
jl 0x58547
leal 0x1(%rbx), %ecx
leal (%rax,%rax,2), %eax
movl %eax, %ebp
shrl $0x1f, %ebp
addl %eax, %ebp
sarl %ebp
cmpl %ebp, %ecx
cmovgl %ecx, %ebp
movq 0xf8(%r12), %rsi
leaq 0x100(%r12), %rax
movslq %ebp, %rdx
shlq $0x3, %rdx
movq (%r14), %rdi
leaq 0x8(%rsp), %rcx
cmpq %rax, %rsi
je 0x584fd
callq 0x1cc0f
movq %rax, %r15
testq %rax, %rax
jne 0x5852c
jmp 0x585c0
xorl %ebx, %ebx
jmp 0x585b1
xorl %esi, %esi
callq 0x1cc0f
testq %rax, %rax
je 0x585c0
movq %rax, %r15
movq 0xf8(%r12), %rsi
movslq 0xf4(%r12), %rdx
shlq $0x3, %rdx
movq %rax, %rdi
callq 0xe5b0
movq 0x8(%rsp), %rax
shrq $0x3, %rax
addl %eax, %ebp
movq %r15, 0xf8(%r12)
movl %ebp, 0xf0(%r12)
movslq %ebx, %rax
incl 0xf4(%r12)
movq 0xe8(%r12), %rcx
movq 0xf8(%r12), %rdx
movq %rcx, (%rdx,%rax,8)
movq 0x90(%r14), %rax
movl $0x138, %r15d # imm = 0x138
leaq (%rax,%r15), %rdi
movl 0x140(%rax), %ecx
movl %ecx, 0x168(%rax)
movl $0xb3, %esi
callq 0x1b4d0
addq 0x90(%r14), %r15
leaq 0x6(%rsp), %rsi
movw %bx, (%rsi)
movl $0x2, %edx
movq %r15, %rdi
callq 0x1b422
movl %ebx, 0xe8(%r12)
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
jmp 0x585b1
|
push_scope:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov r12, [rdi+90h]
test r12, r12
jz short loc_584F6
mov r14, rdi
mov eax, [r12+0F0h]
mov ebx, [r12+0F4h]
cmp ebx, eax
jl loc_58547
lea ecx, [rbx+1]
lea eax, [rax+rax*2]
mov ebp, eax
shr ebp, 1Fh
add ebp, eax
sar ebp, 1
cmp ecx, ebp
cmovg ebp, ecx
mov rsi, [r12+0F8h]
lea rax, [r12+100h]
movsxd rdx, ebp
shl rdx, 3
mov rdi, [r14]
lea rcx, [rsp+38h+var_30]
cmp rsi, rax
jz short loc_584FD
call js_realloc2
mov r15, rax
test rax, rax
jnz short loc_5852C
jmp loc_585C0
loc_584F6:
xor ebx, ebx
jmp loc_585B1
loc_584FD:
xor esi, esi
call js_realloc2
test rax, rax
jz loc_585C0
mov r15, rax
mov rsi, [r12+0F8h]
movsxd rdx, dword ptr [r12+0F4h]
shl rdx, 3
mov rdi, rax
call _memcpy
loc_5852C:
mov rax, [rsp+38h+var_30]
shr rax, 3
add ebp, eax
mov [r12+0F8h], r15
mov [r12+0F0h], ebp
loc_58547:
movsxd rax, ebx
inc dword ptr [r12+0F4h]
mov rcx, [r12+0E8h]
mov rdx, [r12+0F8h]
mov [rdx+rax*8], rcx
mov rax, [r14+90h]
mov r15d, 138h
lea rdi, [rax+r15]
mov ecx, [rax+140h]
mov [rax+168h], ecx
mov esi, 0B3h
call dbuf_putc
add r15, [r14+90h]
lea rsi, [rsp+38h+var_32]
mov [rsi], bx
mov edx, 2
mov rdi, r15
call dbuf_put
mov [r12+0E8h], ebx
loc_585B1:
mov eax, ebx
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_585C0:
mov ebx, 0FFFFFFFFh
jmp short loc_585B1
|
long long push_scope(long long *a1)
{
long long v1; // r12
int v3; // eax
unsigned int v4; // ebx
int v5; // ebp
long long v6; // rsi
unsigned long long v7; // rdx
long long v8; // rdi
long long v9; // r15
long long v10; // rax
int v11; // ebp
long long v12; // rax
_QWORD *v13; // r15
__int16 v15; // [rsp+6h] [rbp-32h] BYREF
unsigned long long v16[6]; // [rsp+8h] [rbp-30h] BYREF
v1 = a1[18];
if ( v1 )
{
v3 = *(_DWORD *)(v1 + 240);
v4 = *(_DWORD *)(v1 + 244);
if ( (int)v4 >= v3 )
{
v5 = 3 * v3 / 2;
if ( (int)(v4 + 1) > v5 )
v5 = v4 + 1;
v6 = *(_QWORD *)(v1 + 248);
v7 = 8LL * v5;
v8 = *a1;
if ( v6 == v1 + 256 )
{
v10 = js_realloc2(v8, 0LL, v7, v16);
if ( !v10 )
return (unsigned int)-1;
v9 = v10;
memcpy(v10, *(_QWORD *)(v1 + 248), 8LL * *(int *)(v1 + 244));
}
else
{
v9 = js_realloc2(v8, v6, v7, v16);
if ( !v9 )
return (unsigned int)-1;
}
v11 = (v16[0] >> 3) + v5;
*(_QWORD *)(v1 + 248) = v9;
*(_DWORD *)(v1 + 240) = v11;
}
++*(_DWORD *)(v1 + 244);
*(_QWORD *)(*(_QWORD *)(v1 + 248) + 8LL * (int)v4) = *(_QWORD *)(v1 + 232);
v12 = a1[18];
*(_DWORD *)(v12 + 360) = *(_DWORD *)(v12 + 320);
dbuf_putc((_QWORD *)(v12 + 312), 179);
v13 = (_QWORD *)(a1[18] + 312);
v15 = v4;
dbuf_put(v13, (long long)&v15, 2LL);
*(_DWORD *)(v1 + 232) = v4;
}
else
{
return 0;
}
return v4;
}
|
push_scope:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R12,qword ptr [RDI + 0x90]
TEST R12,R12
JZ 0x001584f6
MOV R14,RDI
MOV EAX,dword ptr [R12 + 0xf0]
MOV EBX,dword ptr [R12 + 0xf4]
CMP EBX,EAX
JL 0x00158547
LEA ECX,[RBX + 0x1]
LEA EAX,[RAX + RAX*0x2]
MOV EBP,EAX
SHR EBP,0x1f
ADD EBP,EAX
SAR EBP,0x1
CMP ECX,EBP
CMOVG EBP,ECX
MOV RSI,qword ptr [R12 + 0xf8]
LEA RAX,[R12 + 0x100]
MOVSXD RDX,EBP
SHL RDX,0x3
MOV RDI,qword ptr [R14]
LEA RCX,[RSP + 0x8]
CMP RSI,RAX
JZ 0x001584fd
CALL 0x0011cc0f
MOV R15,RAX
TEST RAX,RAX
JNZ 0x0015852c
JMP 0x001585c0
LAB_001584f6:
XOR EBX,EBX
JMP 0x001585b1
LAB_001584fd:
XOR ESI,ESI
CALL 0x0011cc0f
TEST RAX,RAX
JZ 0x001585c0
MOV R15,RAX
MOV RSI,qword ptr [R12 + 0xf8]
MOVSXD RDX,dword ptr [R12 + 0xf4]
SHL RDX,0x3
MOV RDI,RAX
CALL 0x0010e5b0
LAB_0015852c:
MOV RAX,qword ptr [RSP + 0x8]
SHR RAX,0x3
ADD EBP,EAX
MOV qword ptr [R12 + 0xf8],R15
MOV dword ptr [R12 + 0xf0],EBP
LAB_00158547:
MOVSXD RAX,EBX
INC dword ptr [R12 + 0xf4]
MOV RCX,qword ptr [R12 + 0xe8]
MOV RDX,qword ptr [R12 + 0xf8]
MOV qword ptr [RDX + RAX*0x8],RCX
MOV RAX,qword ptr [R14 + 0x90]
MOV R15D,0x138
LEA RDI,[RAX + R15*0x1]
MOV ECX,dword ptr [RAX + 0x140]
MOV dword ptr [RAX + 0x168],ECX
MOV ESI,0xb3
CALL 0x0011b4d0
ADD R15,qword ptr [R14 + 0x90]
LEA RSI,[RSP + 0x6]
MOV word ptr [RSI],BX
MOV EDX,0x2
MOV RDI,R15
CALL 0x0011b422
MOV dword ptr [R12 + 0xe8],EBX
LAB_001585b1:
MOV EAX,EBX
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001585c0:
MOV EBX,0xffffffff
JMP 0x001585b1
|
int push_scope(int8 *param_1)
{
long lVar1;
long lVar2;
void *__dest;
int iVar3;
int iVar4;
int2 local_32;
ulong local_30;
lVar1 = param_1[0x12];
if (lVar1 == 0) {
return 0;
}
iVar3 = *(int *)(lVar1 + 0xf4);
if (iVar3 < *(int *)(lVar1 + 0xf0)) {
LAB_00158547:
*(int *)(lVar1 + 0xf4) = *(int *)(lVar1 + 0xf4) + 1;
*(int8 *)(*(long *)(lVar1 + 0xf8) + (long)iVar3 * 8) = *(int8 *)(lVar1 + 0xe8);
lVar2 = param_1[0x12];
*(int4 *)(lVar2 + 0x168) = *(int4 *)(lVar2 + 0x140);
dbuf_putc(lVar2 + 0x138,0xb3);
local_32 = (int2)iVar3;
dbuf_put(param_1[0x12] + 0x138,&local_32,2);
*(int *)(lVar1 + 0xe8) = iVar3;
}
else {
iVar4 = (*(int *)(lVar1 + 0xf0) * 3) / 2;
if (iVar4 < iVar3 + 1) {
iVar4 = iVar3 + 1;
}
if (*(long *)(lVar1 + 0xf8) == lVar1 + 0x100) {
__dest = (void *)js_realloc2(*param_1,0,(long)iVar4 << 3,&local_30);
if (__dest != (void *)0x0) {
memcpy(__dest,*(void **)(lVar1 + 0xf8),(long)*(int *)(lVar1 + 0xf4) << 3);
goto LAB_0015852c;
}
}
else {
__dest = (void *)js_realloc2(*param_1,*(long *)(lVar1 + 0xf8),(long)iVar4 << 3,&local_30);
if (__dest != (void *)0x0) {
LAB_0015852c:
*(void **)(lVar1 + 0xf8) = __dest;
*(int *)(lVar1 + 0xf0) = iVar4 + (int)(local_30 >> 3);
goto LAB_00158547;
}
}
iVar3 = -1;
}
return iVar3;
}
|
|
18,198
|
google::protobuf::compiler::java::(anonymous namespace)::TypeName[abi:cxx11](google::protobuf::FieldDescriptor const*, google::protobuf::compiler::java::ClassNameResolver*, bool)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/map_field.cc
|
std::string TypeName(const FieldDescriptor* field,
ClassNameResolver* name_resolver, bool boxed) {
if (GetJavaType(field) == JAVATYPE_MESSAGE) {
return name_resolver->GetImmutableClassName(field->message_type());
} else if (GetJavaType(field) == JAVATYPE_ENUM) {
return name_resolver->GetImmutableClassName(field->enum_type());
} else {
return boxed ? BoxedPrimitiveTypeName(GetJavaType(field))
: PrimitiveTypeName(GetJavaType(field));
}
}
|
O3
|
cpp
|
google::protobuf::compiler::java::(anonymous namespace)::TypeName[abi:cxx11](google::protobuf::FieldDescriptor const*, google::protobuf::compiler::java::ClassNameResolver*, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x43f76
cmpl $0x8, %eax
jne 0xd882a
movq %r15, %rdi
callq 0x11d7ce
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
movl $0x1, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x47ac2
movq %r15, %rdi
callq 0x43f76
movq %r15, %rdi
cmpl $0x7, %eax
jne 0xd885c
callq 0x11fc2c
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
movl $0x1, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x47b7a
callq 0x43f76
movl %eax, %edi
testb %bpl, %bpl
je 0xd886f
callq 0x44082
jmp 0xd8874
callq 0x43ff8
leaq 0x7(%rsp), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1f1d0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
_ZN6google8protobuf8compiler4java12_GLOBAL__N_18TypeNameB5cxx11EPKNS0_15FieldDescriptorEPNS2_17ClassNameResolverEb:
push rbp
push r15
push r14
push rbx
push rax
mov ebp, ecx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov rdi, rsi; this
call _ZN6google8protobuf8compiler4java11GetJavaTypeEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::GetJavaType(google::protobuf::FieldDescriptor const*)
cmp eax, 8
jnz short loc_D882A
mov rdi, r15; this
call _ZNK6google8protobuf15FieldDescriptor12message_typeEv; google::protobuf::FieldDescriptor::message_type(void)
mov rdi, rbx
mov rsi, r14; google::protobuf::FieldDescriptor *
mov rdx, rax
mov ecx, 1
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN6google8protobuf8compiler4java17ClassNameResolver12GetClassNameB5cxx11EPKNS0_10DescriptorEb; google::protobuf::compiler::java::ClassNameResolver::GetClassName(google::protobuf::Descriptor const*,bool)
loc_D882A:
mov rdi, r15; this
call _ZN6google8protobuf8compiler4java11GetJavaTypeEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::GetJavaType(google::protobuf::FieldDescriptor const*)
mov rdi, r15; this
cmp eax, 7
jnz short loc_D885C
call _ZNK6google8protobuf15FieldDescriptor9enum_typeEv; google::protobuf::FieldDescriptor::enum_type(void)
mov rdi, rbx
mov rsi, r14; google::protobuf::FieldDescriptor *
mov rdx, rax
mov ecx, 1
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN6google8protobuf8compiler4java17ClassNameResolver12GetClassNameB5cxx11EPKNS0_14EnumDescriptorEb; google::protobuf::compiler::java::ClassNameResolver::GetClassName(google::protobuf::EnumDescriptor const*,bool)
loc_D885C:
call _ZN6google8protobuf8compiler4java11GetJavaTypeEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::GetJavaType(google::protobuf::FieldDescriptor const*)
mov edi, eax
test bpl, bpl
jz short loc_D886F
call _ZN6google8protobuf8compiler4java22BoxedPrimitiveTypeNameENS2_8JavaTypeE; google::protobuf::compiler::java::BoxedPrimitiveTypeName(google::protobuf::compiler::java::JavaType)
jmp short loc_D8874
loc_D886F:
call _ZN6google8protobuf8compiler4java17PrimitiveTypeNameENS2_8JavaTypeE; google::protobuf::compiler::java::PrimitiveTypeName(google::protobuf::compiler::java::JavaType)
loc_D8874:
lea rdx, [rsp+28h+var_21]
mov rdi, rbx
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&)
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long google::protobuf::compiler::java::`anonymous namespace'::TypeName[abi:cxx11](
long long a1,
google::protobuf::FieldDescriptor *a2,
long long a3,
char a4)
{
long long v4; // rax
long long v8; // rax
long long v10; // rax
unsigned int JavaType; // edi
long long v12; // rax
_BYTE v13[33]; // [rsp+1h] [rbp-21h] BYREF
v13[0] = HIBYTE(v4);
if ( (unsigned int)google::protobuf::compiler::java::GetJavaType(a2, a2) == 8 )
{
v8 = google::protobuf::FieldDescriptor::message_type(a2);
return google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11](a1, a3, v8, 1LL);
}
else if ( (unsigned int)google::protobuf::compiler::java::GetJavaType(a2, a2) == 7 )
{
v10 = google::protobuf::FieldDescriptor::enum_type(a2);
return google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11](a1, a3, v10, 1LL);
}
else
{
JavaType = google::protobuf::compiler::java::GetJavaType(a2, a2);
if ( a4 )
v12 = (long long)google::protobuf::compiler::java::BoxedPrimitiveTypeName(JavaType);
else
v12 = google::protobuf::compiler::java::PrimitiveTypeName(JavaType);
return std::string::basic_string(a1, v12, v13);
}
}
|
TypeName[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBP,ECX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV RDI,RSI
CALL 0x00143f76
CMP EAX,0x8
JNZ 0x001d882a
MOV RDI,R15
CALL 0x0021d7ce
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RAX
MOV ECX,0x1
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00147ac2
LAB_001d882a:
MOV RDI,R15
CALL 0x00143f76
MOV RDI,R15
CMP EAX,0x7
JNZ 0x001d885c
CALL 0x0021fc2c
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RAX
MOV ECX,0x1
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00147b7a
LAB_001d885c:
CALL 0x00143f76
MOV EDI,EAX
TEST BPL,BPL
JZ 0x001d886f
CALL 0x00144082
JMP 0x001d8874
LAB_001d886f:
CALL 0x00143ff8
LAB_001d8874:
LEA RDX,[RSP + 0x7]
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0011f1d0
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::compiler::java::(anonymous
namespace)::TypeName[abi:cxx11](google::protobuf::FieldDescriptor const*,
google::protobuf::compiler::java::ClassNameResolver*, bool) */
void __thiscall
google::protobuf::compiler::java::(anonymous_namespace)::TypeName_abi_cxx11_
(_anonymous_namespace_ *this,FieldDescriptor *param_1,ClassNameResolver *param_2,
bool param_3)
{
int iVar1;
int4 uVar2;
char *pcVar3;
allocator local_21;
iVar1 = GetJavaType(param_1);
if (iVar1 == 8) {
FieldDescriptor::message_type(param_1);
ClassNameResolver::GetClassName_abi_cxx11_((Descriptor *)this,SUB81(param_2,0));
return;
}
iVar1 = GetJavaType(param_1);
if (iVar1 == 7) {
FieldDescriptor::enum_type(param_1);
ClassNameResolver::GetClassName_abi_cxx11_((EnumDescriptor *)this,SUB81(param_2,0));
return;
}
uVar2 = GetJavaType(param_1);
if (param_3) {
pcVar3 = (char *)BoxedPrimitiveTypeName();
}
else {
pcVar3 = (char *)PrimitiveTypeName(uVar2);
}
std::__cxx11::string::string((string *)this,pcVar3,&local_21);
return;
}
|
|
18,199
|
rapidcsv::Document::UpdateColumnNames()
|
Andrewchistyakov[P]flashcards_lyc/src/rapidcsv.h
|
void UpdateColumnNames()
{
mColumnNames.clear();
if ((mLabelParams.mColumnNameIdx >= 0) &&
(static_cast<int>(mData.size()) > mLabelParams.mColumnNameIdx))
{
size_t i = 0;
for (auto& columnName : mData[static_cast<size_t>(mLabelParams.mColumnNameIdx)])
{
mColumnNames[columnName] = i++;
}
}
}
|
O0
|
c
|
rapidcsv::Document::UpdateColumnNames():
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x38(%rbp)
addq $0x80, %rdi
callq 0x2ee90
movq -0x38(%rbp), %rax
cmpl $0x0, 0x20(%rax)
jl 0x303da
movq -0x38(%rbp), %rdi
addq $0x68, %rdi
callq 0x322f0
movq -0x38(%rbp), %rcx
cmpl 0x20(%rcx), %eax
jle 0x303da
movq -0x38(%rbp), %rax
movq $0x0, -0x10(%rbp)
movq %rax, %rdi
addq $0x68, %rdi
movslq 0x20(%rax), %rsi
callq 0x327b0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x183e0
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0x195c0
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x327d0
testb $0x1, %al
jne 0x30395
jmp 0x303d8
leaq -0x20(%rbp), %rdi
callq 0x191f0
movq -0x38(%rbp), %rdi
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
addq $0x1, %rax
movq %rax, -0x10(%rbp)
addq $0x80, %rdi
movq -0x30(%rbp), %rsi
callq 0x32810
movq -0x40(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x20(%rbp), %rdi
callq 0x19210
jmp 0x30382
jmp 0x303da
addq $0x40, %rsp
popq %rbp
retq
|
_ZN8rapidcsv8Document17UpdateColumnNamesEv:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
mov [rbp+var_38], rdi
add rdi, 80h
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4lessIS5_ESaISt4pairIKS5_mEEE5clearEv; std::map<std::string,ulong>::clear(void)
mov rax, [rbp+var_38]
cmp dword ptr [rax+20h], 0
jl loc_303DA
mov rdi, [rbp+var_38]
add rdi, 68h ; 'h'
call _ZNKSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EE4sizeEv; std::vector<std::vector<std::string>>::size(void)
mov rcx, [rbp+var_38]
cmp eax, [rcx+20h]
jle loc_303DA
mov rax, [rbp+var_38]
mov [rbp+var_10], 0
mov rdi, rax
add rdi, 68h ; 'h'
movsxd rsi, dword ptr [rax+20h]
call _ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EEixEm; std::vector<std::vector<std::string>>::operator[](ulong)
mov [rbp+var_18], rax
mov rdi, [rbp+var_18]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv; std::vector<std::string>::begin(void)
mov [rbp+var_20], rax
mov rdi, [rbp+var_18]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void)
mov [rbp+var_28], rax
loc_30382:
lea rdi, [rbp+var_20]
lea rsi, [rbp+var_28]
call _ZN9__gnu_cxxneIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_; __gnu_cxx::operator!=<std::string *,std::vector<std::string>>(__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&,__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&)
test al, 1
jnz short loc_30395
jmp short loc_303D8
loc_30395:
lea rdi, [rbp+var_20]
call _ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*(void)
mov rdi, [rbp+var_38]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov [rbp+var_40], rax
add rax, 1
mov [rbp+var_10], rax
add rdi, 80h
mov rsi, [rbp+var_30]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4lessIS5_ESaISt4pairIKS5_mEEEixERS9_; std::map<std::string,ulong>::operator[](std::string const&)
mov rcx, [rbp+var_40]
mov [rax], rcx
lea rdi, [rbp+var_20]
call _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(void)
jmp short loc_30382
loc_303D8:
jmp short $+2
loc_303DA:
add rsp, 40h
pop rbp
retn
|
long long rapidcsv::Document::UpdateColumnNames(rapidcsv::Document *this)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-40h]
long long v3; // [rsp+10h] [rbp-30h]
long long v4; // [rsp+18h] [rbp-28h] BYREF
long long v5; // [rsp+20h] [rbp-20h] BYREF
long long v6; // [rsp+28h] [rbp-18h]
long long v7; // [rsp+30h] [rbp-10h]
rapidcsv::Document *v8; // [rsp+38h] [rbp-8h]
v8 = this;
std::map<std::string,unsigned long>::clear((long long)this + 128);
result = (long long)this;
if ( *((int *)this + 8) >= 0 )
{
result = std::vector<std::vector<std::string>>::size((char *)this + 104);
if ( (int)result > *((_DWORD *)this + 8) )
{
v7 = 0LL;
v6 = std::vector<std::vector<std::string>>::operator[]((char *)this + 104, *((int *)this + 8));
v5 = std::vector<std::string>::begin(v6);
v4 = std::vector<std::string>::end(v6);
while ( 1 )
{
result = __gnu_cxx::operator!=<std::string *,std::vector<std::string>>(&v5, &v4);
if ( (result & 1) == 0 )
break;
v3 = __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*((long long)&v5);
v2 = v7++;
*(_QWORD *)std::map<std::string,unsigned long>::operator[]((char *)this + 128, v3) = v2;
__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(&v5);
}
}
}
return result;
}
|
UpdateColumnNames:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x38],RDI
ADD RDI,0x80
CALL 0x0012ee90
MOV RAX,qword ptr [RBP + -0x38]
CMP dword ptr [RAX + 0x20],0x0
JL 0x001303da
MOV RDI,qword ptr [RBP + -0x38]
ADD RDI,0x68
CALL 0x001322f0
MOV RCX,qword ptr [RBP + -0x38]
CMP EAX,dword ptr [RCX + 0x20]
JLE 0x001303da
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x10],0x0
MOV RDI,RAX
ADD RDI,0x68
MOVSXD RSI,dword ptr [RAX + 0x20]
CALL 0x001327b0
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001183e0
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001195c0
MOV qword ptr [RBP + -0x28],RAX
LAB_00130382:
LEA RDI,[RBP + -0x20]
LEA RSI,[RBP + -0x28]
CALL 0x001327d0
TEST AL,0x1
JNZ 0x00130395
JMP 0x001303d8
LAB_00130395:
LEA RDI,[RBP + -0x20]
CALL 0x001191f0
MOV RDI,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x40],RAX
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
ADD RDI,0x80
MOV RSI,qword ptr [RBP + -0x30]
CALL 0x00132810
MOV RCX,qword ptr [RBP + -0x40]
MOV qword ptr [RAX],RCX
LEA RDI,[RBP + -0x20]
CALL 0x00119210
JMP 0x00130382
LAB_001303d8:
JMP 0x001303da
LAB_001303da:
ADD RSP,0x40
POP RBP
RET
|
/* rapidcsv::Document::UpdateColumnNames() */
void __thiscall rapidcsv::Document::UpdateColumnNames(Document *this)
{
long lVar1;
bool bVar2;
int iVar3;
string *psVar4;
long *plVar5;
int8 local_30;
int8 local_28;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_20;
long local_18;
Document *local_10;
local_10 = this;
std::
map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
::clear((map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
*)(this + 0x80));
if ((-1 < *(int *)(this + 0x20)) &&
(iVar3 = std::
vector<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::allocator<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
::size((vector<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::allocator<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
*)(this + 0x68)), *(int *)(this + 0x20) < iVar3)) {
local_18 = 0;
local_20 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
std::
vector<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::allocator<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
::operator[]((vector<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::allocator<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>
*)(this + 0x68),(long)*(int *)(this + 0x20));
local_28 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::begin
(local_20);
local_30 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end(local_20)
;
while (bVar2 = __gnu_cxx::operator!=
((__normal_iterator *)&local_28,(__normal_iterator *)&local_30), bVar2)
{
psVar4 = (string *)
__gnu_cxx::
__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
::operator*((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
*)&local_28);
lVar1 = local_18;
local_18 = local_18 + 1;
plVar5 = (long *)std::
map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
::operator[]((map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
*)(this + 0x80),psVar4);
*plVar5 = lVar1;
__gnu_cxx::
__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
::operator++((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
*)&local_28);
}
}
return;
}
|
Subsets and Splits
C++ Functions Using STL
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ STL Function Queries
Filters C++ code examples that use standard library containers and algorithms, helping identify common programming patterns and library usage in code generation tasks.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.