{"type": "func", "start": 4725012, "end": 4725126, "name": "EditorUI::setCustomGridNodeSize", "pseudocode": "// \n// EditorUI::setCustomGridNodeSize from 0x481914 to 0x481986 (114 bytes)\n// \n// 5 xrefs:\n// > EditorUI::setCustomGridEnabled @ 0x4819c4\n// > EditorUI::cycleCustomGridPreset @ 0x481aa6\n// > EditorUI::adjustCustomGridSize @ 0x481afc\n// > GridSettingsLayer::onReset @ 0x78e2bc\n// > GridSettingsLayer::valueDidChange @ 0x78e32c\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::setCustomGridNodeSize(EditorUI *this, float a2)\n{\n  float v3; // s16\n  GameManager *v4; // r0\n  int v5; // r3\n\n  v3 = a2;\n  if ( a2 <= 0.0 )\n  {\n    v3 = 0.0;\n  }\n  else if ( a2 >= 300.0 )\n  {\n    v3 = 300.0;\n  }\n  else if ( a2 <= 5.0 )\n  {\n    v3 = 5.0;\n  }\n  *((float *)this + 119) = v3;\n  v4 = (GameManager *)GameManager::sharedState(this);\n  GameManager::setIntGameVariable(v4, \"0193\", (const char *)(int)(float)(v3 * 10.0), v5);\n  return EditorUI::updateGridNodeSize((cocos2d::CCArray **)this);\n}", "assembly": "; \n; EditorUI::setCustomGridNodeSize from 0x481914 to 0x481986 (114 bytes)\n; \n; 5 xrefs:\n; > EditorUI::setCustomGridEnabled @ 0x4819c4\n; > EditorUI::cycleCustomGridPreset @ 0x481aa6\n; > EditorUI::adjustCustomGridSize @ 0x481afc\n; > GridSettingsLayer::onReset @ 0x78e2bc\n; > GridSettingsLayer::valueDidChange @ 0x78e32c\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            {R4,LR}                                                ; +0x0, 0x481914\nMOV             R4, R0                                                 ; +0x2, 0x481916\nVPUSH           {D8}                                                   ; +0x4, 0x481918\nVMOV            S16, R1                                                ; +0x8, 0x48191c\nVCMPE.F32       S16, #0.0                                              ; +0xc, 0x481920\nVMRS            APSR_nzcv, FPSCR                                       ; +0x10, 0x481924\nBLE             loc_481954                                             ; +0x14, 0x481928\nVLDR            S15, =300.0                                            ; +0x16, 0x48192a\nVCMPE.F32       S16, S15                                               ; +0x1a, 0x48192e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x1e, 0x481932\nBPL             loc_48194C                                             ; +0x22, 0x481936\nVMOV.F32        S15, #5.0                                              ; +0x24, 0x481938\nVCMPE.F32       S16, S15                                               ; +0x28, 0x48193c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2c, 0x481940\nIT LE                                                                  ; +0x30, 0x481944\nVMOVLE.F32      S16, S15                                               ; +0x32, 0x481946\nB               loc_481958                                             ; +0x36, 0x48194a\nBMI             loc_481958                                             ; +0x38, 0x48194c\nVMOV.F32        S16, S15                                               ; +0x3a, 0x48194e\nB               loc_481958                                             ; +0x3e, 0x481952\nVLDR            S16, =0.0                                              ; +0x40, 0x481954\nVSTR            S16, [R4,#0x1DC]                                       ; +0x44, 0x481958\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x48, 0x48195c\nLDR             R1, =(a0193 - 0x48196A); \"0193\"                        ; +0x4c, 0x481960\nVMOV.F32        S15, #10.0                                             ; +0x4e, 0x481962\nADD             R1, PC; \"0193\"                                         ; +0x52, 0x481966\nVMUL.F32        S16, S16, S15                                          ; +0x54, 0x481968\nVCVT.S32.F32    S15, S16                                               ; +0x58, 0x48196c\nVMOV            R2, S15; int                                           ; +0x5c, 0x481970\nBL              _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0x60, 0x481974\nVPOP            {D8}                                                   ; +0x64, 0x481978\nMOV             R0, R4; this                                           ; +0x68, 0x48197c\nPOP.W           {R4,LR}                                                ; +0x6a, 0x48197e\nB.W             _ZN8EditorUI18updateGridNodeSizeEv; EditorUI::updateGridNodeSize(void) ; +0x6e, 0x481982", "xrefs": ["EditorUI::setCustomGridEnabled @ 0x4819c4", "EditorUI::cycleCustomGridPreset @ 0x481aa6", "EditorUI::adjustCustomGridSize @ 0x481afc", "GridSettingsLayer::onReset @ 0x78e2bc", "GridSettingsLayer::valueDidChange @ 0x78e32c"], "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"}