{"type": "func", "start": 4296292744, "end": 4296292936, "name": "CustomSongLayer::create", "pseudocode": "// \n// CustomSongLayer::create from 0x100143988 to 0x100143a48 (192 bytes)\n// \n// 2 xrefs:\n// > SongSelectNode::onOpenCustomSong @ 0x1001478c4\n// > SongSelectNode::FLAlert_Clicked @ 0x100147b2c\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\nCustomSongLayer *__fastcall CustomSongLayer::create(CustomSongDelegate *a1)\n{\n  CustomSongLayer *v2; // x19\n\n  v2 = (CustomSongLayer *)operator new(0x2B0u);\n  FLAlertLayer::FLAlertLayer(v2);\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CustomSongLayer_vtbl *)&off_100794900;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_100794E58;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_100794EC8;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_100794EE0;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_100794F00;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_100794F20;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_100794F48;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)off_100794FC8;\n  v2->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&off_100794FE8;\n  v2->GJDropDownLayerDelegate::__vftable = (GJDropDownLayerDelegate_vtbl *)&off_100795030;\n  v2->MusicBrowserDelegate::__vftable = (MusicBrowserDelegate_vtbl *)&off_100795048;\n  v2->m_delegate = nullptr;\n  *(_OWORD *)&v2->m_songDelegate = 0u;\n  if ( CustomSongLayer::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    ((void (__fastcall *)(CustomSongLayer *))v2->~CustomSongLayer_0)(v2);\n    return nullptr;\n  }\n  return v2;\n}", "assembly": "; \n; CustomSongLayer::create from 0x100143988 to 0x100143a48 (192 bytes)\n; \n; 2 xrefs:\n; > SongSelectNode::onOpenCustomSong @ 0x1001478c4\n; > SongSelectNode::FLAlert_Clicked @ 0x100147b2c\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, 0x100143988\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10014398c\nADD             X29, SP, #0x10                                         ; +0x8, 0x100143990\nMOV             X20, X0                                                ; +0xc, 0x100143994\nMOV             W0, #0x2B0; __sz                                       ; +0x10, 0x100143998\nBL              __Znwm; operator new(ulong)                            ; +0x14, 0x10014399c\nMOV             X19, X0                                                ; +0x18, 0x1001439a0\nBL              FLAlertLayer__FLAlertLayer                             ; +0x1c, 0x1001439a4\nADRL            X8, off_100794900                                      ; +0x20, 0x1001439a8\nSTR             X8, [X19]                                              ; +0x28, 0x1001439b0\nADD             X9, X8, #(off_100794E58 - 0x100794900)                 ; +0x2c, 0x1001439b4\nADD             X10, X8, #(off_100794EC8 - 0x100794900)                ; +0x30, 0x1001439b8\nSTP             X9, X10, [X19,#0x140]                                  ; +0x34, 0x1001439bc\nADD             X9, X8, #(off_100794EE0 - 0x100794900)                 ; +0x38, 0x1001439c0\nADD             X10, X8, #(off_100794F00 - 0x100794900)                ; +0x3c, 0x1001439c4\nSTP             X9, X10, [X19,#0x150]                                  ; +0x40, 0x1001439c8\nADD             X9, X8, #(off_100794F20 - 0x100794900)                 ; +0x44, 0x1001439cc\nSTR             X9, [X19,#0x160]                                       ; +0x48, 0x1001439d0\nADD             X9, X8, #(off_100794F48 - 0x100794900)                 ; +0x4c, 0x1001439d4\nSTR             X9, [X19,#0x198]                                       ; +0x50, 0x1001439d8\nADD             X9, X8, #(off_100794FC8 - 0x100794900)                 ; +0x54, 0x1001439dc\nSTR             X9, [X19,#0x1B0]                                       ; +0x58, 0x1001439e0\nADD             X9, X8, #(off_100794FE8 - 0x100794900)                 ; +0x5c, 0x1001439e4\nSTR             X9, [X19,#0x278]                                       ; +0x60, 0x1001439e8\nADD             X9, X8, #(off_100795030 - 0x100794900)                 ; +0x64, 0x1001439ec\nSTR             X9, [X19,#0x280]                                       ; +0x68, 0x1001439f0\nADD             X8, X8, #(off_100795048 - 0x100794900)                 ; +0x6c, 0x1001439f4\nSTR             X8, [X19,#0x288]                                       ; +0x70, 0x1001439f8\nSTR             XZR, [X19,#0x2A8]                                      ; +0x74, 0x1001439fc\nMOVI            V0.16B, #0                                             ; +0x78, 0x100143a00\nSTR             Q0, [X19,#0x290]                                       ; +0x7c, 0x100143a04\nMOV             X0, X19                                                ; +0x80, 0x100143a08\nMOV             X1, X20                                                ; +0x84, 0x100143a0c\nBL              CustomSongLayer__init                                  ; +0x88, 0x100143a10\nCBZ             W0, loc_100143A24                                      ; +0x8c, 0x100143a14\nMOV             X0, X19                                                ; +0x90, 0x100143a18\nBL              cocos2d__CCObject__autorelease                         ; +0x94, 0x100143a1c\nB               loc_100143A38                                          ; +0x98, 0x100143a20\nLDR             X8, [X19]                                              ; +0x9c, 0x100143a24\nLDR             X8, [X8,#0x10]                                         ; +0xa0, 0x100143a28\nMOV             X0, X19                                                ; +0xa4, 0x100143a2c\nBLR             X8                                                     ; +0xa8, 0x100143a30\nMOV             X19, #0                                                ; +0xac, 0x100143a34\nMOV             X0, X19                                                ; +0xb0, 0x100143a38\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xb4, 0x100143a3c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xb8, 0x100143a40\nRET                                                                    ; +0xbc, 0x100143a44", "xrefs": ["SongSelectNode::onOpenCustomSong @ 0x1001478c4", "SongSelectNode::FLAlert_Clicked @ 0x100147b2c"], "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"}