{"type": "func", "start": 4300128880, "end": 4300129233, "name": "GameToolbox::addProgressBarFill", "pseudocode": "// \n// GameToolbox::addProgressBarFill from 0x1004ec270 to 0x1004ec3d1 (353 bytes)\n// \n// 2 xrefs:\n// > PauseLayer::setupSessionProgressBar @ 0x1003c29d7\n// > GameToolbox::createProgressBar @ 0x1004ec255\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:31:22 +0000\n// \n\nchar *__fastcall GameToolbox::addProgressBarFill(\n        __int64 a1,\n        int a2,\n        int a3,\n        unsigned int a4,\n        double a5,\n        double a6,\n        __m128 a7)\n{\n  char *v9; // rbx\n  __int64 v10; // rax\n  float v12[4]; // [rsp+4h] [rbp-3Ch] BYREF\n  float v13; // [rsp+14h] [rbp-2Ch]\n  __int16 v14; // [rsp+18h] [rbp-28h] BYREF\n  char v15; // [rsp+1Ah] [rbp-26h]\n  float v16; // [rsp+1Ch] [rbp-24h]\n\n  v14 = a3;\n  v15 = BYTE2(a3);\n  v9 = cocos2d::CCSprite::create_1((__int64)\"GJ_progressBar_001.png\");\n  (*(void (__fastcall **)(char *, float))(*(_QWORD *)v9 + 128LL))(v9, 0.99199998);\n  (*(void (__fastcall **)(char *, float))(*(_QWORD *)v9 + 144LL))(v9, 0.86000001);\n  (*(void (__fastcall **)(char *, __int16 *))(*(_QWORD *)v9 + 960LL))(v9, &v14);\n  v13 = *((float *)v9 + 108);\n  v16 = v13 - (float)(0.99199998 * v13);\n  (*(void (__fastcall **)(__int64, char *, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, v9, a4);\n  sub_100278250(v12, 0.0, 0.5);\n  (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v9 + 296LL))(v9, v12);\n  v16 = v16 * 0.5;\n  v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1);\n  sub_100278250(v12, v16, 0.5 * *(float *)(v10 + 4));\n  (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v9 + 184LL))(v9, v12);\n  a7.f32[0] = fminf((float)((float)a2 / 100.0) * v13, v13);\n  sub_100278270((__int64)v12, 0.0, 0.0, a7, (__m128)*((unsigned int *)v9 + 109));\n  (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v9 + 1136LL))(v9, v12);\n  return v9;\n}", "assembly": "; \n; GameToolbox::addProgressBarFill from 0x1004ec270 to 0x1004ec3d1 (353 bytes)\n; \n; 2 xrefs:\n; > PauseLayer::setupSessionProgressBar @ 0x1003c29d7\n; > GameToolbox::createProgressBar @ 0x1004ec255\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:31:22 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004ec270\nmov     rbp, rsp                                                       ; +0x1, 0x1004ec271\npush    r15                                                            ; +0x4, 0x1004ec274\npush    r14                                                            ; +0x6, 0x1004ec276\npush    r12                                                            ; +0x8, 0x1004ec278\npush    rbx                                                            ; +0xa, 0x1004ec27a\nsub     rsp, 20h                                                       ; +0xb, 0x1004ec27b\nmov     r12d, ecx                                                      ; +0xf, 0x1004ec27f\nmov     r14d, esi                                                      ; +0x12, 0x1004ec282\nmov     r15, rdi                                                       ; +0x15, 0x1004ec285\nmov     [rbp+var_28], dx                                               ; +0x18, 0x1004ec288\nshr     edx, 10h                                                       ; +0x1c, 0x1004ec28c\nmov     [rbp+var_26], dl                                               ; +0x1f, 0x1004ec28f\nlea     rdi, aGjProgressbar0; \"GJ_progressBar_001.png\"                 ; +0x22, 0x1004ec292\ncall    cocos2d__CCSprite__create_1                                    ; +0x29, 0x1004ec299\nmov     rbx, rax                                                       ; +0x2e, 0x1004ec29e\nmov     rax, [rax]                                                     ; +0x31, 0x1004ec2a1\nmovss   xmm0, cs:dword_100A092EC                                       ; +0x34, 0x1004ec2a4\nmov     rdi, rbx                                                       ; +0x3c, 0x1004ec2ac\ncall    qword ptr [rax+80h]                                            ; +0x3f, 0x1004ec2af\nmov     rax, [rbx]                                                     ; +0x45, 0x1004ec2b5\nmovss   xmm0, cs:dword_100A092F0                                       ; +0x48, 0x1004ec2b8\nmov     rdi, rbx                                                       ; +0x50, 0x1004ec2c0\ncall    qword ptr [rax+90h]                                            ; +0x53, 0x1004ec2c3\nmov     rax, [rbx]                                                     ; +0x59, 0x1004ec2c9\nlea     rsi, [rbp+var_28]                                              ; +0x5c, 0x1004ec2cc\nmov     rdi, rbx                                                       ; +0x60, 0x1004ec2d0\ncall    qword ptr [rax+3C0h]                                           ; +0x63, 0x1004ec2d3\nmovss   xmm0, dword ptr [rbx+1B0h]                                     ; +0x69, 0x1004ec2d9\nmovss   [rbp+var_2C], xmm0                                             ; +0x71, 0x1004ec2e1\nmovss   xmm1, cs:dword_100A092EC                                       ; +0x76, 0x1004ec2e6\nmulss   xmm1, xmm0                                                     ; +0x7e, 0x1004ec2ee\nsubss   xmm0, xmm1                                                     ; +0x82, 0x1004ec2f2\nmovss   [rbp+var_24], xmm0                                             ; +0x86, 0x1004ec2f6\nmov     rax, [r15]                                                     ; +0x8b, 0x1004ec2fb\nmov     rdi, r15                                                       ; +0x8e, 0x1004ec2fe\nmov     rsi, rbx                                                       ; +0x91, 0x1004ec301\nmov     edx, r12d                                                      ; +0x94, 0x1004ec304\ncall    qword ptr [rax+1D0h]                                           ; +0x97, 0x1004ec307\nlea     r12, [rbp+var_3C]                                              ; +0x9d, 0x1004ec30d\nmovss   xmm1, cs:dword_100A03578                                       ; +0xa1, 0x1004ec311\nxorps   xmm0, xmm0                                                     ; +0xa9, 0x1004ec319\nmov     rdi, r12                                                       ; +0xac, 0x1004ec31c\ncall    sub_100278250                                                  ; +0xaf, 0x1004ec31f\nmov     rax, [rbx]                                                     ; +0xb4, 0x1004ec324\nmov     rdi, rbx                                                       ; +0xb7, 0x1004ec327\nmov     rsi, r12                                                       ; +0xba, 0x1004ec32a\ncall    qword ptr [rax+128h]                                           ; +0xbd, 0x1004ec32d\nmovss   xmm0, [rbp+var_24]                                             ; +0xc3, 0x1004ec333\nmulss   xmm0, cs:dword_100A03578                                       ; +0xc8, 0x1004ec338\nmovss   [rbp+var_24], xmm0                                             ; +0xd0, 0x1004ec340\nmov     rax, [r15]                                                     ; +0xd5, 0x1004ec345\nmov     rdi, r15                                                       ; +0xd8, 0x1004ec348\ncall    qword ptr [rax+148h]                                           ; +0xdb, 0x1004ec34b\nmovss   xmm1, cs:dword_100A03578                                       ; +0xe1, 0x1004ec351\nmulss   xmm1, dword ptr [rax+4]                                        ; +0xe9, 0x1004ec359\nlea     r15, [rbp+var_3C]                                              ; +0xee, 0x1004ec35e\nmov     rdi, r15                                                       ; +0xf2, 0x1004ec362\nmovss   xmm0, [rbp+var_24]                                             ; +0xf5, 0x1004ec365\ncall    sub_100278250                                                  ; +0xfa, 0x1004ec36a\nmov     rax, [rbx]                                                     ; +0xff, 0x1004ec36f\nmov     rdi, rbx                                                       ; +0x102, 0x1004ec372\nmov     rsi, r15                                                       ; +0x105, 0x1004ec375\ncall    qword ptr [rax+0B8h]                                           ; +0x108, 0x1004ec378\ncvtsi2ss xmm2, r14d                                                    ; +0x10e, 0x1004ec37e\ndivss   xmm2, cs:dword_100A03584                                       ; +0x113, 0x1004ec383\nmovss   xmm0, [rbp+var_2C]                                             ; +0x11b, 0x1004ec38b\nmulss   xmm2, xmm0                                                     ; +0x120, 0x1004ec390\nminss   xmm2, xmm0                                                     ; +0x124, 0x1004ec394\nmovss   xmm3, dword ptr [rbx+1B4h]                                     ; +0x128, 0x1004ec398\nlea     r14, [rbp+var_3C]                                              ; +0x130, 0x1004ec3a0\nxorps   xmm0, xmm0                                                     ; +0x134, 0x1004ec3a4\nxorps   xmm1, xmm1                                                     ; +0x137, 0x1004ec3a7\nmov     rdi, r14                                                       ; +0x13a, 0x1004ec3aa\ncall    sub_100278270                                                  ; +0x13d, 0x1004ec3ad\nmov     rax, [rbx]                                                     ; +0x142, 0x1004ec3b2\nmov     rdi, rbx                                                       ; +0x145, 0x1004ec3b5\nmov     rsi, r14                                                       ; +0x148, 0x1004ec3b8\ncall    qword ptr [rax+470h]                                           ; +0x14b, 0x1004ec3bb\nmov     rax, rbx                                                       ; +0x151, 0x1004ec3c1\nadd     rsp, 20h                                                       ; +0x154, 0x1004ec3c4\npop     rbx                                                            ; +0x158, 0x1004ec3c8\npop     r12                                                            ; +0x159, 0x1004ec3c9\npop     r14                                                            ; +0x15b, 0x1004ec3cb\npop     r15                                                            ; +0x15d, 0x1004ec3cd\npop     rbp                                                            ; +0x15f, 0x1004ec3cf\nretn                                                                   ; +0x160, 0x1004ec3d0", "xrefs": ["PauseLayer::setupSessionProgressBar @ 0x1003c29d7", "GameToolbox::createProgressBar @ 0x1004ec255"], "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"}