{"type": "func", "start": 5371993152, "end": 5371993278, "name": "LevelSettingsLayer::onGArt", "pseudocode": "// \n// LevelSettingsLayer::onGArt from 0x140321c40 to 0x140321cbe (126 bytes)\n// \n// 2 xrefs:\n// > LevelSettingsLayer::init @ 0x14031fd56\n// > <???> @ 0x1406d4ca0\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 LevelSettingsLayer::onGArt(LevelSettingsLayer *a1, cocos2d::CCObject *a2)\n{\n  SelectArtLayer *v3; // rax\n  __int64 *v4; // rbx\n  SelectArtDelegate *v5; // rcx\n  __int64 v6; // rax\n\n  v3 = SelectArtLayer::create(Ground, a1->m_settingsObject->m_groundIndex);\n  v4 = (__int64 *)v3;\n  if ( v3->m_lineSprites )\n  {\n    v3->m_line = a1->m_settingsObject->m_groundLineIndex;\n    SelectArtLayer::onSelectCustom(v3, nullptr);\n  }\n  v5 = &a1->SelectArtDelegate;\n  if ( !a1 )\n    v5 = nullptr;\n  v6 = *v4;\n  v4[83] = (__int64)v5;\n  (*(void (__fastcall **)(__int64 *))(v6 + 1040))(v4);\n}", "assembly": "; \n; LevelSettingsLayer::onGArt from 0x140321c40 to 0x140321cbe (126 bytes)\n; \n; 2 xrefs:\n; > LevelSettingsLayer::init @ 0x14031fd56\n; > <???> @ 0x1406d4ca0\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140321c40\npush    rdi                                                            ; +0x5, 0x140321c45\nsub     rsp, 20h                                                       ; +0x6, 0x140321c46\nmov     rdx, [rcx+318h]                                                ; +0xa, 0x140321c4a\nmov     rdi, rcx                                                       ; +0x11, 0x140321c51\nmov     ecx, 1                                                         ; +0x14, 0x140321c54\nmov     edx, [rdx+164h]                                                ; +0x19, 0x140321c59\ncall    SelectArtLayer__create                                         ; +0x1f, 0x140321c5f\nmov     rbx, rax                                                       ; +0x24, 0x140321c64\ncmp     qword ptr [rax+280h], 0                                        ; +0x27, 0x140321c67\njz      short loc_140321C90                                            ; +0x2f, 0x140321c6f\nmov     rdx, [rdi+318h]                                                ; +0x31, 0x140321c71\nmov     rcx, rax                                                       ; +0x38, 0x140321c78\nmov     r8d, [rdx+1B0h]                                                ; +0x3b, 0x140321c7b\nxor     edx, edx                                                       ; +0x42, 0x140321c82\nmov     [rax+28Ch], r8d                                                ; +0x44, 0x140321c84\ncall    SelectArtLayer__onSelectCustom                                 ; +0x4b, 0x140321c8b\nxor     eax, eax                                                       ; +0x50, 0x140321c90\nlea     rcx, [rdi+280h]                                                ; +0x52, 0x140321c92\ntest    rdi, rdi                                                       ; +0x59, 0x140321c99\ncmovz   rcx, rax                                                       ; +0x5c, 0x140321c9c\nmov     rax, [rbx]                                                     ; +0x60, 0x140321ca0\nmov     [rbx+298h], rcx                                                ; +0x63, 0x140321ca3\nmov     rcx, rbx                                                       ; +0x6a, 0x140321caa\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6d, 0x140321cad\nadd     rsp, 20h                                                       ; +0x72, 0x140321cb2\npop     rdi                                                            ; +0x76, 0x140321cb6\njmp     qword ptr [rax+410h]                                           ; +0x77, 0x140321cb7", "xrefs": ["LevelSettingsLayer::init @ 0x14031fd56", "<???> @ 0x1406d4ca0"], "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"}