{"type": "func", "start": 5167320, "end": 5167456, "name": "AdToolbox::hasCachedRewardedVideo", "pseudocode": "// \n// AdToolbox::hasCachedRewardedVideo from 0x4ed8d8 to 0x4ed960 (136 bytes)\n// \n// 7 xrefs:\n// > GameManager::canShowRewardedVideo @ 0x5eb08c\n// > GJGarageLayer::onRewardedVideo @ 0x7904e4\n// > RetryLevelLayer::onRewardedVideo @ 0x7ee758\n// > GauntletSelectLayer::onPlay @ 0x917b6c\n// > GJShopLayer::onVideoAd @ 0x92c208\n// > FollowRewardPage::onRewardedVideo @ 0x9634a4\n// > <???> @ 0x2c070\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 AdToolbox::hasCachedRewardedVideo()\n{\n  int StaticMethodInfo; // w1\n  bool result; // w0\n  __int64 v2[3]; // [xsp+20h] [xbp+20h] BYREF\n\n  StaticMethodInfo = (unsigned __int8)cocos2d::JniHelper::getStaticMethodInfo(\n                                        v2,\n                                        \"com/customRobTop/BaseRobTopActivity\",\n                                        \"hasCachedRewardedVideo\",\n                                        \"()Z\");\n  result = 0;\n  if ( StaticMethodInfo )\n    return (unsigned __int8)_JNIEnv::CallStaticBooleanMethod(v2[0], v2[1], v2[2]) != 0;\n  return result;\n}", "assembly": "; \n; AdToolbox::hasCachedRewardedVideo from 0x4ed8d8 to 0x4ed960 (136 bytes)\n; \n; 7 xrefs:\n; > GameManager::canShowRewardedVideo @ 0x5eb08c\n; > GJGarageLayer::onRewardedVideo @ 0x7904e4\n; > RetryLevelLayer::onRewardedVideo @ 0x7ee758\n; > GauntletSelectLayer::onPlay @ 0x917b6c\n; > GJShopLayer::onVideoAd @ 0x92c208\n; > FollowRewardPage::onRewardedVideo @ 0x9634a4\n; > <???> @ 0x2c070\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x4ed8d8\nADRP            X1, #aComCustomrobto@PAGE; \"com/customRobTop/BaseRobTopActivity\" ; +0x4, 0x4ed8dc\nADRP            X2, #aHascachedrewar@PAGE; \"hasCachedRewardedVideo\"    ; +0x8, 0x4ed8e0\nMOV             X29, SP                                                ; +0xc, 0x4ed8e4\nSTR             X19, [SP,#0x40+var_30]                                 ; +0x10, 0x4ed8e8\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0x4ed8ec\nADRP            X3, #aZ@PAGE; \"()Z\"                                    ; +0x18, 0x4ed8f0\nADD             X1, X1, #aComCustomrobto@PAGEOFF; \"com/customRobTop/BaseRobTopActivity\" ; +0x1c, 0x4ed8f4\nADD             X0, X29, #0x40+var_20                                  ; +0x20, 0x4ed8f8\nADD             X2, X2, #aHascachedrewar@PAGEOFF; \"hasCachedRewardedVideo\" ; +0x24, 0x4ed8fc\nLDR             X4, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x4ed900\nADD             X3, X3, #aZ@PAGEOFF; \"()Z\"                             ; +0x2c, 0x4ed904\nLDR             X4, [X4]                                               ; +0x30, 0x4ed908\nSTR             X4, [X29,#0x40+var_8]                                  ; +0x34, 0x4ed90c\nBL              _ZN7cocos2d9JniHelper19getStaticMethodInfoERNS_14JniMethodInfo_EPKcS4_S4_; cocos2d::JniHelper::getStaticMethodInfo(cocos2d::JniMethodInfo_ &,char const*,char const*,char const*) ; +0x38, 0x4ed910\nUXTB            W1, W0                                                 ; +0x3c, 0x4ed914\nMOV             W0, #0                                                 ; +0x40, 0x4ed918\nCBZ             W1, loc_4ED93C                                         ; +0x44, 0x4ed91c\nLDR             X0, [X29,#0x40+var_20]                                 ; +0x48, 0x4ed920\nLDR             X1, [X29,#0x40+var_18]                                 ; +0x4c, 0x4ed924\nLDR             X2, [X29,#0x40+var_10]                                 ; +0x50, 0x4ed928\nBL              _ZN7_JNIEnv23CallStaticBooleanMethodEP7_jclassP10_jmethodIDz; _JNIEnv::CallStaticBooleanMethod(_jclass *,_jmethodID *,...) ; +0x54, 0x4ed92c\nUXTB            W0, W0                                                 ; +0x58, 0x4ed930\nCMP             W0, WZR                                                ; +0x5c, 0x4ed934\nCSET            W0, NE                                                 ; +0x60, 0x4ed938\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x64, 0x4ed93c\nLDR             X2, [X29,#0x40+var_8]                                  ; +0x68, 0x4ed940\nLDR             X1, [X19]                                              ; +0x6c, 0x4ed944\nCMP             X2, X1                                                 ; +0x70, 0x4ed948\nB.NE            loc_4ED95C                                             ; +0x74, 0x4ed94c\nLDR             X19, [SP,#0x40+var_30]                                 ; +0x78, 0x4ed950\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x7c, 0x4ed954\nRET                                                                    ; +0x80, 0x4ed958\nBL              .__stack_chk_fail                                      ; +0x84, 0x4ed95c", "xrefs": ["GameManager::canShowRewardedVideo @ 0x5eb08c", "GJGarageLayer::onRewardedVideo @ 0x7904e4", "RetryLevelLayer::onRewardedVideo @ 0x7ee758", "GauntletSelectLayer::onPlay @ 0x917b6c", "GJShopLayer::onVideoAd @ 0x92c208", "FollowRewardPage::onRewardedVideo @ 0x9634a4", "<???> @ 0x2c070"], "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"}