{"type": "func", "start": 5371509824, "end": 5371509923, "name": "GJShopLayer::updateCurrencyCounter", "pseudocode": "// \n// GJShopLayer::updateCurrencyCounter from 0x1402abc40 to 0x1402abca3 (99 bytes)\n// \n// 2 xrefs:\n// > GJShopLayer::rewardedVideoFinished @ 0x1402abbf8\n// > <???> @ 0x1406d2234\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 GJShopLayer::updateCurrencyCounter(GJShopLayer *a1)\n{\n  GameStatsManager *v2; // rcx\n  int Stat; // eax\n  void *v4; // [rsp+30h] [rbp+8h]\n\n  v2 = (GameStatsManager *)qword_1406C2EE8;\n  if ( !qword_1406C2EE8 )\n  {\n    v4 = operator new(0x3E0u);\n    qword_1406C2EE8 = sub_1401D0AE0((__int64)v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);\n    v2 = (GameStatsManager *)qword_1406C2EE8;\n  }\n  Stat = GameStatsManager::getStat(v2, \"14\");\n  CCCounterLabel::setTargetCount(a1->m_currencyLabel, Stat);\n}", "assembly": "; \n; GJShopLayer::updateCurrencyCounter from 0x1402abc40 to 0x1402abca3 (99 bytes)\n; \n; 2 xrefs:\n; > GJShopLayer::rewardedVideoFinished @ 0x1402abbf8\n; > <???> @ 0x1406d2234\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    rbx                                                            ; +0x0, 0x1402abc40\nsub     rsp, 20h                                                       ; +0x2, 0x1402abc42\nmov     rbx, rcx                                                       ; +0x6, 0x1402abc46\nmov     rcx, cs:qword_1406C2EE8                                        ; +0x9, 0x1402abc49\ntest    rcx, rcx                                                       ; +0x10, 0x1402abc50\njnz     short loc_1402ABC84                                            ; +0x13, 0x1402abc53\nmov     ecx, 3E0h; Size                                                ; +0x15, 0x1402abc55\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1402abc5a\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x1402abc5f\nmov     rcx, rax                                                       ; +0x24, 0x1402abc64\ncall    sub_1401D0AE0                                                  ; +0x27, 0x1402abc67\nnop                                                                    ; +0x2c, 0x1402abc6c\nmov     cs:qword_1406C2EE8, rax                                        ; +0x2d, 0x1402abc6d\nmov     rdx, [rax]                                                     ; +0x34, 0x1402abc74\nmov     rcx, rax                                                       ; +0x37, 0x1402abc77\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x1402abc7a\nmov     rcx, cs:qword_1406C2EE8                                        ; +0x3d, 0x1402abc7d\nlea     rdx, a14; \"14\"                                                 ; +0x44, 0x1402abc84\ncall    GameStatsManager__getStat                                      ; +0x4b, 0x1402abc8b\nmov     edx, eax                                                       ; +0x50, 0x1402abc90\nmov     rcx, [rbx+1B8h]                                                ; +0x52, 0x1402abc92\nadd     rsp, 20h                                                       ; +0x59, 0x1402abc99\npop     rbx                                                            ; +0x5d, 0x1402abc9d\njmp     CCCounterLabel__setTargetCount                                 ; +0x5e, 0x1402abc9e", "xrefs": ["GJShopLayer::rewardedVideoFinished @ 0x1402abbf8", "<???> @ 0x1406d2234"], "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"}