{"type": "func", "start": 4302294880, "end": 4302295075, "name": "CustomSongWidget::downloadSongStarted", "pseudocode": "// \n// CustomSongWidget::downloadSongStarted from 0x1006fcf60 to 0x1006fd023 (195 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b95dc8\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:56 +0000\n// \n\n__int64 __fastcall CustomSongWidget::downloadSongStarted(__int64 a1, int a2)\n{\n  __int64 result; // rax\n  __int64 v3; // r14\n  __m128 v4; // xmm0\n  __m128 v5; // xmm2\n  _BYTE v6[48]; // [rsp-30h] [rbp-30h] BYREF\n\n  result = *(unsigned int *)(a1 + 504);\n  LOBYTE(result) = (_DWORD)result != a2 || (_DWORD)result == 0;\n  if ( !(_BYTE)result )\n  {\n    v3 = *(_QWORD *)(a1 + 464);\n    v4 = (__m128)*(unsigned int *)(*(_QWORD *)(a1 + 456) + 432LL);\n    v4.f32[0] = v4.f32[0] + -4.0;\n    v5 = v4;\n    v5.f32[0] = fminf(v4.f32[0] * 0.0, v4.f32[0]);\n    sub_100278270((__int64)v6, 0.0, 0.0, v5, (__m128)0x41000000u);\n    (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v3 + 1136LL))(v3, v6);\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 456) + 344LL))(*(_QWORD *)(a1 + 456), 1);\n    cocos2d::CCNode::unschedule(a1, (__int64)CustomSongWidget::updateDownloadProgress, 0);\n    return cocos2d::CCNode::schedule_1(\n             a1,\n             (__int64)CustomSongWidget::updateDownloadProgress,\n             0,\n             COERCE_DOUBLE(1023969417));\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::downloadSongStarted from 0x1006fcf60 to 0x1006fd023 (195 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b95dc8\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:56 +0000\n; \nmov     eax, [rdi+1F8h]                                                ; +0x0, 0x1006fcf60\ncmp     eax, esi                                                       ; +0x6, 0x1006fcf66\nsetnz   cl                                                             ; +0x8, 0x1006fcf68\ntest    eax, eax                                                       ; +0xb, 0x1006fcf6b\nsetz    al                                                             ; +0xd, 0x1006fcf6d\nor      al, cl                                                         ; +0x10, 0x1006fcf70\njnz     locret_1006FD022                                               ; +0x12, 0x1006fcf72\npush    rbp                                                            ; +0x18, 0x1006fcf78\nmov     rbp, rsp                                                       ; +0x19, 0x1006fcf79\npush    r15                                                            ; +0x1c, 0x1006fcf7c\npush    r14                                                            ; +0x1e, 0x1006fcf7e\npush    rbx                                                            ; +0x20, 0x1006fcf80\nsub     rsp, 18h                                                       ; +0x21, 0x1006fcf81\nmov     rax, [rdi+1C8h]                                                ; +0x25, 0x1006fcf85\nmov     r14, [rdi+1D0h]                                                ; +0x2c, 0x1006fcf8c\nmovss   xmm0, dword ptr [rax+1B0h]                                     ; +0x33, 0x1006fcf93\naddss   xmm0, cs:dword_100A03FD4                                       ; +0x3b, 0x1006fcf9b\nxorps   xmm1, xmm1                                                     ; +0x43, 0x1006fcfa3\nmovaps  xmm2, xmm0                                                     ; +0x46, 0x1006fcfa6\nmulss   xmm2, xmm1                                                     ; +0x49, 0x1006fcfa9\nminss   xmm2, xmm0                                                     ; +0x4d, 0x1006fcfad\nlea     r15, [rbp-28h]                                                 ; +0x51, 0x1006fcfb1\nmovss   xmm3, cs:dword_100A03D64                                       ; +0x55, 0x1006fcfb5\nxorps   xmm0, xmm0                                                     ; +0x5d, 0x1006fcfbd\nmov     rbx, rdi                                                       ; +0x60, 0x1006fcfc0\nmov     rdi, r15                                                       ; +0x63, 0x1006fcfc3\ncall    sub_100278270                                                  ; +0x66, 0x1006fcfc6\nmov     rax, [r14]                                                     ; +0x6b, 0x1006fcfcb\nmov     rdi, r14                                                       ; +0x6e, 0x1006fcfce\nmov     rsi, r15                                                       ; +0x71, 0x1006fcfd1\ncall    qword ptr [rax+470h]                                           ; +0x74, 0x1006fcfd4\nmov     rdi, [rbx+1C8h]                                                ; +0x7a, 0x1006fcfda\nmov     rax, [rdi]                                                     ; +0x81, 0x1006fcfe1\nmov     esi, 1                                                         ; +0x84, 0x1006fcfe4\ncall    qword ptr [rax+158h]                                           ; +0x89, 0x1006fcfe9\nlea     r14, CustomSongWidget__updateDownloadProgress                  ; +0x8f, 0x1006fcfef\nmov     rdi, rbx                                                       ; +0x96, 0x1006fcff6\nmov     rsi, r14                                                       ; +0x99, 0x1006fcff9\nxor     edx, edx                                                       ; +0x9c, 0x1006fcffc\ncall    cocos2d__CCNode__unschedule                                    ; +0x9e, 0x1006fcffe\nmovss   xmm0, cs:dword_100A0485C                                       ; +0xa3, 0x1006fd003\nmov     rdi, rbx                                                       ; +0xab, 0x1006fd00b\nmov     rsi, r14                                                       ; +0xae, 0x1006fd00e\nxor     edx, edx                                                       ; +0xb1, 0x1006fd011\ncall    cocos2d__CCNode__schedule_1                                    ; +0xb3, 0x1006fd013\nadd     rsp, 18h                                                       ; +0xb8, 0x1006fd018\npop     rbx                                                            ; +0xbc, 0x1006fd01c\npop     r14                                                            ; +0xbd, 0x1006fd01d\npop     r15                                                            ; +0xbf, 0x1006fd01f\npop     rbp                                                            ; +0xc1, 0x1006fd021\nretn                                                                   ; +0xc2, 0x1006fd022", "xrefs": ["<???> @ 0x100b95dc8"], "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"}