{"type": "func", "start": 5369511712, "end": 5369511965, "name": "CustomSongLayer::onNCSBrowser", "pseudocode": "// \n// CustomSongLayer::onNCSBrowser from 0x1400c3f20 to 0x1400c401d (253 bytes)\n// \n// 2 xrefs:\n// > CustomSongLayer::init @ 0x1400c2fdf\n// > <???> @ 0x1406c8070\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::onNCSBrowser(CustomSongLayer *a1, cocos2d::CCObject *a2)\n{\n  NCSInfoLayer *v3; // rdi\n  void (*show)(FLAlertLayer *); // rdx\n\n  v3 = (NCSInfoLayer *)operator new(0x288u);\n  FLAlertLayer::FLAlertLayer(v3);\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (NCSInfoLayer_vtbl *)&NCSInfoLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&NCSInfoLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&NCSInfoLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&NCSInfoLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&NCSInfoLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&NCSInfoLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&NCSInfoLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&NCSInfoLayer::`vftable';\n  v3->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&NCSInfoLayer::`vftable';\n  if ( NCSInfoLayer::init(v3, a1) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    ((void (__fastcall *)(NCSInfoLayer *, __int64))v3->~NCSInfoLayer)(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::onNCSBrowser from 0x1400c3f20 to 0x1400c401d (253 bytes)\n; \n; 2 xrefs:\n; > CustomSongLayer::init @ 0x1400c2fdf\n; > <???> @ 0x1406c8070\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, 0x1400c3f20\npush    rdi                                                            ; +0x5, 0x1400c3f25\nsub     rsp, 20h                                                       ; +0x6, 0x1400c3f26\nmov     rbx, rcx                                                       ; +0xa, 0x1400c3f2a\nmov     ecx, 288h; Size                                                ; +0xd, 0x1400c3f2d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x1400c3f32\nmov     rdi, rax                                                       ; +0x17, 0x1400c3f37\nmov     [rsp+28h+arg_10], rax                                          ; +0x1a, 0x1400c3f3a\nmov     rcx, rax                                                       ; +0x1f, 0x1400c3f3f\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x22, 0x1400c3f42\nlea     rax, ??_7NCSInfoLayer@@6B@; const NCSInfoLayer::`vftable'      ; +0x27, 0x1400c3f47\nmov     [rdi], rax                                                     ; +0x2e, 0x1400c3f4e\nlea     rax, ??_7NCSInfoLayer@@6B@_0; const NCSInfoLayer::`vftable'    ; +0x31, 0x1400c3f51\nmov     [rdi+140h], rax                                                ; +0x38, 0x1400c3f58\nlea     rax, ??_7NCSInfoLayer@@6B@_1; const NCSInfoLayer::`vftable'    ; +0x3f, 0x1400c3f5f\nmov     [rdi+148h], rax                                                ; +0x46, 0x1400c3f66\nlea     rax, ??_7NCSInfoLayer@@6B@_2; const NCSInfoLayer::`vftable'    ; +0x4d, 0x1400c3f6d\nmov     [rdi+150h], rax                                                ; +0x54, 0x1400c3f74\nlea     rax, ??_7NCSInfoLayer@@6B@_3; const NCSInfoLayer::`vftable'    ; +0x5b, 0x1400c3f7b\nmov     [rdi+158h], rax                                                ; +0x62, 0x1400c3f82\nlea     rax, ??_7NCSInfoLayer@@6B@_4; const NCSInfoLayer::`vftable'    ; +0x69, 0x1400c3f89\nmov     [rdi+160h], rax                                                ; +0x70, 0x1400c3f90\nlea     rax, ??_7NCSInfoLayer@@6B@_5; const NCSInfoLayer::`vftable'    ; +0x77, 0x1400c3f97\nmov     [rdi+198h], rax                                                ; +0x7e, 0x1400c3f9e\nlea     rax, ??_7NCSInfoLayer@@6B@_6; const NCSInfoLayer::`vftable'    ; +0x85, 0x1400c3fa5\nmov     [rdi+1B0h], rax                                                ; +0x8c, 0x1400c3fac\nlea     rax, ??_7NCSInfoLayer@@6B@_7; const NCSInfoLayer::`vftable'    ; +0x93, 0x1400c3fb3\nmov     [rdi+278h], rax                                                ; +0x9a, 0x1400c3fba\nmov     rdx, rbx                                                       ; +0xa1, 0x1400c3fc1\nmov     rcx, rdi                                                       ; +0xa4, 0x1400c3fc4\ncall    NCSInfoLayer__init                                             ; +0xa7, 0x1400c3fc7\nmov     rcx, rdi                                                       ; +0xac, 0x1400c3fcc\ntest    al, al                                                         ; +0xaf, 0x1400c3fcf\njz      short loc_1400C3FDB                                            ; +0xb1, 0x1400c3fd1\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xb3, 0x1400c3fd3\njmp     short loc_1400C3FE8                                            ; +0xb9, 0x1400c3fd9\nmov     rax, [rdi]                                                     ; +0xbb, 0x1400c3fdb\nmov     edx, 1                                                         ; +0xbe, 0x1400c3fde\ncall    qword ptr [rax+8]                                              ; +0xc3, 0x1400c3fe3\nxor     edi, edi                                                       ; +0xc6, 0x1400c3fe6\nmov     rax, [rdi]                                                     ; +0xc8, 0x1400c3fe8\nmov     rdx, [rax+410h]                                                ; +0xcb, 0x1400c3feb\nlea     rax, FLAlertLayer__show                                        ; +0xd2, 0x1400c3ff2\nmov     rcx, rdi                                                       ; +0xd9, 0x1400c3ff9\ncmp     rdx, rax                                                       ; +0xdc, 0x1400c3ffc\njnz     short loc_1400C4010                                            ; +0xdf, 0x1400c3fff\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xe1, 0x1400c4001\nadd     rsp, 20h                                                       ; +0xe6, 0x1400c4006\npop     rdi                                                            ; +0xea, 0x1400c400a\njmp     FLAlertLayer__show                                             ; +0xeb, 0x1400c400b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xf0, 0x1400c4010\nadd     rsp, 20h                                                       ; +0xf5, 0x1400c4015\npop     rdi                                                            ; +0xf9, 0x1400c4019\njmp     rdx                                                            ; +0xfa, 0x1400c401a", "xrefs": ["CustomSongLayer::init @ 0x1400c2fdf", "<???> @ 0x1406c8070"], "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"}