{"type": "func", "start": 4724856, "end": 4725012, "name": "EditorUI::updateGridNodeSize", "pseudocode": "// \n// EditorUI::updateGridNodeSize from 0x481878 to 0x481914 (156 bytes)\n// \n// 5 xrefs:\n// > EditorUI::setCustomGridNodeSize @ 0x481982\n// > EditorUI::setCustomGridEnabled @ 0x4819cc\n// > EditorUI::onCreateButton @ 0x4827e2\n// > EditorUI::toggleSpecialEditButtons @ 0x485f92\n// > EditorUI::resetUI @ 0x489ce8\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::updateGridNodeSize(cocos2d::CCArray **this)\n{\n  cocos2d::CCArray **v1; // r5\n  int v2; // r1\n  unsigned int v3; // r4\n  float v4; // s16\n  int v5; // r6\n  int *v6; // r7\n  ObjectToolbox *v7; // r0\n  float v8; // r0\n\n  v1 = this;\n  if ( *(this + 235) == (cocos2d::CCArray *)((char *)&dword_0 + 2) )\n  {\n    v2 = (int)*(this + 223);\n  }\n  else\n  {\n    v3 = (unsigned int)*(this + 249);\n    if ( v3 )\n    {\n      v2 = *(_DWORD *)(v3 + 892);\n    }\n    else if ( cocos2d::CCArray::count(*(this + 167)) )\n    {\n      v4 = -1.0;\n      v5 = 0;\n      while ( v3 < cocos2d::CCArray::count(v1[167]) )\n      {\n        v6 = (int *)cocos2d::CCArray::objectAtIndex(v1[167], v3);\n        v7 = (ObjectToolbox *)ObjectToolbox::sharedState((ObjectToolbox *)v6);\n        v8 = COERCE_FLOAT(ObjectToolbox::gridNodeSizeForKey(v7, v6[223]));\n        if ( v4 == -1.0 )\n        {\n          v5 = v6[223];\n          v4 = v8;\n        }\n        else if ( v4 != v8 )\n        {\n          v5 = -1;\n          break;\n        }\n        ++v3;\n      }\n      this = v1;\n      v2 = v5;\n    }\n    else\n    {\n      this = v1;\n      v2 = -1;\n    }\n  }\n  return EditorUI::updateGridNodeSize((EditorUI *)this, v2);\n}", "assembly": "; \n; EditorUI::updateGridNodeSize from 0x481878 to 0x481914 (156 bytes)\n; \n; 5 xrefs:\n; > EditorUI::setCustomGridNodeSize @ 0x481982\n; > EditorUI::setCustomGridEnabled @ 0x4819cc\n; > EditorUI::onCreateButton @ 0x4827e2\n; > EditorUI::toggleSpecialEditButtons @ 0x485f92\n; > EditorUI::resetUI @ 0x489ce8\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-R7,LR}                                             ; +0x0, 0x481878\nMOV             R5, R0                                                 ; +0x2, 0x48187a\nVPUSH           {D8}                                                   ; +0x4, 0x48187c\nLDR.W           R3, [R0,#0x3AC]                                        ; +0x8, 0x481880\nCMP             R3, #2                                                 ; +0xc, 0x481884\nBNE             loc_48188E                                             ; +0xe, 0x481886\nLDR.W           R1, [R0,#0x37C]                                        ; +0x10, 0x481888\nB               loc_481908                                             ; +0x14, 0x48188c\nLDR.W           R4, [R0,#0x3E4]                                        ; +0x16, 0x48188e\nCBZ             R4, loc_48189A                                         ; +0x1a, 0x481892\nLDR.W           R1, [R4,#0x37C]                                        ; +0x1c, 0x481894\nB               loc_481908                                             ; +0x20, 0x481898\nLDR.W           R0, [R0,#0x29C]; this                                  ; +0x22, 0x48189a\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x26, 0x48189e\nCBZ             R0, loc_481902                                         ; +0x2a, 0x4818a2\nVMOV.F32        S16, #-1.0                                             ; +0x2c, 0x4818a4\nMOV             R6, R4                                                 ; +0x30, 0x4818a8\nVMOV.F32        S17, S16                                               ; +0x32, 0x4818aa\nLDR.W           R0, [R5,#0x29C]; this                                  ; +0x36, 0x4818ae\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x3a, 0x4818b2\nCMP             R4, R0                                                 ; +0x3e, 0x4818b6\nBCS             loc_4818FC                                             ; +0x40, 0x4818b8\nMOV             R1, R4; unsigned int                                   ; +0x42, 0x4818ba\nLDR.W           R0, [R5,#0x29C]; this                                  ; +0x44, 0x4818bc\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x48, 0x4818c0\nMOV             R7, R0                                                 ; +0x4c, 0x4818c4\nBL              _ZN13ObjectToolbox11sharedStateEv; ObjectToolbox::sharedState(void) ; +0x4e, 0x4818c6\nLDR.W           R1, [R7,#0x37C]; int                                   ; +0x52, 0x4818ca\nBL              _ZN13ObjectToolbox18gridNodeSizeForKeyEi; ObjectToolbox::gridNodeSizeForKey(int) ; +0x56, 0x4818ce\nVCMP.F32        S16, S17                                               ; +0x5a, 0x4818d2\nVMRS            APSR_nzcv, FPSCR                                       ; +0x5e, 0x4818d6\nVMOV            S15, R0                                                ; +0x62, 0x4818da\nBNE             loc_4818EA                                             ; +0x66, 0x4818de\nLDR.W           R6, [R7,#0x37C]                                        ; +0x68, 0x4818e0\nVMOV            S16, R0                                                ; +0x6c, 0x4818e4\nB               loc_4818F4                                             ; +0x70, 0x4818e8\nVCMP.F32        S16, S15                                               ; +0x72, 0x4818ea\nVMRS            APSR_nzcv, FPSCR                                       ; +0x76, 0x4818ee\nBNE             loc_4818F8                                             ; +0x7a, 0x4818f2\nADDS            R4, #1                                                 ; +0x7c, 0x4818f4\nB               loc_4818AE                                             ; +0x7e, 0x4818f6\nMOV.W           R6, #0xFFFFFFFF                                        ; +0x80, 0x4818f8\nMOV             R0, R5                                                 ; +0x84, 0x4818fc\nMOV             R1, R6                                                 ; +0x86, 0x4818fe\nB               loc_481908                                             ; +0x88, 0x481900\nMOV             R0, R5; this                                           ; +0x8a, 0x481902\nMOV.W           R1, #0xFFFFFFFF; int                                   ; +0x8c, 0x481904\nVPOP            {D8}                                                   ; +0x90, 0x481908\nPOP.W           {R3-R7,LR}                                             ; +0x94, 0x48190c\nB.W             _ZN8EditorUI18updateGridNodeSizeEi; EditorUI::updateGridNodeSize(int) ; +0x98, 0x481910", "xrefs": ["EditorUI::setCustomGridNodeSize @ 0x481982", "EditorUI::setCustomGridEnabled @ 0x4819cc", "EditorUI::onCreateButton @ 0x4827e2", "EditorUI::toggleSpecialEditButtons @ 0x485f92", "EditorUI::resetUI @ 0x489ce8"], "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"}