{"type": "func", "start": 4298262912, "end": 4298262983, "name": "GJShopLayer::onVideoAd", "pseudocode": "// \n// GJShopLayer::onVideoAd from 0x100324980 to 0x1003249c7 (71 bytes)\n// \n// 0 xrefs:\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 __fastcall GJShopLayer::onVideoAd(GJShopLayer *a1, cocos2d::CCObject *a2)\n{\n  if ( !a1->m_videoPlaying && AdToolbox::hasCachedRewardedVideo() )\n  {\n    a1->m_videoPlaying = 1;\n    GameManager::sharedState()->m_rewardedVideoDelegate = &a1->RewardedVideoDelegate;\n    AdToolbox::showRewardedVideo();\n  }\n}", "assembly": "; \n; GJShopLayer::onVideoAd from 0x100324980 to 0x1003249c7 (71 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x100324980\nmov     rbp, rsp                                                       ; +0x1, 0x100324981\npush    rbx                                                            ; +0x4, 0x100324984\npush    rax                                                            ; +0x5, 0x100324985\ncmp     byte ptr [rdi+1F8h], 0                                         ; +0x6, 0x100324986\njnz     short loc_1003249C0                                            ; +0xd, 0x10032498d\nmov     rbx, rdi                                                       ; +0xf, 0x10032498f\ncall    AdToolbox__hasCachedRewardedVideo                              ; +0x12, 0x100324992\ntest    al, al                                                         ; +0x17, 0x100324997\njz      short loc_1003249C0                                            ; +0x19, 0x100324999\nmov     byte ptr [rbx+1F8h], 1                                         ; +0x1b, 0x10032499b\nadd     rbx, 1A8h                                                      ; +0x22, 0x1003249a2\ncall    GameManager__sharedState                                       ; +0x29, 0x1003249a9\nmov     [rax+4A8h], rbx                                                ; +0x2e, 0x1003249ae\nadd     rsp, 8                                                         ; +0x35, 0x1003249b5\npop     rbx                                                            ; +0x39, 0x1003249b9\npop     rbp                                                            ; +0x3a, 0x1003249ba\njmp     AdToolbox__showRewardedVideo                                   ; +0x3b, 0x1003249bb\nadd     rsp, 8                                                         ; +0x40, 0x1003249c0\npop     rbx                                                            ; +0x44, 0x1003249c4\npop     rbp                                                            ; +0x45, 0x1003249c5\nretn                                                                   ; +0x46, 0x1003249c6", "xrefs": [], "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"}