{"type": "func", "start": 4296125888, "end": 4296126348, "name": "GJBaseGameLayer::remapGroupParent", "pseudocode": "// \n// GJBaseGameLayer::remapGroupParent from 0x10011adc0 to 0x10011af8c (460 bytes)\n// \n// 1 xrefs:\n// > EditorUI::replaceGroupID @ 0x1000161cf\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\nvoid __fastcall GJBaseGameLayer::remapGroupParent(__int64 a1, __int64 a2, int a3, int a4)\n{\n  __int64 v4; // rbx\n  __int64 v7; // rax\n  __int64 v8; // r13\n  __int64 v9; // rax\n  __int64 v10; // r13\n  int v11; // r14d\n  char v12; // bl\n  int v13; // eax\n  bool v14; // zf\n  _DWORD *v15; // r14\n  __int64 v16; // rdi\n  __int64 v17; // r14\n\n  if ( a3 != a4 )\n  {\n    v4 = a2;\n    if ( a2 )\n    {\n      if ( a3 > 0 && a4 > 0 )\n      {\n        v7 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 3688));\n        if ( v7 )\n        {\n          v8 = v7;\n          if ( (unsigned __int8)sub_1007FF080(v7, a2) )\n          {\n            sub_1007FF140(v8, a2, 1);\n            if ( !(unsigned int)sub_1007FEF90(v8) )\n              cocos2d::CCDictionary::removeObjectForKey_1(*(_QWORD *)(a1 + 3688), (unsigned int)a3);\n            v9 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 3696));\n            if ( v9 )\n            {\n              v10 = v9;\n              v11 = sub_1007FEF90(v9);\n              if ( v11 - 1 < 0 )\n                goto LABEL_16;\n              v12 = 0;\n              do\n              {\n                while ( 1 )\n                {\n                  v13 = *(_DWORD *)(sub_1007FEFE0(v10, (unsigned int)--v11) + 56);\n                  if ( v13 == a3 )\n                    break;\n                  v12 |= v13 == a4;\n                  if ( v11 <= 0 )\n                    goto LABEL_15;\n                }\n                sub_1007FF150(v10, (unsigned int)v11, 1);\n              }\n              while ( v11 > 0 );\nLABEL_15:\n              v14 = (v12 & 1) == 0;\n              v4 = a2;\n              if ( v14 )\n              {\nLABEL_16:\n                v15 = operator new(0x40u);\n                cocos2d::CCObject::CCObject(v15);\n                *(_QWORD *)v15 = off_100ABB920;\n                v15[14] = a4;\n                cocos2d::CCObject::autorelease(v15);\n                sub_1007FEBF0(v10, v15);\n              }\n            }\n            v16 = *(_QWORD *)(a1 + 3688);\n            v17 = cocos2d::CCDictionary::objectForKey_1(v16);\n            if ( !v17 )\n            {\n              v17 = sub_1007FE900(v16);\n              cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3688), v17, (unsigned int)a4);\n            }\n            if ( !(unsigned __int8)sub_1007FF080(v17, v4) )\n              sub_1007FEBF0(v17, v4);\n          }\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::remapGroupParent from 0x10011adc0 to 0x10011af8c (460 bytes)\n; \n; 1 xrefs:\n; > EditorUI::replaceGroupID @ 0x1000161cf\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, 0x10011adc0\nmov     rbp, rsp                                                       ; +0x1, 0x10011adc1\npush    r15                                                            ; +0x4, 0x10011adc4\npush    r14                                                            ; +0x6, 0x10011adc6\npush    r13                                                            ; +0x8, 0x10011adc8\npush    r12                                                            ; +0xa, 0x10011adca\npush    rbx                                                            ; +0xc, 0x10011adcc\nsub     rsp, 18h                                                       ; +0xd, 0x10011adcd\nmov     [rbp+var_30], rdi                                              ; +0x11, 0x10011add1\ncmp     edx, ecx                                                       ; +0x15, 0x10011add5\njz      loc_10011AF64                                                  ; +0x17, 0x10011add7\nmov     rbx, rsi                                                       ; +0x1d, 0x10011addd\ntest    rsi, rsi                                                       ; +0x20, 0x10011ade0\njz      loc_10011AF64                                                  ; +0x23, 0x10011ade3\nmov     r12d, edx                                                      ; +0x29, 0x10011ade9\ntest    edx, edx                                                       ; +0x2c, 0x10011adec\njle     loc_10011AF64                                                  ; +0x2e, 0x10011adee\nmov     r15d, ecx                                                      ; +0x34, 0x10011adf4\ntest    ecx, ecx                                                       ; +0x37, 0x10011adf7\njle     loc_10011AF64                                                  ; +0x39, 0x10011adf9\nmov     rax, [rbp+var_30]                                              ; +0x3f, 0x10011adff\nmov     rdi, [rax+0E68h]                                               ; +0x43, 0x10011ae03\nmov     r14d, r12d                                                     ; +0x4a, 0x10011ae0a\nmov     rsi, r14                                                       ; +0x4d, 0x10011ae0d\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x50, 0x10011ae10\ntest    rax, rax                                                       ; +0x55, 0x10011ae15\njz      loc_10011AF64                                                  ; +0x58, 0x10011ae18\nmov     r13, rax                                                       ; +0x5e, 0x10011ae1e\nmov     rdi, rax                                                       ; +0x61, 0x10011ae21\nmov     rsi, rbx                                                       ; +0x64, 0x10011ae24\ncall    sub_1007FF080                                                  ; +0x67, 0x10011ae27\ntest    al, al                                                         ; +0x6c, 0x10011ae2c\njz      loc_10011AF64                                                  ; +0x6e, 0x10011ae2e\nmov     rdi, r13                                                       ; +0x74, 0x10011ae34\nmov     rsi, rbx                                                       ; +0x77, 0x10011ae37\nmov     edx, 1                                                         ; +0x7a, 0x10011ae3a\ncall    sub_1007FF140                                                  ; +0x7f, 0x10011ae3f\nmov     rdi, r13                                                       ; +0x84, 0x10011ae44\ncall    sub_1007FEF90                                                  ; +0x87, 0x10011ae47\ntest    eax, eax                                                       ; +0x8c, 0x10011ae4c\nmov     r13, [rbp+var_30]                                              ; +0x8e, 0x10011ae4e\njnz     short loc_10011AE63                                            ; +0x92, 0x10011ae52\nmov     rdi, [r13+0E68h]                                               ; +0x94, 0x10011ae54\nmov     rsi, r14                                                       ; +0x9b, 0x10011ae5b\ncall    cocos2d__CCDictionary__removeObjectForKey_1                    ; +0x9e, 0x10011ae5e\nmov     rdi, [r13+0E70h]                                               ; +0xa3, 0x10011ae63\nmov     esi, [rbx+394h]                                                ; +0xaa, 0x10011ae6a\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0xb0, 0x10011ae70\ntest    rax, rax                                                       ; +0xb5, 0x10011ae75\njz      loc_10011AF1B                                                  ; +0xb8, 0x10011ae78\nmov     r13, rax                                                       ; +0xbe, 0x10011ae7e\nmov     rdi, rax                                                       ; +0xc1, 0x10011ae81\ncall    sub_1007FEF90                                                  ; +0xc4, 0x10011ae84\nmov     r14d, eax                                                      ; +0xc9, 0x10011ae89\ndec     eax                                                            ; +0xcc, 0x10011ae8c\njs      short loc_10011AEE1                                            ; +0xce, 0x10011ae8e\nmov     [rbp+var_38], rbx                                              ; +0xd0, 0x10011ae90\nxor     ebx, ebx                                                       ; +0xd4, 0x10011ae94\njmp     short loc_10011AEAD                                            ; +0xd6, 0x10011ae96\nalign 20h                                                              ; +0xd8, 0x10011ae98\ncmp     eax, r15d                                                      ; +0xe0, 0x10011aea0\nsetz    al                                                             ; +0xe3, 0x10011aea3\nor      bl, al                                                         ; +0xe6, 0x10011aea6\ntest    r14d, r14d                                                     ; +0xe8, 0x10011aea8\njle     short loc_10011AED8                                            ; +0xeb, 0x10011aeab\ndec     r14d                                                           ; +0xed, 0x10011aead\nmov     rdi, r13                                                       ; +0xf0, 0x10011aeb0\nmov     esi, r14d                                                      ; +0xf3, 0x10011aeb3\ncall    sub_1007FEFE0                                                  ; +0xf6, 0x10011aeb6\nmov     eax, [rax+38h]                                                 ; +0xfb, 0x10011aebb\ncmp     eax, r12d                                                      ; +0xfe, 0x10011aebe\njnz     short loc_10011AEA0                                            ; +0x101, 0x10011aec1\nmov     rdi, r13                                                       ; +0x103, 0x10011aec3\nmov     esi, r14d                                                      ; +0x106, 0x10011aec6\nmov     edx, 1                                                         ; +0x109, 0x10011aec9\ncall    sub_1007FF150                                                  ; +0x10e, 0x10011aece\ntest    r14d, r14d                                                     ; +0x113, 0x10011aed3\njg      short loc_10011AEAD                                            ; +0x116, 0x10011aed6\ntest    bl, 1                                                          ; +0x118, 0x10011aed8\nmov     rbx, [rbp+var_38]                                              ; +0x11b, 0x10011aedb\njnz     short loc_10011AF1B                                            ; +0x11f, 0x10011aedf\nmov     edi, 40h ; '@'; __sz                                           ; +0x121, 0x10011aee1\ncall    __Znwm; operator new(ulong)                                    ; +0x126, 0x10011aee6\nmov     r14, rax                                                       ; +0x12b, 0x10011aeeb\nmov     rdi, rax                                                       ; +0x12e, 0x10011aeee\ncall    cocos2d__CCObject__CCObject                                    ; +0x131, 0x10011aef1\nlea     rax, _ZTVN7cocos2d9CCIntegerE; `vtable for'cocos2d::CCInteger  ; +0x136, 0x10011aef6\nadd     rax, 10h                                                       ; +0x13d, 0x10011aefd\nmov     [r14], rax                                                     ; +0x141, 0x10011af01\nmov     [r14+38h], r15d                                                ; +0x144, 0x10011af04\nmov     rdi, r14                                                       ; +0x148, 0x10011af08\ncall    cocos2d__CCObject__autorelease                                 ; +0x14b, 0x10011af0b\nmov     rdi, r13                                                       ; +0x150, 0x10011af10\nmov     rsi, r14                                                       ; +0x153, 0x10011af13\ncall    sub_1007FEBF0                                                  ; +0x156, 0x10011af16\nmov     r12, [rbp+var_30]                                              ; +0x15b, 0x10011af1b\nmov     rdi, [r12+0E68h]                                               ; +0x15f, 0x10011af1f\nmov     r15d, r15d                                                     ; +0x167, 0x10011af27\nmov     rsi, r15                                                       ; +0x16a, 0x10011af2a\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x16d, 0x10011af2d\nmov     r14, rax                                                       ; +0x172, 0x10011af32\ntest    rax, rax                                                       ; +0x175, 0x10011af35\njnz     short loc_10011AF55                                            ; +0x178, 0x10011af38\ncall    sub_1007FE900                                                  ; +0x17a, 0x10011af3a\nmov     r14, rax                                                       ; +0x17f, 0x10011af3f\nmov     rdi, [r12+0E68h]                                               ; +0x182, 0x10011af42\nmov     rsi, rax                                                       ; +0x18a, 0x10011af4a\nmov     rdx, r15                                                       ; +0x18d, 0x10011af4d\ncall    cocos2d__CCDictionary__setObject_1                             ; +0x190, 0x10011af50\nmov     rdi, r14                                                       ; +0x195, 0x10011af55\nmov     rsi, rbx                                                       ; +0x198, 0x10011af58\ncall    sub_1007FF080                                                  ; +0x19b, 0x10011af5b\ntest    al, al                                                         ; +0x1a0, 0x10011af60\njz      short loc_10011AF73                                            ; +0x1a2, 0x10011af62\nadd     rsp, 18h                                                       ; +0x1a4, 0x10011af64\npop     rbx                                                            ; +0x1a8, 0x10011af68\npop     r12                                                            ; +0x1a9, 0x10011af69\npop     r13                                                            ; +0x1ab, 0x10011af6b\npop     r14                                                            ; +0x1ad, 0x10011af6d\npop     r15                                                            ; +0x1af, 0x10011af6f\npop     rbp                                                            ; +0x1b1, 0x10011af71\nretn                                                                   ; +0x1b2, 0x10011af72\nmov     rdi, r14                                                       ; +0x1b3, 0x10011af73\nmov     rsi, rbx                                                       ; +0x1b6, 0x10011af76\nadd     rsp, 18h                                                       ; +0x1b9, 0x10011af79\npop     rbx                                                            ; +0x1bd, 0x10011af7d\npop     r12                                                            ; +0x1be, 0x10011af7e\npop     r13                                                            ; +0x1c0, 0x10011af80\npop     r14                                                            ; +0x1c2, 0x10011af82\npop     r15                                                            ; +0x1c4, 0x10011af84\npop     rbp                                                            ; +0x1c6, 0x10011af86\njmp     sub_1007FEBF0                                                  ; +0x1c7, 0x10011af87", "xrefs": ["EditorUI::replaceGroupID @ 0x1000161cf"], "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"}