{"type": "func", "start": 4295920552, "end": 4295920740, "name": "EditLevelLayer::dEditLevelLayer", "pseudocode": "// \n// EditLevelLayer::dEditLevelLayer from 0x1000e8ba8 to 0x1000e8c64 (188 bytes)\n// \n// 4 xrefs:\n// > j_EditLevelLayer::dEditLevelLayer @ 0x1000e8c68\n// > sub_1000E8C6C @ 0x1000e8c70\n// > sub_1000E8C74 @ 0x1000e8c7c\n// > sub_1000E8C88 @ 0x1000e8c94\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\n__int64 __fastcall EditLevelLayer::dEditLevelLayer(__int64 a1)\n{\n  cocos2d::CCObject *v2; // x0\n  cocos2d::CCObject *v3; // x0\n  __int64 v4; // x8\n\n  *(_QWORD *)a1 = off_100782018;\n  *(_QWORD *)(a1 + 320) = off_1007824D8;\n  *(_QWORD *)(a1 + 328) = &off_100782548;\n  *(_QWORD *)(a1 + 336) = off_100782560;\n  *(_QWORD *)(a1 + 344) = off_100782580;\n  *(_QWORD *)(a1 + 352) = off_1007825A0;\n  *(_QWORD *)(a1 + 408) = &off_1007825C8;\n  *(_QWORD *)(a1 + 416) = &off_100782610;\n  *(_QWORD *)(a1 + 424) = off_100782628;\n  *(_QWORD *)(a1 + 432) = &off_100782648;\n  *(_QWORD *)(a1 + 440) = &off_100782660;\n  v2 = *(cocos2d::CCObject **)(a1 + 464);\n  if ( v2 )\n    cocos2d::CCObject::release(v2);\n  v3 = *(cocos2d::CCObject **)(a1 + 456);\n  if ( v3 )\n    cocos2d::CCObject::release(v3);\n  v4 = *(_QWORD *)(a1 + 512);\n  if ( v4 )\n    *(_QWORD *)(v4 + 632) = 0;\n  if ( GameLevelManager::sharedState()->m_uploadActionDelegate == (UploadActionDelegate *)(a1 + 424) )\n    GameLevelManager::sharedState()->m_uploadActionDelegate = nullptr;\n  if ( *(char *)(a1 + 511) < 0 )\n    operator delete(*(void **)(a1 + 488));\n  return cocos2d::CCLayer::dCCLayer(a1);\n}", "assembly": "; \n; EditLevelLayer::dEditLevelLayer from 0x1000e8ba8 to 0x1000e8c64 (188 bytes)\n; \n; 4 xrefs:\n; > j_EditLevelLayer::dEditLevelLayer @ 0x1000e8c68\n; > sub_1000E8C6C @ 0x1000e8c70\n; > sub_1000E8C74 @ 0x1000e8c7c\n; > sub_1000E8C88 @ 0x1000e8c94\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000e8ba8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000e8bac\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000e8bb0\nMOV             X19, X0                                                ; +0xc, 0x1000e8bb4\nADRL            X8, off_100782018                                      ; +0x10, 0x1000e8bb8\nSTR             X8, [X0]                                               ; +0x18, 0x1000e8bc0\nADD             X9, X8, #(off_1007824D8 - 0x100782018)                 ; +0x1c, 0x1000e8bc4\nADD             X10, X8, #(off_100782548 - 0x100782018)                ; +0x20, 0x1000e8bc8\nSTP             X9, X10, [X0,#0x140]                                   ; +0x24, 0x1000e8bcc\nADD             X9, X8, #(off_100782560 - 0x100782018)                 ; +0x28, 0x1000e8bd0\nADD             X10, X8, #(off_100782580 - 0x100782018)                ; +0x2c, 0x1000e8bd4\nSTP             X9, X10, [X0,#0x150]                                   ; +0x30, 0x1000e8bd8\nADD             X9, X8, #(off_1007825A0 - 0x100782018)                 ; +0x34, 0x1000e8bdc\nSTR             X9, [X0,#0x160]                                        ; +0x38, 0x1000e8be0\nADD             X9, X8, #(off_1007825C8 - 0x100782018)                 ; +0x3c, 0x1000e8be4\nADD             X10, X8, #(off_100782610 - 0x100782018)                ; +0x40, 0x1000e8be8\nSTP             X9, X10, [X0,#0x198]                                   ; +0x44, 0x1000e8bec\nADD             X9, X8, #(off_100782628 - 0x100782018)                 ; +0x48, 0x1000e8bf0\nADD             X10, X8, #(off_100782648 - 0x100782018)                ; +0x4c, 0x1000e8bf4\nSTP             X9, X10, [X0,#0x1A8]                                   ; +0x50, 0x1000e8bf8\nADD             X8, X8, #(off_100782660 - 0x100782018)                 ; +0x54, 0x1000e8bfc\nSTR             X8, [X0,#0x1B8]                                        ; +0x58, 0x1000e8c00\nLDR             X0, [X0,#0x1D0]                                        ; +0x5c, 0x1000e8c04\nCBZ             X0, loc_1000E8C10                                      ; +0x60, 0x1000e8c08\nBL              cocos2d__CCObject__release                             ; +0x64, 0x1000e8c0c\nLDR             X0, [X19,#0x1C8]                                       ; +0x68, 0x1000e8c10\nCBZ             X0, loc_1000E8C1C                                      ; +0x6c, 0x1000e8c14\nBL              cocos2d__CCObject__release                             ; +0x70, 0x1000e8c18\nLDR             X8, [X19,#0x200]                                       ; +0x74, 0x1000e8c1c\nCBZ             X8, loc_1000E8C28                                      ; +0x78, 0x1000e8c20\nSTR             XZR, [X8,#0x278]                                       ; +0x7c, 0x1000e8c24\nBL              GameLevelManager__sharedState                          ; +0x80, 0x1000e8c28\nADD             X8, X19, #0x1A8                                        ; +0x84, 0x1000e8c2c\nLDR             X9, [X0,#0x328]                                        ; +0x88, 0x1000e8c30\nCMP             X9, X8                                                 ; +0x8c, 0x1000e8c34\nB.NE            loc_1000E8C44                                          ; +0x90, 0x1000e8c38\nBL              GameLevelManager__sharedState                          ; +0x94, 0x1000e8c3c\nSTR             XZR, [X0,#0x328]                                       ; +0x98, 0x1000e8c40\nLDRSB           W8, [X19,#0x1FF]                                       ; +0x9c, 0x1000e8c44\nTBZ             W8, #0x1F, loc_1000E8C54                               ; +0xa0, 0x1000e8c48\nLDR             X0, [X19,#0x1E8]; __p                                  ; +0xa4, 0x1000e8c4c\nBL              __ZdlPv; operator delete(void *)                       ; +0xa8, 0x1000e8c50\nMOV             X0, X19                                                ; +0xac, 0x1000e8c54\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xb0, 0x1000e8c58\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xb4, 0x1000e8c5c\nB               cocos2d__CCLayer__dCCLayer                             ; +0xb8, 0x1000e8c60", "xrefs": ["j_EditLevelLayer::dEditLevelLayer @ 0x1000e8c68", "sub_1000E8C6C @ 0x1000e8c70", "sub_1000E8C74 @ 0x1000e8c7c", "sub_1000E8C88 @ 0x1000e8c94"], "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"}