{"type": "func", "start": 5373010880, "end": 5373010977, "name": "GJRateLevelLayer::onToggleCoins", "pseudocode": "// \n// GJRateLevelLayer::onToggleCoins from 0x14041a3c0 to 0x14041a421 (97 bytes)\n// \n// 2 xrefs:\n// > GJRateLevelLayer::init @ 0x14041983b\n// > <???> @ 0x140926630\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:06 +0000\n// \n\n__int64 __fastcall GJRateLevelLayer::onToggleCoins(__int64 a1)\n{\n  char v1; // dl\n  __int16 *v2; // rdx\n  _BYTE v4[3]; // [rsp+30h] [rbp+8h] BYREF\n  __int16 v5; // [rsp+40h] [rbp+18h] BYREF\n  char v6; // [rsp+42h] [rbp+1Ah]\n\n  v1 = *(_BYTE *)(a1 + 1068);\n  *(_BYTE *)(a1 + 1068) = v1 == 0;\n  if ( v1 )\n  {\n    memset(v4, 50, sizeof(v4));\n    v2 = (__int16 *)v4;\n  }\n  else\n  {\n    v2 = &v5;\n    v5 = -1;\n    v6 = -1;\n  }\n  return (**(__int64 (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 1072) + 320LL))(\n           *(_QWORD *)(a1 + 1072) + 320LL,\n           v2);\n}", "assembly": "; \n; GJRateLevelLayer::onToggleCoins from 0x14041a3c0 to 0x14041a421 (97 bytes)\n; \n; 2 xrefs:\n; > GJRateLevelLayer::init @ 0x14041983b\n; > <???> @ 0x140926630\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:06 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x14041a3c0\nmovzx   edx, byte ptr [rcx+42Ch]                                       ; +0x4, 0x14041a3c4\ntest    dl, dl                                                         ; +0xb, 0x14041a3cb\nsetz    al                                                             ; +0xd, 0x14041a3cd\nmov     [rcx+42Ch], al                                                 ; +0x10, 0x14041a3d0\ntest    dl, dl                                                         ; +0x16, 0x14041a3d6\njnz     short loc_14041A3F8                                            ; +0x18, 0x14041a3d8\nmovzx   eax, cs:word_140703B9C                                         ; +0x1a, 0x14041a3da\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x21, 0x14041a3e1\nmov     [rsp+28h+arg_10], ax                                           ; +0x26, 0x14041a3e6\nmovzx   eax, cs:byte_140703B9E                                         ; +0x2b, 0x14041a3eb\nmov     [rsp+28h+arg_12], al                                           ; +0x32, 0x14041a3f2\njmp     short loc_14041A409                                            ; +0x36, 0x14041a3f6\nmov     [rsp+28h+arg_0], 3232h                                         ; +0x38, 0x14041a3f8\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x3f, 0x14041a3ff\nmov     [rsp+28h+arg_2], 32h ; '2'                                     ; +0x44, 0x14041a404\nmov     rcx, [rcx+430h]                                                ; +0x49, 0x14041a409\nadd     rcx, 140h                                                      ; +0x50, 0x14041a410\nmov     rax, [rcx]                                                     ; +0x57, 0x14041a417\ncall    qword ptr [rax]                                                ; +0x5a, 0x14041a41a\nadd     rsp, 28h                                                       ; +0x5c, 0x14041a41c\nretn                                                                   ; +0x60, 0x14041a420", "xrefs": ["GJRateLevelLayer::init @ 0x14041983b", "<???> @ 0x140926630"], "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"}