{"type": "func", "start": 6442576416, "end": 6442576817, "name": "DS_Dictionary::setBoolForKey", "pseudocode": "// \n// DS_Dictionary::setBoolForKey from 0x18001ea20 to 0x18001ebb1 (401 bytes)\n// \n// 7 xrefs:\n// > DS_Dictionary::setBoolForKey @ 0x18001ebc3\n// > DS_Dictionary::setBoolMapForKey @ 0x18001ecde\n// > <???> @ 0x18013c2a8\n// > <???> @ 0x18013c2b8\n// > <???> @ 0x18013c2d0\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b8d64\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:27 +0000\n// \n\nvoid __fastcall DS_Dictionary::setBoolForKey(DS_Dictionary *this, char *a2, char a3, char a4)\n{\n  const char *v7; // rdi\n  const char *v8; // r8\n  char *v9; // rax\n  const char *v10; // r8\n  __int64 *v11; // rax\n  __int64 v12; // rax\n  const char *v13; // r8\n  __int64 v14; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v15; // [rsp+28h] [rbp-20h] BYREF\n  _BYTE v16[24]; // [rsp+30h] [rbp-18h] BYREF\n\n  if ( a3 )\n  {\n    cocos2d::CCThread::CCThread((cocos2d::CCThread *)&v15);\n    v7 = \"k\";\n    if ( !a4 )\n      goto LABEL_10;\n    v8 = \"k\";\n    if ( *((_BYTE *)this + 232) )\n      v8 = \"key\";\n    sub_180082A40(*((_QWORD *)this + 27) - 8LL, &v14, v8);\n    if ( sub_1800823F0(&v14) )\n    {\n      while ( 1 )\n      {\n        v9 = (char *)sub_180082AC0(&v14);\n        if ( !sub_180018D00(v9, a2) )\n          break;\n        v10 = \"k\";\n        if ( *((_BYTE *)this + 232) )\n          v10 = \"key\";\n        v14 = *(_QWORD *)sub_180084A40(&v14, v16, v10);\n        if ( !sub_1800823F0(&v14) )\n          goto LABEL_10;\n      }\n      if ( *((_BYTE *)this + 232) )\n        v7 = \"key\";\n      v11 = (__int64 *)sub_180084060(*((_QWORD *)this + 27) - 8LL, v16, v7, &v14);\n    }\n    else\n    {\nLABEL_10:\n      if ( *((_BYTE *)this + 232) )\n        v7 = \"key\";\n      v11 = (__int64 *)sub_180082790(*((_QWORD *)this + 27) - 8LL, v16, v7);\n    }\n    v15 = *v11;\n    v12 = sub_180082820(&v15, v16, 3);\n    sub_180088520(v12, a2);\n    v13 = \"t\";\n    if ( *((_BYTE *)this + 232) )\n      v13 = \"true\";\n    sub_180083ED0(*((_QWORD *)this + 27) - 8LL, v16, v13, &v15);\n  }\n}", "assembly": "; \n; DS_Dictionary::setBoolForKey from 0x18001ea20 to 0x18001ebb1 (401 bytes)\n; \n; 7 xrefs:\n; > DS_Dictionary::setBoolForKey @ 0x18001ebc3\n; > DS_Dictionary::setBoolMapForKey @ 0x18001ecde\n; > <???> @ 0x18013c2a8\n; > <???> @ 0x18013c2b8\n; > <???> @ 0x18013c2d0\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b8d64\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:27 +0000\n; \ntest    r8b, r8b                                                       ; +0x0, 0x18001ea20\njz      locret_18001EB88                                               ; +0x3, 0x18001ea23\nmov     [rsp+arg_10], rbx                                              ; +0x9, 0x18001ea29\nmov     [rsp+arg_18], rbp                                              ; +0xe, 0x18001ea2e\npush    rsi                                                            ; +0x13, 0x18001ea33\nsub     rsp, 40h                                                       ; +0x14, 0x18001ea34\nmov     rbx, rcx                                                       ; +0x18, 0x18001ea38\nmov     [rsp+48h+arg_0], rdi                                           ; +0x1b, 0x18001ea3b\nlea     rcx, [rsp+48h+var_20]; this                                    ; +0x20, 0x18001ea40\nmov     [rsp+48h+arg_8], r14                                           ; +0x25, 0x18001ea45\nmovzx   ebp, r9b                                                       ; +0x2a, 0x18001ea4a\nmov     rsi, rdx                                                       ; +0x2e, 0x18001ea4e\ncall    ??0CCThread@cocos2d@@QEAA@XZ; cocos2d::CCThread::CCThread(void) ; +0x31, 0x18001ea51\nlea     r14, aKey; \"key\"                                               ; +0x36, 0x18001ea56\nlea     rdi, aK; \"k\"                                                   ; +0x3d, 0x18001ea5d\ntest    bpl, bpl                                                       ; +0x44, 0x18001ea64\njz      loc_18001EAF1                                                  ; +0x47, 0x18001ea67\ncmp     byte ptr [rbx+0E8h], 0                                         ; +0x4d, 0x18001ea6d\nlea     rdx, [rsp+48h+var_28]                                          ; +0x54, 0x18001ea74\nmov     rcx, [rbx+0D8h]                                                ; +0x59, 0x18001ea79\nmov     r8, rdi                                                        ; +0x60, 0x18001ea80\ncmovnz  r8, r14                                                        ; +0x63, 0x18001ea83\nsub     rcx, 8                                                         ; +0x67, 0x18001ea87\ncall    sub_180082A40                                                  ; +0x6b, 0x18001ea8b\nlea     rcx, [rsp+48h+var_28]                                          ; +0x70, 0x18001ea90\ncall    sub_1800823F0                                                  ; +0x75, 0x18001ea95\ntest    rax, rax                                                       ; +0x7a, 0x18001ea9a\njz      short loc_18001EAF1                                            ; +0x7d, 0x18001ea9d\nnop                                                                    ; +0x7f, 0x18001ea9f\nlea     rcx, [rsp+48h+var_28]                                          ; +0x80, 0x18001eaa0\ncall    sub_180082AC0                                                  ; +0x85, 0x18001eaa5\nmov     rcx, rax; String1                                              ; +0x8a, 0x18001eaaa\nmov     rdx, rsi; String2                                              ; +0x8d, 0x18001eaad\ncall    sub_180018D00                                                  ; +0x90, 0x18001eab0\nlea     rdx, [rsp+48h+var_18]                                          ; +0x95, 0x18001eab5\ntest    eax, eax                                                       ; +0x9a, 0x18001eaba\njz      loc_18001EB89                                                  ; +0x9c, 0x18001eabc\ncmp     byte ptr [rbx+0E8h], 0                                         ; +0xa2, 0x18001eac2\nlea     rcx, [rsp+48h+var_28]                                          ; +0xa9, 0x18001eac9\nmov     r8, rdi                                                        ; +0xae, 0x18001eace\ncmovnz  r8, r14                                                        ; +0xb1, 0x18001ead1\ncall    sub_180084A40                                                  ; +0xb5, 0x18001ead5\nmov     rcx, [rax]                                                     ; +0xba, 0x18001eada\nmov     [rsp+48h+var_28], rcx                                          ; +0xbd, 0x18001eadd\nlea     rcx, [rsp+48h+var_28]                                          ; +0xc2, 0x18001eae2\ncall    sub_1800823F0                                                  ; +0xc7, 0x18001eae7\ntest    rax, rax                                                       ; +0xcc, 0x18001eaec\njnz     short loc_18001EAA0                                            ; +0xcf, 0x18001eaef\ncmp     byte ptr [rbx+0E8h], 0                                         ; +0xd1, 0x18001eaf1\nlea     rdx, [rsp+48h+var_18]                                          ; +0xd8, 0x18001eaf8\nmov     rcx, [rbx+0D8h]                                                ; +0xdd, 0x18001eafd\ncmovnz  rdi, r14                                                       ; +0xe4, 0x18001eb04\nsub     rcx, 8                                                         ; +0xe8, 0x18001eb08\nmov     r8, rdi                                                        ; +0xec, 0x18001eb0c\ncall    sub_180082790                                                  ; +0xef, 0x18001eb0f\nmov     rax, [rax]                                                     ; +0xf4, 0x18001eb14\nlea     rdx, [rsp+48h+var_18]                                          ; +0xf7, 0x18001eb17\nmov     r8d, 3                                                         ; +0xfc, 0x18001eb1c\nmov     [rsp+48h+var_20], rax                                          ; +0x102, 0x18001eb22\nlea     rcx, [rsp+48h+var_20]                                          ; +0x107, 0x18001eb27\ncall    sub_180082820                                                  ; +0x10c, 0x18001eb2c\nmov     rcx, rax                                                       ; +0x111, 0x18001eb31\nmov     rdx, rsi                                                       ; +0x114, 0x18001eb34\ncall    sub_180088520                                                  ; +0x117, 0x18001eb37\ncmp     byte ptr [rbx+0E8h], 0                                         ; +0x11c, 0x18001eb3c\nlea     rax, Str1; \"true\"                                              ; +0x123, 0x18001eb43\nmov     rcx, [rbx+0D8h]                                                ; +0x12a, 0x18001eb4a\nlea     r8, aT; \"t\"                                                    ; +0x131, 0x18001eb51\ncmovnz  r8, rax                                                        ; +0x138, 0x18001eb58\nlea     r9, [rsp+48h+var_20]                                           ; +0x13c, 0x18001eb5c\nsub     rcx, 8                                                         ; +0x141, 0x18001eb61\nlea     rdx, [rsp+48h+var_18]                                          ; +0x145, 0x18001eb65\ncall    sub_180083ED0                                                  ; +0x14a, 0x18001eb6a\nmov     r14, [rsp+48h+arg_8]                                           ; +0x14f, 0x18001eb6f\nmov     rdi, [rsp+48h+arg_0]                                           ; +0x154, 0x18001eb74\nmov     rbx, [rsp+48h+arg_10]                                          ; +0x159, 0x18001eb79\nmov     rbp, [rsp+48h+arg_18]                                          ; +0x15e, 0x18001eb7e\nadd     rsp, 40h                                                       ; +0x163, 0x18001eb83\npop     rsi                                                            ; +0x167, 0x18001eb87\nretn                                                                   ; +0x168, 0x18001eb88\ncmp     byte ptr [rbx+0E8h], 0                                         ; +0x169, 0x18001eb89\nlea     r9, [rsp+48h+var_28]                                           ; +0x170, 0x18001eb90\nmov     rcx, [rbx+0D8h]                                                ; +0x175, 0x18001eb95\ncmovnz  rdi, r14                                                       ; +0x17c, 0x18001eb9c\nsub     rcx, 8                                                         ; +0x180, 0x18001eba0\nmov     r8, rdi                                                        ; +0x184, 0x18001eba4\ncall    sub_180084060                                                  ; +0x187, 0x18001eba7\njmp     loc_18001EB14                                                  ; +0x18c, 0x18001ebac", "xrefs": ["DS_Dictionary::setBoolForKey @ 0x18001ebc3", "DS_Dictionary::setBoolMapForKey @ 0x18001ecde", "<???> @ 0x18013c2a8", "<???> @ 0x18013c2b8", "<???> @ 0x18013c2d0", "<???> @ 0x18014cf68", "<???> @ 0x1801b8d64"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}