{"type": "func", "start": 5372835744, "end": 5372835926, "name": "LevelEditorLayer::updateGridLayerParent", "pseudocode": "// \n// LevelEditorLayer::updateGridLayerParent from 0x1403ef7a0 to 0x1403ef856 (182 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::updateEditor @ 0x1403f60cb\n// > <???> @ 0x1408c581c\n// > <???> @ 0x1408c582c\n// > <???> @ 0x1409252c8\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:31:47 +0000\n// \n\nvoid __fastcall LevelEditorLayer::updateGridLayerParent(__int64 a1)\n{\n  __int64 v1; // rax\n  __int64 *v3; // r14\n  __int64 v4; // rdi\n  __int64 v5; // rbx\n  unsigned int v6; // eax\n\n  v1 = *(_QWORD *)(a1 + 12896);\n  if ( v1 && *(_BYTE *)(v1 + 1126) )\n    v3 = *(__int64 **)(a1 + 4312);\n  else\n    v3 = *(__int64 **)(a1 + 4296);\n  if ( (__int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 14944) + 504LL))(*(_QWORD *)(a1 + 14944)) != v3 )\n  {\n    cocos2d::CCObject::retain(*(cocos2d::CCObject **)(a1 + 14944));\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 14944) + 520LL))(*(_QWORD *)(a1 + 14944), 0);\n    v4 = *v3;\n    v5 = *(_QWORD *)(a1 + 14944);\n    v6 = (*(__int64 (**)(void))(*(_QWORD *)v5 + 96LL))();\n    (*(void (__fastcall **)(__int64 *, __int64, _QWORD))(v4 + 456))(v3, v5, v6);\n    cocos2d::CCObject::release(*(cocos2d::CCObject **)(a1 + 14944));\n  }\n}", "assembly": "; \n; LevelEditorLayer::updateGridLayerParent from 0x1403ef7a0 to 0x1403ef856 (182 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::updateEditor @ 0x1403f60cb\n; > <???> @ 0x1408c581c\n; > <???> @ 0x1408c582c\n; > <???> @ 0x1409252c8\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:31:47 +0000\n; \nmov     [rsp+arg_10], rsi                                              ; +0x0, 0x1403ef7a0\npush    r14                                                            ; +0x5, 0x1403ef7a5\nsub     rsp, 20h                                                       ; +0x7, 0x1403ef7a7\nmov     rax, [rcx+3260h]                                               ; +0xb, 0x1403ef7ab\nmov     rsi, rcx                                                       ; +0x12, 0x1403ef7b2\ntest    rax, rax                                                       ; +0x15, 0x1403ef7b5\njz      short loc_1403EF7CC                                            ; +0x18, 0x1403ef7b8\ncmp     byte ptr [rax+466h], 0                                         ; +0x1a, 0x1403ef7ba\njz      short loc_1403EF7CC                                            ; +0x21, 0x1403ef7c1\nmov     r14, [rcx+10D8h]                                               ; +0x23, 0x1403ef7c3\njmp     short loc_1403EF7D3                                            ; +0x2a, 0x1403ef7ca\nmov     r14, [rcx+10C8h]                                               ; +0x2c, 0x1403ef7cc\nmov     rcx, [rcx+3A60h]                                               ; +0x33, 0x1403ef7d3\nmov     rax, [rcx]                                                     ; +0x3a, 0x1403ef7da\ncall    qword ptr [rax+1F8h]                                           ; +0x3d, 0x1403ef7dd\ncmp     rax, r14                                                       ; +0x43, 0x1403ef7e3\njz      short loc_1403EF84A                                            ; +0x46, 0x1403ef7e6\nmov     rcx, [rsi+3A60h]                                               ; +0x48, 0x1403ef7e8\nmov     [rsp+28h+arg_0], rbx                                           ; +0x4f, 0x1403ef7ef\nmov     [rsp+28h+arg_8], rdi                                           ; +0x54, 0x1403ef7f4\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x59, 0x1403ef7f9\nmov     rcx, [rsi+3A60h]                                               ; +0x5f, 0x1403ef7ff\nxor     edx, edx                                                       ; +0x66, 0x1403ef806\nmov     rax, [rcx]                                                     ; +0x68, 0x1403ef808\ncall    qword ptr [rax+208h]                                           ; +0x6b, 0x1403ef80b\nmov     rcx, [rsi+3A60h]                                               ; +0x71, 0x1403ef811\nmov     rdi, [r14]                                                     ; +0x78, 0x1403ef818\nmov     rbx, rcx                                                       ; +0x7b, 0x1403ef81b\nmov     rax, [rcx]                                                     ; +0x7e, 0x1403ef81e\ncall    qword ptr [rax+60h]                                            ; +0x81, 0x1403ef821\nmov     rdx, rbx                                                       ; +0x84, 0x1403ef824\nmov     rcx, r14                                                       ; +0x87, 0x1403ef827\nmov     r8d, eax                                                       ; +0x8a, 0x1403ef82a\ncall    qword ptr [rdi+1C8h]                                           ; +0x8d, 0x1403ef82d\nmov     rcx, [rsi+3A60h]                                               ; +0x93, 0x1403ef833\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x9a, 0x1403ef83a\nmov     rdi, [rsp+28h+arg_8]                                           ; +0xa0, 0x1403ef840\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa5, 0x1403ef845\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xaa, 0x1403ef84a\nadd     rsp, 20h                                                       ; +0xaf, 0x1403ef84f\npop     r14                                                            ; +0xb3, 0x1403ef853\nretn                                                                   ; +0xb5, 0x1403ef855", "xrefs": ["LevelEditorLayer::updateEditor @ 0x1403f60cb", "<???> @ 0x1408c581c", "<???> @ 0x1408c582c", "<???> @ 0x1409252c8"], "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"}