{"type": "func", "start": 6856184, "end": 6856244, "name": "EditorUI::onCreateButton", "pseudocode": "// \n// EditorUI::onCreateButton from 0x689df8 to 0x689e34 (60 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x5e800\n// > EditorUI::getCreateBtn @ 0x6949b0\n// > EditorUI::menuItemFromObjectString @ 0x697418\n// > <???> @ 0x122b0e8\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_uIndexInArray; // w2\n\n  m_uIndexInArray = a2[8].m_uIndexInArray;\n  if ( m_uIndexInArray == a1->m_selectedObjectIndex )\n    m_uIndexInArray = 0;\n  a1->m_selectedObjectIndex = m_uIndexInArray;\n  EditorUI::updateCreateMenu(a1, 0);\n  EditorUI::updateGridNodeSize(a1);\n}", "assembly": "; \n; EditorUI::onCreateButton from 0x689df8 to 0x689e34 (60 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x5e800\n; > EditorUI::getCreateBtn @ 0x6949b0\n; > EditorUI::menuItemFromObjectString @ 0x697418\n; > <???> @ 0x122b0e8\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x689df8\nMOV             X29, SP                                                ; +0x4, 0x689dfc\nLDR             W2, [X1,#0x1E0]                                        ; +0x8, 0x689e00\nMOV             W1, #0; bool                                           ; +0xc, 0x689e04\nLDR             W3, [X0,#0x4D0]                                        ; +0x10, 0x689e08\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x14, 0x689e0c\nMOV             X19, X0                                                ; +0x18, 0x689e10\nCMP             W2, W3                                                 ; +0x1c, 0x689e14\nCSEL            W2, W2, WZR, NE                                        ; +0x20, 0x689e18\nSTR             W2, [X0,#0x4D0]                                        ; +0x24, 0x689e1c\nBL              _ZN8EditorUI16updateCreateMenuEb; EditorUI::updateCreateMenu(bool) ; +0x28, 0x689e20\nMOV             X0, X19; this                                          ; +0x2c, 0x689e24\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x30, 0x689e28\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x34, 0x689e2c\nB               _ZN8EditorUI18updateGridNodeSizeEv; EditorUI::updateGridNodeSize(void) ; +0x38, 0x689e30", "xrefs": ["<???> @ 0x5e800", "EditorUI::getCreateBtn @ 0x6949b0", "EditorUI::menuItemFromObjectString @ 0x697418", "<???> @ 0x122b0e8"], "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"}