{"type": "func", "start": 4725512, "end": 4725620, "name": "EditorUI::setCustomMoveStep", "pseudocode": "// \n// EditorUI::setCustomMoveStep from 0x481b08 to 0x481b74 (108 bytes)\n// \n// 2 xrefs:\n// > MoveStepPopup::valueDidChange @ 0x7447ac\n// > MoveStepPopup::onReset @ 0x744d1a\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::setCustomMoveStep(EditorUI *this, float a2)\n{\n  float v3; // s16\n  GameManager *v4; // r5\n  const char *v5; // r0\n  int v6; // r3\n\n  v3 = a2;\n  if ( a2 >= 300.0 )\n  {\n    v3 = 300.0;\n  }\n  else if ( a2 <= 0.01 )\n  {\n    v3 = 0.01;\n  }\n  *((float *)this + 270) = v3;\n  v4 = (GameManager *)GameManager::sharedState(this);\n  v5 = (const char *)lroundf();\n  GameManager::setIntGameVariable(v4, \"0238\", v5, v6);\n  return EditorUI::updateDpadStepLabel(this);\n}", "assembly": "; \n; EditorUI::setCustomMoveStep from 0x481b08 to 0x481b74 (108 bytes)\n; \n; 2 xrefs:\n; > MoveStepPopup::valueDidChange @ 0x7447ac\n; > MoveStepPopup::onReset @ 0x744d1a\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; \nVLDR            S15, =300.0                                            ; +0x0, 0x481b08\nPUSH            {R3-R5,LR}                                             ; +0x4, 0x481b0c\nMOV             R4, R0                                                 ; +0x6, 0x481b0e\nVPUSH           {D8}                                                   ; +0x8, 0x481b10\nVMOV            S16, R1                                                ; +0xc, 0x481b14\nVCMPE.F32       S16, S15                                               ; +0x10, 0x481b18\nVMRS            APSR_nzcv, FPSCR                                       ; +0x14, 0x481b1c\nBPL             loc_481B36                                             ; +0x18, 0x481b20\nVLDR            S15, =0.01                                             ; +0x1a, 0x481b22\nVCMPE.F32       S16, S15                                               ; +0x1e, 0x481b26\nVMRS            APSR_nzcv, FPSCR                                       ; +0x22, 0x481b2a\nIT LE                                                                  ; +0x26, 0x481b2e\nVMOVLE.F32      S16, S15                                               ; +0x28, 0x481b30\nB               loc_481B3C                                             ; +0x2c, 0x481b34\nIT PL                                                                  ; +0x2e, 0x481b36\nVMOVPL.F32      S16, S15                                               ; +0x30, 0x481b38\nADD.W           R3, R4, #0x438                                         ; +0x34, 0x481b3c\nVSTR            S16, [R3]                                              ; +0x38, 0x481b40\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x3c, 0x481b44\nVLDR            S15, =1000.0                                           ; +0x40, 0x481b48\nVMUL.F32        S15, S16, S15                                          ; +0x44, 0x481b4c\nMOV             R5, R0                                                 ; +0x48, 0x481b50\nVMOV            R0, S15                                                ; +0x4a, 0x481b52\nBLX             lroundf                                                ; +0x4e, 0x481b56\nLDR             R1, =(a0238 - 0x481B60); \"0238\"                        ; +0x52, 0x481b5a\nADD             R1, PC; \"0238\"                                         ; +0x54, 0x481b5c\nMOV             R2, R0; int                                            ; +0x56, 0x481b5e\nMOV             R0, R5; this                                           ; +0x58, 0x481b60\nBL              _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0x5a, 0x481b62\nVPOP            {D8}                                                   ; +0x5e, 0x481b66\nMOV             R0, R4; this                                           ; +0x62, 0x481b6a\nPOP.W           {R3-R5,LR}                                             ; +0x64, 0x481b6c\nB.W             _ZN8EditorUI19updateDpadStepLabelEv; EditorUI::updateDpadStepLabel(void) ; +0x68, 0x481b70", "xrefs": ["MoveStepPopup::valueDidChange @ 0x7447ac", "MoveStepPopup::onReset @ 0x744d1a"], "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"}