{"type": "func", "start": 5369510048, "end": 5369510302, "name": "CustomSongLayer::onOptions", "pseudocode": "// \n// CustomSongLayer::onOptions from 0x1400c38a0 to 0x1400c399e (254 bytes)\n// \n// 2 xrefs:\n// > CustomSongLayer::init @ 0x1400c32ae\n// > <???> @ 0x1406c8034\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\n// Hidden C++ exception states: #wind=1\nvoid CustomSongLayer::onOptions(CustomSongLayer *a1, cocos2d::CCObject *a2)\n{\n  CustomSongDelegate *m_songDelegate; // rbx\n  SongOptionsLayer *v3; // rdi\n  void (*show)(FLAlertLayer *); // rdx\n\n  m_songDelegate = a1->m_songDelegate;\n  v3 = (SongOptionsLayer *)operator new(0x290u);\n  FLAlertLayer::FLAlertLayer(v3);\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SongOptionsLayer_vtbl *)&SongOptionsLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&SongOptionsLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&SongOptionsLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&SongOptionsLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&SongOptionsLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&SongOptionsLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&SongOptionsLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&SongOptionsLayer::`vftable';\n  v3->m_delegate = nullptr;\n  if ( SongOptionsLayer::init(v3, m_songDelegate) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    ((void (__fastcall *)(SongOptionsLayer *, __int64))v3->~SongOptionsLayer)(v3, 1);\n    v3 = nullptr;\n  }\n  show = (void (*)(FLAlertLayer *))v3->show;\n  if ( show == FLAlertLayer::show )\n    FLAlertLayer::show(v3);\n  else\n    show(v3);\n}", "assembly": "; \n; CustomSongLayer::onOptions from 0x1400c38a0 to 0x1400c399e (254 bytes)\n; \n; 2 xrefs:\n; > CustomSongLayer::init @ 0x1400c32ae\n; > <???> @ 0x1406c8034\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_8], rbx                                               ; +0x0, 0x1400c38a0\npush    rdi                                                            ; +0x5, 0x1400c38a5\nsub     rsp, 20h                                                       ; +0x6, 0x1400c38a6\nmov     rbx, [rcx+290h]                                                ; +0xa, 0x1400c38aa\nmov     ecx, 290h; Size                                                ; +0x11, 0x1400c38b1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x16, 0x1400c38b6\nmov     rdi, rax                                                       ; +0x1b, 0x1400c38bb\nmov     [rsp+28h+arg_0], rax                                           ; +0x1e, 0x1400c38be\nmov     rcx, rax                                                       ; +0x23, 0x1400c38c3\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x26, 0x1400c38c6\nlea     rax, ??_7SongOptionsLayer@@6B@; const SongOptionsLayer::`vftable' ; +0x2b, 0x1400c38cb\nmov     [rdi], rax                                                     ; +0x32, 0x1400c38d2\nlea     rax, ??_7SongOptionsLayer@@6B@_0; const SongOptionsLayer::`vftable' ; +0x35, 0x1400c38d5\nmov     [rdi+140h], rax                                                ; +0x3c, 0x1400c38dc\nlea     rax, ??_7SongOptionsLayer@@6B@_1; const SongOptionsLayer::`vftable' ; +0x43, 0x1400c38e3\nmov     [rdi+148h], rax                                                ; +0x4a, 0x1400c38ea\nlea     rax, ??_7SongOptionsLayer@@6B@_2; const SongOptionsLayer::`vftable' ; +0x51, 0x1400c38f1\nmov     [rdi+150h], rax                                                ; +0x58, 0x1400c38f8\nlea     rax, ??_7SongOptionsLayer@@6B@_3; const SongOptionsLayer::`vftable' ; +0x5f, 0x1400c38ff\nmov     [rdi+158h], rax                                                ; +0x66, 0x1400c3906\nlea     rax, ??_7SongOptionsLayer@@6B@_4; const SongOptionsLayer::`vftable' ; +0x6d, 0x1400c390d\nmov     [rdi+160h], rax                                                ; +0x74, 0x1400c3914\nlea     rax, ??_7SongOptionsLayer@@6B@_5; const SongOptionsLayer::`vftable' ; +0x7b, 0x1400c391b\nmov     [rdi+198h], rax                                                ; +0x82, 0x1400c3922\nlea     rax, ??_7SongOptionsLayer@@6B@_6; const SongOptionsLayer::`vftable' ; +0x89, 0x1400c3929\nmov     [rdi+1B0h], rax                                                ; +0x90, 0x1400c3930\nmov     qword ptr [rdi+278h], 0                                        ; +0x97, 0x1400c3937\nmov     rdx, rbx                                                       ; +0xa2, 0x1400c3942\nmov     rcx, rdi                                                       ; +0xa5, 0x1400c3945\ncall    SongOptionsLayer__init                                         ; +0xa8, 0x1400c3948\nmov     rcx, rdi                                                       ; +0xad, 0x1400c394d\ntest    al, al                                                         ; +0xb0, 0x1400c3950\njz      short loc_1400C395C                                            ; +0xb2, 0x1400c3952\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xb4, 0x1400c3954\njmp     short loc_1400C3969                                            ; +0xba, 0x1400c395a\nmov     rax, [rdi]                                                     ; +0xbc, 0x1400c395c\nmov     edx, 1                                                         ; +0xbf, 0x1400c395f\ncall    qword ptr [rax+8]                                              ; +0xc4, 0x1400c3964\nxor     edi, edi                                                       ; +0xc7, 0x1400c3967\nmov     rax, [rdi]                                                     ; +0xc9, 0x1400c3969\nmov     rdx, [rax+410h]                                                ; +0xcc, 0x1400c396c\nlea     rax, FLAlertLayer__show                                        ; +0xd3, 0x1400c3973\nmov     rcx, rdi                                                       ; +0xda, 0x1400c397a\ncmp     rdx, rax                                                       ; +0xdd, 0x1400c397d\njnz     short loc_1400C3991                                            ; +0xe0, 0x1400c3980\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xe2, 0x1400c3982\nadd     rsp, 20h                                                       ; +0xe7, 0x1400c3987\npop     rdi                                                            ; +0xeb, 0x1400c398b\njmp     FLAlertLayer__show                                             ; +0xec, 0x1400c398c\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xf1, 0x1400c3991\nadd     rsp, 20h                                                       ; +0xf6, 0x1400c3996\npop     rdi                                                            ; +0xfa, 0x1400c399a\njmp     rdx                                                            ; +0xfb, 0x1400c399b", "xrefs": ["CustomSongLayer::init @ 0x1400c32ae", "<???> @ 0x1406c8034"], "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"}