{"type": "func", "start": 5373033472, "end": 5373033806, "name": "LevelInfoLayer::addProgressBar", "pseudocode": "// \n// LevelInfoLayer::addProgressBar from 0x14041fc00 to 0x14041fd4e (334 bytes)\n// \n// 4 xrefs:\n// > LevelInfoLayer::setupPlatformerStats @ 0x14041f4c1\n// > LevelInfoLayer::setupProgressBars @ 0x14041f9ed\n// > LevelInfoLayer::setupProgressBars @ 0x14041fb7a\n// > <???> @ 0x1409267c8\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:32:09 +0000\n// \n\nstruct cocos2d::CCSprite *__fastcall LevelInfoLayer::addProgressBar(\n        __int64 a1,\n        __int64 a2,\n        unsigned int a3,\n        __int64 a4,\n        const char *a5,\n        const char *a6)\n{\n  struct cocos2d::CCSprite *v8; // rsi\n  struct cocos2d::CCLabelBMFont *v9; // rbx\n  struct cocos2d::CCLabelBMFont *v10; // rbx\n  __int64 v11; // rax\n  __int16 v13; // [rsp+40h] [rbp+8h] BYREF\n  char v14; // [rsp+42h] [rbp+Ah]\n  char v15; // [rsp+58h] [rbp+20h] BYREF\n\n  v13 = *(_WORD *)a4;\n  v14 = *(_BYTE *)(a4 + 2);\n  v8 = GameToolbox::createProgressBar(a1, a3, &v13);\n  (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v8, 3);\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v8 + 184LL))(v8, a2);\n  v9 = cocos2d::CCLabelBMFont::create(a6, (const char *)&qword_140704F78);\n  (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v9, 4);\n  (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v9 + 184LL))(v9, a2);\n  (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v9 + 160LL))(v9);\n  v10 = cocos2d::CCLabelBMFont::create(a5, (const char *)&qword_140704F78);\n  (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v10, 4);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 0.0, 15.0);\n  cocos2d::CCPoint::operator+(a2, &v13, v11);\n  (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int16 *))(*(_QWORD *)v10 + 184LL))(v10, &v13);\n  (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v10 + 160LL))(v10);\n  return v8;\n}", "assembly": "; \n; LevelInfoLayer::addProgressBar from 0x14041fc00 to 0x14041fd4e (334 bytes)\n; \n; 4 xrefs:\n; > LevelInfoLayer::setupPlatformerStats @ 0x14041f4c1\n; > LevelInfoLayer::setupProgressBars @ 0x14041f9ed\n; > LevelInfoLayer::setupProgressBars @ 0x14041fb7a\n; > <???> @ 0x1409267c8\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:32:09 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14041fc00\npush    rbp                                                            ; +0x5, 0x14041fc05\npush    rsi                                                            ; +0x6, 0x14041fc06\npush    rdi                                                            ; +0x7, 0x14041fc07\nsub     rsp, 20h                                                       ; +0x8, 0x14041fc08\nmovzx   eax, word ptr [r9]                                             ; +0xc, 0x14041fc0c\nmov     r10d, r8d                                                      ; +0x10, 0x14041fc10\nmovss   xmm0, cs:dword_140834FAC                                       ; +0x13, 0x14041fc13\nlea     r8, [rsp+38h+arg_0]                                            ; +0x1b, 0x14041fc1b\nmov     [rsp+38h+arg_0], ax                                            ; +0x20, 0x14041fc20\nmov     rbp, rdx                                                       ; +0x25, 0x14041fc25\nmovzx   eax, byte ptr [r9+2]                                           ; +0x28, 0x14041fc28\nmov     edx, r10d                                                      ; +0x2d, 0x14041fc2d\nmov     [rsp+38h+arg_2], al                                            ; +0x30, 0x14041fc30\nmov     rdi, rcx                                                       ; +0x34, 0x14041fc34\ncall    GameToolbox__createProgressBar                                 ; +0x37, 0x14041fc37\nmov     r8, [rdi]                                                      ; +0x3c, 0x14041fc3c\nmov     rdx, rax                                                       ; +0x3f, 0x14041fc3f\nmov     rcx, rdi                                                       ; +0x42, 0x14041fc42\nmov     rsi, rax                                                       ; +0x45, 0x14041fc45\nmov     r9, [r8+1C8h]                                                  ; +0x48, 0x14041fc48\nmov     r8d, 3                                                         ; +0x4f, 0x14041fc4f\ncall    r9                                                             ; +0x55, 0x14041fc55\nmov     rcx, [rsi]                                                     ; +0x58, 0x14041fc58\nmov     rdx, rbp                                                       ; +0x5b, 0x14041fc5b\nmov     r8, [rcx+0B8h]                                                 ; +0x5e, 0x14041fc5e\nmov     rcx, rsi                                                       ; +0x65, 0x14041fc65\ncall    r8                                                             ; +0x68, 0x14041fc68\nmov     rcx, [rsp+38h+arg_28]                                          ; +0x6b, 0x14041fc6b\nlea     rdx, qword_140704F78                                           ; +0x70, 0x14041fc70\ncall    cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x77, 0x14041fc77\nmov     rcx, [rdi]                                                     ; +0x7d, 0x14041fc7d\nmov     r8d, 4                                                         ; +0x80, 0x14041fc80\nmov     rdx, rax                                                       ; +0x86, 0x14041fc86\nmov     rbx, rax                                                       ; +0x89, 0x14041fc89\nmov     r9, [rcx+1C8h]                                                 ; +0x8c, 0x14041fc8c\nmov     rcx, rdi                                                       ; +0x93, 0x14041fc93\ncall    r9                                                             ; +0x96, 0x14041fc96\nmov     rcx, [rbx]                                                     ; +0x99, 0x14041fc99\nmov     rdx, rbp                                                       ; +0x9c, 0x14041fc9c\nmov     r9, [rcx+0B8h]                                                 ; +0x9f, 0x14041fc9f\nmov     rcx, rbx                                                       ; +0xa6, 0x14041fca6\ncall    r9                                                             ; +0xa9, 0x14041fca9\nmov     rcx, [rbx]                                                     ; +0xac, 0x14041fcac\nmovss   xmm1, cs:dword_140834EDC                                       ; +0xaf, 0x14041fcaf\nmov     r9, [rcx+0A0h]                                                 ; +0xb7, 0x14041fcb7\nmov     rcx, rbx                                                       ; +0xbe, 0x14041fcbe\ncall    r9                                                             ; +0xc1, 0x14041fcc1\nmov     rcx, [rsp+38h+arg_20]                                          ; +0xc4, 0x14041fcc4\nlea     rdx, qword_140704F78                                           ; +0xc9, 0x14041fcc9\ncall    cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0xd0, 0x14041fcd0\nmov     rcx, [rdi]                                                     ; +0xd6, 0x14041fcd6\nmov     r8d, 4                                                         ; +0xd9, 0x14041fcd9\nmov     rdx, rax                                                       ; +0xdf, 0x14041fcdf\nmov     rbx, rax                                                       ; +0xe2, 0x14041fce2\nmov     r9, [rcx+1C8h]                                                 ; +0xe5, 0x14041fce5\nmov     rcx, rdi                                                       ; +0xec, 0x14041fcec\ncall    r9                                                             ; +0xef, 0x14041fcef\nmovss   xmm2, cs:dword_14083555C                                       ; +0xf2, 0x14041fcf2\nlea     rcx, [rsp+38h+arg_18]                                          ; +0xfa, 0x14041fcfa\nxorps   xmm1, xmm1                                                     ; +0xff, 0x14041fcff\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x102, 0x14041fd02\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x108, 0x14041fd08\nmov     rcx, rbp                                                       ; +0x10d, 0x14041fd0d\nmov     r8, rax                                                        ; +0x110, 0x14041fd10\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x113, 0x14041fd13\nmov     rax, [rbx]                                                     ; +0x119, 0x14041fd19\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x11c, 0x14041fd1c\nmov     rcx, rbx                                                       ; +0x121, 0x14041fd21\ncall    qword ptr [rax+0B8h]                                           ; +0x124, 0x14041fd24\nmov     rax, [rbx]                                                     ; +0x12a, 0x14041fd2a\nmov     rcx, rbx                                                       ; +0x12d, 0x14041fd2d\nmovss   xmm1, cs:dword_140834EDC                                       ; +0x130, 0x14041fd30\ncall    qword ptr [rax+0A0h]                                           ; +0x138, 0x14041fd38\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x13e, 0x14041fd3e\nmov     rax, rsi                                                       ; +0x143, 0x14041fd43\nadd     rsp, 20h                                                       ; +0x146, 0x14041fd46\npop     rdi                                                            ; +0x14a, 0x14041fd4a\npop     rsi                                                            ; +0x14b, 0x14041fd4b\npop     rbp                                                            ; +0x14c, 0x14041fd4c\nretn                                                                   ; +0x14d, 0x14041fd4d", "xrefs": ["LevelInfoLayer::setupPlatformerStats @ 0x14041f4c1", "LevelInfoLayer::setupProgressBars @ 0x14041f9ed", "LevelInfoLayer::setupProgressBars @ 0x14041fb7a", "<???> @ 0x1409267c8"], "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"}