{"type": "func", "start": 5369497152, "end": 5369497458, "name": "CustomSFXWidget::create", "pseudocode": "// \n// CustomSFXWidget::create from 0x1400c0640 to 0x1400c0772 (306 bytes)\n// \n// 3 xrefs:\n// > CustomSFXCell::loadFromObject @ 0x1400b4c04\n// > SetupSFXPopup::createSFXWidget @ 0x14044899e\n// > <???> @ 0x1406c7f08\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\nCustomSFXWidget *CustomSFXWidget::create(\n        SFXInfoObject *a1,\n        CustomSFXDelegate *a2,\n        bool a3,\n        bool a4,\n        bool a5,\n        bool a6,\n        bool a7)\n{\n  CustomSFXWidget *v10; // r14\n\n  v10 = (CustomSFXWidget *)operator new(0x1D0u);\n  cocos2d::CCNode::CCNode(v10);\n  v10->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CustomSFXWidget_vtbl *)&CustomSFXWidget::`vftable';\n  v10->MusicDownloadDelegate::__vftable = (MusicDownloadDelegate_vtbl *)&CustomSFXWidget::`vftable';\n  v10->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&CustomSFXWidget::`vftable';\n  v10->m_sfxObject = nullptr;\n  v10->m_titleLabel = nullptr;\n  v10->m_idLabel = nullptr;\n  v10->m_downloadButton = nullptr;\n  v10->m_selectButton = nullptr;\n  v10->m_playButton = nullptr;\n  v10->m_deleteButton = nullptr;\n  v10->m_progressOutlineSprite = nullptr;\n  v10->m_progressBarSprite = nullptr;\n  v10->m_clockSprite = nullptr;\n  v10->m_delegate = nullptr;\n  *(_DWORD *)&v10->m_showDelete = 0;\n  v10->m_compactMode = 0;\n  *(_QWORD *)&v10->m_sfxID = 0;\n  if ( CustomSFXWidget::init(v10, a1, a2, a3, 1, 1, 0, a7) )\n  {\n    cocos2d::CCObject::autorelease(v10);\n    return v10;\n  }\n  else\n  {\n    ((void (__fastcall *)(CustomSFXWidget *, __int64))v10->~CustomSFXWidget)(v10, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; CustomSFXWidget::create from 0x1400c0640 to 0x1400c0772 (306 bytes)\n; \n; 3 xrefs:\n; > CustomSFXCell::loadFromObject @ 0x1400b4c04\n; > SetupSFXPopup::createSFXWidget @ 0x14044899e\n; > <???> @ 0x1406c7f08\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, 0x1400c0640\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1400c0645\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1400c064a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1400c064f\npush    r14                                                            ; +0x14, 0x1400c0654\nsub     rsp, 50h                                                       ; +0x16, 0x1400c0656\nmovzx   ebx, r8b                                                       ; +0x1a, 0x1400c065a\nmov     rdi, rdx                                                       ; +0x1e, 0x1400c065e\nmov     rsi, rcx                                                       ; +0x21, 0x1400c0661\nmov     ecx, 1D0h; Size                                                ; +0x24, 0x1400c0664\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x29, 0x1400c0669\nmov     r14, rax                                                       ; +0x2e, 0x1400c066e\nmov     [rsp+58h+var_18], rax                                          ; +0x31, 0x1400c0671\nmov     rcx, rax                                                       ; +0x36, 0x1400c0676\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x39, 0x1400c0679\nlea     rax, ??_7CustomSFXWidget@@6B@; const CustomSFXWidget::`vftable' ; +0x3f, 0x1400c067f\nmov     [r14], rax                                                     ; +0x46, 0x1400c0686\nlea     rax, ??_7CustomSFXWidget@@6B@_0; const CustomSFXWidget::`vftable' ; +0x49, 0x1400c0689\nmov     [r14+140h], rax                                                ; +0x50, 0x1400c0690\nlea     rax, ??_7CustomSFXWidget@@6B@_1; const CustomSFXWidget::`vftable' ; +0x57, 0x1400c0697\nmov     [r14+148h], rax                                                ; +0x5e, 0x1400c069e\nxor     ebp, ebp                                                       ; +0x65, 0x1400c06a5\nmov     [r14+150h], rbp                                                ; +0x67, 0x1400c06a7\nmov     [r14+160h], rbp                                                ; +0x6e, 0x1400c06ae\nmov     [r14+168h], rbp                                                ; +0x75, 0x1400c06b5\nmov     [r14+178h], rbp                                                ; +0x7c, 0x1400c06bc\nmov     [r14+188h], rbp                                                ; +0x83, 0x1400c06c3\nmov     [r14+190h], rbp                                                ; +0x8a, 0x1400c06ca\nmov     [r14+198h], rbp                                                ; +0x91, 0x1400c06d1\nmov     [r14+1A0h], rbp                                                ; +0x98, 0x1400c06d8\nmov     [r14+1A8h], rbp                                                ; +0x9f, 0x1400c06df\nmov     [r14+1B0h], rbp                                                ; +0xa6, 0x1400c06e6\nmov     [r14+1B8h], rbp                                                ; +0xad, 0x1400c06ed\nmov     [r14+1C0h], ebp                                                ; +0xb4, 0x1400c06f4\nmov     [r14+1C4h], bpl                                                ; +0xbb, 0x1400c06fb\nmov     [r14+1C8h], rbp                                                ; +0xc2, 0x1400c0702\nmovzx   eax, [rsp+58h+arg_30]                                          ; +0xc9, 0x1400c0709\nmov     [rsp+58h+var_20], al                                           ; +0xd1, 0x1400c0711\nmov     [rsp+58h+var_28], bpl                                          ; +0xd5, 0x1400c0715\nmov     [rsp+58h+var_30], 1                                            ; +0xda, 0x1400c071a\nmov     [rsp+58h+var_38], 1                                            ; +0xdf, 0x1400c071f\nmovzx   r9d, bl                                                        ; +0xe4, 0x1400c0724\nmov     r8, rdi                                                        ; +0xe8, 0x1400c0728\nmov     rdx, rsi                                                       ; +0xeb, 0x1400c072b\nmov     rcx, r14                                                       ; +0xee, 0x1400c072e\ncall    CustomSFXWidget__init                                          ; +0xf1, 0x1400c0731\nmov     rcx, r14                                                       ; +0xf6, 0x1400c0736\ntest    al, al                                                         ; +0xf9, 0x1400c0739\njz      short loc_1400C0748                                            ; +0xfb, 0x1400c073b\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xfd, 0x1400c073d\nmov     rax, r14                                                       ; +0x103, 0x1400c0743\njmp     short loc_1400C0757                                            ; +0x106, 0x1400c0746\nmov     r8, [r14]                                                      ; +0x108, 0x1400c0748\nmov     edx, 1                                                         ; +0x10b, 0x1400c074b\ncall    qword ptr [r8+8]                                               ; +0x110, 0x1400c0750\nmov     rax, rbp                                                       ; +0x114, 0x1400c0754\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x117, 0x1400c0757\nmov     rbp, [rsp+58h+arg_8]                                           ; +0x11c, 0x1400c075c\nmov     rsi, [rsp+58h+arg_10]                                          ; +0x121, 0x1400c0761\nmov     rdi, [rsp+58h+arg_18]                                          ; +0x126, 0x1400c0766\nadd     rsp, 50h                                                       ; +0x12b, 0x1400c076b\npop     r14                                                            ; +0x12f, 0x1400c076f\nretn                                                                   ; +0x131, 0x1400c0771", "xrefs": ["CustomSFXCell::loadFromObject @ 0x1400b4c04", "SetupSFXPopup::createSFXWidget @ 0x14044899e", "<???> @ 0x1406c7f08"], "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"}