// // DS_Dictionary::getRectForKey from 0x18001ac60 to 0x18001ae6d (525 bytes) // // 2 xrefs: // > @ 0x18014cf68 // > @ 0x1801b8a88 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:21:26 +0000 // // Hidden C++ exception states: #wind=1 cocos2d::CCRect *__fastcall DS_Dictionary::getRectForKey(__int64 a1, cocos2d::CCRect *a2, const char *a3) { const char *v6; // r8 const char *v7; // rax const char *v8; // r8 __int64 v9; // rbx __int64 v10; // rax const char *v11; // r8 cocos2d::CCRect *v12; // rcx const struct cocos2d::CCRect *v13; // rdx __int64 v15; // rax const char *v16; // rbx size_t v17; // rax char v18; // bl void *v19; // r8 __int64 v20; // [rsp+30h] [rbp-78h] BYREF _BYTE v21[16]; // [rsp+38h] [rbp-70h] BYREF char v22[8]; // [rsp+48h] [rbp-60h] BYREF char v23[8]; // [rsp+50h] [rbp-58h] BYREF void *Block[2]; // [rsp+58h] [rbp-50h] BYREF __int128 v25; // [rsp+68h] [rbp-40h] v6 = "k"; if ( *(_BYTE *)(a1 + 232) ) v6 = "key"; sub_180082A40(*(_QWORD *)(a1 + 216) - 8LL, &v20, v6); if ( sub_1800823F0(&v20) ) { while ( 1 ) { v7 = (const char *)sub_180082AC0(&v20); if ( !strcmp(v7, a3) ) { v8 = "s"; if ( *(_BYTE *)(a1 + 232) ) v8 = "string"; v9 = sub_180084A40(&v20, v23, v8); v10 = sub_180084AC0(&v20, v21); if ( (unsigned __int8)sub_1800823E0(v10, v9) ) break; } v11 = "k"; if ( *(_BYTE *)(a1 + 232) ) v11 = "key"; v20 = *(_QWORD *)sub_180084A40(&v20, v22, v11); if ( !sub_1800823F0(&v20) ) goto LABEL_11; } cocos2d::CCRect::CCRect((cocos2d::CCRect *)v21); v15 = sub_180084AC0(&v20, v22); v16 = (const char *)sub_180082AC0(v15); *(_OWORD *)Block = 0; v25 = 0; v17 = strlen(v16); sub_18000CEF0(Block, v16, v17); v18 = DS_Dictionary::rectFromString(a1, Block, v21); if ( *((_QWORD *)&v25 + 1) > 0xFu ) { v19 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v25 + 1) + 1LL) >= 0x1000 ) { v19 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v19 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v19); } v12 = a2; if ( v18 ) { v13 = (const struct cocos2d::CCRect *)v21; goto LABEL_13; } } else { LABEL_11: v12 = a2; } v13 = (const struct cocos2d::CCRect *)&unk_1801B2370; LABEL_13: cocos2d::CCRect::CCRect(v12, v13); return a2; }