{"type": "func", "start": 8913156, "end": 8913684, "name": "GJBaseGameLayer::resetCamera", "pseudocode": "// \n// GJBaseGameLayer::resetCamera from 0x880104 to 0x880314 (528 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::resetLevelVariables @ 0x88aee8\n// > <???> @ 0x46e60\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\nvoid GJBaseGameLayer::resetCamera(GJBaseGameLayer *a1)\n{\n  float v1; // s0\n  float v2; // s1\n  float v4; // s0\n  float v5; // s1\n  float v6; // s0\n  float v7; // s1\n  float v8; // s0\n  float v9; // s1\n  float v10; // s0\n  float v11; // s1\n  float v12; // s0\n  float v13; // s1\n  float v14; // s0\n  float v15; // s1\n  float v16; // s0\n  float v17; // s1\n  float v18; // s0\n  float v19; // s1\n  float v20; // s0\n  float v21; // s1\n  float v22; // s0\n  float v23; // s1\n  void (__fastcall *updateScreenRotation)(GJBaseGameLayer *__hidden, float, bool, bool, float, int, float, int, int); // x6\n  float v25; // s0\n  float v26; // s1\n\n  cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint18, v1, v2);\n  cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint17, v4, v5);\n  cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint19, v6, v7);\n  cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint21, v8, v9);\n  cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint20, v10, v11);\n  cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint22, v12, v13);\n  cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint23, v14, v15);\n  cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint10, v16, v17);\n  cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint5, v18, v19);\n  cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint12, v20, v21);\n  cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint13, v22, v23);\n  a1->m_gameState.m_unkBool28 = 0;\n  a1->m_gameState.m_unkBool29 = 0;\n  a1->m_gameState.m_unkFloat2 = 0.5;\n  a1->m_gameState.m_isFreeMode = 0;\n  a1->m_gameState.m_unkUint13 = 0.0;\n  a1->m_gameState.m_unkFloat3 = 10.0;\n  GJBaseGameLayer::updateZoom(a1, 0.0, 0.0, 0, 0.0, -1, -1);\n  GJBaseGameLayer::updateCameraOffsetX(a1, 0.0, 0.0, 0, 0.0, -1, -1);\n  GJBaseGameLayer::updateCameraOffsetY(a1, 0.0, 0.0, 0, 0.0, -1, -1);\n  GJBaseGameLayer::restoreDefaultGameplayOffsetX(a1);\n  GJBaseGameLayer::restoreDefaultGameplayOffsetY(a1);\n  GJBaseGameLayer::updateInternalCamOffsetY(a1, 0.0, 0.0, 0.0);\n  GJBaseGameLayer::updateInternalCamOffsetX(a1, 0.0, 0.0, 0.0);\n  updateScreenRotation = a1->updateScreenRotation;\n  a1->m_gameState.m_cameraEdgeValue0 = 0;\n  a1->m_gameState.m_cameraEdgeValue1 = 0;\n  a1->m_gameState.m_cameraEdgeValue2 = 0;\n  a1->m_gameState.m_cameraEdgeValue3 = 0;\n  v25 = ((float (__fastcall *)(GJBaseGameLayer *, _QWORD, _QWORD, _QWORD, __int64, __int64, float, float, float))updateScreenRotation)(\n          a1,\n          0,\n          0,\n          0,\n          0xFFFFFFFFLL,\n          0xFFFFFFFFLL,\n          0.0,\n          0.0,\n          0.0);\n  a1->m_cameraWidthOffset = 0.0;\n  a1->m_cameraHeightOffset = 0.0;\n  a1->m_cameraUnzoomedHeightOffset = 0.0;\n  a1->m_targetCameraHeightOffset = 0.0;\n  a1->m_calculateTargetHeightOffset = 1;\n  cocos2d::CCPoint::operator=(&a1->m_gameState.m_cameraStepDiff, v25, v26);\n  GJBaseGameLayer::resetStaticCamera(a1, 1, 1);\n  GJBaseGameLayer::stopCameraShake(a1);\n  a1->m_gameState.m_unkBool4 = 0;\n  a1->m_gameState.m_unkBool5 = 0;\n  a1->m_gameState.m_unkInt13 = 0.0;\n  a1->m_gameState.m_unkPoint14.x = 1.0;\n  a1->m_gameState.m_unkPoint14.y = 1.0;\n}", "assembly": "; \n; GJBaseGameLayer::resetCamera from 0x880104 to 0x880314 (528 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::resetLevelVariables @ 0x88aee8\n; > <???> @ 0x46e60\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,#-0x30+var_s0]!                          ; +0x0, 0x880104\nMOV             X29, SP                                                ; +0x4, 0x880108\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x88010c\nADRP            X20, #qword_1242DA0@PAGE                               ; +0xc, 0x880110\nMOV             X19, X0                                                ; +0x10, 0x880114\nSTR             D8, [SP,#var_s28]                                      ; +0x14, 0x880118\nADD             X20, X20, #qword_1242DA0@PAGEOFF                       ; +0x18, 0x88011c\nFMOV            S8, WZR                                                ; +0x1c, 0x880120\nADD             X20, X20, #8                                           ; +0x20, 0x880124\nMOV             X1, X20                                                ; +0x24, 0x880128\nADD             X0, X0, #0x240                                         ; +0x28, 0x88012c\nSTR             X21, [SP,#var_s20]                                     ; +0x2c, 0x880130\nMOV             W21, #1                                                ; +0x30, 0x880134\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x34, 0x880138\nMOV             X1, X20                                                ; +0x38, 0x88013c\nADD             X0, X19, #0x238                                        ; +0x3c, 0x880140\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x40, 0x880144\nMOV             X1, X20                                                ; +0x44, 0x880148\nADD             X0, X19, #0x248                                        ; +0x48, 0x88014c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x4c, 0x880150\nMOV             X1, X20                                                ; +0x50, 0x880154\nADD             X0, X19, #0x258                                        ; +0x54, 0x880158\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x58, 0x88015c\nMOV             X1, X20                                                ; +0x5c, 0x880160\nADD             X0, X19, #0x250                                        ; +0x60, 0x880164\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x64, 0x880168\nMOV             X1, X20                                                ; +0x68, 0x88016c\nADD             X0, X19, #0x260                                        ; +0x6c, 0x880170\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x70, 0x880174\nMOV             X1, X20                                                ; +0x74, 0x880178\nADD             X0, X19, #0x268                                        ; +0x78, 0x88017c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x7c, 0x880180\nMOV             X1, X20                                                ; +0x80, 0x880184\nADD             X0, X19, #0x200                                        ; +0x84, 0x880188\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x88, 0x88018c\nMOV             X1, X20                                                ; +0x8c, 0x880190\nADD             X0, X19, #0x1D8                                        ; +0x90, 0x880194\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x94, 0x880198\nMOV             X1, X20                                                ; +0x98, 0x88019c\nADD             X0, X19, #0x210                                        ; +0x9c, 0x8801a0\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xa0, 0x8801a4\nMOV             X1, X20                                                ; +0xa4, 0x8801a8\nADD             X0, X19, #0x218                                        ; +0xa8, 0x8801ac\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xac, 0x8801b0\nSTRB            WZR, [X19,#0x780]                                      ; +0xb0, 0x8801b4\nFMOV            S2, S8; float                                          ; +0xb4, 0x8801b8\nMOV             W2, #0xFFFFFFFF; int                                   ; +0xb8, 0x8801bc\nFMOV            S0, S8; float                                          ; +0xbc, 0x8801c0\nMOV             W3, W2; int                                            ; +0xc0, 0x8801c4\nFMOV            S1, S8; float                                          ; +0xc4, 0x8801c8\nMOV             X0, X19; this                                          ; +0xc8, 0x8801cc\nFMOV            S3, #0.5                                               ; +0xcc, 0x8801d0\nMOV             W1, #0; int                                            ; +0xd0, 0x8801d4\nSTRB            WZR, [X19,#0x781]                                      ; +0xd4, 0x8801d8\nSTR             S3, [X19,#0x2CC]                                       ; +0xd8, 0x8801dc\nSTRB            WZR, [X19,#0x311]                                      ; +0xdc, 0x8801e0\nFMOV            S3, #10.0                                              ; +0xe0, 0x8801e4\nSTR             S8, [X19,#0x500]                                       ; +0xe4, 0x8801e8\nSTR             S3, [X19,#0x2D0]                                       ; +0xe8, 0x8801ec\nBL              _ZN15GJBaseGameLayer10updateZoomEffifii; GJBaseGameLayer::updateZoom(float,float,int,float,int,int) ; +0xec, 0x8801f0\nFMOV            S0, S8; float                                          ; +0xf0, 0x8801f4\nMOV             W2, #0xFFFFFFFF; int                                   ; +0xf4, 0x8801f8\nFMOV            S1, S8; float                                          ; +0xf8, 0x8801fc\nMOV             X0, X19; this                                          ; +0xfc, 0x880200\nFMOV            S2, S8; float                                          ; +0x100, 0x880204\nMOV             W3, W2; int                                            ; +0x104, 0x880208\nMOV             W1, #0; int                                            ; +0x108, 0x88020c\nBL              _ZN15GJBaseGameLayer19updateCameraOffsetXEffifii; GJBaseGameLayer::updateCameraOffsetX(float,float,int,float,int,int) ; +0x10c, 0x880210\nFMOV            S0, S8; float                                          ; +0x110, 0x880214\nMOV             W2, #0xFFFFFFFF; int                                   ; +0x114, 0x880218\nFMOV            S1, S8; float                                          ; +0x118, 0x88021c\nMOV             W3, W2; int                                            ; +0x11c, 0x880220\nFMOV            S2, S8; float                                          ; +0x120, 0x880224\nMOV             W1, #0; int                                            ; +0x124, 0x880228\nMOV             X0, X19; this                                          ; +0x128, 0x88022c\nBL              _ZN15GJBaseGameLayer19updateCameraOffsetYEffifii; GJBaseGameLayer::updateCameraOffsetY(float,float,int,float,int,int) ; +0x12c, 0x880230\nMOV             X0, X19; this                                          ; +0x130, 0x880234\nBL              _ZN15GJBaseGameLayer29restoreDefaultGameplayOffsetXEv; GJBaseGameLayer::restoreDefaultGameplayOffsetX(void) ; +0x134, 0x880238\nMOV             X0, X19; this                                          ; +0x138, 0x88023c\nBL              _ZN15GJBaseGameLayer29restoreDefaultGameplayOffsetYEv; GJBaseGameLayer::restoreDefaultGameplayOffsetY(void) ; +0x13c, 0x880240\nFMOV            S0, S8; float                                          ; +0x140, 0x880244\nMOV             X0, X19; this                                          ; +0x144, 0x880248\nFMOV            S1, S8; float                                          ; +0x148, 0x88024c\nFMOV            S2, S8; float                                          ; +0x14c, 0x880250\nBL              _ZN15GJBaseGameLayer24updateInternalCamOffsetYEfff; GJBaseGameLayer::updateInternalCamOffsetY(float,float,float) ; +0x150, 0x880254\nFMOV            S0, S8; float                                          ; +0x154, 0x880258\nMOV             X0, X19; this                                          ; +0x158, 0x88025c\nFMOV            S1, S8; float                                          ; +0x15c, 0x880260\nFMOV            S2, S8; float                                          ; +0x160, 0x880264\nBL              _ZN15GJBaseGameLayer24updateInternalCamOffsetXEfff; GJBaseGameLayer::updateInternalCamOffsetX(float,float,float) ; +0x164, 0x880268\nLDR             X0, [X19]                                              ; +0x168, 0x88026c\nMOV             W4, #0xFFFFFFFF                                        ; +0x16c, 0x880270\nFMOV            S0, S8                                                 ; +0x170, 0x880274\nMOV             W3, #0                                                 ; +0x174, 0x880278\nFMOV            S1, S8                                                 ; +0x178, 0x88027c\nMOV             W5, W4                                                 ; +0x17c, 0x880280\nFMOV            S2, S8                                                 ; +0x180, 0x880284\nLDR             X6, [X0,#0x568]                                        ; +0x184, 0x880288\nMOV             W1, #0                                                 ; +0x188, 0x88028c\nMOV             X0, X19                                                ; +0x18c, 0x880290\nMOV             W2, #0                                                 ; +0x190, 0x880294\nSTR             WZR, [X19,#0x450]                                      ; +0x194, 0x880298\nSTR             WZR, [X19,#0x454]                                      ; +0x198, 0x88029c\nSTR             WZR, [X19,#0x458]                                      ; +0x19c, 0x8802a0\nSTR             WZR, [X19,#0x45C]                                      ; +0x1a0, 0x8802a4\nBLR             X6                                                     ; +0x1a4, 0x8802a8\nADD             X2, X19, #3,LSL#12                                     ; +0x1a8, 0x8802ac\nMOV             X1, X20                                                ; +0x1ac, 0x8802b0\nSTR             S8, [X19,#0x3268]                                      ; +0x1b0, 0x8802b4\nADD             X0, X19, #0x4BC                                        ; +0x1b4, 0x8802b8\nSTR             S8, [X19,#0x326C]                                      ; +0x1b8, 0x8802bc\nSTR             S8, [X19,#0x3294]                                      ; +0x1bc, 0x8802c0\nSTR             S8, [X19,#0x3298]                                      ; +0x1c0, 0x8802c4\nSTRB            W21, [X2,#0x29C]                                       ; +0x1c4, 0x8802c8\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x1c8, 0x8802cc\nMOV             W1, W21; bool                                          ; +0x1cc, 0x8802d0\nMOV             W2, W21; bool                                          ; +0x1d0, 0x8802d4\nMOV             X0, X19; this                                          ; +0x1d4, 0x8802d8\nBL              _ZN15GJBaseGameLayer17resetStaticCameraEbb; GJBaseGameLayer::resetStaticCamera(bool,bool) ; +0x1d8, 0x8802dc\nMOV             X0, X19; this                                          ; +0x1dc, 0x8802e0\nBL              _ZN15GJBaseGameLayer15stopCameraShakeEv; GJBaseGameLayer::stopCameraShake(void) ; +0x1e0, 0x8802e4\nSTRB            WZR, [X19,#0x2C8]                                      ; +0x1e4, 0x8802e8\nFMOV            S0, #1.0                                               ; +0x1e8, 0x8802ec\nSTRB            WZR, [X19,#0x2C9]                                      ; +0x1ec, 0x8802f0\nSTR             S8, [X19,#0x304]                                       ; +0x1f0, 0x8802f4\nLDR             X21, [SP,#var_s20]                                     ; +0x1f4, 0x8802f8\nSTR             S0, [X19,#0x220]                                       ; +0x1f8, 0x8802fc\nSTR             S0, [X19,#0x224]                                       ; +0x1fc, 0x880300\nLDR             D8, [SP,#var_s28]                                      ; +0x200, 0x880304\nLDP             X19, X20, [SP,#var_s10]                                ; +0x204, 0x880308\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x208, 0x88030c\nRET                                                                    ; +0x20c, 0x880310", "xrefs": ["GJBaseGameLayer::resetLevelVariables @ 0x88aee8", "<???> @ 0x46e60"], "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"}