{"type": "func", "start": 4725220, "end": 4725418, "name": "EditorUI::cycleCustomGridPreset", "pseudocode": "// \n// EditorUI::cycleCustomGridPreset from 0x4819e4 to 0x481aaa (198 bytes)\n// \n// 4 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f1be6\n// > EditorUI::handleEditorAction @ 0x6f1bf8\n// > GridSettingsLayer::onCycleUp @ 0x78e7fa\n// > GridSettingsLayer::onCycleDown @ 0x78e816\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:22 +0000\n// \n\nint __fastcall EditorUI::cycleCustomGridPreset(EditorUI *this, int a2)\n{\n  EditorUI *v2; // r4\n  GameManager *v3; // r0\n  float v4; // r1\n  float v5; // s15\n  float v6; // s14\n  float v7; // s15\n  float v8; // s14\n\n  v2 = this;\n  if ( *((_BYTE *)this + 480) )\n  {\n    v5 = *((float *)this + 119);\n    if ( a2 )\n    {\n      v6 = v5 + 0.001;\n      v7 = 7.5;\n      if ( v6 >= 7.5 )\n      {\n        v7 = 15.0;\n        if ( v6 >= 15.0 )\n        {\n          v7 = 30.0;\n          if ( v6 >= 30.0 )\n          {\n            v7 = 60.0;\n            if ( v6 >= 60.0 )\n              v7 = 120.0;\n          }\n        }\n      }\n    }\n    else\n    {\n      v8 = v5 - 0.001;\n      v7 = 120.0;\n      if ( v8 <= 120.0 )\n      {\n        v7 = 60.0;\n        if ( v8 <= 60.0 )\n        {\n          v7 = 30.0;\n          if ( v8 <= 30.0 )\n          {\n            v7 = 15.0;\n            if ( v8 <= 15.0 )\n              v7 = 7.5;\n          }\n        }\n      }\n    }\n    v4 = v7;\n  }\n  else\n  {\n    *((_BYTE *)this + 480) = 1;\n    v3 = (GameManager *)GameManager::sharedState(this);\n    GameManager::setGameVariable(v3, \"0194\", (_BYTE *)&dword_0 + 1);\n    this = v2;\n    v4 = 30.0;\n  }\n  return EditorUI::setCustomGridNodeSize(this, v4);\n}", "assembly": "; \n; EditorUI::cycleCustomGridPreset from 0x4819e4 to 0x481aaa (198 bytes)\n; \n; 4 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f1be6\n; > EditorUI::handleEditorAction @ 0x6f1bf8\n; > GridSettingsLayer::onCycleUp @ 0x78e7fa\n; > GridSettingsLayer::onCycleDown @ 0x78e816\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:22 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x4819e4\nMOV             R4, R0                                                 ; +0x2, 0x4819e6\nLDRB.W          R3, [R0,#0x1E0]                                        ; +0x4, 0x4819e8\nCBNZ            R3, loc_481A08                                         ; +0x8, 0x4819ec\nMOVS            R5, #1                                                 ; +0xa, 0x4819ee\nSTRB.W          R5, [R0,#0x1E0]                                        ; +0xc, 0x4819f0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x10, 0x4819f4\nLDR             R1, =(a0194 - 0x481A00); \"0194\"                        ; +0x14, 0x4819f8\nMOV             R2, R5; bool                                           ; +0x16, 0x4819fa\nADD             R1, PC; \"0194\"                                         ; +0x18, 0x4819fc\nBL              _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x1a, 0x4819fe\nMOV             R0, R4                                                 ; +0x1e, 0x481a02\nLDR             R1, =0x41F00000                                        ; +0x20, 0x481a04\nB               loc_481AA2                                             ; +0x22, 0x481a06\nVLDR            S15, [R0,#0x1DC]                                       ; +0x24, 0x481a08\nVLDR            S14, =0.001                                            ; +0x28, 0x481a0c\nCBZ             R1, loc_481A58                                         ; +0x2c, 0x481a10\nVADD.F32        S14, S15, S14                                          ; +0x2e, 0x481a12\nVMOV.F32        S15, #7.5                                              ; +0x32, 0x481a16\nVCMPE.F32       S14, S15                                               ; +0x36, 0x481a1a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x3a, 0x481a1e\nBMI             loc_481A9C                                             ; +0x3e, 0x481a22\nVMOV.F32        S15, #15.0                                             ; +0x40, 0x481a24\nVCMPE.F32       S14, S15                                               ; +0x44, 0x481a28\nVMRS            APSR_nzcv, FPSCR                                       ; +0x48, 0x481a2c\nBMI             loc_481A9C                                             ; +0x4c, 0x481a30\nVMOV.F32        S15, #30.0                                             ; +0x4e, 0x481a32\nVCMPE.F32       S14, S15                                               ; +0x52, 0x481a36\nVMRS            APSR_nzcv, FPSCR                                       ; +0x56, 0x481a3a\nBMI             loc_481A9C                                             ; +0x5a, 0x481a3e\nVLDR            S15, =60.0                                             ; +0x5c, 0x481a40\nVCMPE.F32       S14, S15                                               ; +0x60, 0x481a44\nVLDR            S14, =120.0                                            ; +0x64, 0x481a48\nVMRS            APSR_nzcv, FPSCR                                       ; +0x68, 0x481a4c\nIT PL                                                                  ; +0x6c, 0x481a50\nVMOVPL.F32      S15, S14                                               ; +0x6e, 0x481a52\nB               loc_481A9C                                             ; +0x72, 0x481a56\nVSUB.F32        S14, S15, S14                                          ; +0x74, 0x481a58\nVLDR            S15, =120.0                                            ; +0x78, 0x481a5c\nVCMPE.F32       S14, S15                                               ; +0x7c, 0x481a60\nVMRS            APSR_nzcv, FPSCR                                       ; +0x80, 0x481a64\nBGT             loc_481A9C                                             ; +0x84, 0x481a68\nVLDR            S15, =60.0                                             ; +0x86, 0x481a6a\nVCMPE.F32       S14, S15                                               ; +0x8a, 0x481a6e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x8e, 0x481a72\nBGT             loc_481A9C                                             ; +0x92, 0x481a76\nVMOV.F32        S15, #30.0                                             ; +0x94, 0x481a78\nVCMPE.F32       S14, S15                                               ; +0x98, 0x481a7c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x9c, 0x481a80\nBGT             loc_481A9C                                             ; +0xa0, 0x481a84\nVMOV.F32        S15, #15.0                                             ; +0xa2, 0x481a86\nVCMPE.F32       S14, S15                                               ; +0xa6, 0x481a8a\nVMOV.F32        S14, #7.5                                              ; +0xaa, 0x481a8e\nVMRS            APSR_nzcv, FPSCR                                       ; +0xae, 0x481a92\nIT LE                                                                  ; +0xb2, 0x481a96\nVMOVLE.F32      S15, S14                                               ; +0xb4, 0x481a98\nVMOV            R1, S15; float                                         ; +0xb8, 0x481a9c\nMOV             R0, R4; this                                           ; +0xbc, 0x481aa0\nPOP.W           {R3-R5,LR}                                             ; +0xbe, 0x481aa2\nB.W             _ZN8EditorUI21setCustomGridNodeSizeEf; EditorUI::setCustomGridNodeSize(float) ; +0xc2, 0x481aa6", "xrefs": ["EditorUI::handleEditorAction @ 0x6f1be6", "EditorUI::handleEditorAction @ 0x6f1bf8", "GridSettingsLayer::onCycleUp @ 0x78e7fa", "GridSettingsLayer::onCycleDown @ 0x78e816"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}