{"type": "func", "start": 4298119572, "end": 4298119764, "name": "GJGarageLayer::dGJGarageLayer", "pseudocode": "// \n// GJGarageLayer::dGJGarageLayer from 0x100301994 to 0x100301a54 (192 bytes)\n// \n// 4 xrefs:\n// > j_GJGarageLayer::dGJGarageLayer @ 0x100301a58\n// > sub_100301A5C @ 0x100301a60\n// > sub_100301A64 @ 0x100301a6c\n// > sub_100301A78 @ 0x100301a84\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; // x0\n  cocos2d::CCObject *v3; // x0\n\n  a1->__vftable = (RewardedVideoDelegate_vtbl *)off_1007EBBB0;\n  a1[40].__vftable = (RewardedVideoDelegate_vtbl *)off_1007EC080;\n  a1[41].__vftable = (RewardedVideoDelegate_vtbl *)&off_1007EC0F0;\n  a1[42].__vftable = (RewardedVideoDelegate_vtbl *)off_1007EC108;\n  a1[43].__vftable = (RewardedVideoDelegate_vtbl *)&off_1007EC128;\n  a1[44].__vftable = (RewardedVideoDelegate_vtbl *)off_1007EC148;\n  a1[51].__vftable = (RewardedVideoDelegate_vtbl *)off_1007EC170;\n  a1[52].__vftable = (RewardedVideoDelegate_vtbl *)&off_1007EC1B8;\n  a1[53].__vftable = (RewardedVideoDelegate_vtbl *)&off_1007EC1D0;\n  a1[54].__vftable = (RewardedVideoDelegate_vtbl *)&off_1007EC1E8;\n  a1[55].__vftable = (RewardedVideoDelegate_vtbl *)&off_1007EC200;\n  a1[56].__vftable = (RewardedVideoDelegate_vtbl *)off_1007EC218;\n  a1[57].__vftable = (RewardedVideoDelegate_vtbl *)off_1007EC238;\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_100017D70((__int64)&a1[65], &a1[66].rewardedVideoFinished);\n  return cocos2d::CCLayer::dCCLayer(a1);\n}", "assembly": "; \n; GJGarageLayer::dGJGarageLayer from 0x100301994 to 0x100301a54 (192 bytes)\n; \n; 4 xrefs:\n; > j_GJGarageLayer::dGJGarageLayer @ 0x100301a58\n; > sub_100301A5C @ 0x100301a60\n; > sub_100301A64 @ 0x100301a6c\n; > sub_100301A78 @ 0x100301a84\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100301994\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100301998\nADD             X29, SP, #0x10                                         ; +0x8, 0x10030199c\nMOV             X19, X0                                                ; +0xc, 0x1003019a0\nADRL            X8, off_1007EBBB0                                      ; +0x10, 0x1003019a4\nSTR             X8, [X0]                                               ; +0x18, 0x1003019ac\nADD             X9, X8, #(off_1007EC080 - 0x1007EBBB0)                 ; +0x1c, 0x1003019b0\nADD             X10, X8, #(off_1007EC0F0 - 0x1007EBBB0)                ; +0x20, 0x1003019b4\nSTP             X9, X10, [X0,#0x140]                                   ; +0x24, 0x1003019b8\nADD             X9, X8, #(off_1007EC108 - 0x1007EBBB0)                 ; +0x28, 0x1003019bc\nADD             X10, X8, #(off_1007EC128 - 0x1007EBBB0)                ; +0x2c, 0x1003019c0\nSTP             X9, X10, [X0,#0x150]                                   ; +0x30, 0x1003019c4\nADD             X9, X8, #(off_1007EC148 - 0x1007EBBB0)                 ; +0x34, 0x1003019c8\nSTR             X9, [X0,#0x160]                                        ; +0x38, 0x1003019cc\nADD             X9, X8, #(off_1007EC170 - 0x1007EBBB0)                 ; +0x3c, 0x1003019d0\nADD             X10, X8, #(off_1007EC1B8 - 0x1007EBBB0)                ; +0x40, 0x1003019d4\nSTP             X9, X10, [X0,#0x198]                                   ; +0x44, 0x1003019d8\nADD             X9, X8, #(off_1007EC1D0 - 0x1007EBBB0)                 ; +0x48, 0x1003019dc\nADD             X10, X8, #(off_1007EC1E8 - 0x1007EBBB0)                ; +0x4c, 0x1003019e0\nSTP             X9, X10, [X0,#0x1A8]                                   ; +0x50, 0x1003019e4\nADD             X9, X8, #(off_1007EC200 - 0x1007EBBB0)                 ; +0x54, 0x1003019e8\nADD             X10, X8, #(off_1007EC218 - 0x1007EBBB0)                ; +0x58, 0x1003019ec\nSTP             X9, X10, [X0,#0x1B8]                                   ; +0x5c, 0x1003019f0\nADD             X8, X8, #(off_1007EC238 - 0x1007EBBB0)                 ; +0x60, 0x1003019f4\nSTR             X8, [X0,#0x1C8]                                        ; +0x64, 0x1003019f8\nBL              GameManager__sharedState                               ; +0x68, 0x1003019fc\nSTR             XZR, [X0,#0x380]                                       ; +0x6c, 0x100301a00\nLDR             X0, [X19,#0x1E0]                                       ; +0x70, 0x100301a04\nCBZ             X0, loc_100301A10                                      ; +0x74, 0x100301a08\nBL              cocos2d__CCObject__release                             ; +0x78, 0x100301a0c\nLDR             X0, [X19,#0x1E8]                                       ; +0x7c, 0x100301a10\nCBZ             X0, loc_100301A1C                                      ; +0x80, 0x100301a14\nBL              cocos2d__CCObject__release                             ; +0x84, 0x100301a18\nBL              GameManager__sharedState                               ; +0x88, 0x100301a1c\nADD             X8, X19, #0x1C8                                        ; +0x8c, 0x100301a20\nLDR             X9, [X0,#0x4A8]                                        ; +0x90, 0x100301a24\nCMP             X9, X8                                                 ; +0x94, 0x100301a28\nB.NE            loc_100301A38                                          ; +0x98, 0x100301a2c\nBL              GameManager__sharedState                               ; +0x9c, 0x100301a30\nSTR             XZR, [X0,#0x4A8]                                       ; +0xa0, 0x100301a34\nLDR             X1, [X19,#0x210]                                       ; +0xa4, 0x100301a38\nADD             X0, X19, #0x208                                        ; +0xa8, 0x100301a3c\nBL              sub_100017D70                                          ; +0xac, 0x100301a40\nMOV             X0, X19                                                ; +0xb0, 0x100301a44\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xb4, 0x100301a48\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xb8, 0x100301a4c\nB               cocos2d__CCLayer__dCCLayer                             ; +0xbc, 0x100301a50", "xrefs": ["j_GJGarageLayer::dGJGarageLayer @ 0x100301a58", "sub_100301A5C @ 0x100301a60", "sub_100301A64 @ 0x100301a6c", "sub_100301A78 @ 0x100301a84"], "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"}