{"type": "func", "start": 8131860, "end": 8132092, "name": "EditorUI::cycleCustomGridPreset", "pseudocode": "// \n// EditorUI::cycleCustomGridPreset from 0x7c1514 to 0x7c15fc (232 bytes)\n// \n// 5 xrefs:\n// > EditorUI::handleEditorAction @ 0xbd871c\n// > EditorUI::handleEditorAction @ 0xbd8824\n// > GridSettingsLayer::onCycleUp @ 0xcdc1c0\n// > GridSettingsLayer::onCycleDown @ 0xcdc200\n// > <???> @ 0x84988\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 12:54:06 +0000\n// \n\n__int64 __fastcall EditorUI::cycleCustomGridPreset(EditorUI *this, char a2)\n{\n  float v2; // s2\n  float v3; // s0\n  float v4; // s1\n  float v5; // s1\n  GameManager *v8; // x0\n\n  if ( *((_BYTE *)this + 656) )\n  {\n    v2 = *((float *)this + 163);\n    if ( a2 )\n    {\n      v3 = 7.5;\n      v5 = v2 + 0.001;\n      if ( (float)(v2 + 0.001) >= 7.5 )\n      {\n        v3 = 15.0;\n        if ( v5 >= 15.0 )\n        {\n          v3 = 30.0;\n          if ( v5 >= 30.0 )\n          {\n            v3 = 60.0;\n            if ( v5 >= 60.0 )\n              v3 = 120.0;\n          }\n        }\n      }\n    }\n    else\n    {\n      v3 = 120.0;\n      v4 = v2 - 0.001;\n      if ( (float)(v2 - 0.001) <= 120.0 )\n      {\n        v3 = 60.0;\n        if ( v4 <= 60.0 )\n        {\n          v3 = 30.0;\n          if ( v4 <= 30.0 )\n          {\n            v3 = 15.0;\n            if ( v4 <= 15.0 )\n              v3 = 7.5;\n          }\n        }\n      }\n    }\n    return EditorUI::setCustomGridNodeSize(this, v3);\n  }\n  else\n  {\n    *((_BYTE *)this + 656) = 1;\n    v8 = (GameManager *)GameManager::sharedState(this);\n    GameManager::setGameVariable(v8, \"0194\", 1u);\n    return EditorUI::setCustomGridNodeSize(this, 30.0);\n  }\n}", "assembly": "; \n; EditorUI::cycleCustomGridPreset from 0x7c1514 to 0x7c15fc (232 bytes)\n; \n; 5 xrefs:\n; > EditorUI::handleEditorAction @ 0xbd871c\n; > EditorUI::handleEditorAction @ 0xbd8824\n; > GridSettingsLayer::onCycleUp @ 0xcdc1c0\n; > GridSettingsLayer::onCycleDown @ 0xcdc200\n; > <???> @ 0x84988\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 12:54:06 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x7c1514\nUXTB            W1, W1                                                 ; +0x4, 0x7c1518\nMOV             X29, SP                                                ; +0x8, 0x7c151c\nSTR             X19, [SP,#0x30+var_20]                                 ; +0xc, 0x7c1520\nLDRB            W2, [X0,#0x290]                                        ; +0x10, 0x7c1524\nCBZ             W2, loc_7C15C4                                         ; +0x14, 0x7c1528\nLDR             S2, [X0,#0x28C]                                        ; +0x18, 0x7c152c\nCBNZ            W1, loc_7C157C                                         ; +0x1c, 0x7c1530\nLDR             S1, =0x3A83126F                                        ; +0x20, 0x7c1534\nLDR             S0, flt_7C15FC                                         ; +0x24, 0x7c1538\nFSUB            S1, S2, S1                                             ; +0x28, 0x7c153c\nFCMPE           S1, S0                                                 ; +0x2c, 0x7c1540\nB.GT            loc_7C1570                                             ; +0x30, 0x7c1544\nLDR             S0, =0x42700000                                        ; +0x34, 0x7c1548\nFCMPE           S1, S0                                                 ; +0x38, 0x7c154c\nB.GT            loc_7C1570                                             ; +0x3c, 0x7c1550\nFMOV            S0, #30.0                                              ; +0x40, 0x7c1554\nFCMPE           S1, S0                                                 ; +0x44, 0x7c1558\nB.GT            loc_7C1570                                             ; +0x48, 0x7c155c\nFMOV            S0, #15.0                                              ; +0x4c, 0x7c1560\nFCMPE           S1, S0                                                 ; +0x50, 0x7c1564\nB.GT            loc_7C1570                                             ; +0x54, 0x7c1568\nFMOV            S0, #7.5; float                                        ; +0x58, 0x7c156c\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x5c, 0x7c1570\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x60, 0x7c1574\nB               _ZN8EditorUI21setCustomGridNodeSizeEf; EditorUI::setCustomGridNodeSize(float) ; +0x64, 0x7c1578\nLDR             S1, =0x3A83126F                                        ; +0x68, 0x7c157c\nFMOV            S0, #7.5                                               ; +0x6c, 0x7c1580\nFADD            S1, S2, S1                                             ; +0x70, 0x7c1584\nFCMPE           S1, S0                                                 ; +0x74, 0x7c1588\nB.MI            loc_7C1570                                             ; +0x78, 0x7c158c\nFMOV            S0, #15.0                                              ; +0x7c, 0x7c1590\nFCMPE           S1, S0                                                 ; +0x80, 0x7c1594\nB.MI            loc_7C1570                                             ; +0x84, 0x7c1598\nFMOV            S0, #30.0                                              ; +0x88, 0x7c159c\nFCMPE           S1, S0                                                 ; +0x8c, 0x7c15a0\nB.MI            loc_7C1570                                             ; +0x90, 0x7c15a4\nLDR             S0, =0x42700000                                        ; +0x94, 0x7c15a8\nFCMPE           S1, S0                                                 ; +0x98, 0x7c15ac\nB.MI            loc_7C1570                                             ; +0x9c, 0x7c15b0\nLDR             S0, flt_7C15FC; float                                  ; +0xa0, 0x7c15b4\nLDR             X19, [SP,#0x30+var_20]                                 ; +0xa4, 0x7c15b8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xa8, 0x7c15bc\nB               _ZN8EditorUI21setCustomGridNodeSizeEf; EditorUI::setCustomGridNodeSize(float) ; +0xac, 0x7c15c0\nMOV             W2, #1                                                 ; +0xb0, 0x7c15c4\nSTRB            W2, [X0,#0x290]                                        ; +0xb4, 0x7c15c8\nMOV             X19, X0                                                ; +0xb8, 0x7c15cc\nSTR             X2, [X29,#0x30+var_8]                                  ; +0xbc, 0x7c15d0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xc0, 0x7c15d4\nLDR             X2, [X29,#0x30+var_8]; bool                            ; +0xc4, 0x7c15d8\nADRL            X1, a0194; \"0194\"                                      ; +0xc8, 0x7c15dc\nBL              _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0xd0, 0x7c15e4\nMOV             X0, X19; this                                          ; +0xd4, 0x7c15e8\nLDR             X19, [SP,#0x30+var_20]                                 ; +0xd8, 0x7c15ec\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xdc, 0x7c15f0\nFMOV            S0, #30.0; float                                       ; +0xe0, 0x7c15f4\nB               _ZN8EditorUI21setCustomGridNodeSizeEf; EditorUI::setCustomGridNodeSize(float) ; +0xe4, 0x7c15f8", "xrefs": ["EditorUI::handleEditorAction @ 0xbd871c", "EditorUI::handleEditorAction @ 0xbd8824", "GridSettingsLayer::onCycleUp @ 0xcdc1c0", "GridSettingsLayer::onCycleDown @ 0xcdc200", "<???> @ 0x84988"], "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"}