{"type": "func", "start": 4298542864, "end": 4298543171, "name": "GJGarageLayer::dGJGarageLayer", "pseudocode": "// \n// GJGarageLayer::dGJGarageLayer from 0x100368f10 to 0x100369043 (307 bytes)\n// \n// 4 xrefs:\n// > sub_100369050 @ 0x100369055\n// > sub_100369060 @ 0x10036906c\n// > sub_100369080 @ 0x100369089\n// > sub_1003690A0 @ 0x1003690b3\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\n__int64 __fastcall GJGarageLayer::dGJGarageLayer(RewardedVideoDelegate *a1)\n{\n  cocos2d::CCObject *v2; // rdi\n  cocos2d::CCObject *v3; // rdi\n\n  a1->__vftable = (RewardedVideoDelegate_vtbl *)off_10091B678;\n  a1[40].__vftable = (RewardedVideoDelegate_vtbl *)off_10091BB48;\n  a1[41].__vftable = (RewardedVideoDelegate_vtbl *)&off_10091BBB8;\n  a1[42].__vftable = (RewardedVideoDelegate_vtbl *)off_10091BBD0;\n  a1[43].__vftable = (RewardedVideoDelegate_vtbl *)off_10091BBF0;\n  a1[44].__vftable = (RewardedVideoDelegate_vtbl *)off_10091BC10;\n  a1[51].__vftable = (RewardedVideoDelegate_vtbl *)off_10091BC38;\n  a1[52].__vftable = (RewardedVideoDelegate_vtbl *)&off_10091BC80;\n  a1[53].__vftable = (RewardedVideoDelegate_vtbl *)&off_10091BC98;\n  a1[54].__vftable = (RewardedVideoDelegate_vtbl *)&off_10091BCB0;\n  a1[55].__vftable = (RewardedVideoDelegate_vtbl *)&off_10091BCC8;\n  a1[56].__vftable = (RewardedVideoDelegate_vtbl *)off_10091BCE0;\n  a1[57].__vftable = (RewardedVideoDelegate_vtbl *)off_10091BD00;\n  GameManager::sharedState()->m_gameRateDelegate1 = nullptr;\n  v2 = (cocos2d::CCObject *)a1[60].__vftable;\n  if ( v2 )\n    cocos2d::CCObject::release(v2);\n  v3 = (cocos2d::CCObject *)a1[61].__vftable;\n  if ( v3 )\n    cocos2d::CCObject::release(v3);\n  if ( GameManager::sharedState()->m_rewardedVideoDelegate == &a1[57] )\n    GameManager::sharedState()->m_rewardedVideoDelegate = nullptr;\n  sub_100054D90((__int64)&a1[65], &a1[66].rewardedVideoFinished);\n  return cocos2d::CCLayer::dCCLayer(a1);\n}", "assembly": "; \n; GJGarageLayer::dGJGarageLayer from 0x100368f10 to 0x100369043 (307 bytes)\n; \n; 4 xrefs:\n; > sub_100369050 @ 0x100369055\n; > sub_100369060 @ 0x10036906c\n; > sub_100369080 @ 0x100369089\n; > sub_1003690A0 @ 0x1003690b3\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, 0x100368f10\nmov     rbp, rsp                                                       ; +0x1, 0x100368f11\npush    rbx                                                            ; +0x4, 0x100368f14\npush    rax                                                            ; +0x5, 0x100368f15\nmov     rbx, rdi                                                       ; +0x6, 0x100368f16\nlea     rax, off_10091B678                                             ; +0x9, 0x100368f19\nmov     [rdi], rax                                                     ; +0x10, 0x100368f20\nlea     rax, off_10091BB48                                             ; +0x13, 0x100368f23\nmov     [rdi+140h], rax                                                ; +0x1a, 0x100368f2a\nlea     rax, off_10091BBB8                                             ; +0x21, 0x100368f31\nmov     [rdi+148h], rax                                                ; +0x28, 0x100368f38\nlea     rax, off_10091BBD0                                             ; +0x2f, 0x100368f3f\nmov     [rdi+150h], rax                                                ; +0x36, 0x100368f46\nlea     rax, off_10091BBF0                                             ; +0x3d, 0x100368f4d\nmov     [rdi+158h], rax                                                ; +0x44, 0x100368f54\nlea     rax, off_10091BC10                                             ; +0x4b, 0x100368f5b\nmov     [rdi+160h], rax                                                ; +0x52, 0x100368f62\nlea     rax, off_10091BC38                                             ; +0x59, 0x100368f69\nmov     [rdi+198h], rax                                                ; +0x60, 0x100368f70\nlea     rax, off_10091BC80                                             ; +0x67, 0x100368f77\nmov     [rdi+1A0h], rax                                                ; +0x6e, 0x100368f7e\nlea     rax, off_10091BC98                                             ; +0x75, 0x100368f85\nmov     [rdi+1A8h], rax                                                ; +0x7c, 0x100368f8c\nlea     rax, off_10091BCB0                                             ; +0x83, 0x100368f93\nmov     [rdi+1B0h], rax                                                ; +0x8a, 0x100368f9a\nlea     rax, off_10091BCC8                                             ; +0x91, 0x100368fa1\nmov     [rdi+1B8h], rax                                                ; +0x98, 0x100368fa8\nlea     rax, off_10091BCE0                                             ; +0x9f, 0x100368faf\nmov     [rdi+1C0h], rax                                                ; +0xa6, 0x100368fb6\nlea     rax, off_10091BD00                                             ; +0xad, 0x100368fbd\nmov     [rdi+1C8h], rax                                                ; +0xb4, 0x100368fc4\ncall    GameManager__sharedState                                       ; +0xbb, 0x100368fcb\nmov     qword ptr [rax+380h], 0                                        ; +0xc0, 0x100368fd0\nmov     rdi, [rbx+1E0h]                                                ; +0xcb, 0x100368fdb\ntest    rdi, rdi                                                       ; +0xd2, 0x100368fe2\njz      short loc_100368FEC                                            ; +0xd5, 0x100368fe5\ncall    cocos2d__CCObject__release                                     ; +0xd7, 0x100368fe7\nmov     rdi, [rbx+1E8h]                                                ; +0xdc, 0x100368fec\ntest    rdi, rdi                                                       ; +0xe3, 0x100368ff3\njz      short loc_100368FFD                                            ; +0xe6, 0x100368ff6\ncall    cocos2d__CCObject__release                                     ; +0xe8, 0x100368ff8\ncall    GameManager__sharedState                                       ; +0xed, 0x100368ffd\nlea     rcx, [rbx+1C8h]                                                ; +0xf2, 0x100369002\ncmp     [rax+4A8h], rcx                                                ; +0xf9, 0x100369009\njnz     short loc_100369022                                            ; +0x100, 0x100369010\ncall    GameManager__sharedState                                       ; +0x102, 0x100369012\nmov     qword ptr [rax+4A8h], 0                                        ; +0x107, 0x100369017\nlea     rdi, [rbx+208h]                                                ; +0x112, 0x100369022\nmov     rsi, [rbx+210h]                                                ; +0x119, 0x100369029\ncall    sub_100054D90                                                  ; +0x120, 0x100369030\nmov     rdi, rbx                                                       ; +0x125, 0x100369035\nadd     rsp, 8                                                         ; +0x128, 0x100369038\npop     rbx                                                            ; +0x12c, 0x10036903c\npop     rbp                                                            ; +0x12d, 0x10036903d\njmp     cocos2d__CCLayer__dCCLayer                                     ; +0x12e, 0x10036903e", "xrefs": ["sub_100369050 @ 0x100369055", "sub_100369060 @ 0x10036906c", "sub_100369080 @ 0x100369089", "sub_1003690A0 @ 0x1003690b3"], "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"}