{"type": "func", "start": 4299648136, "end": 4299648212, "name": "EditorUI::onCreateButton", "pseudocode": "// \n// EditorUI::onCreateButton from 0x100476c88 to 0x100476cd4 (76 bytes)\n// \n// 2 xrefs:\n// > EditorUI::getCreateBtn @ 0x10018469c\n// > EditorUI::menuItemFromObjectString @ 0x100185280\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 11:05:41 +0000\n// \n\n__int64 __fastcall EditorUI::onCreateButton(__int64 a1, __int64 a2, __n128 a3)\n{\n  int v4; // w8\n  __int64 v5; // x0\n\n  v4 = *(_DWORD *)(a2 + 528);\n  if ( *(_DWORD *)(a1 + 1344) == v4 )\n    v4 = 0;\n  *(_DWORD *)(a1 + 1344) = v4;\n  v5 = EditorSFXManager::sharedState(a3);\n  EditorSFXManager::playAction_1(v5, 277);\n  EditorUI::updateCreateMenu(a1, 0);\n  return EditorUI::updateGridNodeSize(a1);\n}", "assembly": "; \n; EditorUI::onCreateButton from 0x100476c88 to 0x100476cd4 (76 bytes)\n; \n; 2 xrefs:\n; > EditorUI::getCreateBtn @ 0x10018469c\n; > EditorUI::menuItemFromObjectString @ 0x100185280\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 11:05:41 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100476c88\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100476c8c\nADD             X29, SP, #0x10                                         ; +0x8, 0x100476c90\nMOV             X19, X0                                                ; +0xc, 0x100476c94\nLDR             W8, [X1,#0x210]                                        ; +0x10, 0x100476c98\nLDR             W9, [X0,#0x540]                                        ; +0x14, 0x100476c9c\nCMP             W9, W8                                                 ; +0x18, 0x100476ca0\nCSEL            W8, WZR, W8, EQ                                        ; +0x1c, 0x100476ca4\nSTR             W8, [X0,#0x540]                                        ; +0x20, 0x100476ca8\nBL              EditorSFXManager__sharedState                          ; +0x24, 0x100476cac\nMOV             W1, #0x115                                             ; +0x28, 0x100476cb0\nBL              EditorSFXManager__playAction_1                         ; +0x2c, 0x100476cb4\nMOV             X0, X19                                                ; +0x30, 0x100476cb8\nMOV             W1, #0                                                 ; +0x34, 0x100476cbc\nBL              EditorUI__updateCreateMenu                             ; +0x38, 0x100476cc0\nMOV             X0, X19                                                ; +0x3c, 0x100476cc4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x40, 0x100476cc8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x44, 0x100476ccc\nB               EditorUI__updateGridNodeSize                           ; +0x48, 0x100476cd0", "xrefs": ["EditorUI::getCreateBtn @ 0x10018469c", "EditorUI::menuItemFromObjectString @ 0x100185280"], "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"}