{"type": "func", "start": 3661762, "end": 3661800, "name": "EditorUI::onCreateButton", "pseudocode": "// \n// EditorUI::onCreateButton from 0x37dfc2 to 0x37dfe8 (38 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid EditorUI::onCreateButton(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  int m_nTag; // r3\n\n  m_nTag = a2[7].m_nTag;\n  if ( a1->m_selectedObjectIndex == m_nTag )\n    m_nTag = 0;\n  a1->m_selectedObjectIndex = m_nTag;\n  EditorUI::updateCreateMenu(a1, 0);\n  EditorUI::updateGridNodeSize(a1);\n}", "assembly": "; \n; EditorUI::onCreateButton from 0x37dfc2 to 0x37dfe8 (38 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nLDR.W           R3, [R1,#0x178]                                        ; +0x0, 0x37dfc2\nMOVS            R1, #0; bool                                           ; +0x4, 0x37dfc6\nLDR.W           R2, [R0,#0x32C]                                        ; +0x6, 0x37dfc8\nPUSH            {R4,LR}                                                ; +0xa, 0x37dfcc\nCMP             R2, R3                                                 ; +0xc, 0x37dfce\nIT EQ                                                                  ; +0xe, 0x37dfd0\nMOVEQ           R3, #0                                                 ; +0x10, 0x37dfd2\nMOV             R4, R0                                                 ; +0x12, 0x37dfd4\nSTR.W           R3, [R0,#0x32C]                                        ; +0x14, 0x37dfd6\nBL              _ZN8EditorUI16updateCreateMenuEb; EditorUI::updateCreateMenu(bool) ; +0x18, 0x37dfda\nMOV             R0, R4; this                                           ; +0x1c, 0x37dfde\nPOP.W           {R4,LR}                                                ; +0x1e, 0x37dfe0\nB.W             _ZN8EditorUI18updateGridNodeSizeEv; EditorUI::updateGridNodeSize(void) ; +0x22, 0x37dfe4", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}