{"type": "func", "start": 5372583888, "end": 5372583993, "name": "GJShopLayer::updateCurrencyCounter", "pseudocode": "// \n// GJShopLayer::updateCurrencyCounter from 0x1403b1fd0 to 0x1403b2039 (105 bytes)\n// \n// 2 xrefs:\n// > GJShopLayer::rewardedVideoFinished @ 0x1403b1f81\n// > <???> @ 0x140923bf4\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:31:23 +0000\n// \n\n__int64 __fastcall GJShopLayer::updateCurrencyCounter(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rbx\n  int Stat; // eax\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  v2 = qword_14090BFE0;\n  if ( !qword_14090BFE0 )\n  {\n    v6 = operator new(0x3E8u);\n    qword_14090BFE0 = sub_1402D6480((__int64)v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);\n    v2 = qword_14090BFE0;\n  }\n  v3 = *(_QWORD *)(a1 + 440);\n  Stat = GameStatsManager::getStat(v2, &word_140737D98);\n  return CCCounterLabel::setTargetCount(v3, Stat);\n}", "assembly": "; \n; GJShopLayer::updateCurrencyCounter from 0x1403b1fd0 to 0x1403b2039 (105 bytes)\n; \n; 2 xrefs:\n; > GJShopLayer::rewardedVideoFinished @ 0x1403b1f81\n; > <???> @ 0x140923bf4\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:31:23 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403b1fd0\nsub     rsp, 20h                                                       ; +0x2, 0x1403b1fd2\nmov     rbx, rcx                                                       ; +0x6, 0x1403b1fd6\nmov     rcx, cs:qword_14090BFE0                                        ; +0x9, 0x1403b1fd9\ntest    rcx, rcx                                                       ; +0x10, 0x1403b1fe0\njnz     short loc_1403B2017                                            ; +0x13, 0x1403b1fe3\nmov     ecx, 3E8h; Size                                                ; +0x15, 0x1403b1fe5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1403b1fea\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x1403b1fef\nmov     rcx, rax                                                       ; +0x24, 0x1403b1ff4\ncall    sub_1402D6480                                                  ; +0x27, 0x1403b1ff7\nnop                                                                    ; +0x2c, 0x1403b1ffc\nmov     cs:qword_14090BFE0, rax                                        ; +0x2d, 0x1403b1ffd\nmov     rcx, [rax]                                                     ; +0x34, 0x1403b2004\nmov     rdx, [rcx+48h]                                                 ; +0x37, 0x1403b2007\nmov     rcx, rax                                                       ; +0x3b, 0x1403b200b\ncall    rdx                                                            ; +0x3e, 0x1403b200e\nmov     rcx, cs:qword_14090BFE0                                        ; +0x40, 0x1403b2010\nmov     rbx, [rbx+1B8h]                                                ; +0x47, 0x1403b2017\nlea     rdx, word_140737D98                                            ; +0x4e, 0x1403b201e\ncall    GameStatsManager__getStat                                      ; +0x55, 0x1403b2025\nmov     edx, eax                                                       ; +0x5a, 0x1403b202a\nmov     rcx, rbx                                                       ; +0x5c, 0x1403b202c\nadd     rsp, 20h                                                       ; +0x5f, 0x1403b202f\npop     rbx                                                            ; +0x63, 0x1403b2033\njmp     CCCounterLabel__setTargetCount                                 ; +0x64, 0x1403b2034", "xrefs": ["GJShopLayer::rewardedVideoFinished @ 0x1403b1f81", "<???> @ 0x140923bf4"], "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"}