{"type": "func", "start": 4298178528, "end": 4298178599, "name": "GJShopLayer::onVideoAd", "pseudocode": "// \n// GJShopLayer::onVideoAd from 0x10030ffe0 to 0x100310027 (71 bytes)\n// \n// 0 xrefs:\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 12:28:38 +0000\n// \n\nvoid __fastcall GJShopLayer::onVideoAd(__int64 a1, __int64 a2)\n{\n  __int64 v2; // rdx\n  __int64 v3; // rax\n\n  if ( !*(_BYTE *)(a1 + 504) )\n  {\n    if ( (unsigned __int8)AdToolbox::hasCachedRewardedVideo() )\n    {\n      *(_BYTE *)(a1 + 504) = 1;\n      GameManager::sharedState(a1, a2, v2);\n      *(_QWORD *)(v3 + 1296) = a1 + 424;\n      AdToolbox::showRewardedVideo();\n    }\n  }\n}", "assembly": "; \n; GJShopLayer::onVideoAd from 0x10030ffe0 to 0x100310027 (71 bytes)\n; \n; 0 xrefs:\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 12:28:38 +0000\n; \npush    rbp                                                            ; +0x0, 0x10030ffe0\nmov     rbp, rsp                                                       ; +0x1, 0x10030ffe1\npush    rbx                                                            ; +0x4, 0x10030ffe4\npush    rax                                                            ; +0x5, 0x10030ffe5\ncmp     byte ptr [rdi+1F8h], 0                                         ; +0x6, 0x10030ffe6\njnz     short loc_100310020                                            ; +0xd, 0x10030ffed\nmov     rbx, rdi                                                       ; +0xf, 0x10030ffef\ncall    AdToolbox__hasCachedRewardedVideo                              ; +0x12, 0x10030fff2\ntest    al, al                                                         ; +0x17, 0x10030fff7\njz      short loc_100310020                                            ; +0x19, 0x10030fff9\nmov     byte ptr [rbx+1F8h], 1                                         ; +0x1b, 0x10030fffb\nadd     rbx, 1A8h                                                      ; +0x22, 0x100310002\ncall    GameManager__sharedState                                       ; +0x29, 0x100310009\nmov     [rax+510h], rbx                                                ; +0x2e, 0x10031000e\nadd     rsp, 8                                                         ; +0x35, 0x100310015\npop     rbx                                                            ; +0x39, 0x100310019\npop     rbp                                                            ; +0x3a, 0x10031001a\njmp     AdToolbox__showRewardedVideo                                   ; +0x3b, 0x10031001b\nadd     rsp, 8                                                         ; +0x40, 0x100310020\npop     rbx                                                            ; +0x44, 0x100310024\npop     rbp                                                            ; +0x45, 0x100310025\nretn                                                                   ; +0x46, 0x100310026", "xrefs": [], "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"}