{"type": "func", "start": 8138256, "end": 8138332, "name": "EditorUI::onCreateButton", "pseudocode": "// \n// EditorUI::onCreateButton from 0x7c2e10 to 0x7c2e5c (76 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x812c8\n// > EditorUI::menuItemFromObjectString @ 0xbdf3e0\n// > EditorUI::getCreateBtn @ 0xbe2418\n// > <???> @ 0x15435a8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:54:07 +0000\n// \n\n__int64 __fastcall EditorUI::onCreateButton(EditorUI *this, cocos2d::CCObject *a2)\n{\n  EditorUI *v2; // x19\n  EditorSFXManager *v3; // x0\n\n  v2 = this;\n  LODWORD(this) = *((_DWORD *)a2 + 132);\n  if ( (_DWORD)this == *((_DWORD *)v2 + 336) )\n    this = nullptr;\n  else\n    this = (EditorUI *)(unsigned int)this;\n  *((_DWORD *)v2 + 336) = (_DWORD)this;\n  v3 = (EditorSFXManager *)EditorSFXManager::sharedState(this);\n  EditorSFXManager::playAction(v3, 277);\n  EditorUI::updateCreateMenu(v2, 0);\n  return EditorUI::updateGridNodeSize((cocos2d::CCArray **)v2);\n}", "assembly": "; \n; EditorUI::onCreateButton from 0x7c2e10 to 0x7c2e5c (76 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x812c8\n; > EditorUI::menuItemFromObjectString @ 0xbdf3e0\n; > EditorUI::getCreateBtn @ 0xbe2418\n; > <???> @ 0x15435a8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:54:07 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x7c2e10\nMOV             X29, SP                                                ; +0x4, 0x7c2e14\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x7c2e18\nMOV             X19, X0                                                ; +0xc, 0x7c2e1c\nLDR             W0, [X1,#0x210]                                        ; +0x10, 0x7c2e20\nLDR             W1, [X19,#0x540]                                       ; +0x14, 0x7c2e24\nCMP             W0, W1                                                 ; +0x18, 0x7c2e28\nCSEL            W0, W0, WZR, NE; this                                  ; +0x1c, 0x7c2e2c\nSTR             W0, [X19,#0x540]                                       ; +0x20, 0x7c2e30\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x24, 0x7c2e34\nMOV             W1, #0x115; int                                        ; +0x28, 0x7c2e38\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x2c, 0x7c2e3c\nMOV             X0, X19; this                                          ; +0x30, 0x7c2e40\nMOV             W1, #0; bool                                           ; +0x34, 0x7c2e44\nBL              _ZN8EditorUI16updateCreateMenuEb; EditorUI::updateCreateMenu(bool) ; +0x38, 0x7c2e48\nMOV             X0, X19; this                                          ; +0x3c, 0x7c2e4c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x40, 0x7c2e50\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x44, 0x7c2e54\nB               _ZN8EditorUI18updateGridNodeSizeEv; EditorUI::updateGridNodeSize(void) ; +0x48, 0x7c2e58", "xrefs": ["<???> @ 0x812c8", "EditorUI::menuItemFromObjectString @ 0xbdf3e0", "EditorUI::getCreateBtn @ 0xbe2418", "<???> @ 0x15435a8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}