Function at 0x140058860
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1e8
mov rdi, rcx
lea rsi, [rcx + 0xb8]
mov r12, qword [rcx + 0xb8]
cmp r12, 4
mov qword [rsp + 0x38], rdx
je 0x140058a9a
lea rbx, [rdi + 0xc8]
mov r15, qword [rdi + 0xc8]
cmp r15, 4
je 0x140058a97
lea r10, [rdi + 0xd8]
mov r14, qword [rdi + 0xd8]
cmp r14, 4
je 0x140058a8d
lea r8, [rdi + 0xe8]
mov r11, qword [rdi + 0xe8]
cmp r11, 4
je 0x140058a83
lea rcx, [rdi + 0xf8]
mov r9, qword [rdi + 0xf8]
cmp r9, 4
je 0x140058a92
lea rax, [rdi + 0x108]
mov r13, qword [rdi + 0x108]
cmp r13, 4
je 0x140058a88
mov qword [rsp + 0x40], rcx
lea rbp, [rdi + 0x118]
mov rcx, qword [rdi + 0x118]
mov qword [rsp + 0x50], rcx
cmp rcx, 4
je 0x140058a7e
mov qword [rsp + 0x48], rax
lea rax, [rdi + 0x128]
mov rdx, qword [rdi + 0x128]
cmp rdx, 4
je 0x140058a6a
mov qword [rsp + 0x1d8], rdx
mov qword [rsp + 0x1e0], rbp
lea rdx, [rdi + 0x138]
mov rbp, qword [rdi + 0x138]
cmp rbp, 4
je 0x140058a74
mov qword [rsp + 0x1c8], rbp
mov qword [rsp + 0x1d0], rax
lea rax, [rdi + 0x148]
mov rbp, qword [rdi + 0x148]
cmp rbp, 4
je 0x140058a6a
mov qword [rsp + 0x1b8], rbp
mov qword [rsp + 0x1c0], rdx
lea rbp, [rdi + 0x158]
mov rdx, qword [rdi + 0x158]
cmp rdx, 4
je 0x140058a79
mov qword [rsp + 0x1a8], rdx
mov qword [rsp + 0x1b0], rax
lea rdx, [rdi + 0x168]
mov rax, qword [rdi + 0x168]
mov qword [rsp + 0x1a0], rax
cmp rax, 4
je 0x140058a74
mov qword [rsp + 0x198], rbp
mov qword [rsp + 0x190], rdx
lea rdx, [rdi + 0x178]
mov rbp, qword [rdi + 0x178]
mov qword [rsp + 0x188], rbp
cmp rbp, 4
je 0x140058a74
mov qword [rsp + 0x180], rdx
lea rax, [rdi + 0x188]
mov rdx, qword [rdi + 0x188]
mov qword [rsp + 0x178], rdx
cmp rdx, 4
je 0x140058a6a
mov qword [rsp + 0x170], rax
lea rax, [rdi + 0x198]
mov rdx, qword [rdi + 0x198]
mov qword [rsp + 0x168], rdx
cmp rdx, 4
jne 0x140058f52
mov rsi, rax
mov rdx, qword [rsp + 0x38]
jmp 0x140058a9a
mov rsi, rdx
jmp 0x140058a6d
mov rsi, rbp
jmp 0x140058a6d
mov rsi, rbp
jmp 0x140058a9a
mov rsi, r8
jmp 0x140058a9a
mov rsi, rax
jmp 0x140058a9a
mov rsi, r10
jmp 0x140058a9a
mov rsi, rcx
jmp 0x140058a9a
mov rsi, rbx
add rsi, 8
mov rbx, rsi
mov rsi, qword [rbx]
lea rax, [rsi + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x50], rax
mov rbp, qword [rdx]
mov r12, qword [rdx + 8]
mov ebx, dword [rdx + 0x10]
mov r14d, dword [rdx + 0x14]
movsxd r15, ebx
mov rcx, r12
mov rdx, rbp
call fcn.140064bc0
mov rcx, rax
mov rdx, r15
call fcn.140064bc0
mov r15, rax
mov qword [rsp + 0x48], rsi
mov rsi, qword [rsi + 0x10]
test rsi, rsi
je 0x140058bf6
mov rax, rsi
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rsi
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs rcx, 0x101010101010101
imul rcx, rax
shr rcx, 0x38
cmp rcx, 1
jbe 0x140058bc2
mov r13, r15
cmp r15, rsi
mov r8, qword [rsp + 0x40]
jb 0x140058b6c
mov rax, r15
xor edx, edx
div rsi
mov r13, rdx
mov rax, qword [r8]
mov rax, qword [rax + r13*8]
test rax, rax
je 0x140058c00
mov r8, qword [rax]
test r8, r8
je 0x140058c00
lea r9, [rsi - 1]
mov rax, qword [r8 + 8]
cmp rax, r15
jne 0x140058bd0
cmp qword [r8 + 0x18], r12
jne 0x140058be7
cmp qword [r8 + 0x10], rbp
jne 0x140058be7
cmp dword [r8 + 0x20], ebx
jne 0x140058be7
mov rbx, qword [r8 + 0x28]
mov rax, rbx
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r13, [rsi - 1]
and r13, r15
mov r8, qword [rsp + 0x40]
jmp 0x140058b6c
cmp ecx, 1
jbe 0x140058bf1
cmp rax, rsi
jb 0x140058be2
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r13
jne 0x140058c00
mov r8, qword [r8]
test r8, r8
jne 0x140058b8c
jmp 0x140058c00
and rax, r9
jmp 0x140058be2
movabs r13, 0xaaaaaaaaaaaaaaaa
mov ecx, 0x30
call fcn.14007f7b8
test rax, rax
je 0x140059547
mov r10, rax
mov rax, qword [rsp + 0x50]
inc rax
mov qword [r10], 0
mov qword [r10 + 8], r15
mov qword [r10 + 0x10], rbp
mov qword [r10 + 0x18], r12
mov dword [r10 + 0x20], ebx
mov rbx, rax
mov dword [r10 + 0x24], r14d
mov qword [r10 + 0x28], rax
mov r14, qword [rsp + 0x48]
mov rax, qword [r14 + 0x20]
inc rax
jns 0x140058c68
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x140058c70
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov r9, qword [rsp + 0x40]
mov rcx, rsi
shr rcx, 1
mov eax, esi
and eax, 1
or rax, rcx
test rsi, rsi
jns 0x140058c93
cvtsi2ss xmm1, rax
addss xmm1, xmm1
jmp 0x140058c98
cvtsi2ss xmm1, rsi
movss xmm2, dword [r14 + 0x28]
je 0x140058d67
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x140058d67
mov rcx, qword [r9]
mov rax, qword [rcx + r13*8]
test rax, rax
jne 0x140058d16
lea rdx, [r14 + 0x18]
mov rax, qword [r14 + 0x18]
mov qword [r10], rax
mov qword [r14 + 0x18], r10
mov qword [rcx + r13*8], rdx
test rax, rax
mov r8, qword [rsp + 0x38]
je 0x140058cfe
mov rax, qword [rax + 8]
lea rcx, [rsi - 1]
test rsi, rcx
je 0x140058d23
cmp rax, rsi
jb 0x140058cf4
xor edx, edx
div rsi
mov rax, rdx
shl rax, 3
add rax, qword [r9]
mov qword [rax], r10
inc qword [r14 + 0x20]
sub rdi, 0xffffffffffffff80
mov rcx, rdi
mov rdx, rbx
call fcn.1400648b0
jmp 0x140058bab
mov rcx, qword [rax]
mov qword [r10], rcx
mov r8, qword [rsp + 0x38]
jmp 0x140058cfb
and rax, rcx
jmp 0x140058cf4
lea rax, [r13 - 1]
test r13, rax
je 0x140058d40
mov rcx, r13
call fcn.140052b50
mov r13, rax
mov rsi, qword [r14 + 0x10]
cmp r13, rsi
jbe 0x140059587
mov rax, r13
shr rax, 0x3d
je 0x140058dc6
jmp 0x140059542
lea rdx, [rsi - 1]
xor r13d, r13d
test rsi, rdx
setne r13b
jmp 0x140058da2
mov r12, r10
divss xmm0, xmm2
call fcn.1400aee34
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1400f6bf4]
sar rdx, 0x3f
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [rsi + rsi]
mov r13d, 1
cmp rsi, 3
jae 0x140058d57
or r13, rcx
cmp r13, rax
cmovbe r13, rax
cmp r13, 1
jne 0x140058d28
mov r13d, 2
cmp rsi, 2
jae 0x140059587
lea rcx, [r13*8]
call fcn.14007f7b8
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rdx]
mov qword [rdx], rax
test rcx, rcx
je 0x140058ded
call fcn.14007f7f4
mov rdx, qword [rsp + 0x40]
mov qword [r14 + 0x10], r13
xor eax, eax
mov rcx, qword [rdx]
mov qword [rcx + rax*8], 0
inc rax
cmp r13, rax
jne 0x140058df3
mov r8, qword [r14 + 0x18]
test r8, r8
je 0x140058eef
lea r10, [r14 + 0x18]
mov rcx, qword [r8 + 8]
mov rax, r13
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, r13
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x14005957b
cmp rcx, r13
jb 0x140058e91
mov rax, rcx
xor edx, edx
div r13
mov rcx, rdx
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
test r10, r10
je 0x140058eef
lea r11, [r13 - 1]
mov rsi, qword [rsp + 0x40]
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x14005953a
cmp rax, r13
jb 0x140058ec9
xor edx, edx
div r13
mov rax, rdx
cmp rax, rcx
je 0x140058f2c
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx]
cmp qword [rdx + rax*8], 0
jne 0x140058f0c
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
jne 0x140058eae
mov rsi, qword [r14 + 0x10]
lea r13, [rsi - 1]
test rsi, r13
jne 0x140058f31
and r13, r15
mov r9, qword [rsp + 0x40]
mov r10, r12
jmp 0x140058cb1
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rsi]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rsi]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
jmp 0x140058ee1
cmp r15, rsi
mov r10, r12
jb 0x140059573
mov rax, r15
xor edx, edx
div rsi
mov r13, rdx
mov r9, qword [rsp + 0x40]
jmp 0x140058cb1
mov qword [rsp + 0x160], rax
lea rax, [rdi + 0x1a8]
mov rdx, qword [rdi + 0x1a8]
mov qword [rsp + 0x158], rdx
cmp rdx, 4
je 0x140058a6a
mov qword [rsp + 0x150], rax
lea rax, [rdi + 0x1b8]
mov rdx, qword [rdi + 0x1b8]
mov qword [rsp + 0x148], rdx
cmp rdx, 4
je 0x140058a6a
mov qword [rsp + 0x140], rax
lea rax, [rdi + 0x1c8]
mov rdx, qword [rdi + 0x1c8]
mov qword [rsp + 0x138], rdx
cmp rdx, 4
je 0x140058a6a
mov qword [rsp + 0x130], rax
lea rax, [rdi + 0x1d8]
mov rdx, qword [rdi + 0x1d8]
mov qword [rsp + 0x128], rdx
cmp rdx, 4
je 0x140058a6a
mov qword [rsp + 0x120], rax
lea rax, [rdi + 0x1e8]
mov rdx, qword [rdi + 0x1e8]
mov qword [rsp + 0x118], rdx
cmp rdx, 4
je 0x140058a6a
mov qword [rsp + 0x110], rax
lea rax, [rdi + 0x1f8]
mov rdx, qword [rdi + 0x1f8]
mov qword [rsp + 0x108], rdx
cmp rdx, 4
je 0x140058a6a
mov qword [rsp + 0x100], rax
lea rax, [rdi + 0x208]
mov rdx, qword [rdi + 0x208]
mov qword [rsp + 0xf8], rdx
cmp rdx, 4
je 0x140058a6a
mov qword [rsp + 0xf0], rax
lea rax, [rdi + 0x218]
mov rdx, qword [rdi + 0x218]
mov qword [rsp + 0xe8], rdx
cmp rdx, 4
je 0x140058a6a
mov qword [rsp + 0xe0], rax
lea rax, [rdi + 0x228]
mov rdx, qword [rdi + 0x228]
mov qword [rsp + 0xd8], rdx
cmp rdx, 4
je 0x140058a6a
mov qword [rsp + 0xd0], rax
lea rax, [rdi + 0x238]
mov rdx, qword [rdi + 0x238]
mov qword [rsp + 0xc8], rdx
cmp rdx, 4
je 0x140058a6a
mov qword [rsp + 0xc0], rax
lea rax, [rdi + 0x248]
mov rdx, qword [rdi + 0x248]
mov qword [rsp + 0xb8], rdx
cmp rdx, 4
je 0x140058a6a
mov qword [rsp + 0xb0], rax
lea rax, [rdi + 0x258]
mov rdx, qword [rdi + 0x258]
mov qword [rsp + 0xa8], rdx
cmp rdx, 4
je 0x140058a6a
mov qword [rsp + 0xa0], rax
lea rdx, [rdi + 0x268]
mov qword [rsp + 0x78], rdx
mov rdx, qword [rdi + 0x268]
mov qword [rsp + 0x98], rdx
cmp rdx, 4
je 0x14005926a
lea rdx, [rdi + 0x278]
mov qword [rsp + 0x70], rdx
mov rdx, qword [rdi + 0x278]
mov qword [rsp + 0x90], rdx
cmp rdx, 4
je 0x140059274
lea rdx, [rdi + 0x288]
mov qword [rsp + 0x68], rdx
mov rdx, qword [rdi + 0x288]
mov qword [rsp + 0x88], rdx
cmp rdx, 4
je 0x14005927e
lea rdx, [rdi + 0x298]
mov qword [rsp + 0x60], rdx
mov rdx, qword [rdi + 0x298]
mov qword [rsp + 0x80], rdx
cmp rdx, 4
je 0x140059288
lea rdx, [rdi + 0x2a8]
mov qword [rsp + 0x58], rdx
mov rdx, qword [rdi + 0x2a8]
cmp rdx, 4
je 0x140059292
test r12, r12
je 0x140059216
mov rsi, rbx
test r15, r15
je 0x140059216
mov rsi, r10
test r14, r14
je 0x140059216
mov rsi, r8
test r11, r11
je 0x140059216
mov rsi, qword [rsp + 0x40]
test r9, r9
jne 0x14005929c
mov qword [rsi], 4
lea rbx, [rsi + 8]
mov ecx, 0x30
call fcn.14007f7b8
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
movups xmmword [rax + 0x18], xmm0
mov qword [rax + 0x28], 0
mov dword [rax + 0x28], 0x3f800000
lea rcx, [0x1400f20e0]
mov qword [rax], rcx
mov rcx, qword [rsi + 8]
mov qword [rsi + 8], rax
test rcx, rcx
jne 0x1400596a2
mov rdx, qword [rsp + 0x38]
jmp 0x140058aa1
mov rsi, qword [rsp + 0x78]
jmp 0x140058a6d
mov rsi, qword [rsp + 0x70]
jmp 0x140058a6d
mov rsi, qword [rsp + 0x68]
jmp 0x140058a6d
mov rsi, qword [rsp + 0x60]
jmp 0x140058a6d
mov rsi, qword [rsp + 0x58]
jmp 0x140058a6d
mov rsi, qword [rsp + 0x48]
test r13, r13
je 0x140059216
mov rsi, qword [rsp + 0x1e0]
cmp qword [rsp + 0x50], 0
je 0x140059216
mov rsi, qword [rsp + 0x1d0]
cmp qword [rsp + 0x1d8], 0
je 0x140059216
mov rsi, qword [rsp + 0x1c0]
cmp qword [rsp + 0x1c8], 0
je 0x140059216
mov rsi, qword [rsp + 0x1b0]
cmp qword [rsp + 0x1b8], 0
je 0x140059216
mov rsi, qword [rsp + 0x198]
cmp qword [rsp + 0x1a8], 0
je 0x140059216
mov rsi, qword [rsp + 0x190]
cmp qword [rsp + 0x1a0], 0
je 0x140059216
mov rsi, qword [rsp + 0x180]
cmp qword [rsp + 0x188], 0
je 0x140059216
mov rsi, qword [rsp + 0x170]
cmp qword [rsp + 0x178], 0
je 0x140059216
mov rsi, qword [rsp + 0x160]
cmp qword [rsp + 0x168], 0
je 0x140059216
mov rsi, qword [rsp + 0x150]
cmp qword [rsp + 0x158], 0
je 0x140059216
mov rsi, qword [rsp + 0x140]
cmp qword [rsp + 0x148], 0
je 0x140059216
mov rsi, qword [rsp + 0x130]
cmp qword [rsp + 0x138], 0
je 0x140059216
mov rsi, qword [rsp + 0x120]
cmp qword [rsp + 0x128], 0
je 0x140059216
mov rsi, qword [rsp + 0x110]
cmp qword [rsp + 0x118], 0
je 0x140059216
mov rsi, qword [rsp + 0x100]
cmp qword [rsp + 0x108], 0
je 0x140059216
mov rsi, qword [rsp + 0xf0]
cmp qword [rsp + 0xf8], 0
je 0x140059216
mov rsi, qword [rsp + 0xe0]
cmp qword [rsp + 0xe8], 0
je 0x140059216
mov rsi, qword [rsp + 0xd0]
cmp qword [rsp + 0xd8], 0
je 0x140059216
mov rsi, qword [rsp + 0xc0]
cmp qword [rsp + 0xc8], 0
je 0x140059216
mov rsi, qword [rsp + 0xb0]
cmp qword [rsp + 0xb8], 0
je 0x140059216
mov rsi, qword [rsp + 0xa0]
cmp qword [rsp + 0xa8], 0
je 0x140059216
mov rsi, qword [rsp + 0x78]
cmp qword [rsp + 0x98], 0
je 0x140059216
mov rsi, qword [rsp + 0x70]
cmp qword [rsp + 0x90], 0
je 0x140059216
mov rsi, qword [rsp + 0x68]
cmp qword [rsp + 0x88], 0
je 0x140059216
mov rsi, qword [rsp + 0x60]
cmp qword [rsp + 0x80], 0
je 0x140059216
mov rsi, qword [rsp + 0x58]
test rdx, rdx
je 0x140059216
call fcn.140092250
mov ecx, dword [rax]
call fcn.14009b424
mov rsi, rax
call fcn.140092250
mov edi, dword [rax]
lea rcx, str....._third_partyperfettoincludeperfetto_tracing_track_event_interned_data_index.h
call fcn.1400b2670
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], edi
lea rcx, str.PERFETTO_CHECK_false_
mov qword [rsp + 0x20], rcx
lea r9, str._s__errno:__d___s_
mov ecx, 3
mov rdx, rax
mov r8d, 0xfd
call fcn.1400b2c60
int3
and rax, r11
jmp 0x140058ec9
call fcn.1400b1860
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.1400b23f0
mov r13, r15
jmp 0x140058f48
lea rax, [r13 - 1]
and rcx, rax
jmp 0x140058e91
cmp r13, rsi
jae 0x140058eef
mov rax, qword [r14 + 0x20]
test rax, rax
jns 0x1400595b3
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x1400595bb
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov rax, qword [rsp + 0x48]
divss xmm0, dword [rax + 0x28]
call fcn.1400aee34
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1400f6bf4]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rsi, 3
jb 0x140059673
mov rcx, rsi
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, rsi
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x140059673
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov edx, 1
shl rdx, cl
cmp rax, 2
cmovb rdx, rax
jmp 0x14005967e
mov rcx, rax
call fcn.140052b50
mov rdx, rax
cmp r13, rdx
cmova rdx, r13
cmp rdx, rsi
mov r14, qword [rsp + 0x48]
jae 0x140058eef
mov rcx, qword [rsp + 0x40]
call fcn.1400cb1e0
jmp 0x140058eef
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x140138008]
jmp 0x140059260