{"type": "func", "start": 4298638080, "end": 4298638160, "name": "GameManager::canShowRewardedVideo", "pseudocode": "// \n// GameManager::canShowRewardedVideo from 0x100380300 to 0x100380350 (80 bytes)\n// \n// 3 xrefs:\n// > GJGarageLayer::onRewardedVideo @ 0x10036c393\n// > FollowRewardPage::onRewardedVideo @ 0x100421433\n// > RetryLevelLayer::onRewardedVideo @ 0x1004f9333\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\nbool __fastcall GameManager::canShowRewardedVideo(GameManager *a1)\n{\n  double v1; // xmm0_8\n  GameStatsManager *v2; // rax\n  bool v3; // bl\n  _BYTE v5[8]; // [rsp+0h] [rbp-20h] BYREF\n  __int64 v6; // [rsp+8h] [rbp-18h]\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  if ( !AdToolbox::hasCachedRewardedVideo() )\n    return 0;\n  v2 = GameStatsManager::sharedState();\n  GameStatsManager::getNextVideoAdReward((__int64)v5, (__int64)v2, v1);\n  if ( (v5[0] & 1) == 0 )\n    return v5[0] != 0;\n  v3 = v6 != 0;\n  operator delete(__p);\n  return v3;\n}", "assembly": "; \n; GameManager::canShowRewardedVideo from 0x100380300 to 0x100380350 (80 bytes)\n; \n; 3 xrefs:\n; > GJGarageLayer::onRewardedVideo @ 0x10036c393\n; > FollowRewardPage::onRewardedVideo @ 0x100421433\n; > RetryLevelLayer::onRewardedVideo @ 0x1004f9333\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, 0x100380300\nmov     rbp, rsp                                                       ; +0x1, 0x100380301\npush    rbx                                                            ; +0x4, 0x100380304\nsub     rsp, 18h                                                       ; +0x5, 0x100380305\ncall    AdToolbox__hasCachedRewardedVideo                              ; +0x9, 0x100380309\ntest    al, al                                                         ; +0xe, 0x10038030e\njz      short loc_100380332                                            ; +0x10, 0x100380310\ncall    GameStatsManager__sharedState                                  ; +0x12, 0x100380312\nlea     rdi, [rbp+var_20]                                              ; +0x17, 0x100380317\nmov     rsi, rax                                                       ; +0x1b, 0x10038031b\ncall    GameStatsManager__getNextVideoAdReward                         ; +0x1e, 0x10038031e\nmovzx   eax, [rbp+var_20]                                              ; +0x23, 0x100380323\ntest    al, 1                                                          ; +0x27, 0x100380327\njnz     short loc_100380336                                            ; +0x29, 0x100380329\ntest    al, al                                                         ; +0x2b, 0x10038032b\nsetnz   bl                                                             ; +0x2d, 0x10038032d\njmp     short loc_100380347                                            ; +0x30, 0x100380330\nxor     ebx, ebx                                                       ; +0x32, 0x100380332\njmp     short loc_100380347                                            ; +0x34, 0x100380334\ncmp     [rbp+var_18], 0                                                ; +0x36, 0x100380336\nsetnz   bl                                                             ; +0x3b, 0x10038033b\nmov     rdi, [rbp+__p]; __p                                            ; +0x3e, 0x10038033e\ncall    __ZdlPv; operator delete(void *)                               ; +0x42, 0x100380342\nmov     eax, ebx                                                       ; +0x47, 0x100380347\nadd     rsp, 18h                                                       ; +0x49, 0x100380349\npop     rbx                                                            ; +0x4d, 0x10038034d\npop     rbp                                                            ; +0x4e, 0x10038034e\nretn                                                                   ; +0x4f, 0x10038034f", "xrefs": ["GJGarageLayer::onRewardedVideo @ 0x10036c393", "FollowRewardPage::onRewardedVideo @ 0x100421433", "RetryLevelLayer::onRewardedVideo @ 0x1004f9333"], "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"}