{"type": "func", "start": 5372155680, "end": 5372156403, "name": "GJBaseGameLayer::resetCamera", "pseudocode": "// \n// GJBaseGameLayer::resetCamera from 0x140349720 to 0x1403499f3 (723 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::resetLevelVariables @ 0x14034564f\n// > <???> @ 0x14091ffa0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:30:44 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::resetCamera(__int64 a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rdx\n  __int64 v4; // rdx\n  __int64 result; // rax\n  int v6; // [rsp+70h] [rbp+8h] BYREF\n\n  cocos2d::CCPoint::operator=(a1 + 576, &dword_14090AA70);\n  cocos2d::CCPoint::operator=(a1 + 568, &dword_14090AA70);\n  cocos2d::CCPoint::operator=(a1 + 584, &dword_14090AA70);\n  cocos2d::CCPoint::operator=(a1 + 600, &dword_14090AA70);\n  cocos2d::CCPoint::operator=(a1 + 592, &dword_14090AA70);\n  cocos2d::CCPoint::operator=(a1 + 608, &dword_14090AA70);\n  cocos2d::CCPoint::operator=(a1 + 616, &dword_14090AA70);\n  cocos2d::CCPoint::operator=(a1 + 512, &dword_14090AA70);\n  cocos2d::CCPoint::operator=(a1 + 472, &dword_14090AA70);\n  cocos2d::CCPoint::operator=(a1 + 528, &dword_14090AA70);\n  cocos2d::CCPoint::operator=(a1 + 536, &dword_14090AA70);\n  *(_DWORD *)(a1 + 1280) = 0;\n  *(_BYTE *)(a1 + 785) = 0;\n  *(_WORD *)(a1 + 1888) = 0;\n  *(_DWORD *)(a1 + 716) = 1056964608;\n  *(_DWORD *)(a1 + 720) = 1092616192;\n  GJBaseGameLayer::updateZoom(a1, 0.0, 0.0, 0, 0, -1, -1);\n  *(_DWORD *)(a1 + 440) = 0;\n  v6 = 15;\n  sub_140355080(a1 + 1064, &v6);\n  *(_DWORD *)(a1 + 432) = *(_DWORD *)(a1 + 440);\n  *(_DWORD *)(a1 + 444) = 0;\n  v6 = 16;\n  sub_140355080(a1 + 1064, &v6);\n  *(_DWORD *)(a1 + 436) = *(_DWORD *)(a1 + 444);\n  *(_DWORD *)(a1 + 676) = 75;\n  *(_BYTE *)(a1 + 680) = 0;\n  *(_DWORD *)(a1 + 684) = 75;\n  *(_BYTE *)(a1 + 688) = 0;\n  *(_DWORD *)(a1 + 652) = 0;\n  v6 = 19;\n  sub_140355080(a1 + 1064, &v6);\n  *(_DWORD *)(a1 + 644) = *(_DWORD *)(a1 + 652);\n  *(_DWORD *)(a1 + 648) = 0;\n  v6 = 18;\n  sub_140355080(a1 + 1064, &v6);\n  *(_DWORD *)(a1 + 640) = *(_DWORD *)(a1 + 648);\n  v2 = *(_QWORD *)a1;\n  *(_QWORD *)(a1 + 1128) = 0;\n  *(_QWORD *)(a1 + 1136) = 0;\n  (*(void (__fastcall **)(__int64, __int64, _QWORD, _QWORD, _DWORD, _DWORD, _DWORD, int, int))(v2 + 1280))(\n    a1,\n    v3,\n    0,\n    0,\n    0,\n    0,\n    0,\n    -1,\n    -1);\n  *(_QWORD *)(a1 + 13048) = 0;\n  *(_QWORD *)(a1 + 13108) = 0;\n  *(_BYTE *)(a1 + 13116) = 1;\n  cocos2d::CCPoint::operator=(a1 + 1244, &dword_14090AA70);\n  LOBYTE(v4) = 1;\n  result = GJBaseGameLayer::resetStaticCamera(a1, v4);\n  *(_BYTE *)(a1 + 1309) = 0;\n  *(_DWORD *)(a1 + 1312) = 0;\n  *(_WORD *)(a1 + 712) = 0;\n  *(_DWORD *)(a1 + 772) = 0;\n  *(_DWORD *)(a1 + 544) = 1065353216;\n  *(_DWORD *)(a1 + 548) = 1065353216;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::resetCamera from 0x140349720 to 0x1403499f3 (723 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::resetLevelVariables @ 0x14034564f\n; > <???> @ 0x14091ffa0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:30:44 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140349720\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140349725\npush    rdi                                                            ; +0xa, 0x14034972a\nsub     rsp, 60h                                                       ; +0xb, 0x14034972b\nmov     rdi, rcx                                                       ; +0xf, 0x14034972f\nmovaps  [rsp+68h+var_18], xmm6                                         ; +0x12, 0x140349732\nadd     rcx, 240h                                                      ; +0x17, 0x140349737\nlea     rdx, dword_14090AA70                                           ; +0x1e, 0x14034973e\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x25, 0x140349745\nlea     rcx, [rdi+238h]                                                ; +0x2b, 0x14034974b\nlea     rdx, dword_14090AA70                                           ; +0x32, 0x140349752\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x39, 0x140349759\nlea     rcx, [rdi+248h]                                                ; +0x3f, 0x14034975f\nlea     rdx, dword_14090AA70                                           ; +0x46, 0x140349766\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x4d, 0x14034976d\nlea     rcx, [rdi+258h]                                                ; +0x53, 0x140349773\nlea     rdx, dword_14090AA70                                           ; +0x5a, 0x14034977a\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x61, 0x140349781\nlea     rcx, [rdi+250h]                                                ; +0x67, 0x140349787\nlea     rdx, dword_14090AA70                                           ; +0x6e, 0x14034978e\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x75, 0x140349795\nlea     rcx, [rdi+260h]                                                ; +0x7b, 0x14034979b\nlea     rdx, dword_14090AA70                                           ; +0x82, 0x1403497a2\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x89, 0x1403497a9\nlea     rcx, [rdi+268h]                                                ; +0x8f, 0x1403497af\nlea     rdx, dword_14090AA70                                           ; +0x96, 0x1403497b6\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x9d, 0x1403497bd\nlea     rcx, [rdi+200h]                                                ; +0xa3, 0x1403497c3\nlea     rdx, dword_14090AA70                                           ; +0xaa, 0x1403497ca\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xb1, 0x1403497d1\nlea     rcx, [rdi+1D8h]                                                ; +0xb7, 0x1403497d7\nlea     rdx, dword_14090AA70                                           ; +0xbe, 0x1403497de\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xc5, 0x1403497e5\nlea     rcx, [rdi+210h]                                                ; +0xcb, 0x1403497eb\nlea     rdx, dword_14090AA70                                           ; +0xd2, 0x1403497f2\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xd9, 0x1403497f9\nlea     rcx, [rdi+218h]                                                ; +0xdf, 0x1403497ff\nlea     rdx, dword_14090AA70                                           ; +0xe6, 0x140349806\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xed, 0x14034980d\nxor     esi, esi                                                       ; +0xf3, 0x140349813\nmov     [rsp+68h+var_38], 0FFFFFFFFh                                   ; +0xf5, 0x140349815\nxorps   xmm6, xmm6                                                     ; +0xfd, 0x14034981d\nmov     [rsp+68h+var_40], 0FFFFFFFFh                                   ; +0x100, 0x140349820\nxor     r9d, r9d                                                       ; +0x108, 0x140349828\nmovss   [rsp+68h+var_48], xmm6                                         ; +0x10b, 0x14034982b\nxorps   xmm2, xmm2                                                     ; +0x111, 0x140349831\nmov     [rdi+500h], esi                                                ; +0x114, 0x140349834\nxorps   xmm1, xmm1                                                     ; +0x11a, 0x14034983a\nmov     [rdi+311h], sil                                                ; +0x11d, 0x14034983d\nmov     rcx, rdi                                                       ; +0x124, 0x140349844\nmov     word ptr [rdi+760h], 0                                         ; +0x127, 0x140349847\nmov     dword ptr [rdi+2CCh], 3F000000h                                ; +0x130, 0x140349850\nmov     dword ptr [rdi+2D0h], 41200000h                                ; +0x13a, 0x14034985a\ncall    GJBaseGameLayer__updateZoom                                    ; +0x144, 0x140349864\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x149, 0x140349869\nmov     [rdi+1B8h], esi                                                ; +0x14e, 0x14034986e\nlea     rcx, [rdi+428h]                                                ; +0x154, 0x140349874\nmov     [rsp+68h+arg_0], 0Fh                                           ; +0x15b, 0x14034987b\ncall    sub_140355080                                                  ; +0x163, 0x140349883\nmov     eax, [rdi+1B8h]                                                ; +0x168, 0x140349888\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x16e, 0x14034988e\nlea     rcx, [rdi+428h]                                                ; +0x173, 0x140349893\nmov     [rdi+1B0h], eax                                                ; +0x17a, 0x14034989a\nmov     [rdi+1BCh], esi                                                ; +0x180, 0x1403498a0\nmov     [rsp+68h+arg_0], 10h                                           ; +0x186, 0x1403498a6\ncall    sub_140355080                                                  ; +0x18e, 0x1403498ae\nmov     eax, [rdi+1BCh]                                                ; +0x193, 0x1403498b3\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x199, 0x1403498b9\nlea     rcx, [rdi+428h]                                                ; +0x19e, 0x1403498be\nmov     [rdi+1B4h], eax                                                ; +0x1a5, 0x1403498c5\nmov     dword ptr [rdi+2A4h], 4Bh ; 'K'                                ; +0x1ab, 0x1403498cb\nmov     [rdi+2A8h], sil                                                ; +0x1b5, 0x1403498d5\nmov     dword ptr [rdi+2ACh], 4Bh ; 'K'                                ; +0x1bc, 0x1403498dc\nmov     [rdi+2B0h], sil                                                ; +0x1c6, 0x1403498e6\nmov     [rdi+28Ch], esi                                                ; +0x1cd, 0x1403498ed\nmov     [rsp+68h+arg_0], 13h                                           ; +0x1d3, 0x1403498f3\ncall    sub_140355080                                                  ; +0x1db, 0x1403498fb\nmov     eax, [rdi+28Ch]                                                ; +0x1e0, 0x140349900\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x1e6, 0x140349906\nlea     rcx, [rdi+428h]                                                ; +0x1eb, 0x14034990b\nmov     [rdi+284h], eax                                                ; +0x1f2, 0x140349912\nmov     [rdi+288h], esi                                                ; +0x1f8, 0x140349918\nmov     [rsp+68h+arg_0], 12h                                           ; +0x1fe, 0x14034991e\ncall    sub_140355080                                                  ; +0x206, 0x140349926\nmov     eax, [rdi+288h]                                                ; +0x20b, 0x14034992b\nmov     [rsp+68h+var_28], 0FFFFFFFFh                                   ; +0x211, 0x140349931\nxor     r9d, r9d                                                       ; +0x219, 0x140349939\nmov     [rsp+68h+var_30], 0FFFFFFFFh                                   ; +0x21c, 0x14034993c\nxor     r8d, r8d                                                       ; +0x224, 0x140349944\nmovss   [rsp+68h+var_38], xmm6                                         ; +0x227, 0x140349947\nxorps   xmm1, xmm1                                                     ; +0x22d, 0x14034994d\nmov     [rdi+280h], eax                                                ; +0x230, 0x140349950\nmov     rcx, rdi                                                       ; +0x236, 0x140349956\nmov     rax, [rdi]                                                     ; +0x239, 0x140349959\nmov     [rsp+68h+var_40], esi                                          ; +0x23c, 0x14034995c\nmovss   [rsp+68h+var_48], xmm6                                         ; +0x240, 0x140349960\nmov     [rdi+468h], rsi                                                ; +0x246, 0x140349966\nmov     [rdi+470h], rsi                                                ; +0x24d, 0x14034996d\ncall    qword ptr [rax+500h]                                           ; +0x254, 0x140349974\nlea     rcx, [rdi+4DCh]                                                ; +0x25a, 0x14034997a\nmov     [rdi+32F8h], rsi                                               ; +0x261, 0x140349981\nlea     rdx, dword_14090AA70                                           ; +0x268, 0x140349988\nmov     [rdi+3334h], rsi                                               ; +0x26f, 0x14034998f\nmov     byte ptr [rdi+333Ch], 1                                        ; +0x276, 0x140349996\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x27d, 0x14034999d\nmov     dl, 1                                                          ; +0x283, 0x1403499a3\nmov     rcx, rdi                                                       ; +0x285, 0x1403499a5\ncall    GJBaseGameLayer__resetStaticCamera                             ; +0x288, 0x1403499a8\nmov     rbx, [rsp+68h+arg_8]                                           ; +0x28d, 0x1403499ad\nmovaps  xmm6, [rsp+68h+var_18]                                         ; +0x292, 0x1403499b2\nmov     [rdi+51Dh], sil                                                ; +0x297, 0x1403499b7\nmov     [rdi+520h], esi                                                ; +0x29e, 0x1403499be\nmov     [rdi+2C8h], si                                                 ; +0x2a4, 0x1403499c4\nmov     [rdi+304h], esi                                                ; +0x2ab, 0x1403499cb\nmov     rsi, [rsp+68h+arg_10]                                          ; +0x2b1, 0x1403499d1\nmov     dword ptr [rdi+220h], 3F800000h                                ; +0x2b9, 0x1403499d9\nmov     dword ptr [rdi+224h], 3F800000h                                ; +0x2c3, 0x1403499e3\nadd     rsp, 60h                                                       ; +0x2cd, 0x1403499ed\npop     rdi                                                            ; +0x2d1, 0x1403499f1\nretn                                                                   ; +0x2d2, 0x1403499f2", "xrefs": ["GJBaseGameLayer::resetLevelVariables @ 0x14034564f", "<???> @ 0x14091ffa0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}