; ; DS_Dictionary::vec2FromString from 0x180021b30 to 0x180021cee (446 bytes) ; ; 3 xrefs: ; > DS_Dictionary::getVec2ArrayForKey @ 0x18001b7d7 ; > @ 0x1801438a8 ; > @ 0x1801aee60 ; ; 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 ; push rbx ; +0x0, 0x180021b30 push rbp ; +0x2, 0x180021b32 push rsi ; +0x3, 0x180021b33 push rdi ; +0x4, 0x180021b34 push r14 ; +0x5, 0x180021b35 sub rsp, 80h ; +0x7, 0x180021b37 movaps [rsp+0A8h+var_38], xmm6 ; +0xe, 0x180021b3e mov rax, cs:__security_cookie ; +0x13, 0x180021b43 xor rax, rsp ; +0x1a, 0x180021b4a mov [rsp+0A8h+var_48], rax ; +0x1d, 0x180021b4d mov rsi, r8 ; +0x22, 0x180021b52 mov rbx, rcx ; +0x25, 0x180021b55 xorps xmm0, xmm0 ; +0x28, 0x180021b58 movdqu xmmword ptr [rsp+0A8h+var_88], xmm0 ; +0x2b, 0x180021b5b xor r14d, r14d ; +0x31, 0x180021b61 mov [rsp+0A8h+var_78], r14 ; +0x34, 0x180021b64 mov r8, rdx ; +0x39, 0x180021b69 lea rdx, [rsp+0A8h+Block] ; +0x3c, 0x180021b6c call ?cleanStringWhiteSpace@DS_Dictionary@@AEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV23@@Z; DS_Dictionary::cleanStringWhiteSpace(std::string const &) ; +0x41, 0x180021b71 nop ; +0x46, 0x180021b76 lea r8, [rsp+0A8h+var_88] ; +0x47, 0x180021b77 mov rdx, rax ; +0x4c, 0x180021b7c mov rcx, rbx ; +0x4f, 0x180021b7f call ?splitWithForm@DS_Dictionary@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@3@@Z; DS_Dictionary::splitWithForm(std::string const &,std::vector &) ; +0x52, 0x180021b82 movzx ebx, al ; +0x57, 0x180021b87 mov rdx, [rsp+0A8h+var_50] ; +0x5a, 0x180021b8a cmp rdx, 0Fh ; +0x5f, 0x180021b8f jbe short loc_180021BCA ; +0x63, 0x180021b93 inc rdx ; +0x65, 0x180021b95 mov rcx, [rsp+0A8h+Block]; Block ; +0x68, 0x180021b98 mov rax, rcx ; +0x6d, 0x180021b9d cmp rdx, 1000h ; +0x70, 0x180021ba0 jb short loc_180021BC5 ; +0x77, 0x180021ba7 add rdx, 27h ; ''' ; +0x79, 0x180021ba9 mov rcx, [rcx-8] ; +0x7d, 0x180021bad sub rax, rcx ; +0x81, 0x180021bb1 add rax, 0FFFFFFFFFFFFFFF8h ; +0x84, 0x180021bb4 cmp rax, 1Fh ; +0x88, 0x180021bb8 jbe short loc_180021BC5 ; +0x8c, 0x180021bbc call cs:_invalid_parameter_noinfo_noreturn ; +0x8e, 0x180021bbe db 0CCh ; +0x94, 0x180021bc4 call j_j_free_0 ; +0x95, 0x180021bc5 mov rdi, [rsp+0A8h+var_88] ; +0x9a, 0x180021bca test bl, bl ; +0x9f, 0x180021bcf jnz short loc_180021BD8 ; +0xa1, 0x180021bd1 xor bpl, bpl ; +0xa3, 0x180021bd3 jmp short loc_180021C28 ; +0xa6, 0x180021bd6 mov rcx, rdi ; +0xa8, 0x180021bd8 cmp qword ptr [rdi+18h], 0Fh ; +0xab, 0x180021bdb jbe short loc_180021BE5 ; +0xb0, 0x180021be0 mov rcx, [rdi]; String ; +0xb2, 0x180021be2 call cs:atof ; +0xb5, 0x180021be5 xorps xmm6, xmm6 ; +0xbb, 0x180021beb cvtsd2ss xmm6, xmm0 ; +0xbe, 0x180021bee lea rcx, [rdi+20h] ; +0xc2, 0x180021bf2 cmp qword ptr [rcx+18h], 0Fh ; +0xc6, 0x180021bf6 jbe short loc_180021C00 ; +0xcb, 0x180021bfb mov rcx, [rcx]; String ; +0xcd, 0x180021bfd call cs:atof ; +0xd0, 0x180021c00 xorps xmm2, xmm2 ; +0xd6, 0x180021c06 cvtsd2ss xmm2, xmm0 ; +0xd9, 0x180021c09 movaps xmm1, xmm6 ; +0xdd, 0x180021c0d lea rcx, [rsp+0A8h+var_70] ; +0xe0, 0x180021c10 call kmVec2Fill ; +0xe5, 0x180021c15 mov rdx, rax ; +0xea, 0x180021c1a mov rcx, rsi ; +0xed, 0x180021c1d call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0xf0, 0x180021c20 mov bpl, 1 ; +0xf5, 0x180021c25 test rdi, rdi ; +0xf8, 0x180021c28 jz loc_180021CCA ; +0xfb, 0x180021c2b mov rbx, rdi ; +0x101, 0x180021c31 mov rsi, [rsp+0A8h+var_88+8] ; +0x104, 0x180021c34 cmp rdi, rsi ; +0x109, 0x180021c39 jz short loc_180021C8E ; +0x10c, 0x180021c3c xchg ax, ax ; +0x10e, 0x180021c3e mov rdx, [rbx+18h] ; +0x110, 0x180021c40 cmp rdx, 0Fh ; +0x114, 0x180021c44 jbe short loc_180021C76 ; +0x118, 0x180021c48 inc rdx ; +0x11a, 0x180021c4a mov rcx, [rbx] ; +0x11d, 0x180021c4d cmp rdx, 1000h ; +0x120, 0x180021c50 jb short loc_180021C71 ; +0x127, 0x180021c57 add rdx, 27h ; ''' ; +0x129, 0x180021c59 mov r8, [rcx-8] ; +0x12d, 0x180021c5d sub rcx, r8 ; +0x131, 0x180021c61 lea rax, [rcx-8] ; +0x134, 0x180021c64 cmp rax, 1Fh ; +0x138, 0x180021c68 ja short loc_180021CBB ; +0x13c, 0x180021c6c mov rcx, r8; Block ; +0x13e, 0x180021c6e call j_j_free_0 ; +0x141, 0x180021c71 mov [rbx+10h], r14 ; +0x146, 0x180021c76 mov qword ptr [rbx+18h], 0Fh ; +0x14a, 0x180021c7a mov byte ptr [rbx], 0 ; +0x152, 0x180021c82 add rbx, 20h ; ' ' ; +0x155, 0x180021c85 cmp rbx, rsi ; +0x159, 0x180021c89 jnz short loc_180021C40 ; +0x15c, 0x180021c8c mov rdx, [rsp+0A8h+var_78] ; +0x15e, 0x180021c8e sub rdx, rdi ; +0x163, 0x180021c93 and rdx, 0FFFFFFFFFFFFFFE0h ; +0x166, 0x180021c96 mov rax, rdi ; +0x16a, 0x180021c9a cmp rdx, 1000h ; +0x16d, 0x180021c9d jb short loc_180021CC2 ; +0x174, 0x180021ca4 add rdx, 27h ; ''' ; +0x176, 0x180021ca6 mov rdi, [rdi-8] ; +0x17a, 0x180021caa sub rax, rdi ; +0x17e, 0x180021cae add rax, 0FFFFFFFFFFFFFFF8h ; +0x181, 0x180021cb1 cmp rax, 1Fh ; +0x185, 0x180021cb5 jbe short loc_180021CC2 ; +0x189, 0x180021cb9 call cs:_invalid_parameter_noinfo_noreturn ; +0x18b, 0x180021cbb align 2 ; +0x191, 0x180021cc1 mov rcx, rdi; Block ; +0x192, 0x180021cc2 call j_j_free_0 ; +0x195, 0x180021cc5 movzx eax, bpl ; +0x19a, 0x180021cca mov rcx, [rsp+0A8h+var_48] ; +0x19e, 0x180021cce xor rcx, rsp; StackCookie ; +0x1a3, 0x180021cd3 call __security_check_cookie ; +0x1a6, 0x180021cd6 movaps xmm6, [rsp+0A8h+var_38] ; +0x1ab, 0x180021cdb add rsp, 80h ; +0x1b0, 0x180021ce0 pop r14 ; +0x1b7, 0x180021ce7 pop rdi ; +0x1b9, 0x180021ce9 pop rsi ; +0x1ba, 0x180021cea pop rbp ; +0x1bb, 0x180021ceb pop rbx ; +0x1bc, 0x180021cec retn ; +0x1bd, 0x180021ced