{"type": "func", "start": 8637852, "end": 8638156, "name": "CustomSongLayer::create", "pseudocode": "// \n// CustomSongLayer::create from 0x83cd9c to 0x83cecc (304 bytes)\n// \n// 2 xrefs:\n// > SongSelectNode::showCustomSongSelect @ 0x83f810\n// > <???> @ 0x8de88\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 *CustomSongLayer::create(CustomSongDelegate *a1)\n{\n  CustomSongLayer *v2; // x19\n\n  v2 = (CustomSongLayer *)operator new(0x2B0u);\n  cocos2d::CCLayerColor::CCLayerColor(v2);\n  v2->m_controlConnected = -1;\n  v2->m_joystickConnected = -1;\n  v2->m_buttonMenu = nullptr;\n  v2->m_alertProtocol = nullptr;\n  v2->m_scene = nullptr;\n  v2->m_reverseKeyBack = 0;\n  v2->m_mainLayer = nullptr;\n  v2->m_ZOrder = 0;\n  v2->m_noElasticity = 0;\n  v2->m_button1 = nullptr;\n  v2->m_button2 = nullptr;\n  v2->m_scrollingLayer = nullptr;\n  v2->m_containsBorder = 0;\n  v2->m_noAction = 0;\n  v2->m_forcePrioRegistered = 0;\n  v2->m_songDelegate = nullptr;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CustomSongLayer_vtbl *)&off_118A370;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_118A8C8;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_118A938;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_118A950;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_118A970;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_118A990;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_118A9B8;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_118AA38;\n  v2->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)off_118AA58;\n  v2->GJDropDownLayerDelegate::__vftable = (GJDropDownLayerDelegate_vtbl *)&off_118AAA0;\n  v2->MusicBrowserDelegate::__vftable = (MusicBrowserDelegate_vtbl *)&off_118AAB8;\n  v2->m_songIDInput = nullptr;\n  v2->m_delegate = nullptr;\n  if ( CustomSongLayer::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n    return v2;\n  }\n  else\n  {\n    v2->~CustomSongLayer_0(v2);\n    return nullptr;\n  }\n}", "assembly": "; \n; CustomSongLayer::create from 0x83cd9c to 0x83cecc (304 bytes)\n; \n; 2 xrefs:\n; > SongSelectNode::showCustomSongSelect @ 0x83f810\n; > <???> @ 0x8de88\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             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x83cd9c\nMOV             X29, SP                                                ; +0x4, 0x83cda0\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x83cda4\nMOV             X20, X0                                                ; +0xc, 0x83cda8\nMOV             X0, #0x2B0; unsigned __int64                           ; +0x10, 0x83cdac\nBL              _Znwm; operator new(ulong)                             ; +0x14, 0x83cdb0\nMOV             X19, X0                                                ; +0x18, 0x83cdb4\nBL              _ZN7cocos2d12CCLayerColorC1Ev; cocos2d::CCLayerColor::CCLayerColor(void) ; +0x1c, 0x83cdb8\nMOV             W2, #0xFFFFFFFF                                        ; +0x20, 0x83cdbc\nSTR             W2, [X19,#0x268]                                       ; +0x24, 0x83cdc0\nSTR             W2, [X19,#0x270]                                       ; +0x28, 0x83cdc4\nADRP            X2, #_ZTV15CustomSongLayer_ptr@PAGE                    ; +0x2c, 0x83cdc8\nSTR             XZR, [X19,#0x220]                                      ; +0x30, 0x83cdcc\nMOV             X0, X19; this                                          ; +0x34, 0x83cdd0\nSTR             XZR, [X19,#0x228]                                      ; +0x38, 0x83cdd4\nMOV             X1, X20; CustomSongDelegate *                          ; +0x3c, 0x83cdd8\nSTR             XZR, [X19,#0x230]                                      ; +0x40, 0x83cddc\nSTRB            WZR, [X19,#0x238]                                      ; +0x44, 0x83cde0\nSTR             XZR, [X19,#0x240]                                      ; +0x48, 0x83cde4\nSTR             WZR, [X19,#0x248]                                      ; +0x4c, 0x83cde8\nSTRB            WZR, [X19,#0x24C]                                      ; +0x50, 0x83cdec\nSTR             XZR, [X19,#0x250]                                      ; +0x54, 0x83cdf0\nSTR             XZR, [X19,#0x258]                                      ; +0x58, 0x83cdf4\nSTR             XZR, [X19,#0x260]                                      ; +0x5c, 0x83cdf8\nSTRB            WZR, [X19,#0x26C]                                      ; +0x60, 0x83cdfc\nSTRB            WZR, [X19,#0x26D]                                      ; +0x64, 0x83ce00\nSTRB            WZR, [X19,#0x274]                                      ; +0x68, 0x83ce04\nLDR             X2, [X2,#_ZTV15CustomSongLayer_ptr@PAGEOFF]; `vtable for'CustomSongLayer ... ; +0x6c, 0x83ce08\nSTR             XZR, [X19,#0x290]                                      ; +0x70, 0x83ce0c\nADD             X12, X2, #0x10                                         ; +0x74, 0x83ce10\nADD             X11, X2, #0x568                                        ; +0x78, 0x83ce14\nADD             X10, X2, #0x5D8                                        ; +0x7c, 0x83ce18\nADD             X9, X2, #0x5F0                                         ; +0x80, 0x83ce1c\nADD             X8, X2, #0x610                                         ; +0x84, 0x83ce20\nADD             X7, X2, #0x630                                         ; +0x88, 0x83ce24\nADD             X6, X2, #0x658                                         ; +0x8c, 0x83ce28\nADD             X5, X2, #0x6D8                                         ; +0x90, 0x83ce2c\nADD             X4, X2, #0x6F8                                         ; +0x94, 0x83ce30\nADD             X3, X2, #0x740                                         ; +0x98, 0x83ce34\nSTR             X12, [X19]                                             ; +0x9c, 0x83ce38\nADD             X2, X2, #0x758                                         ; +0xa0, 0x83ce3c\nSTR             X11, [X19,#0x140]                                      ; +0xa4, 0x83ce40\nSTR             X10, [X19,#0x148]                                      ; +0xa8, 0x83ce44\nSTR             X9, [X19,#0x150]                                       ; +0xac, 0x83ce48\nSTR             X8, [X19,#0x158]                                       ; +0xb0, 0x83ce4c\nSTR             X7, [X19,#0x160]                                       ; +0xb4, 0x83ce50\nSTR             X6, [X19,#0x198]                                       ; +0xb8, 0x83ce54\nSTR             X5, [X19,#0x1B0]                                       ; +0xbc, 0x83ce58\nSTR             X4, [X19,#0x278]                                       ; +0xc0, 0x83ce5c\nSTR             X3, [X19,#0x280]                                       ; +0xc4, 0x83ce60\nSTR             X2, [X19,#0x288]                                       ; +0xc8, 0x83ce64\nSTR             XZR, [X19,#0x298]                                      ; +0xcc, 0x83ce68\nSTR             XZR, [X19,#0x2A8]                                      ; +0xd0, 0x83ce6c\nBL              _ZN15CustomSongLayer4initEP18CustomSongDelegate; CustomSongLayer::init(CustomSongDelegate *) ; +0xd4, 0x83ce70\nUXTB            W0, W0                                                 ; +0xd8, 0x83ce74\nCBZ             W0, loc_83CE94                                         ; +0xdc, 0x83ce78\nMOV             X0, X19; this                                          ; +0xe0, 0x83ce7c\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xe4, 0x83ce80\nMOV             X0, X19                                                ; +0xe8, 0x83ce84\nLDP             X19, X20, [SP,#var_s10]                                ; +0xec, 0x83ce88\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0xf0, 0x83ce8c\nRET                                                                    ; +0xf4, 0x83ce90\nLDR             X1, [X19]                                              ; +0xf8, 0x83ce94\nMOV             X0, X19                                                ; +0xfc, 0x83ce98\nMOV             X19, #0                                                ; +0x100, 0x83ce9c\nLDR             X1, [X1,#0x10]                                         ; +0x104, 0x83cea0\nBLR             X1                                                     ; +0x108, 0x83cea4\nMOV             X0, X19                                                ; +0x10c, 0x83cea8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x110, 0x83ceac\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x114, 0x83ceb0\nRET                                                                    ; +0x118, 0x83ceb4\nMOV             X20, X0                                                ; +0x11c, 0x83ceb8\nMOV             X0, X19; p                                             ; +0x120, 0x83cebc\nBL              _ZdlPv; operator delete(void *)                        ; +0x124, 0x83cec0\nMOV             X0, X20                                                ; +0x128, 0x83cec4\nBL              _Unwind_Resume                                         ; +0x12c, 0x83cec8", "xrefs": ["SongSelectNode::showCustomSongSelect @ 0x83f810", "<???> @ 0x8de88"], "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"}