{"type": "func", "start": 5372022032, "end": 5372022162, "name": "GJBaseGameLayer::resetGradientLayers", "pseudocode": "// \n// GJBaseGameLayer::resetGradientLayers from 0x140328d10 to 0x140328d92 (130 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::triggerGradientCommand @ 0x1403274d7\n// > GJBaseGameLayer::resetLevelVariables @ 0x140345500\n// > LevelEditorLayer::updateGameObjects @ 0x1403fb1ca\n// > <???> @ 0x1408b5cf4\n// > <???> @ 0x1408b5d04\n// > <???> @ 0x14091f058\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:30:28 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::resetGradientLayers(__int64 a1)\n{\n  __int64 v1; // rdi\n  __int64 v2; // rdi\n  __int64 i; // rbx\n  __int64 *v4; // rdi\n  __int64 v5; // rax\n  __int64 result; // rax\n\n  v1 = *(_QWORD *)(a1 + 12880);\n  if ( v1 )\n  {\n    v2 = *(_QWORD *)(v1 + 56);\n    if ( v2 )\n    {\n      for ( i = *(_QWORD *)(v2 + 288); ; i = *(_QWORD *)(i + 288) )\n      {\n        v4 = *(__int64 **)(v2 + 264);\n        (*(void (__fastcall **)(__int64 *, _QWORD))(*v4 + 520))(v4, 0);\n        v5 = *v4;\n        v4[73] = 0;\n        *((_BYTE *)v4 + 592) = 0;\n        result = (*(__int64 (__fastcall **)(__int64 *, _QWORD))(v5 + 336))(v4, 0);\n        v2 = i;\n        if ( !i )\n          break;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::resetGradientLayers from 0x140328d10 to 0x140328d92 (130 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::triggerGradientCommand @ 0x1403274d7\n; > GJBaseGameLayer::resetLevelVariables @ 0x140345500\n; > LevelEditorLayer::updateGameObjects @ 0x1403fb1ca\n; > <???> @ 0x1408b5cf4\n; > <???> @ 0x1408b5d04\n; > <???> @ 0x14091f058\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:30:28 +0000\n; \npush    rdi                                                            ; +0x0, 0x140328d10\nsub     rsp, 20h                                                       ; +0x2, 0x140328d12\nmov     rdi, [rcx+3250h]                                               ; +0x6, 0x140328d16\ntest    rdi, rdi                                                       ; +0xd, 0x140328d1d\njz      short loc_140328D8C                                            ; +0x10, 0x140328d20\nmov     rdi, [rdi+38h]                                                 ; +0x12, 0x140328d22\ntest    rdi, rdi                                                       ; +0x16, 0x140328d26\njz      short loc_140328D8C                                            ; +0x19, 0x140328d29\nmov     [rsp+28h+arg_0], rbx                                           ; +0x1b, 0x140328d2b\nmov     rbx, [rdi+120h]                                                ; +0x20, 0x140328d30\nmov     [rsp+28h+arg_8], rsi                                           ; +0x27, 0x140328d37\nxor     esi, esi                                                       ; +0x2c, 0x140328d3c\nxchg    ax, ax                                                         ; +0x2e, 0x140328d3e\nmov     rdi, [rdi+108h]                                                ; +0x30, 0x140328d40\nxor     edx, edx                                                       ; +0x37, 0x140328d47\nmov     rcx, rdi                                                       ; +0x39, 0x140328d49\nmov     rax, [rdi]                                                     ; +0x3c, 0x140328d4c\ncall    qword ptr [rax+208h]                                           ; +0x3f, 0x140328d4f\nmov     rax, [rdi]                                                     ; +0x45, 0x140328d55\nxor     edx, edx                                                       ; +0x48, 0x140328d58\nmov     rcx, rdi                                                       ; +0x4a, 0x140328d5a\nmov     [rdi+248h], rsi                                                ; +0x4d, 0x140328d5d\nmov     [rdi+250h], sil                                                ; +0x54, 0x140328d64\ncall    qword ptr [rax+150h]                                           ; +0x5b, 0x140328d6b\nmov     rdi, rbx                                                       ; +0x61, 0x140328d71\ntest    rbx, rbx                                                       ; +0x64, 0x140328d74\njz      short loc_140328D82                                            ; +0x67, 0x140328d77\nmov     rbx, [rbx+120h]                                                ; +0x69, 0x140328d79\njmp     short loc_140328D40                                            ; +0x70, 0x140328d80\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x72, 0x140328d82\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x77, 0x140328d87\nadd     rsp, 20h                                                       ; +0x7c, 0x140328d8c\npop     rdi                                                            ; +0x80, 0x140328d90\nretn                                                                   ; +0x81, 0x140328d91", "xrefs": ["GJBaseGameLayer::triggerGradientCommand @ 0x1403274d7", "GJBaseGameLayer::resetLevelVariables @ 0x140345500", "LevelEditorLayer::updateGameObjects @ 0x1403fb1ca", "<???> @ 0x1408b5cf4", "<???> @ 0x1408b5d04", "<???> @ 0x14091f058"], "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"}