{"type": "func", "start": 5370198912, "end": 5370199094, "name": "CustomSongWidget::startMonitorDownload", "pseudocode": "// \n// CustomSongWidget::startMonitorDownload from 0x14016bb80 to 0x14016bc36 (182 bytes)\n// \n// 4 xrefs:\n// > CustomSongWidget::init @ 0x14016a67e\n// > CustomSongWidget::startDownload @ 0x14016bb71\n// > CustomSongWidget::downloadSongStarted @ 0x14016e183\n// > <???> @ 0x140918134\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:29 +0000\n// \n\n__int64 __fastcall CustomSongWidget::startMonitorDownload(__int64 a1)\n{\n  __int64 v1; // rdi\n  void (__fastcall *v3)(__int64, __int64); // rbx\n  __int64 v4; // rax\n  __int64 v5; // rdx\n  _BYTE v7[24]; // [rsp+30h] [rbp-18h] BYREF\n\n  v1 = *(_QWORD *)(a1 + 464);\n  v3 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v1 + 992LL);\n  cocos2d::CCRect::CCRect(\n    (cocos2d::CCRect *)v7,\n    0.0,\n    0.0,\n    fminf(\n      *(float *)(*(_QWORD *)(a1 + 456) + 432LL) - 4.0,\n      (float)(*(float *)(*(_QWORD *)(a1 + 456) + 432LL) - 4.0) * 0.0),\n    8.0);\n  v3(v1, v4);\n  LOBYTE(v5) = 1;\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 456) + 336LL))(*(_QWORD *)(a1 + 456), v5);\n  cocos2d::CCNode::unschedule(a1, CustomSongWidget::updateDownloadProgress);\n  return cocos2d::CCNode::schedule(a1, CustomSongWidget::updateDownloadProgress);\n}", "assembly": "; \n; CustomSongWidget::startMonitorDownload from 0x14016bb80 to 0x14016bc36 (182 bytes)\n; \n; 4 xrefs:\n; > CustomSongWidget::init @ 0x14016a67e\n; > CustomSongWidget::startDownload @ 0x14016bb71\n; > CustomSongWidget::downloadSongStarted @ 0x14016e183\n; > <???> @ 0x140918134\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:29 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14016bb80\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14016bb85\npush    rdi                                                            ; +0xa, 0x14016bb8a\nsub     rsp, 40h                                                       ; +0xb, 0x14016bb8b\nmov     rax, [rcx+1C8h]                                                ; +0xf, 0x14016bb8f\nxorps   xmm1, xmm1                                                     ; +0x16, 0x14016bb96\nmov     rdi, [rcx+1D0h]                                                ; +0x19, 0x14016bb99\nmov     rsi, rcx                                                       ; +0x20, 0x14016bba0\nxorps   xmm2, xmm2                                                     ; +0x23, 0x14016bba3\nlea     rcx, [rsp+48h+var_18]                                          ; +0x26, 0x14016bba6\nmovss   xmm3, dword ptr [rax+1B0h]                                     ; +0x2b, 0x14016bbab\nsubss   xmm3, cs:dword_140835450                                       ; +0x33, 0x14016bbb3\nmov     rax, [rdi]                                                     ; +0x3b, 0x14016bbbb\nmov     rbx, [rax+3E0h]                                                ; +0x3e, 0x14016bbbe\nmovaps  xmm0, xmm3                                                     ; +0x45, 0x14016bbc5\nmulss   xmm0, xmm1                                                     ; +0x48, 0x14016bbc8\nminss   xmm3, xmm0                                                     ; +0x4c, 0x14016bbcc\nmovss   xmm0, cs:dword_1408354D4                                       ; +0x50, 0x14016bbd0\nmovss   [rsp+48h+var_28], xmm0                                         ; +0x58, 0x14016bbd8\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x5e, 0x14016bbde\nmov     rdx, rax                                                       ; +0x64, 0x14016bbe4\nmov     rcx, rdi                                                       ; +0x67, 0x14016bbe7\ncall    rbx                                                            ; +0x6a, 0x14016bbea\nmov     rcx, [rsi+1C8h]                                                ; +0x6c, 0x14016bbec\nmov     dl, 1                                                          ; +0x73, 0x14016bbf3\nmov     rax, [rcx]                                                     ; +0x75, 0x14016bbf5\ncall    qword ptr [rax+150h]                                           ; +0x78, 0x14016bbf8\nlea     rdx, CustomSongWidget__updateDownloadProgress                  ; +0x7e, 0x14016bbfe\nmov     rcx, rsi                                                       ; +0x85, 0x14016bc05\ncall    cs:?unschedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@Z@Z; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0x88, 0x14016bc08\nmovss   xmm2, cs:dword_140834DC4                                       ; +0x8e, 0x14016bc0e\nlea     rdx, CustomSongWidget__updateDownloadProgress                  ; +0x96, 0x14016bc16\nmov     rcx, rsi                                                       ; +0x9d, 0x14016bc1d\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xa0, 0x14016bc20\nmov     rsi, [rsp+48h+arg_8]                                           ; +0xa5, 0x14016bc25\nadd     rsp, 40h                                                       ; +0xaa, 0x14016bc2a\npop     rdi                                                            ; +0xae, 0x14016bc2e\njmp     cs:?schedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@ZM@Z; cocos2d::CCNode::schedule(void (cocos2d::CCObject::*)(float),float) ; +0xaf, 0x14016bc2f", "xrefs": ["CustomSongWidget::init @ 0x14016a67e", "CustomSongWidget::startDownload @ 0x14016bb71", "CustomSongWidget::downloadSongStarted @ 0x14016e183", "<???> @ 0x140918134"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}