{"type": "func", "start": 4296263296, "end": 4296263412, "name": "GJBaseGameLayer::reparentObject", "pseudocode": "// \n// GJBaseGameLayer::reparentObject from 0x10013c680 to 0x10013c6f4 (116 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GJBaseGameLayer::reparentObject(GJBaseGameLayer *a1, cocos2d::CCNode *a2, cocos2d::CCNode *a3)\n{\n  unsigned int v4; // eax\n\n  if ( (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCNode *))a2->getParent)(a2) != a3\n    && ((unsigned int (__fastcall *)(cocos2d::CCNode *))a2->getTag)(a2) != -9999 )\n  {\n    cocos2d::CCObject::retain(a2);\n    ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))a2->removeFromParentAndCleanup)(a2, 0);\n    if ( a3 )\n    {\n      v4 = ((__int64 (__fastcall *)(cocos2d::CCNode *))a2->getZOrder)(a2);\n      ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCNode *, _QWORD))a3->addChild_0)(a3, a2, v4);\n    }\n    cocos2d::CCObject::release(a2);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::reparentObject from 0x10013c680 to 0x10013c6f4 (116 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10013c680\nmov     rbp, rsp                                                       ; +0x1, 0x10013c681\npush    r14                                                            ; +0x4, 0x10013c684\npush    rbx                                                            ; +0x6, 0x10013c686\nmov     r14, rdx                                                       ; +0x7, 0x10013c687\nmov     rbx, rsi                                                       ; +0xa, 0x10013c68a\nmov     rax, [rsi]                                                     ; +0xd, 0x10013c68d\nmov     rdi, rsi                                                       ; +0x10, 0x10013c690\ncall    qword ptr [rax+1F0h]                                           ; +0x13, 0x10013c693\ncmp     rax, r14                                                       ; +0x19, 0x10013c699\njz      short loc_10013C6AE                                            ; +0x1c, 0x10013c69c\nmov     rax, [rbx]                                                     ; +0x1e, 0x10013c69e\nmov     rdi, rbx                                                       ; +0x21, 0x10013c6a1\ncall    qword ptr [rax+40h]                                            ; +0x24, 0x10013c6a4\ncmp     eax, 0FFFFD8F1h                                                ; +0x27, 0x10013c6a7\njnz     short loc_10013C6B3                                            ; +0x2c, 0x10013c6ac\npop     rbx                                                            ; +0x2e, 0x10013c6ae\npop     r14                                                            ; +0x2f, 0x10013c6af\npop     rbp                                                            ; +0x31, 0x10013c6b1\nretn                                                                   ; +0x32, 0x10013c6b2\nmov     rdi, rbx                                                       ; +0x33, 0x10013c6b3\ncall    cocos2d__CCObject__retain                                      ; +0x36, 0x10013c6b6\nmov     rax, [rbx]                                                     ; +0x3b, 0x10013c6bb\nmov     rdi, rbx                                                       ; +0x3e, 0x10013c6be\nxor     esi, esi                                                       ; +0x41, 0x10013c6c1\ncall    qword ptr [rax+200h]                                           ; +0x43, 0x10013c6c3\ntest    r14, r14                                                       ; +0x49, 0x10013c6c9\njz      short loc_10013C6E8                                            ; +0x4c, 0x10013c6cc\nmov     rax, [rbx]                                                     ; +0x4e, 0x10013c6ce\nmov     rdi, rbx                                                       ; +0x51, 0x10013c6d1\ncall    qword ptr [rax+68h]                                            ; +0x54, 0x10013c6d4\nmov     rcx, [r14]                                                     ; +0x57, 0x10013c6d7\nmov     rdi, r14                                                       ; +0x5a, 0x10013c6da\nmov     rsi, rbx                                                       ; +0x5d, 0x10013c6dd\nmov     edx, eax                                                       ; +0x60, 0x10013c6e0\ncall    qword ptr [rcx+1C0h]                                           ; +0x62, 0x10013c6e2\nmov     rdi, rbx                                                       ; +0x68, 0x10013c6e8\npop     rbx                                                            ; +0x6b, 0x10013c6eb\npop     r14                                                            ; +0x6c, 0x10013c6ec\npop     rbp                                                            ; +0x6e, 0x10013c6ee\njmp     cocos2d__CCObject__release                                     ; +0x6f, 0x10013c6ef", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}