{"type": "func", "start": 4297635580, "end": 4297635684, "name": "GJBaseGameLayer::resetGradientLayers", "pseudocode": "// \n// GJBaseGameLayer::resetGradientLayers from 0x10028b6fc to 0x10028b764 (104 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::triggerGradientCommand @ 0x10028b434\n// > GJBaseGameLayer::resetLevelVariables @ 0x10029f228\n// > sub_1003F823C @ 0x1003f86f0\n// \n// This function is hookable on this platform (idp: arm, 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:02:00 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::resetGradientLayers(__int64 result)\n{\n  __int64 v1; // x8\n  __int64 v2; // x8\n  __int64 v3; // x20\n  __int64 v4; // x19\n\n  v1 = *(_QWORD *)(result + 12400);\n  if ( v1 )\n  {\n    v2 = *(_QWORD *)(v1 + 56);\n    if ( v2 )\n    {\n      do\n      {\n        v3 = *(_QWORD *)(v2 + 288);\n        v4 = *(_QWORD *)(v2 + 264);\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 528LL))(v4, 0);\n        *(_QWORD *)(v4 + 584) = 0;\n        *(_BYTE *)(v4 + 592) = 0;\n        result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, 0);\n        v2 = v3;\n      }\n      while ( v3 );\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::resetGradientLayers from 0x10028b6fc to 0x10028b764 (104 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::triggerGradientCommand @ 0x10028b434\n; > GJBaseGameLayer::resetLevelVariables @ 0x10029f228\n; > sub_1003F823C @ 0x1003f86f0\n; \n; This function is hookable on this platform (idp: arm, 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:02:00 +0000\n; \nLDR             X8, [X0,#0x3070]                                       ; +0x0, 0x10028b6fc\nCBZ             X8, locret_10028B760                                   ; +0x4, 0x10028b700\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x8, 0x10028b704\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0xc, 0x10028b708\nADD             X29, SP, #0x10                                         ; +0x10, 0x10028b70c\nLDR             X8, [X8,#0x38]                                         ; +0x14, 0x10028b710\nCBZ             X8, loc_10028B758                                      ; +0x18, 0x10028b714\nLDR             X20, [X8,#0x120]                                       ; +0x1c, 0x10028b718\nLDR             X19, [X8,#0x108]                                       ; +0x20, 0x10028b71c\nLDR             X8, [X19]                                              ; +0x24, 0x10028b720\nLDR             X8, [X8,#0x210]                                        ; +0x28, 0x10028b724\nMOV             X0, X19                                                ; +0x2c, 0x10028b728\nMOV             W1, #0                                                 ; +0x30, 0x10028b72c\nBLR             X8                                                     ; +0x34, 0x10028b730\nSTR             XZR, [X19,#0x248]                                      ; +0x38, 0x10028b734\nSTRB            WZR, [X19,#0x250]                                      ; +0x3c, 0x10028b738\nLDR             X8, [X19]                                              ; +0x40, 0x10028b73c\nLDR             X8, [X8,#0x158]                                        ; +0x44, 0x10028b740\nMOV             X0, X19                                                ; +0x48, 0x10028b744\nMOV             W1, #0                                                 ; +0x4c, 0x10028b748\nBLR             X8                                                     ; +0x50, 0x10028b74c\nMOV             X8, X20                                                ; +0x54, 0x10028b750\nCBNZ            X20, loc_10028B718                                     ; +0x58, 0x10028b754\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x10028b758\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x60, 0x10028b75c\nRET                                                                    ; +0x64, 0x10028b760", "xrefs": ["GJBaseGameLayer::triggerGradientCommand @ 0x10028b434", "GJBaseGameLayer::resetLevelVariables @ 0x10029f228", "sub_1003F823C @ 0x1003f86f0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}