{"type": "func", "start": 5369164656, "end": 5369165017, "name": "GameToolbox::addProgressBarFill", "pseudocode": "// \n// GameToolbox::addProgressBarFill from 0x14006f370 to 0x14006f4d9 (361 bytes)\n// \n// 3 xrefs:\n// > GameToolbox::createProgressBar @ 0x14006f33f\n// > PauseLayer::setupSessionProgressBar @ 0x1404d9fb8\n// > <???> @ 0x140911768\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:25:49 +0000\n// \n\nstruct cocos2d::CCSprite *__fastcall GameToolbox::addProgressBarFill(__int64 a1, int a2, __int64 a3, unsigned int a4)\n{\n  struct cocos2d::CCSprite *v8; // r14\n  float v9; // xmm8_4\n  __int64 v10; // rbx\n  __int64 v11; // rax\n  __int64 v12; // rbx\n  __int64 v13; // rax\n  __int64 v14; // rax\n  void (__fastcall *v15)(struct cocos2d::CCSprite *, __int64); // rbx\n  __int64 v16; // rax\n  _BYTE v18[16]; // [rsp+30h] [rbp-38h] BYREF\n  char v19; // [rsp+70h] [rbp+8h] BYREF\n\n  v8 = cocos2d::CCSprite::create(\"GJ_progressBar_001.png\");\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v8 + 120LL))(v8);\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v8 + 136LL))(v8);\n  (**((void (__fastcall ***)(__int64, __int64))v8 + 40))((__int64)v8 + 320, a3);\n  v9 = *((float *)v8 + 108);\n  (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, _QWORD))(*(_QWORD *)a1 + 456LL))(a1, v8, a4);\n  v10 = *(_QWORD *)v8;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, 0.0, 0.5);\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v10 + 288))(v8, v11);\n  v12 = *(_QWORD *)v8;\n  v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1);\n  cocos2d::CCPoint::CCPoint(\n    (cocos2d::CCPoint *)&v19,\n    (float)(v9 - (float)(v9 * 0.99199998)) * 0.5,\n    *(float *)(v13 + 4) * 0.5);\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v12 + 184))(v8, v14);\n  v15 = *(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v8 + 992LL);\n  v16 = cocos2d::CCRect::CCRect(\n          (cocos2d::CCRect *)v18,\n          0.0,\n          0.0,\n          fminf(v9, (float)((float)a2 / 100.0) * v9),\n          *((float *)v8 + 109));\n  v15(v8, v16);\n  return v8;\n}", "assembly": "; \n; GameToolbox::addProgressBarFill from 0x14006f370 to 0x14006f4d9 (361 bytes)\n; \n; 3 xrefs:\n; > GameToolbox::createProgressBar @ 0x14006f33f\n; > PauseLayer::setupSessionProgressBar @ 0x1404d9fb8\n; > <???> @ 0x140911768\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:25:49 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14006f370\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14006f375\npush    rsi                                                            ; +0xa, 0x14006f37a\npush    rdi                                                            ; +0xb, 0x14006f37b\npush    r14                                                            ; +0xc, 0x14006f37c\nsub     rsp, 50h                                                       ; +0xe, 0x14006f37e\nmov     rsi, rcx                                                       ; +0x12, 0x14006f382\nmovaps  [rsp+68h+var_28], xmm8                                         ; +0x15, 0x14006f385\nlea     rcx, aGjProgressbar0; \"GJ_progressBar_001.png\"                 ; +0x1b, 0x14006f38b\nmov     edi, r9d                                                       ; +0x22, 0x14006f392\nmov     rbx, r8                                                        ; +0x25, 0x14006f395\nmov     ebp, edx                                                       ; +0x28, 0x14006f398\ncall    cs:?create@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::create(char const *) ; +0x2a, 0x14006f39a\nmovss   xmm1, cs:dword_140835078                                       ; +0x30, 0x14006f3a0\nmov     rcx, rax                                                       ; +0x38, 0x14006f3a8\nmov     r14, rax                                                       ; +0x3b, 0x14006f3ab\nmov     r10, [rax]                                                     ; +0x3e, 0x14006f3ae\ncall    qword ptr [r10+78h]                                            ; +0x41, 0x14006f3b1\nmov     r10, [r14]                                                     ; +0x45, 0x14006f3b5\nmov     rcx, r14                                                       ; +0x48, 0x14006f3b8\nmovss   xmm1, cs:dword_14083501C                                       ; +0x4b, 0x14006f3bb\ncall    qword ptr [r10+88h]                                            ; +0x53, 0x14006f3c3\nlea     rcx, [r14+140h]                                                ; +0x5a, 0x14006f3ca\nmov     rdx, [rcx]                                                     ; +0x61, 0x14006f3d1\nmov     rax, [rdx]                                                     ; +0x64, 0x14006f3d4\nmov     rdx, rbx                                                       ; +0x67, 0x14006f3d7\ncall    rax                                                            ; +0x6a, 0x14006f3da\nmov     rax, [rsi]                                                     ; +0x6c, 0x14006f3dc\nmov     r8d, edi                                                       ; +0x6f, 0x14006f3df\nmovss   xmm8, dword ptr [r14+1B0h]                                     ; +0x72, 0x14006f3e2\nmov     rdx, r14                                                       ; +0x7b, 0x14006f3eb\nmov     rcx, rsi                                                       ; +0x7e, 0x14006f3ee\ncall    qword ptr [rax+1C8h]                                           ; +0x81, 0x14006f3f1\nmovss   xmm2, cs:dword_140834F20                                       ; +0x87, 0x14006f3f7\nlea     rcx, [rsp+68h+arg_0]                                           ; +0x8f, 0x14006f3ff\nmov     rbx, [r14]                                                     ; +0x94, 0x14006f404\nxorps   xmm1, xmm1                                                     ; +0x97, 0x14006f407\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x9a, 0x14006f40a\nmov     rdx, rax                                                       ; +0xa0, 0x14006f410\nmov     rcx, r14                                                       ; +0xa3, 0x14006f413\ncall    qword ptr [rbx+120h]                                           ; +0xa6, 0x14006f416\nmov     rax, [rsi]                                                     ; +0xac, 0x14006f41c\nmov     rcx, rsi                                                       ; +0xaf, 0x14006f41f\nmov     rbx, [r14]                                                     ; +0xb2, 0x14006f422\ncall    qword ptr [rax+140h]                                           ; +0xb5, 0x14006f425\nmovaps  xmm0, xmm8                                                     ; +0xbb, 0x14006f42b\nlea     rcx, [rsp+68h+arg_0]                                           ; +0xbf, 0x14006f42f\nmulss   xmm0, cs:dword_140835078                                       ; +0xc4, 0x14006f434\nmovaps  xmm1, xmm8                                                     ; +0xcc, 0x14006f43c\nmovss   xmm2, dword ptr [rax+4]                                        ; +0xd0, 0x14006f440\nmulss   xmm2, cs:dword_140834F20                                       ; +0xd5, 0x14006f445\nsubss   xmm1, xmm0                                                     ; +0xdd, 0x14006f44d\nmulss   xmm1, cs:dword_140834F20                                       ; +0xe1, 0x14006f451\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xe9, 0x14006f459\nmov     rdx, rax                                                       ; +0xef, 0x14006f45f\nmov     rcx, r14                                                       ; +0xf2, 0x14006f462\ncall    qword ptr [rbx+0B8h]                                           ; +0xf5, 0x14006f465\nmov     rax, [r14]                                                     ; +0xfb, 0x14006f46b\nlea     rcx, [rsp+68h+var_38]                                          ; +0xfe, 0x14006f46e\nmovd    xmm0, ebp                                                      ; +0x103, 0x14006f473\nxorps   xmm2, xmm2                                                     ; +0x107, 0x14006f477\ncvtdq2ps xmm0, xmm0                                                    ; +0x10a, 0x14006f47a\nmov     rbx, [rax+3E0h]                                                ; +0x10d, 0x14006f47d\nxorps   xmm1, xmm1                                                     ; +0x114, 0x14006f484\ndivss   xmm0, cs:dword_1408357B0                                       ; +0x117, 0x14006f487\nmulss   xmm0, xmm8                                                     ; +0x11f, 0x14006f48f\nminss   xmm8, xmm0                                                     ; +0x124, 0x14006f494\nmovss   xmm0, dword ptr [r14+1B4h]                                     ; +0x129, 0x14006f499\nmovss   [rsp+68h+var_48], xmm0                                         ; +0x132, 0x14006f4a2\nmovaps  xmm3, xmm8                                                     ; +0x138, 0x14006f4a8\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x13c, 0x14006f4ac\nmov     rdx, rax                                                       ; +0x142, 0x14006f4b2\nmov     rcx, r14                                                       ; +0x145, 0x14006f4b5\ncall    rbx                                                            ; +0x148, 0x14006f4b8\nmov     rbx, [rsp+68h+arg_8]                                           ; +0x14a, 0x14006f4ba\nmov     rax, r14                                                       ; +0x14f, 0x14006f4bf\nmov     rbp, [rsp+68h+arg_10]                                          ; +0x152, 0x14006f4c2\nmovaps  xmm8, [rsp+68h+var_28]                                         ; +0x15a, 0x14006f4ca\nadd     rsp, 50h                                                       ; +0x160, 0x14006f4d0\npop     r14                                                            ; +0x164, 0x14006f4d4\npop     rdi                                                            ; +0x166, 0x14006f4d6\npop     rsi                                                            ; +0x167, 0x14006f4d7\nretn                                                                   ; +0x168, 0x14006f4d8", "xrefs": ["GameToolbox::createProgressBar @ 0x14006f33f", "PauseLayer::setupSessionProgressBar @ 0x1404d9fb8", "<???> @ 0x140911768"], "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"}