{"type": "func", "start": 4299075596, "end": 4299075656, "name": "EditorUI::onCreateButton", "pseudocode": "// \n// EditorUI::onCreateButton from 0x1003eb00c to 0x1003eb048 (60 bytes)\n// \n// 2 xrefs:\n// > EditorUI::menuItemFromObjectString @ 0x1003e9024\n// > EditorUI::getCreateBtn @ 0x1003ea4bc\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 __fastcall EditorUI::onCreateButton(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  unsigned int m_uAutoReleaseCount; // w8\n\n  m_uAutoReleaseCount = a2[9].m_uAutoReleaseCount;\n  if ( a1->m_selectedObjectIndex == m_uAutoReleaseCount )\n    m_uAutoReleaseCount = 0;\n  a1->m_selectedObjectIndex = m_uAutoReleaseCount;\n  EditorUI::updateCreateMenu(a1, 0);\n  EditorUI::updateGridNodeSize(a1);\n}", "assembly": "; \n; EditorUI::onCreateButton from 0x1003eb00c to 0x1003eb048 (60 bytes)\n; \n; 2 xrefs:\n; > EditorUI::menuItemFromObjectString @ 0x1003e9024\n; > EditorUI::getCreateBtn @ 0x1003ea4bc\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003eb00c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003eb010\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003eb014\nMOV             X19, X0                                                ; +0xc, 0x1003eb018\nLDR             W8, [X1,#0x210]                                        ; +0x10, 0x1003eb01c\nLDR             W9, [X0,#0x4C0]                                        ; +0x14, 0x1003eb020\nCMP             W9, W8                                                 ; +0x18, 0x1003eb024\nCSEL            W8, WZR, W8, EQ                                        ; +0x1c, 0x1003eb028\nSTR             W8, [X0,#0x4C0]                                        ; +0x20, 0x1003eb02c\nMOV             W1, #0                                                 ; +0x24, 0x1003eb030\nBL              EditorUI__updateCreateMenu                             ; +0x28, 0x1003eb034\nMOV             X0, X19                                                ; +0x2c, 0x1003eb038\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x30, 0x1003eb03c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x34, 0x1003eb040\nB               EditorUI__updateGridNodeSize                           ; +0x38, 0x1003eb044", "xrefs": ["EditorUI::menuItemFromObjectString @ 0x1003e9024", "EditorUI::getCreateBtn @ 0x1003ea4bc"], "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"}