{"type": "func", "start": 5372932544, "end": 5372932635, "name": "SelectPremadeLayer::onSelectPremade", "pseudocode": "// \n// SelectPremadeLayer::onSelectPremade from 0x1404071c0 to 0x14040721b (91 bytes)\n// \n// 3 xrefs:\n// > SelectPremadeLayer::init @ 0x140406f29\n// > <???> @ 0x1406d8990\n// > <???> @ 0x1406d899c\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 SelectPremadeLayer::onSelectPremade(SelectPremadeLayer *a1, cocos2d::CCObject *a2)\n{\n  SelectPremadeDelegate *m_delegate; // rbx\n  SelectPremadeDelegate_vtbl *v4; // rbx\n  unsigned int v5; // eax\n  _BOOL8 v6; // rdx\n\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n  {\n    v4 = m_delegate->__vftable;\n    v5 = a2->getTag(a2);\n    v4->selectPremadeClosed(a1->m_delegate, a1, v5);\n  }\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v6) = 1;\n  a1->removeFromParentAndCleanup(a1, v6);\n}", "assembly": "; \n; SelectPremadeLayer::onSelectPremade from 0x1404071c0 to 0x14040721b (91 bytes)\n; \n; 3 xrefs:\n; > SelectPremadeLayer::init @ 0x140406f29\n; > <???> @ 0x1406d8990\n; > <???> @ 0x1406d899c\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1404071c0\npush    rdi                                                            ; +0x5, 0x1404071c5\nsub     rsp, 20h                                                       ; +0x6, 0x1404071c6\nmov     rbx, [rcx+278h]                                                ; +0xa, 0x1404071ca\nmov     rdi, rcx                                                       ; +0x11, 0x1404071d1\ntest    rbx, rbx                                                       ; +0x14, 0x1404071d4\njz      short loc_1404071F4                                            ; +0x17, 0x1404071d7\nmov     rax, [rdx]                                                     ; +0x19, 0x1404071d9\nmov     rcx, rdx                                                       ; +0x1c, 0x1404071dc\nmov     rbx, [rbx]                                                     ; +0x1f, 0x1404071df\ncall    qword ptr [rax+38h]                                            ; +0x22, 0x1404071e2\nmov     rcx, [rdi+278h]                                                ; +0x25, 0x1404071e5\nmov     rdx, rdi                                                       ; +0x2c, 0x1404071ec\nmov     r8d, eax                                                       ; +0x2f, 0x1404071ef\ncall    qword ptr [rbx]                                                ; +0x32, 0x1404071f2\nmov     rax, [rdi]                                                     ; +0x34, 0x1404071f4\nxor     edx, edx                                                       ; +0x37, 0x1404071f7\nmov     rcx, rdi                                                       ; +0x39, 0x1404071f9\ncall    qword ptr [rax+3D0h]                                           ; +0x3c, 0x1404071fc\nmov     rax, [rdi]                                                     ; +0x42, 0x140407202\nmov     dl, 1                                                          ; +0x45, 0x140407205\nmov     rcx, rdi                                                       ; +0x47, 0x140407207\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x14040720a\nadd     rsp, 20h                                                       ; +0x4f, 0x14040720f\npop     rdi                                                            ; +0x53, 0x140407213\njmp     qword ptr [rax+1F8h]                                           ; +0x54, 0x140407214", "xrefs": ["SelectPremadeLayer::init @ 0x140406f29", "<???> @ 0x1406d8990", "<???> @ 0x1406d899c"], "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"}