{"type": "func", "start": 4741568, "end": 4741746, "name": "EditorUI::showGridSizeAlert", "pseudocode": "// \n// EditorUI::showGridSizeAlert from 0x4859c0 to 0x485a72 (178 bytes)\n// \n// 1 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f1c22\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:25 +0000\n// \n\nint __fastcall EditorUI::showGridSizeAlert(EditorUI *this)\n{\n  float v2; // s15\n  size_t v3; // r0\n  int v5[3]; // [sp+8h] [bp-30h] BYREF\n  char v6[32]; // [sp+14h] [bp-24h] BYREF\n\n  if ( *((_BYTE *)this + 480) && (v2 = *((float *)this + 119), v2 > 0.0) )\n  {\n    if ( v2 == (float)(int)v2 )\n      sub_993BD0(v6, \"Gridsize: %d\", (int)v2);\n    else\n      sub_993BD0(v6, \"Gridsize: %.1f\", v2);\n  }\n  else\n  {\n    strcpy(v6, \"Gridsize: Off\");\n  }\n  memset(v5, 0, sizeof(v5));\n  v3 = strlen(v6);\n  std::string::__init(v5, v6, v3);\n  EditorUI::showTextAlert((int)this, (int)v5, 0, 1, 0);\n  return std::string::~string((int)v5);\n}", "assembly": "; \n; EditorUI::showGridSizeAlert from 0x4859c0 to 0x485a72 (178 bytes)\n; \n; 1 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f1c22\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:25 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x4859CA)                ; +0x0, 0x4859c0\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x4859c2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x4859c6\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x4859c8\nSUB             SP, SP, #0x38                                          ; +0xa, 0x4859ca\nMOV             R8, R0                                                 ; +0xc, 0x4859cc\nLDR             R2, [R3]                                               ; +0xe, 0x4859ce\nMOV             R4, R3                                                 ; +0x10, 0x4859d0\nADD             R6, SP, #0x38+var_24                                   ; +0x12, 0x4859d2\nSTR             R2, [SP,#0x38+var_4]                                   ; +0x14, 0x4859d4\nLDRB.W          R2, [R0,#0x1E0]                                        ; +0x16, 0x4859d6\nCBZ             R2, loc_485A1E                                         ; +0x1a, 0x4859da\nVLDR            S15, [R0,#0x1DC]                                       ; +0x1c, 0x4859dc\nVCMPE.F32       S15, #0.0                                              ; +0x20, 0x4859e0\nVMRS            APSR_nzcv, FPSCR                                       ; +0x24, 0x4859e4\nBLE             loc_485A1E                                             ; +0x28, 0x4859e8\nVCVT.S32.F32    S14, S15                                               ; +0x2a, 0x4859ea\nMOV             R0, R6                                                 ; +0x2e, 0x4859ee\nVCVT.F32.S32    S13, S14                                               ; +0x30, 0x4859f0\nVCMP.F32        S15, S13                                               ; +0x34, 0x4859f4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x38, 0x4859f8\nBNE             loc_485A0C                                             ; +0x3c, 0x4859fc\nLDR             R1, =(aGridsizeD - 0x485A08); \"Gridsize: %d\"           ; +0x3e, 0x4859fe\nVMOV            R2, S14                                                ; +0x40, 0x485a00\nADD             R1, PC; \"Gridsize: %d\"                                 ; +0x44, 0x485a04\nBL              sub_993BD0                                             ; +0x46, 0x485a06\nB               loc_485A28                                             ; +0x4a, 0x485a0a\nVCVT.F64.F32    D7, S15                                                ; +0x4c, 0x485a0c\nLDR             R1, =(aGridsize1f - 0x485A16); \"Gridsize: %.1f\"        ; +0x50, 0x485a10\nADD             R1, PC; \"Gridsize: %.1f\"                               ; +0x52, 0x485a12\nVMOV            R2, R3, D7                                             ; +0x54, 0x485a14\nBL              sub_993BD0                                             ; +0x58, 0x485a18\nB               loc_485A28                                             ; +0x5c, 0x485a1c\nLDR             R1, =(aGridsizeOff - 0x485A26); \"Gridsize: Off\"        ; +0x5e, 0x485a1e\nMOV             R0, R6; char *                                         ; +0x60, 0x485a20\nADD             R1, PC; \"Gridsize: Off\"                                ; +0x62, 0x485a22\nBLX             strcpy                                                 ; +0x64, 0x485a24\nMOV             R0, R6; char *                                         ; +0x68, 0x485a28\nMOVS            R5, #0                                                 ; +0x6a, 0x485a2a\nSTR             R5, [SP,#0x38+var_30]                                  ; +0x6c, 0x485a2c\nADD             R7, SP, #0x38+var_30                                   ; +0x6e, 0x485a2e\nSTR             R5, [SP,#0x38+var_2C]                                  ; +0x70, 0x485a30\nSTR             R5, [SP,#0x38+var_28]                                  ; +0x72, 0x485a32\nBLX             strlen                                                 ; +0x74, 0x485a34\nMOV             R1, R6                                                 ; +0x78, 0x485a38\nMOV             R2, R0                                                 ; +0x7a, 0x485a3a\nMOV             R0, R7                                                 ; +0x7c, 0x485a3c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x7e, 0x485a3e\nSTR             R5, [SP,#0x38+var_38]; int                             ; +0x82, 0x485a42\nMOV             R0, R8; int                                            ; +0x84, 0x485a44\nMOV             R1, R7; int                                            ; +0x86, 0x485a46\nMOV             R2, R5; int                                            ; +0x88, 0x485a48\nMOVS            R3, #1; int                                            ; +0x8a, 0x485a4a\nBL              _ZN8EditorUI13showTextAlertENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEbbi; EditorUI::showTextAlert(std::string,bool,bool,int) ; +0x8c, 0x485a4c\nMOV             R0, R7                                                 ; +0x90, 0x485a50\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x92, 0x485a52\nLDR             R2, [SP,#0x38+var_4]                                   ; +0x96, 0x485a56\nLDR             R3, [R4]                                               ; +0x98, 0x485a58\nCMP             R2, R3                                                 ; +0x9a, 0x485a5a\nBEQ             loc_485A6C                                             ; +0x9c, 0x485a5c\nBLX             __stack_chk_fail                                       ; +0x9e, 0x485a5e\nMOV             R0, R7                                                 ; +0xa2, 0x485a62\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa4, 0x485a64\nBL              __cxa_end_cleanup                                      ; +0xa8, 0x485a68\nADD             SP, SP, #0x38 ; '8'                                    ; +0xac, 0x485a6c\nPOP.W           {R4-R8,PC}                                             ; +0xae, 0x485a6e", "xrefs": ["EditorUI::handleEditorAction @ 0x6f1c22"], "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"}