{"type": "func", "start": 4584656, "end": 4584824, "name": "CustomSongLayer::create", "pseudocode": "// \n// CustomSongLayer::create from 0x45f4d0 to 0x45f578 (168 bytes)\n// \n// 1 xrefs:\n// > SongSelectNode::showCustomSongSelect @ 0x460fd0\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; // r4\n  CustomSongLayer_vtbl *v3; // r3\n  CustomSongLayer *v4; // r0\n\n  v2 = (CustomSongLayer *)operator new(0x20Cu);\n  FLAlertLayer::FLAlertLayer(v2);\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CustomSongLayer_vtbl *)&off_A663F0;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A6669C;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A666D4;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A666E0;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A666F0;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A66700;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A66714;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A66754;\n  v2->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&off_A66764;\n  v2->GJDropDownLayerDelegate::__vftable = (GJDropDownLayerDelegate_vtbl *)&off_A66788;\n  v2->MusicBrowserDelegate::__vftable = (MusicBrowserDelegate_vtbl *)&off_A66794;\n  v2->m_songDelegate = nullptr;\n  v2->m_songIDInput = nullptr;\n  v2->m_delegate = nullptr;\n  if ( CustomSongLayer::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    v3 = v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v4 = v2;\n    v2 = nullptr;\n    v3->~CustomSongLayer_0(v4);\n  }\n  return v2;\n}", "assembly": "; \n; CustomSongLayer::create from 0x45f4d0 to 0x45f578 (168 bytes)\n; \n; 1 xrefs:\n; > SongSelectNode::showCustomSongSelect @ 0x460fd0\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x45f4d0\nMOV             R5, R0                                                 ; +0x2, 0x45f4d2\nMOV.W           R0, #0x20C; unsigned int                               ; +0x4, 0x45f4d4\nBL              _Znwj; operator new(uint)                              ; +0x8, 0x45f4d8\nMOV             R4, R0                                                 ; +0xc, 0x45f4dc\nBL              _ZN12FLAlertLayerC2Ev; FLAlertLayer::FLAlertLayer(void) ; +0xe, 0x45f4de\nLDR             R3, =(_ZTV15CustomSongLayer_ptr - 0x45F4EC)            ; +0x12, 0x45f4e2\nMOV             R1, R5; CustomSongDelegate *                           ; +0x14, 0x45f4e4\nMOV             R0, R4; this                                           ; +0x16, 0x45f4e6\nADD             R3, PC; _ZTV15CustomSongLayer_ptr                      ; +0x18, 0x45f4e8\nLDR             R3, [R3]; `vtable for'CustomSongLayer ...              ; +0x1a, 0x45f4ea\nADD.W           R2, R3, #8                                             ; +0x1c, 0x45f4ec\nSTR             R2, [R4]                                               ; +0x20, 0x45f4f0\nADD.W           R2, R3, #0x2B4                                         ; +0x22, 0x45f4f2\nSTR.W           R2, [R4,#0x108]                                        ; +0x26, 0x45f4f6\nADD.W           R2, R3, #0x2EC                                         ; +0x2a, 0x45f4fa\nSTR.W           R2, [R4,#0x10C]                                        ; +0x2e, 0x45f4fe\nADD.W           R2, R3, #0x2F8                                         ; +0x32, 0x45f502\nSTR.W           R2, [R4,#0x110]                                        ; +0x36, 0x45f506\nADD.W           R2, R3, #0x308                                         ; +0x3a, 0x45f50a\nSTR.W           R2, [R4,#0x114]                                        ; +0x3e, 0x45f50e\nADD.W           R2, R3, #0x318                                         ; +0x42, 0x45f512\nSTR.W           R2, [R4,#0x118]                                        ; +0x46, 0x45f516\nADD.W           R2, R3, #0x32C                                         ; +0x4a, 0x45f51a\nSTR.W           R2, [R4,#0x13C]                                        ; +0x4e, 0x45f51e\nADD.W           R2, R3, #0x36C                                         ; +0x52, 0x45f522\nSTR.W           R2, [R4,#0x14C]                                        ; +0x56, 0x45f526\nADD.W           R2, R3, #0x37C                                         ; +0x5a, 0x45f52a\nSTR.W           R2, [R4,#0x1F0]                                        ; +0x5e, 0x45f52e\nADD.W           R2, R3, #0x3A0                                         ; +0x62, 0x45f532\nADD.W           R3, R3, #0x3AC                                         ; +0x66, 0x45f536\nSTR.W           R2, [R4,#0x1F4]                                        ; +0x6a, 0x45f53a\nSTR.W           R3, [R4,#0x1F8]                                        ; +0x6e, 0x45f53e\nMOVS            R3, #0                                                 ; +0x72, 0x45f542\nSTR.W           R3, [R4,#0x1FC]                                        ; +0x74, 0x45f544\nSTR.W           R3, [R4,#0x200]                                        ; +0x78, 0x45f548\nSTR.W           R3, [R4,#0x208]                                        ; +0x7c, 0x45f54c\nBL              _ZN15CustomSongLayer4initEP18CustomSongDelegate; CustomSongLayer::init(CustomSongDelegate *) ; +0x80, 0x45f550\nMOV             R5, R0                                                 ; +0x84, 0x45f554\nCBZ             R0, loc_45F56A                                         ; +0x86, 0x45f556\nMOV             R0, R4; this                                           ; +0x88, 0x45f558\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x8a, 0x45f55a\nB               loc_45F574                                             ; +0x8e, 0x45f55e\nMOV             R0, R4; p                                              ; +0x90, 0x45f560\nBL              _ZdlPv; operator delete(void *)                        ; +0x92, 0x45f562\nBL              __cxa_end_cleanup                                      ; +0x96, 0x45f566\nLDR             R3, [R4]                                               ; +0x9a, 0x45f56a\nMOV             R0, R4                                                 ; +0x9c, 0x45f56c\nMOV             R4, R5                                                 ; +0x9e, 0x45f56e\nLDR             R3, [R3,#8]                                            ; +0xa0, 0x45f570\nBLX             R3                                                     ; +0xa2, 0x45f572\nMOV             R0, R4                                                 ; +0xa4, 0x45f574\nPOP             {R3-R5,PC}                                             ; +0xa6, 0x45f576", "xrefs": ["SongSelectNode::showCustomSongSelect @ 0x460fd0"], "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"}