{"type": "func", "start": 4302013776, "end": 4302013977, "name": "CustomSFXWidget::updateDownloadProgress", "pseudocode": "// \n// CustomSFXWidget::updateDownloadProgress from 0x1006b8550 to 0x1006b8619 (201 bytes)\n// \n// 6 xrefs:\n// > CustomSFXWidget::init @ 0x1006b68ae\n// > CustomSFXWidget::onDownload @ 0x1006b6a21\n// > CustomSFXWidget::startMonitorDownload @ 0x1006b80ea\n// > CustomSFXWidget::startDownload @ 0x1006b8514\n// > CustomSFXWidget::updateDownloadProgress @ 0x1006b858d\n// > CustomSFXWidget::downloadFailed @ 0x1006b869c\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 12:35:28 +0000\n// \n\n__int64 __fastcall CustomSFXWidget::updateDownloadProgress(_QWORD *a1, double a2, double a3, __m128 a4)\n{\n  __int64 v4; // rax\n  int SFXDownloadProgress; // eax\n  int v7; // ecx\n  __int64 v8; // rbx\n  _BYTE v9[32]; // [rsp+0h] [rbp-20h] BYREF\n\n  v4 = MusicDownloadManager::sharedState();\n  SFXDownloadProgress = MusicDownloadManager::getSFXDownloadProgress(v4);\n  if ( a1[42] == 0 || SFXDownloadProgress == -1 )\n  {\n    cocos2d::CCNode::unschedule((__int64)a1, (__int64)CustomSFXWidget::updateDownloadProgress, 0);\n    return CustomSFXWidget::updateSFXInfo((__int64)a1);\n  }\n  else\n  {\n    v7 = 0;\n    if ( SFXDownloadProgress > 0 )\n      v7 = SFXDownloadProgress;\n    v8 = a1[58];\n    a4.f32[0] = fminf(\n                  (float)((float)v7 / 100.0) * (float)(*(float *)(a1[57] + 432LL) + -4.0),\n                  *(float *)(a1[57] + 432LL) + -4.0);\n    sub_100278270((__int64)v9, 0.0, 0.0, a4, (__m128)0x41000000u);\n    return (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 1136LL))(v8, v9);\n  }\n}", "assembly": "; \n; CustomSFXWidget::updateDownloadProgress from 0x1006b8550 to 0x1006b8619 (201 bytes)\n; \n; 6 xrefs:\n; > CustomSFXWidget::init @ 0x1006b68ae\n; > CustomSFXWidget::onDownload @ 0x1006b6a21\n; > CustomSFXWidget::startMonitorDownload @ 0x1006b80ea\n; > CustomSFXWidget::startDownload @ 0x1006b8514\n; > CustomSFXWidget::updateDownloadProgress @ 0x1006b858d\n; > CustomSFXWidget::downloadFailed @ 0x1006b869c\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 12:35:28 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006b8550\nmov     rbp, rsp                                                       ; +0x1, 0x1006b8551\npush    r14                                                            ; +0x4, 0x1006b8554\npush    rbx                                                            ; +0x6, 0x1006b8556\nsub     rsp, 10h                                                       ; +0x7, 0x1006b8557\nmov     rbx, rdi                                                       ; +0xb, 0x1006b855b\ncall    MusicDownloadManager__sharedState                              ; +0xe, 0x1006b855e\nmov     rcx, [rbx+150h]                                                ; +0x13, 0x1006b8563\nmov     esi, [rcx+38h]                                                 ; +0x1a, 0x1006b856a\nmov     rdi, rax                                                       ; +0x1d, 0x1006b856d\ncall    MusicDownloadManager__getSFXDownloadProgress                   ; +0x20, 0x1006b8570\ncmp     qword ptr [rbx+150h], 0                                        ; +0x25, 0x1006b8575\nsetz    cl                                                             ; +0x2d, 0x1006b857d\ncmp     eax, 0FFFFFFFFh                                                ; +0x30, 0x1006b8580\nsetz    dl                                                             ; +0x33, 0x1006b8583\nor      dl, cl                                                         ; +0x36, 0x1006b8586\ncmp     dl, 1                                                          ; +0x38, 0x1006b8588\njnz     short loc_1006B85AE                                            ; +0x3b, 0x1006b858b\nlea     rsi, CustomSFXWidget__updateDownloadProgress                   ; +0x3d, 0x1006b858d\nmov     rdi, rbx                                                       ; +0x44, 0x1006b8594\nxor     edx, edx                                                       ; +0x47, 0x1006b8597\ncall    cocos2d__CCNode__unschedule                                    ; +0x49, 0x1006b8599\nmov     rdi, rbx                                                       ; +0x4e, 0x1006b859e\nadd     rsp, 10h                                                       ; +0x51, 0x1006b85a1\npop     rbx                                                            ; +0x55, 0x1006b85a5\npop     r14                                                            ; +0x56, 0x1006b85a6\npop     rbp                                                            ; +0x58, 0x1006b85a8\njmp     CustomSFXWidget__updateSFXInfo                                 ; +0x59, 0x1006b85a9\nxor     ecx, ecx                                                       ; +0x5e, 0x1006b85ae\ntest    eax, eax                                                       ; +0x60, 0x1006b85b0\ncmovg   ecx, eax                                                       ; +0x62, 0x1006b85b2\nmov     rax, [rbx+1C8h]                                                ; +0x65, 0x1006b85b5\nmovss   xmm0, dword ptr [rax+1B0h]                                     ; +0x6c, 0x1006b85bc\naddss   xmm0, cs:dword_100A03FD4                                       ; +0x74, 0x1006b85c4\nmov     rbx, [rbx+1D0h]                                                ; +0x7c, 0x1006b85cc\ncvtsi2ss xmm2, ecx                                                     ; +0x83, 0x1006b85d3\ndivss   xmm2, cs:dword_100A03584                                       ; +0x87, 0x1006b85d7\nmulss   xmm2, xmm0                                                     ; +0x8f, 0x1006b85df\nminss   xmm2, xmm0                                                     ; +0x93, 0x1006b85e3\nlea     r14, [rbp+var_20]                                              ; +0x97, 0x1006b85e7\nmovss   xmm3, cs:dword_100A03D64                                       ; +0x9b, 0x1006b85eb\nxorps   xmm0, xmm0                                                     ; +0xa3, 0x1006b85f3\nxorps   xmm1, xmm1                                                     ; +0xa6, 0x1006b85f6\nmov     rdi, r14                                                       ; +0xa9, 0x1006b85f9\ncall    sub_100278270                                                  ; +0xac, 0x1006b85fc\nmov     rax, [rbx]                                                     ; +0xb1, 0x1006b8601\nmov     rdi, rbx                                                       ; +0xb4, 0x1006b8604\nmov     rsi, r14                                                       ; +0xb7, 0x1006b8607\ncall    qword ptr [rax+470h]                                           ; +0xba, 0x1006b860a\nadd     rsp, 10h                                                       ; +0xc0, 0x1006b8610\npop     rbx                                                            ; +0xc4, 0x1006b8614\npop     r14                                                            ; +0xc5, 0x1006b8615\npop     rbp                                                            ; +0xc7, 0x1006b8617\nretn                                                                   ; +0xc8, 0x1006b8618", "xrefs": ["CustomSFXWidget::init @ 0x1006b68ae", "CustomSFXWidget::onDownload @ 0x1006b6a21", "CustomSFXWidget::startMonitorDownload @ 0x1006b80ea", "CustomSFXWidget::startDownload @ 0x1006b8514", "CustomSFXWidget::updateDownloadProgress @ 0x1006b858d", "CustomSFXWidget::downloadFailed @ 0x1006b869c"], "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"}