{"type": "func", "start": 4296125328, "end": 4296125667, "name": "GJBaseGameLayer::setGroupParent", "pseudocode": "// \n// GJBaseGameLayer::setGroupParent from 0x10011ab90 to 0x10011ace3 (339 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::promoteGroupParent @ 0x10011adb2\n// > GJBaseGameLayer::addToGroupParents @ 0x10011b5ee\n// > GJBaseGameLayer::addToGroupParents @ 0x10011b796\n// > GJBaseGameLayer::loadGroupParentsFromString @ 0x10011beac\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 12:24:36 +0000\n// \n\nchar __fastcall GJBaseGameLayer::setGroupParent(__int64 a1, __int64 a2, signed int a3)\n{\n  __int64 v3; // rax\n  __int64 v6; // rdi\n  __int64 v7; // r13\n  __int64 v8; // rax\n  __int64 v9; // r15\n  __int64 v10; // rdi\n  __int64 v11; // rax\n  __int64 v12; // r15\n  unsigned int v13; // r12d\n  _DWORD *v14; // r12\n\n  LOBYTE(v3) = a3 <= 0;\n  if ( a3 > 0 && a2 != 0 )\n  {\n    v6 = *(_QWORD *)(a1 + 3688);\n    v7 = (unsigned int)a3;\n    v8 = cocos2d::CCDictionary::objectForKey_1(v6);\n    if ( v8 )\n    {\n      v9 = v8;\n      LOBYTE(v3) = sub_1007FF080(v8, a2);\n      if ( (_BYTE)v3 )\n        return v3;\n    }\n    else\n    {\n      v9 = sub_1007FE900(v6);\n      cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3688), v9, v7);\n    }\n    sub_1007FEBF0(v9, a2);\n    v10 = *(_QWORD *)(a1 + 3696);\n    v11 = cocos2d::CCDictionary::objectForKey_1(v10);\n    v12 = v11;\n    if ( v11 )\n    {\n      if ( !(unsigned int)sub_1007FEF90(v11) )\n        goto LABEL_13;\n    }\n    else\n    {\n      v12 = sub_1007FE900(v10);\n      cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3696), v12, *(unsigned int *)(a2 + 916));\n      if ( !(unsigned int)sub_1007FEF90(v12) )\n      {\nLABEL_13:\n        v14 = operator new(0x40u);\n        cocos2d::CCObject::CCObject(v14);\n        *(_QWORD *)v14 = off_100ABB920;\n        v14[14] = a3;\n        cocos2d::CCObject::autorelease(v14);\n        LOBYTE(v3) = sub_1007FEBF0(v12, v14);\nLABEL_14:\n        *(_BYTE *)(a2 + 1170) = 1;\n        return v3;\n      }\n    }\n    v13 = 0;\n    while ( 1 )\n    {\n      v3 = sub_1007FEFE0(v12, v13);\n      if ( *(_DWORD *)(v3 + 56) == a3 )\n        goto LABEL_14;\n      if ( ++v13 >= (unsigned int)sub_1007FEF90(v12) )\n        goto LABEL_13;\n    }\n  }\n  return v3;\n}", "assembly": "; \n; GJBaseGameLayer::setGroupParent from 0x10011ab90 to 0x10011ace3 (339 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::promoteGroupParent @ 0x10011adb2\n; > GJBaseGameLayer::addToGroupParents @ 0x10011b5ee\n; > GJBaseGameLayer::addToGroupParents @ 0x10011b796\n; > GJBaseGameLayer::loadGroupParentsFromString @ 0x10011beac\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 12:24:36 +0000\n; \npush    rbp                                                            ; +0x0, 0x10011ab90\nmov     rbp, rsp                                                       ; +0x1, 0x10011ab91\npush    r15                                                            ; +0x4, 0x10011ab94\npush    r14                                                            ; +0x6, 0x10011ab96\npush    r13                                                            ; +0x8, 0x10011ab98\npush    r12                                                            ; +0xa, 0x10011ab9a\npush    rbx                                                            ; +0xc, 0x10011ab9c\npush    rax                                                            ; +0xd, 0x10011ab9d\ntest    edx, edx                                                       ; +0xe, 0x10011ab9e\nsetle   al                                                             ; +0x10, 0x10011aba0\ntest    rsi, rsi                                                       ; +0x13, 0x10011aba3\nsetz    cl                                                             ; +0x16, 0x10011aba6\nor      cl, al                                                         ; +0x19, 0x10011aba9\njnz     loc_10011ACD4                                                  ; +0x1b, 0x10011abab\nmov     r14d, edx                                                      ; +0x21, 0x10011abb1\nmov     rbx, rsi                                                       ; +0x24, 0x10011abb4\nmov     r12, rdi                                                       ; +0x27, 0x10011abb7\nmov     rdi, [rdi+0E68h]                                               ; +0x2a, 0x10011abba\nmov     r13d, edx                                                      ; +0x31, 0x10011abc1\nmov     rsi, r13                                                       ; +0x34, 0x10011abc4\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x37, 0x10011abc7\ntest    rax, rax                                                       ; +0x3c, 0x10011abcc\njz      short loc_10011ABE8                                            ; +0x3f, 0x10011abcf\nmov     r15, rax                                                       ; +0x41, 0x10011abd1\nmov     rdi, rax                                                       ; +0x44, 0x10011abd4\nmov     rsi, rbx                                                       ; +0x47, 0x10011abd7\ncall    sub_1007FF080                                                  ; +0x4a, 0x10011abda\ntest    al, al                                                         ; +0x4f, 0x10011abdf\njz      short loc_10011AC03                                            ; +0x51, 0x10011abe1\njmp     loc_10011ACD4                                                  ; +0x53, 0x10011abe3\ncall    sub_1007FE900                                                  ; +0x58, 0x10011abe8\nmov     r15, rax                                                       ; +0x5d, 0x10011abed\nmov     rdi, [r12+0E68h]                                               ; +0x60, 0x10011abf0\nmov     rsi, rax                                                       ; +0x68, 0x10011abf8\nmov     rdx, r13                                                       ; +0x6b, 0x10011abfb\ncall    cocos2d__CCDictionary__setObject_1                             ; +0x6e, 0x10011abfe\nmov     rdi, r15                                                       ; +0x73, 0x10011ac03\nmov     rsi, rbx                                                       ; +0x76, 0x10011ac06\ncall    sub_1007FEBF0                                                  ; +0x79, 0x10011ac09\nmov     rdi, [r12+0E70h]                                               ; +0x7e, 0x10011ac0e\nmov     esi, [rbx+394h]                                                ; +0x86, 0x10011ac16\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x8c, 0x10011ac1c\nmov     r15, rax                                                       ; +0x91, 0x10011ac21\ntest    rax, rax                                                       ; +0x94, 0x10011ac24\njz      short loc_10011AC37                                            ; +0x97, 0x10011ac27\nmov     rdi, r15                                                       ; +0x99, 0x10011ac29\ncall    sub_1007FEF90                                                  ; +0x9c, 0x10011ac2c\ntest    eax, eax                                                       ; +0xa1, 0x10011ac31\njnz     short loc_10011AC61                                            ; +0xa3, 0x10011ac33\njmp     short loc_10011AC91                                            ; +0xa5, 0x10011ac35\ncall    sub_1007FE900                                                  ; +0xa7, 0x10011ac37\nmov     r15, rax                                                       ; +0xac, 0x10011ac3c\nmov     rdi, [r12+0E70h]                                               ; +0xaf, 0x10011ac3f\nmov     edx, [rbx+394h]                                                ; +0xb7, 0x10011ac47\nmov     rsi, rax                                                       ; +0xbd, 0x10011ac4d\ncall    cocos2d__CCDictionary__setObject_1                             ; +0xc0, 0x10011ac50\nmov     rdi, r15                                                       ; +0xc5, 0x10011ac55\ncall    sub_1007FEF90                                                  ; +0xc8, 0x10011ac58\ntest    eax, eax                                                       ; +0xcd, 0x10011ac5d\njz      short loc_10011AC91                                            ; +0xcf, 0x10011ac5f\nxor     r12d, r12d                                                     ; +0xd1, 0x10011ac61\nnop     word ptr [rax+rax+00000000h]                                   ; +0xd4, 0x10011ac64\nmov     rdi, r15                                                       ; +0xe0, 0x10011ac70\nmov     esi, r12d                                                      ; +0xe3, 0x10011ac73\ncall    sub_1007FEFE0                                                  ; +0xe6, 0x10011ac76\ncmp     [rax+38h], r14d                                                ; +0xeb, 0x10011ac7b\njz      short loc_10011ACCD                                            ; +0xef, 0x10011ac7f\ninc     r12d                                                           ; +0xf1, 0x10011ac81\nmov     rdi, r15                                                       ; +0xf4, 0x10011ac84\ncall    sub_1007FEF90                                                  ; +0xf7, 0x10011ac87\ncmp     r12d, eax                                                      ; +0xfc, 0x10011ac8c\njb      short loc_10011AC70                                            ; +0xff, 0x10011ac8f\nmov     edi, 40h ; '@'; __sz                                           ; +0x101, 0x10011ac91\ncall    __Znwm; operator new(ulong)                                    ; +0x106, 0x10011ac96\nmov     r12, rax                                                       ; +0x10b, 0x10011ac9b\nmov     rdi, rax                                                       ; +0x10e, 0x10011ac9e\ncall    cocos2d__CCObject__CCObject                                    ; +0x111, 0x10011aca1\nlea     rax, _ZTVN7cocos2d9CCIntegerE; `vtable for'cocos2d::CCInteger  ; +0x116, 0x10011aca6\nadd     rax, 10h                                                       ; +0x11d, 0x10011acad\nmov     [r12], rax                                                     ; +0x121, 0x10011acb1\nmov     [r12+38h], r14d                                                ; +0x125, 0x10011acb5\nmov     rdi, r12                                                       ; +0x12a, 0x10011acba\ncall    cocos2d__CCObject__autorelease                                 ; +0x12d, 0x10011acbd\nmov     rdi, r15                                                       ; +0x132, 0x10011acc2\nmov     rsi, r12                                                       ; +0x135, 0x10011acc5\ncall    sub_1007FEBF0                                                  ; +0x138, 0x10011acc8\nmov     byte ptr [rbx+492h], 1                                         ; +0x13d, 0x10011accd\nadd     rsp, 8                                                         ; +0x144, 0x10011acd4\npop     rbx                                                            ; +0x148, 0x10011acd8\npop     r12                                                            ; +0x149, 0x10011acd9\npop     r13                                                            ; +0x14b, 0x10011acdb\npop     r14                                                            ; +0x14d, 0x10011acdd\npop     r15                                                            ; +0x14f, 0x10011acdf\npop     rbp                                                            ; +0x151, 0x10011ace1\nretn                                                                   ; +0x152, 0x10011ace2", "xrefs": ["GJBaseGameLayer::promoteGroupParent @ 0x10011adb2", "GJBaseGameLayer::addToGroupParents @ 0x10011b5ee", "GJBaseGameLayer::addToGroupParents @ 0x10011b796", "GJBaseGameLayer::loadGroupParentsFromString @ 0x10011beac"], "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"}