{"type": "func", "start": 5372038352, "end": 5372038824, "name": "GJBaseGameLayer::getGroupParentsString", "pseudocode": "// \n// GJBaseGameLayer::getGroupParentsString from 0x14032ccd0 to 0x14032cea8 (472 bytes)\n// \n// 2 xrefs:\n// > GameObject::getSaveString @ 0x14029cd88\n// > <???> @ 0x14091f3ac\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:30:30 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n_QWORD *__fastcall GJBaseGameLayer::getGroupParentsString(__int64 a1, _QWORD *a2, unsigned int *a3)\n{\n  _QWORD *v4; // rdi\n  cocos2d::CCArray *v6; // rax\n  cocos2d::CCArray *v7; // r14\n  char v8; // bl\n  unsigned int v9; // esi\n  __int64 v10; // rbp\n  cocos2d::CCArray *v11; // rax\n  cocos2d::CCArray *v12; // rbx\n  _BYTE *v13; // rax\n  size_t v14; // r8\n  _QWORD v17[2]; // [rsp+30h] [rbp-278h] BYREF\n  _QWORD v18[2]; // [rsp+40h] [rbp-268h] BYREF\n  _BYTE v19[528]; // [rsp+50h] [rbp-258h] BYREF\n\n  v4 = a2;\n  v17[0] = a2;\n  v6 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 3976), a3[231]);\n  v7 = v6;\n  if ( v6 && cocos2d::CCArray::count(v6) )\n  {\n    fmt::BasicWriter<char>::BasicWriter<char>(v19);\n    v8 = 1;\n    v9 = 0;\n    if ( cocos2d::CCArray::count(v7) )\n    {\n      do\n      {\n        v10 = *((int *)cocos2d::CCArray::objectAtIndex(v7, v9) + 14);\n        if ( (int)v10 > 0 )\n        {\n          if ( !v8 )\n          {\n            v17[0] = \".\";\n            v17[1] = 0;\n            fmt::BasicWriter<char>::operator<<(v19, v17);\n          }\n          v11 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 3968), v10);\n          v12 = v11;\n          if ( v11\n            && cocos2d::CCArray::count(v11)\n            && cocos2d::CCArray::objectAtIndex(v12, 0) == (struct cocos2d::CCObject *)a3 )\n          {\n            v18[0] = \"+\";\n            v18[1] = 0;\n            fmt::BasicWriter<char>::operator<<(v19, v18);\n          }\n          fmt::BasicWriter<char>::operator<<(v19, (unsigned int)v10);\n          v8 = 0;\n        }\n        ++v9;\n      }\n      while ( v9 < cocos2d::CCArray::count(v7) );\n      v4 = a2;\n    }\n    v13 = (_BYTE *)fmt::BasicWriter<char>::c_str(v19);\n    *(_OWORD *)v4 = 0;\n    v4[2] = 0;\n    v4[3] = 0;\n    v14 = -1;\n    do\n      ++v14;\n    while ( v13[v14] );\n    sub_14003D230(v4, v13, v14);\n    fmt::BasicWriter<char>::~BasicWriter<char>(v19);\n  }\n  else\n  {\n    *(_OWORD *)v4 = 0;\n    v4[2] = 0;\n    v4[3] = 15;\n    *(_BYTE *)v4 = 0;\n  }\n  return v4;\n}", "assembly": "; \n; GJBaseGameLayer::getGroupParentsString from 0x14032ccd0 to 0x14032cea8 (472 bytes)\n; \n; 2 xrefs:\n; > GameObject::getSaveString @ 0x14029cd88\n; > <???> @ 0x14091f3ac\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:30:30 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x14032ccd0\npush    rbp                                                            ; +0x5, 0x14032ccd5\npush    rsi                                                            ; +0x6, 0x14032ccd6\npush    rdi                                                            ; +0x7, 0x14032ccd7\npush    r12                                                            ; +0x8, 0x14032ccd8\npush    r13                                                            ; +0xa, 0x14032ccda\npush    r14                                                            ; +0xc, 0x14032ccdc\npush    r15                                                            ; +0xe, 0x14032ccde\nsub     rsp, 270h                                                      ; +0x10, 0x14032cce0\nmov     rax, cs:__security_cookie                                      ; +0x17, 0x14032cce7\nxor     rax, rsp                                                       ; +0x1e, 0x14032ccee\nmov     [rsp+2A8h+var_48], rax                                         ; +0x21, 0x14032ccf1\nmov     r12, r8                                                        ; +0x29, 0x14032ccf9\nmov     rdi, rdx                                                       ; +0x2c, 0x14032ccfc\nmov     [rsp+2A8h+var_280], rdx                                        ; +0x2f, 0x14032ccff\nmov     r15, rcx                                                       ; +0x34, 0x14032cd04\nmov     [rsp+2A8h+var_278], rdx                                        ; +0x37, 0x14032cd07\nxor     r13d, r13d                                                     ; +0x3c, 0x14032cd0c\nmov     edx, [r8+39Ch]                                                 ; +0x3f, 0x14032cd0f\nmov     rcx, [rcx+0F88h]                                               ; +0x46, 0x14032cd16\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x4d, 0x14032cd1d\nmov     r14, rax                                                       ; +0x53, 0x14032cd23\ntest    rax, rax                                                       ; +0x56, 0x14032cd26\njz      loc_14032CE65                                                  ; +0x59, 0x14032cd29\nmov     rcx, rax                                                       ; +0x5f, 0x14032cd2f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x62, 0x14032cd32\ntest    eax, eax                                                       ; +0x68, 0x14032cd38\njz      loc_14032CE65                                                  ; +0x6a, 0x14032cd3a\nlea     rcx, [rsp+2A8h+var_258]                                        ; +0x70, 0x14032cd40\ncall    cs:??0?$BasicWriter@D@fmt@@QEAA@XZ; fmt::BasicWriter<char>::BasicWriter<char>(void) ; +0x75, 0x14032cd45\nnop                                                                    ; +0x7b, 0x14032cd4b\nmov     bl, 1                                                          ; +0x7c, 0x14032cd4c\nmov     esi, r13d                                                      ; +0x7e, 0x14032cd4e\nmov     rcx, r14                                                       ; +0x81, 0x14032cd51\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x84, 0x14032cd54\ntest    eax, eax                                                       ; +0x8a, 0x14032cd5a\njz      loc_14032CE22                                                  ; +0x8c, 0x14032cd5c\nlea     rdi, asc_14070ECDC; \".\"                                        ; +0x92, 0x14032cd62\nnop     dword ptr [rax+00000000h]                                      ; +0x99, 0x14032cd69\nmov     edx, esi                                                       ; +0xa0, 0x14032cd70\nmov     rcx, r14                                                       ; +0xa2, 0x14032cd72\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xa5, 0x14032cd75\nmovsxd  rbp, dword ptr [rax+38h]                                       ; +0xab, 0x14032cd7b\ntest    ebp, ebp                                                       ; +0xaf, 0x14032cd7f\njle     loc_14032CE0A                                                  ; +0xb1, 0x14032cd81\ntest    bl, bl                                                         ; +0xb7, 0x14032cd87\njnz     short loc_14032CDA5                                            ; +0xb9, 0x14032cd89\nmov     [rsp+2A8h+var_278], rdi                                        ; +0xbb, 0x14032cd8b\nmov     [rsp+2A8h+var_270], r13                                        ; +0xc0, 0x14032cd90\nlea     rdx, [rsp+2A8h+var_278]                                        ; +0xc5, 0x14032cd95\nlea     rcx, [rsp+2A8h+var_258]                                        ; +0xca, 0x14032cd9a\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@V?$BasicStringRef@D@1@@Z; fmt::BasicWriter<char>::operator<<(fmt::BasicStringRef<char>) ; +0xcf, 0x14032cd9f\nmov     rdx, rbp                                                       ; +0xd5, 0x14032cda5\nmov     rcx, [r15+0F80h]                                               ; +0xd8, 0x14032cda8\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xdf, 0x14032cdaf\nmov     rbx, rax                                                       ; +0xe5, 0x14032cdb5\ntest    rax, rax                                                       ; +0xe8, 0x14032cdb8\njz      short loc_14032CDFB                                            ; +0xeb, 0x14032cdbb\nmov     rcx, rax                                                       ; +0xed, 0x14032cdbd\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf0, 0x14032cdc0\ntest    eax, eax                                                       ; +0xf6, 0x14032cdc6\njz      short loc_14032CDFB                                            ; +0xf8, 0x14032cdc8\nxor     edx, edx                                                       ; +0xfa, 0x14032cdca\nmov     rcx, rbx                                                       ; +0xfc, 0x14032cdcc\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xff, 0x14032cdcf\ncmp     rax, r12                                                       ; +0x105, 0x14032cdd5\njnz     short loc_14032CDFB                                            ; +0x108, 0x14032cdd8\nlea     rax, asc_140726E90; \"+\"                                        ; +0x10a, 0x14032cdda\nmov     [rsp+2A8h+var_268], rax                                        ; +0x111, 0x14032cde1\nmov     [rsp+2A8h+var_260], r13                                        ; +0x116, 0x14032cde6\nlea     rdx, [rsp+2A8h+var_268]                                        ; +0x11b, 0x14032cdeb\nlea     rcx, [rsp+2A8h+var_258]                                        ; +0x120, 0x14032cdf0\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@V?$BasicStringRef@D@1@@Z; fmt::BasicWriter<char>::operator<<(fmt::BasicStringRef<char>) ; +0x125, 0x14032cdf5\nmov     edx, ebp                                                       ; +0x12b, 0x14032cdfb\nlea     rcx, [rsp+2A8h+var_258]                                        ; +0x12d, 0x14032cdfd\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@H@Z; fmt::BasicWriter<char>::operator<<(int) ; +0x132, 0x14032ce02\nxor     bl, bl                                                         ; +0x138, 0x14032ce08\ninc     esi                                                            ; +0x13a, 0x14032ce0a\nmov     rcx, r14                                                       ; +0x13c, 0x14032ce0c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x13f, 0x14032ce0f\ncmp     esi, eax                                                       ; +0x145, 0x14032ce15\njb      loc_14032CD70                                                  ; +0x147, 0x14032ce17\nmov     rdi, [rsp+2A8h+var_280]                                        ; +0x14d, 0x14032ce1d\nlea     rcx, [rsp+2A8h+var_258]                                        ; +0x152, 0x14032ce22\ncall    cs:?c_str@?$BasicWriter@D@fmt@@QEBAPEBDXZ; fmt::BasicWriter<char>::c_str(void) ; +0x157, 0x14032ce27\nxorps   xmm0, xmm0                                                     ; +0x15d, 0x14032ce2d\nmovups  xmmword ptr [rdi], xmm0                                        ; +0x160, 0x14032ce30\nmov     [rdi+10h], r13                                                 ; +0x163, 0x14032ce33\nmov     [rdi+18h], r13                                                 ; +0x167, 0x14032ce37\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x16b, 0x14032ce3b\ninc     r8                                                             ; +0x172, 0x14032ce42\ncmp     byte ptr [rax+r8], 0                                           ; +0x175, 0x14032ce45\njnz     short loc_14032CE42                                            ; +0x17a, 0x14032ce4a\nmov     rdx, rax                                                       ; +0x17c, 0x14032ce4c\nmov     rcx, rdi                                                       ; +0x17f, 0x14032ce4f\ncall    sub_14003D230                                                  ; +0x182, 0x14032ce52\nnop                                                                    ; +0x187, 0x14032ce57\nlea     rcx, [rsp+2A8h+var_258]                                        ; +0x188, 0x14032ce58\ncall    cs:__imp_??1?$BasicWriter@D@fmt@@QEAA@XZ; fmt::BasicWriter<char>::~BasicWriter<char>(void) ; +0x18d, 0x14032ce5d\njmp     short loc_14032CE7A                                            ; +0x193, 0x14032ce63\nxorps   xmm0, xmm0                                                     ; +0x195, 0x14032ce65\nmovups  xmmword ptr [rdi], xmm0                                        ; +0x198, 0x14032ce68\nmov     [rdi+10h], r13                                                 ; +0x19b, 0x14032ce6b\nmov     qword ptr [rdi+18h], 0Fh                                       ; +0x19f, 0x14032ce6f\nmov     [rdi], r13b                                                    ; +0x1a7, 0x14032ce77\nmov     rax, rdi                                                       ; +0x1aa, 0x14032ce7a\nmov     rcx, [rsp+2A8h+var_48]                                         ; +0x1ad, 0x14032ce7d\nxor     rcx, rsp; StackCookie                                          ; +0x1b5, 0x14032ce85\ncall    __security_check_cookie                                        ; +0x1b8, 0x14032ce88\nmov     rbx, [rsp+2A8h+arg_18]                                         ; +0x1bd, 0x14032ce8d\nadd     rsp, 270h                                                      ; +0x1c5, 0x14032ce95\npop     r15                                                            ; +0x1cc, 0x14032ce9c\npop     r14                                                            ; +0x1ce, 0x14032ce9e\npop     r13                                                            ; +0x1d0, 0x14032cea0\npop     r12                                                            ; +0x1d2, 0x14032cea2\npop     rdi                                                            ; +0x1d4, 0x14032cea4\npop     rsi                                                            ; +0x1d5, 0x14032cea5\npop     rbp                                                            ; +0x1d6, 0x14032cea6\nretn                                                                   ; +0x1d7, 0x14032cea7", "xrefs": ["GameObject::getSaveString @ 0x14029cd88", "<???> @ 0x14091f3ac"], "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"}