; ; common_xtox from 0x180138ef8 to 0x180138fcc (212 bytes) ; ; 2 xrefs: ; > common_xtox_s @ 0x180139030 ; > @ 0x180203758 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x180138ef8 mov [rsp+arg_8], rbp ; +0x5, 0x180138efd mov [rsp+arg_10], rsi ; +0xa, 0x180138f02 push rdi ; +0xf, 0x180138f07 push r14 ; +0x10, 0x180138f08 push r15 ; +0x12, 0x180138f0a sub rsp, 20h ; +0x14, 0x180138f0c xor r15d, r15d ; +0x18, 0x180138f10 mov ebp, r9d ; +0x1b, 0x180138f13 mov rdi, r8 ; +0x1e, 0x180138f16 mov r11, rdx ; +0x21, 0x180138f19 mov r10, rdx ; +0x24, 0x180138f1c mov ebx, r15d ; +0x27, 0x180138f1f cmp [rsp+38h+arg_20], r15b ; +0x2a, 0x180138f22 jz short loc_180138F39 ; +0x2f, 0x180138f27 lea eax, [r15+2Dh] ; +0x31, 0x180138f29 neg ecx ; +0x35, 0x180138f2d mov [rdx], ax ; +0x37, 0x180138f2f lea ebx, [rax-2Ch] ; +0x3a, 0x180138f32 lea r10, [rdx+2] ; +0x3d, 0x180138f35 mov r8, r10 ; +0x41, 0x180138f39 xor edx, edx ; +0x44, 0x180138f3c lea rsi, [r10+2] ; +0x46, 0x180138f3e mov eax, ecx ; +0x4a, 0x180138f42 mov r9, r10 ; +0x4c, 0x180138f44 div ebp ; +0x4f, 0x180138f47 mov ecx, eax ; +0x51, 0x180138f49 cmp edx, 9 ; +0x53, 0x180138f4b mov eax, 57h ; 'W' ; +0x56, 0x180138f4e lea r14d, [rax-27h] ; +0x5b, 0x180138f53 cmovbe ax, r14w ; +0x5f, 0x180138f57 inc rbx ; +0x64, 0x180138f5c add ax, dx ; +0x67, 0x180138f5f mov [r10], ax ; +0x6a, 0x180138f62 test ecx, ecx ; +0x6e, 0x180138f66 jz short loc_180138F72 ; +0x70, 0x180138f68 mov r10, rsi ; +0x72, 0x180138f6a cmp rbx, rdi ; +0x75, 0x180138f6d jb short loc_180138F3C ; +0x78, 0x180138f70 cmp rbx, rdi ; +0x7a, 0x180138f72 jb short loc_180138F90 ; +0x7d, 0x180138f75 mov [r11], r15w ; +0x7f, 0x180138f77 call _errno ; +0x83, 0x180138f7b mov ebx, 22h ; '"' ; +0x88, 0x180138f80 mov [rax], ebx ; +0x8d, 0x180138f85 call _invalid_parameter_noinfo ; +0x8f, 0x180138f87 mov eax, ebx ; +0x94, 0x180138f8c jmp short loc_180138FB3 ; +0x96, 0x180138f8e mov [rsi], r15w ; +0x98, 0x180138f90 movzx eax, word ptr [r8] ; +0x9c, 0x180138f94 movzx ecx, word ptr [r9] ; +0xa0, 0x180138f98 mov [r9], ax ; +0xa4, 0x180138f9c sub r9, 2 ; +0xa8, 0x180138fa0 mov [r8], cx ; +0xac, 0x180138fa4 add r8, 2 ; +0xb0, 0x180138fa8 cmp r8, r9 ; +0xb4, 0x180138fac jb short loc_180138F94 ; +0xb7, 0x180138faf xor eax, eax ; +0xb9, 0x180138fb1 mov rbx, [rsp+38h+arg_0] ; +0xbb, 0x180138fb3 mov rbp, [rsp+38h+arg_8] ; +0xc0, 0x180138fb8 mov rsi, [rsp+38h+arg_10] ; +0xc5, 0x180138fbd add rsp, 20h ; +0xca, 0x180138fc2 pop r15 ; +0xce, 0x180138fc6 pop r14 ; +0xd0, 0x180138fc8 pop rdi ; +0xd2, 0x180138fca retn ; +0xd3, 0x180138fcb