{"type": "func", "start": 5369818976, "end": 5369819031, "name": "EditorUI::onCreateButton", "pseudocode": "// \n// EditorUI::onCreateButton from 0x14010ef60 to 0x14010ef97 (55 bytes)\n// \n// 4 xrefs:\n// > EditorUI::menuItemFromObjectString @ 0x14010e901\n// > EditorUI::getCreateBtn @ 0x14010ed5d\n// > <???> @ 0x1406c8e20\n// > <???> @ 0x1406c8e2c\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_uOrderOfArrival; // eax\n\n  m_uOrderOfArrival = 0;\n  if ( a1->m_selectedObjectIndex != a2[9].m_uOrderOfArrival )\n    m_uOrderOfArrival = a2[9].m_uOrderOfArrival;\n  a1->m_selectedObjectIndex = m_uOrderOfArrival;\n  EditorUI::updateCreateMenu(a1, 0);\n  EditorUI::updateGridNodeSize(a1);\n}", "assembly": "; \n; EditorUI::onCreateButton from 0x14010ef60 to 0x14010ef97 (55 bytes)\n; \n; 4 xrefs:\n; > EditorUI::menuItemFromObjectString @ 0x14010e901\n; > EditorUI::getCreateBtn @ 0x14010ed5d\n; > <???> @ 0x1406c8e20\n; > <???> @ 0x1406c8e2c\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\npush    rbx                                                            ; +0x0, 0x14010ef60\nsub     rsp, 20h                                                       ; +0x2, 0x14010ef62\nmov     r8d, [rdx+228h]                                                ; +0x6, 0x14010ef66\nxor     eax, eax                                                       ; +0xd, 0x14010ef6d\ncmp     [rcx+4D8h], r8d                                                ; +0xf, 0x14010ef6f\nmov     rbx, rcx                                                       ; +0x16, 0x14010ef76\ncmovnz  eax, r8d                                                       ; +0x19, 0x14010ef79\nxor     edx, edx                                                       ; +0x1d, 0x14010ef7d\nmov     [rcx+4D8h], eax                                                ; +0x1f, 0x14010ef7f\ncall    EditorUI__updateCreateMenu                                     ; +0x25, 0x14010ef85\nmov     rcx, rbx                                                       ; +0x2a, 0x14010ef8a\nadd     rsp, 20h                                                       ; +0x2d, 0x14010ef8d\npop     rbx                                                            ; +0x31, 0x14010ef91\njmp     EditorUI__updateGridNodeSize                                   ; +0x32, 0x14010ef92", "xrefs": ["EditorUI::menuItemFromObjectString @ 0x14010e901", "EditorUI::getCreateBtn @ 0x14010ed5d", "<???> @ 0x1406c8e20", "<???> @ 0x1406c8e2c"], "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"}