{"type": "func", "start": 4301143456, "end": 4301143574, "name": "CustomSFXWidget::updateProgressBar", "pseudocode": "// \n// CustomSFXWidget::updateProgressBar from 0x1005e3da0 to 0x1005e3e16 (118 bytes)\n// \n// 0 xrefs:\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\nvoid __fastcall CustomSFXWidget::updateProgressBar(CustomSFXWidget *a1, int a2)\n{\n  __m128 v2; // xmm2\n  int v3; // eax\n  cocos2d::CCSprite *m_progressBarSprite; // rbx\n  _BYTE v5[32]; // [rsp+0h] [rbp-20h] BYREF\n\n  v3 = 0;\n  if ( a2 > 0 )\n    v3 = a2;\n  m_progressBarSprite = a1->m_progressBarSprite;\n  v2.f32[0] = fminf(\n                (float)((float)v3 / 100.0) * (float)(a1->m_progressOutlineSprite->m_obRect.size.width + -4.0),\n                a1->m_progressOutlineSprite->m_obRect.size.width + -4.0);\n  sub_10028CC00((__int64)v5, 0.0, 0.0, v2, (__m128)0x41000000u);\n  ((void (__fastcall *)(cocos2d::CCSprite *, _BYTE *))m_progressBarSprite->setTextureRect)(m_progressBarSprite, v5);\n}", "assembly": "; \n; CustomSFXWidget::updateProgressBar from 0x1005e3da0 to 0x1005e3e16 (118 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x1005e3da0\nmov     rbp, rsp                                                       ; +0x1, 0x1005e3da1\npush    r14                                                            ; +0x4, 0x1005e3da4\npush    rbx                                                            ; +0x6, 0x1005e3da6\nsub     rsp, 10h                                                       ; +0x7, 0x1005e3da7\nxor     eax, eax                                                       ; +0xb, 0x1005e3dab\ntest    esi, esi                                                       ; +0xd, 0x1005e3dad\ncmovg   eax, esi                                                       ; +0xf, 0x1005e3daf\nmov     rcx, [rdi+1A0h]                                                ; +0x12, 0x1005e3db2\nmovss   xmm0, dword ptr [rcx+1B0h]                                     ; +0x19, 0x1005e3db9\naddss   xmm0, cs:dword_100815290                                       ; +0x21, 0x1005e3dc1\nmov     rbx, [rdi+1A8h]                                                ; +0x29, 0x1005e3dc9\ncvtsi2ss xmm2, eax                                                     ; +0x30, 0x1005e3dd0\ndivss   xmm2, cs:dword_100815014                                       ; +0x34, 0x1005e3dd4\nmulss   xmm2, xmm0                                                     ; +0x3c, 0x1005e3ddc\nminss   xmm2, xmm0                                                     ; +0x40, 0x1005e3de0\nlea     r14, [rbp+var_20]                                              ; +0x44, 0x1005e3de4\nmovss   xmm3, cs:dword_100815034                                       ; +0x48, 0x1005e3de8\nxorps   xmm0, xmm0                                                     ; +0x50, 0x1005e3df0\nxorps   xmm1, xmm1                                                     ; +0x53, 0x1005e3df3\nmov     rdi, r14                                                       ; +0x56, 0x1005e3df6\ncall    sub_10028CC00                                                  ; +0x59, 0x1005e3df9\nmov     rax, [rbx]                                                     ; +0x5e, 0x1005e3dfe\nmov     rdi, rbx                                                       ; +0x61, 0x1005e3e01\nmov     rsi, r14                                                       ; +0x64, 0x1005e3e04\ncall    qword ptr [rax+460h]                                           ; +0x67, 0x1005e3e07\nadd     rsp, 10h                                                       ; +0x6d, 0x1005e3e0d\npop     rbx                                                            ; +0x71, 0x1005e3e11\npop     r14                                                            ; +0x72, 0x1005e3e12\npop     rbp                                                            ; +0x74, 0x1005e3e14\nretn                                                                   ; +0x75, 0x1005e3e15", "xrefs": [], "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"}