{"type": "func", "start": 4061084, "end": 4061426, "name": "CustomSongWidget::create", "pseudocode": "// \n// CustomSongWidget::create from 0x3df79c to 0x3df8f2 (342 bytes)\n// \n// 5 xrefs:\n// > CustomSongCell::loadFromObject @ 0x33512c\n// > CustomMusicCell::loadFromObject @ 0x335562\n// > LevelInfoLayer::init @ 0x3b4a68\n// > CustomSongLayer::init @ 0x45f32c\n// > SongSelectNode::init @ 0x460e3c\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\nCustomSongWidget *CustomSongWidget::create(\n        SongInfoObject *a1,\n        CustomSongDelegate *a2,\n        bool a3,\n        bool a4,\n        bool a5,\n        bool a6,\n        bool a7,\n        bool a8,\n        int a9)\n{\n  CustomSongWidget *v13; // r4\n  CustomSongWidget_vtbl *v14; // r3\n  int *v15; // r0\n\n  v13 = (CustomSongWidget *)operator new(0x1D0u);\n  cocos2d::CCNode::CCNode(v13);\n  v13->m_songInfoObject = nullptr;\n  v13->m_songLabel = nullptr;\n  v13->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CustomSongWidget_vtbl *)&off_A51CB0;\n  v13->m_artistLabel = nullptr;\n  v13->MusicDownloadDelegate::__vftable = (MusicDownloadDelegate_vtbl *)&off_A51E9C;\n  v13->m_songIDLabel = nullptr;\n  v13->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_A51ECC;\n  v13->m_downloadBtn = nullptr;\n  v13->m_lengthMod = 0.0;\n  v13->m_selectSongBtn = nullptr;\n  v13->m_playbackBtn = nullptr;\n  v13->m_deleteBtn = nullptr;\n  v13->m_sliderGroove = nullptr;\n  v13->m_sliderBar = nullptr;\n  v13->m_ncsLogo = nullptr;\n  v13->m_bgSpr = nullptr;\n  v13->m_songDelegate = nullptr;\n  v13->m_showSelectSongBtn = 0;\n  v13->m_showPlayMusicBtn = 0;\n  v13->m_showDownloadBtn = 0;\n  v13->m_isNotDownloading = 0;\n  v13->m_isRobtopSong = 0;\n  v13->m_isMusicLibrary = 0;\n  v13->m_customSongID = 0;\n  v13->m_isInCell = 0;\n  v13->m_playbackDelegate = nullptr;\n  v13->m_hasLibrarySongs = 0;\n  v13->m_hasSFX = 0;\n  v13->m_unkBool2 = 0;\n  memset(&v13->m_songs.m_header, 0, sizeof(v13->m_songs.m_header));\n  v13->m_songs.m_header.m_left = &v13->m_songs.m_header;\n  v13->m_songs.m_header.m_right = &v13->m_songs.m_header;\n  v13->m_songs.m_nodecount = 0;\n  memset(&v13->m_sfx.m_header, 0, sizeof(v13->m_sfx.m_header));\n  v13->m_sfx.m_header.m_left = &v13->m_sfx.m_header;\n  v13->m_sfx.m_header.m_right = &v13->m_sfx.m_header;\n  v13->m_sfx.m_nodecount = 0;\n  v13->m_undownloadedAssets.m_start = nullptr;\n  v13->m_undownloadedAssets.m_finish = nullptr;\n  v13->m_undownloadedAssets.m_reserveEnd = nullptr;\n  v13->m_totalBytes = 0;\n  memset(&v13->m_nextSongIDs._M_t._M_impl._M_header, 0, sizeof(v13->m_nextSongIDs._M_t._M_impl._M_header));\n  v13->m_nextSongIDs._M_t._M_impl._M_node_count = 0;\n  v13->m_nextSongIDs._M_t._M_impl._M_header._M_left = &v13->m_nextSongIDs._M_t._M_impl._M_header;\n  v13->m_nextSongIDs._M_t._M_impl._M_header._M_right = &v13->m_nextSongIDs._M_t._M_impl._M_header;\n  if ( CustomSongWidget::init(v13, a1, a2, a3, a4, a5, a6, a7, a8, a9) )\n  {\n    cocos2d::CCObject::autorelease(v13);\n  }\n  else\n  {\n    v14 = v13->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v15 = (int *)v13;\n    v13 = nullptr;\n    v14->~CustomSongWidget_0((CustomSongWidget *)v15);\n  }\n  return v13;\n}", "assembly": "; \n; CustomSongWidget::create from 0x3df79c to 0x3df8f2 (342 bytes)\n; \n; 5 xrefs:\n; > CustomSongCell::loadFromObject @ 0x33512c\n; > CustomMusicCell::loadFromObject @ 0x335562\n; > LevelInfoLayer::init @ 0x3b4a68\n; > CustomSongLayer::init @ 0x45f32c\n; > SongSelectNode::init @ 0x460e3c\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.W          {R4-R10,LR}                                            ; +0x0, 0x3df79c\nMOV             R8, R0                                                 ; +0x4, 0x3df7a0\nSUB             SP, SP, #0x18                                          ; +0x6, 0x3df7a2\nMOV.W           R0, #0x1D0; unsigned int                               ; +0x8, 0x3df7a4\nMOV             R7, R1                                                 ; +0xc, 0x3df7a8\nMOV             R6, R2                                                 ; +0xe, 0x3df7aa\nMOV             R9, R3                                                 ; +0x10, 0x3df7ac\nBL              _Znwj; operator new(uint)                              ; +0x12, 0x3df7ae\nMOV             R4, R0                                                 ; +0x16, 0x3df7b2\nBL              _ZN7cocos2d6CCNodeC2Ev; cocos2d::CCNode::CCNode(void)  ; +0x18, 0x3df7b4\nLDR             R3, =(_ZTV16CustomSongWidget_ptr - 0x3DF7C8)           ; +0x1c, 0x3df7b8\nADD.W           R10, R4, #0x17C                                        ; +0x1e, 0x3df7ba\nMOVS            R5, #0                                                 ; +0x22, 0x3df7be\nSTR.W           R5, [R4,#0x110]                                        ; +0x24, 0x3df7c0\nADD             R3, PC; _ZTV16CustomSongWidget_ptr                     ; +0x28, 0x3df7c4\nLDR             R3, [R3]; `vtable for'CustomSongWidget ...             ; +0x2a, 0x3df7c6\nMOV             R1, R5; int                                            ; +0x2c, 0x3df7c8\nADD.W           R2, R3, #8                                             ; +0x2e, 0x3df7ca\nSTR.W           R5, [R4,#0x118]                                        ; +0x32, 0x3df7ce\nSTR             R2, [R4]                                               ; +0x36, 0x3df7d2\nMOV             R0, R10; void *                                        ; +0x38, 0x3df7d4\nADD.W           R2, R3, #0x1F4                                         ; +0x3a, 0x3df7d6\nSTR.W           R5, [R4,#0x11C]                                        ; +0x3e, 0x3df7da\nSTR.W           R2, [R4,#0x108]                                        ; +0x42, 0x3df7de\nADD.W           R3, R3, #0x224                                         ; +0x46, 0x3df7e2\nSTR.W           R5, [R4,#0x120]                                        ; +0x4a, 0x3df7e6\nMOVS            R2, #0x10; size_t                                      ; +0x4e, 0x3df7ea\nSTR.W           R3, [R4,#0x10C]                                        ; +0x50, 0x3df7ec\nMOVS            R3, #0                                                 ; +0x54, 0x3df7f0\nSTR.W           R5, [R4,#0x128]                                        ; +0x56, 0x3df7f2\nSTR.W           R3, [R4,#0x168]                                        ; +0x5a, 0x3df7f6\nSTR.W           R5, [R4,#0x130]                                        ; +0x5e, 0x3df7fa\nSTR.W           R5, [R4,#0x138]                                        ; +0x62, 0x3df7fe\nSTR.W           R5, [R4,#0x140]                                        ; +0x66, 0x3df802\nSTR.W           R5, [R4,#0x148]                                        ; +0x6a, 0x3df806\nSTR.W           R5, [R4,#0x14C]                                        ; +0x6e, 0x3df80a\nSTR.W           R5, [R4,#0x150]                                        ; +0x72, 0x3df80e\nSTR.W           R5, [R4,#0x154]                                        ; +0x76, 0x3df812\nSTR.W           R5, [R4,#0x158]                                        ; +0x7a, 0x3df816\nSTRB.W          R5, [R4,#0x15C]                                        ; +0x7e, 0x3df81a\nSTRB.W          R5, [R4,#0x15D]                                        ; +0x82, 0x3df81e\nSTRB.W          R5, [R4,#0x15E]                                        ; +0x86, 0x3df822\nSTRB.W          R5, [R4,#0x15F]                                        ; +0x8a, 0x3df826\nSTRB.W          R5, [R4,#0x160]                                        ; +0x8e, 0x3df82a\nSTRB.W          R5, [R4,#0x161]                                        ; +0x92, 0x3df82e\nSTR.W           R5, [R4,#0x164]                                        ; +0x96, 0x3df832\nSTRB.W          R5, [R4,#0x16C]                                        ; +0x9a, 0x3df836\nSTR.W           R5, [R4,#0x170]                                        ; +0x9e, 0x3df83a\nSTRB.W          R5, [R4,#0x174]                                        ; +0xa2, 0x3df83e\nSTRB.W          R5, [R4,#0x175]                                        ; +0xa6, 0x3df842\nSTRB.W          R5, [R4,#0x176]                                        ; +0xaa, 0x3df846\nBLX             memset                                                 ; +0xae, 0x3df84a\nSTR.W           R10, [R4,#0x184]                                       ; +0xb2, 0x3df84e\nSTR.W           R10, [R4,#0x188]                                       ; +0xb6, 0x3df852\nADD.W           R10, R4, #0x194                                        ; +0xba, 0x3df856\nMOV             R1, R5; int                                            ; +0xbe, 0x3df85a\nSTR.W           R5, [R4,#0x18C]                                        ; +0xc0, 0x3df85c\nMOV             R0, R10; void *                                        ; +0xc4, 0x3df860\nMOVS            R2, #0x10; size_t                                      ; +0xc6, 0x3df862\nBLX             memset                                                 ; +0xc8, 0x3df864\nSTR.W           R10, [R4,#0x19C]                                       ; +0xcc, 0x3df868\nSTR.W           R10, [R4,#0x1A0]                                       ; +0xd0, 0x3df86c\nADD.W           R10, R4, #0x1BC                                        ; +0xd4, 0x3df870\nMOV             R1, R5; int                                            ; +0xd8, 0x3df874\nSTR.W           R5, [R4,#0x1A4]                                        ; +0xda, 0x3df876\nSTR.W           R5, [R4,#0x1A8]                                        ; +0xde, 0x3df87a\nMOVS            R2, #0x10; size_t                                      ; +0xe2, 0x3df87e\nSTR.W           R5, [R4,#0x1AC]                                        ; +0xe4, 0x3df880\nMOV             R0, R10; void *                                        ; +0xe8, 0x3df884\nSTR.W           R5, [R4,#0x1B0]                                        ; +0xea, 0x3df886\nSTR.W           R5, [R4,#0x1B4]                                        ; +0xee, 0x3df88a\nBLX             memset                                                 ; +0xf2, 0x3df88e\nLDRB.W          R3, [SP,#0x18+arg_0]                                   ; +0xf6, 0x3df892\nSTR.W           R5, [R4,#0x1CC]                                        ; +0xfa, 0x3df896\nMOV             R0, R4; this                                           ; +0xfe, 0x3df89a\nSTR.W           R10, [R4,#0x1C4]                                       ; +0x100, 0x3df89c\nMOV             R1, R8; SongInfoObject *                               ; +0x104, 0x3df8a0\nSTR.W           R10, [R4,#0x1C8]                                       ; +0x106, 0x3df8a2\nMOV             R2, R7; CustomSongDelegate *                           ; +0x10a, 0x3df8a6\nSTR             R3, [SP,#0x18+var_14]; bool                            ; +0x10c, 0x3df8a8\nLDRB.W          R3, [SP,#0x18+arg_4]                                   ; +0x10e, 0x3df8aa\nSTR.W           R9, [SP,#0x18+var_18]; bool                            ; +0x112, 0x3df8ae\nSTR             R3, [SP,#0x18+var_10]; bool                            ; +0x116, 0x3df8b2\nLDRB.W          R3, [SP,#0x18+arg_8]                                   ; +0x118, 0x3df8b4\nSTR             R3, [SP,#0x18+var_C]; bool                             ; +0x11c, 0x3df8b8\nLDRB.W          R3, [SP,#0x18+arg_C]                                   ; +0x11e, 0x3df8ba\nSTR             R3, [SP,#0x18+var_8]; bool                             ; +0x122, 0x3df8be\nLDR             R3, [SP,#0x18+arg_10]                                  ; +0x124, 0x3df8c0\nSTR             R3, [SP,#0x18+var_4]; int                              ; +0x126, 0x3df8c2\nMOV             R3, R6; bool                                           ; +0x128, 0x3df8c4\nBL              _ZN16CustomSongWidget4initEP14SongInfoObjectP18CustomSongDelegatebbbbbbi; CustomSongWidget::init(SongInfoObject *,CustomSongDelegate *,bool,bool,bool,bool,bool,bool,int) ; +0x12a, 0x3df8c6\nMOV             R5, R0                                                 ; +0x12e, 0x3df8ca\nCBZ             R0, loc_3DF8E0                                         ; +0x130, 0x3df8cc\nMOV             R0, R4; this                                           ; +0x132, 0x3df8ce\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x134, 0x3df8d0\nB               loc_3DF8EA                                             ; +0x138, 0x3df8d4\nMOV             R0, R4; p                                              ; +0x13a, 0x3df8d6\nBL              _ZdlPv; operator delete(void *)                        ; +0x13c, 0x3df8d8\nBL              __cxa_end_cleanup                                      ; +0x140, 0x3df8dc\nLDR             R3, [R4]                                               ; +0x144, 0x3df8e0\nMOV             R0, R4                                                 ; +0x146, 0x3df8e2\nMOV             R4, R5                                                 ; +0x148, 0x3df8e4\nLDR             R3, [R3,#8]                                            ; +0x14a, 0x3df8e6\nBLX             R3                                                     ; +0x14c, 0x3df8e8\nMOV             R0, R4                                                 ; +0x14e, 0x3df8ea\nADD             SP, SP, #0x18                                          ; +0x150, 0x3df8ec\nPOP.W           {R4-R10,PC}                                            ; +0x152, 0x3df8ee", "xrefs": ["CustomSongCell::loadFromObject @ 0x33512c", "CustomMusicCell::loadFromObject @ 0x335562", "LevelInfoLayer::init @ 0x3b4a68", "CustomSongLayer::init @ 0x45f32c", "SongSelectNode::init @ 0x460e3c"], "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"}