{"type": "func", "start": 8913684, "end": 8914220, "name": "GJBaseGameLayer::exitStaticCamera", "pseudocode": "// \n// GJBaseGameLayer::exitStaticCamera from 0x880314 to 0x88052c (536 bytes)\n// \n// 2 xrefs:\n// > CameraTriggerGameObject::triggerObject @ 0x770570\n// > <???> @ 0x64ab8\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::exitStaticCamera(\n        GJBaseGameLayer *a1,\n        bool a2,\n        bool a3,\n        float a4,\n        int a5,\n        float a6,\n        bool a7,\n        float a8,\n        bool a9)\n{\n  _BOOL4 v10; // w26\n  _BOOL4 v11; // w25\n  _BOOL4 v13; // w24\n  cocos2d::CCDirector *v17; // x0\n  float v18; // s0\n  float v19; // s1\n  float x; // s0\n  float v21; // s0\n  float v22; // w0\n  float y; // s0\n  float v24; // s0\n  float v25; // w0\n  float v26; // [xsp+70h] [xbp+70h]\n  float v27; // [xsp+74h] [xbp+74h]\n  __int64 v28; // [xsp+78h] [xbp+78h] BYREF\n  cocos2d::CCPoint v29; // [xsp+80h] [xbp+80h] BYREF\n\n  v10 = a2;\n  v11 = a3;\n  v13 = a7;\n  if ( a9 )\n  {\n    if ( a2 )\n      a1->m_gameState.m_unkBool28 = (unsigned __int8)&dword_0 + 1;\n    if ( a3 )\n      a1->m_gameState.m_unkBool29 = 1;\n  }\n  v17 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v17);\n  cocos2d::CCPoint::CCPoint(\n    &v29,\n    (float)(v26 * 0.5) / a1->m_gameState.m_cameraZoom,\n    (float)(v27 * 0.5) / a1->m_gameState.m_cameraZoom);\n  cocos2d::CCPoint::operator+(&v28, &a1->m_gameState.m_cameraPosition2, &v29);\n  cocos2d::CCPoint::operator-(&v29, &v28, &a1->m_gameState.m_cameraOffset);\n  cocos2d::CCPoint::operator=(&v28, v18, v19);\n  if ( v10 && a1->m_gameState.m_unkPoint17.x != 0.0 )\n  {\n    a1->m_gameState.m_unkPoint17.x = 0.0;\n    a1->m_gameState.m_unkPoint18.x = 1.0;\n    GJGameState::stopTweenAction(&a1->m_gameState, 10);\n    x = a1->m_gameState.m_unkPoint4.x;\n    a1->m_gameState.m_unkPoint19.x = a4;\n    a1->m_gameState.m_unkPoint21.x = (float)a5;\n    a1->m_gameState.m_unkPoint20.x = a6;\n    a1->m_gameState.m_unkPoint22.x = (float)v13;\n    a1->m_gameState.m_unkPoint23.x = a8;\n    v21 = cocos2d::clampf(x, -10000.0, 10000.0);\n    v22 = a1->m_gameState.m_unkPoint6.x;\n    a1->m_gameState.m_unkPoint10.x = v21;\n    a1->m_gameState.m_unkPoint5.x = v22;\n  }\n  if ( v11 )\n  {\n    if ( a1->m_gameState.m_unkPoint17.y == 0.0 )\n    {\n      if ( !a1->m_gameState.m_unkBool7 )\n        return;\nLABEL_16:\n      GJBaseGameLayer::updateDualGround(a1, a1->m_player1, a1->m_gameState.m_dualRelated, 0, 0.0);\n      return;\n    }\n    a1->m_gameState.m_unkPoint17.y = 0.0;\n    a1->m_gameState.m_unkPoint18.y = 1.0;\n    GJGameState::stopTweenAction(&a1->m_gameState, 11);\n    y = a1->m_gameState.m_unkPoint4.y;\n    a1->m_gameState.m_unkPoint19.y = a4;\n    a1->m_gameState.m_unkPoint21.y = (float)a5;\n    a1->m_gameState.m_unkPoint20.y = a6;\n    a1->m_gameState.m_unkPoint22.y = (float)v13;\n    a1->m_gameState.m_unkPoint23.y = a8;\n    v24 = cocos2d::clampf(y, -10000.0, 10000.0);\n    v25 = a1->m_gameState.m_unkPoint6.y;\n    a1->m_gameState.m_unkPoint10.y = v24;\n    a1->m_gameState.m_unkPoint5.y = v25;\n  }\n  if ( a1->m_gameState.m_unkBool7 && a1->m_gameState.m_unkPoint17.y == 0.0 )\n    goto LABEL_16;\n}", "assembly": "; \n; GJBaseGameLayer::exitStaticCamera from 0x880314 to 0x88052c (536 bytes)\n; \n; 2 xrefs:\n; > CameraTriggerGameObject::triggerObject @ 0x770570\n; > <???> @ 0x64ab8\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_90]!                                ; +0x0, 0x880314\nUXTB            W5, W5                                                 ; +0x4, 0x880318\nMOV             X29, SP                                                ; +0x8, 0x88031c\nSTP             X21, X22, [SP,#0x90+var_70]                            ; +0xc, 0x880320\nSTP             D8, D9, [SP,#0x90+var_40]                              ; +0x10, 0x880324\nADRP            X22, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0x880328\nSTP             X19, X20, [SP,#0x90+var_80]                            ; +0x18, 0x88032c\nMOV             X19, X0                                                ; +0x1c, 0x880330\nLDR             X0, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x880334\nSTP             X23, X24, [SP,#0x90+var_60]                            ; +0x24, 0x880338\nSTP             X25, X26, [SP,#0x90+var_50]                            ; +0x28, 0x88033c\nLDR             X0, [X0]                                               ; +0x2c, 0x880340\nUXTB            W26, W1                                                ; +0x30, 0x880344\nSTR             X0, [X29,#0x90+var_8]                                  ; +0x34, 0x880348\nUXTB            W25, W2                                                ; +0x38, 0x88034c\nSTR             D10, [SP,#0x90+var_30]                                 ; +0x3c, 0x880350\nMOV             W23, W3                                                ; +0x40, 0x880354\nUXTB            W24, W4                                                ; +0x44, 0x880358\nFMOV            S8, S0                                                 ; +0x48, 0x88035c\nFMOV            S9, S1                                                 ; +0x4c, 0x880360\nFMOV            S10, S2                                                ; +0x50, 0x880364\nCBZ             W5, loc_88037C                                         ; +0x54, 0x880368\nCBZ             W26, loc_880378                                        ; +0x58, 0x88036c\nMOV             W0, #(dword_0+1); this                                 ; +0x5c, 0x880370\nSTRB            W0, [X19,#0x780]                                       ; +0x60, 0x880374\nCBNZ            W25, loc_8804F8                                        ; +0x64, 0x880378\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x68, 0x88037c\nADD             X20, X29, #0x90+var_10                                 ; +0x6c, 0x880380\nADD             X8, X29, #0x90+var_20                                  ; +0x70, 0x880384\nADD             X21, X29, #0x90+var_18                                 ; +0x74, 0x880388\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x78, 0x88038c\nFMOV            S1, #0.5                                               ; +0x7c, 0x880390\nMOV             X0, X20; this                                          ; +0x80, 0x880394\nLDR             S0, [X29,#0x90+var_20]                                 ; +0x84, 0x880398\nLDR             S2, [X29,#0x90+var_1C]                                 ; +0x88, 0x88039c\nFMUL            S0, S0, S1                                             ; +0x8c, 0x8803a0\nFMUL            S2, S2, S1                                             ; +0x90, 0x8803a4\nLDR             S1, [X19,#0x1A8]                                       ; +0x94, 0x8803a8\nFDIV            S0, S0, S1; float                                      ; +0x98, 0x8803ac\nFDIV            S1, S2, S1; float                                      ; +0x9c, 0x8803b0\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa0, 0x8803b4\nMOV             X1, X20                                                ; +0xa4, 0x8803b8\nMOV             X8, X21                                                ; +0xa8, 0x8803bc\nADD             X0, X19, #0x50C                                        ; +0xac, 0x8803c0\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xb0, 0x8803c4\nMOV             X0, X21                                                ; +0xb4, 0x8803c8\nADD             X1, X19, #0x1B0                                        ; +0xb8, 0x8803cc\nMOV             X8, X20                                                ; +0xbc, 0x8803d0\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0xc0, 0x8803d4\nMOV             X0, X21                                                ; +0xc4, 0x8803d8\nMOV             X1, X20                                                ; +0xc8, 0x8803dc\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xcc, 0x8803e0\nCBZ             W26, loc_880448                                        ; +0xd0, 0x8803e4\nLDR             S0, [X19,#0x238]                                       ; +0xd4, 0x8803e8\nFCMP            S0, #0.0                                               ; +0xd8, 0x8803ec\nB.EQ            loc_880448                                             ; +0xdc, 0x8803f0\nFMOV            S0, WZR                                                ; +0xe0, 0x8803f4\nADD             X0, X19, #0x1A8; this                                  ; +0xe4, 0x8803f8\nMOV             W1, #0xA; int                                          ; +0xe8, 0x8803fc\nSTR             S0, [X19,#0x238]                                       ; +0xec, 0x880400\nFMOV            S0, #1.0                                               ; +0xf0, 0x880404\nSTR             S0, [X19,#0x240]                                       ; +0xf4, 0x880408\nBL              _ZN11GJGameState15stopTweenActionEi; GJGameState::stopTweenAction(int) ; +0xf8, 0x88040c\nSCVTF           S4, W23                                                ; +0xfc, 0x880410\nUCVTF           S3, W24                                                ; +0x100, 0x880414\nLDR             S0, [X19,#0x1D0]; float                                ; +0x104, 0x880418\nLDR             S1, flt_88052C; float                                  ; +0x108, 0x88041c\nLDR             S2, flt_880530; float                                  ; +0x10c, 0x880420\nSTR             S8, [X19,#0x248]                                       ; +0x110, 0x880424\nSTR             S4, [X19,#0x258]                                       ; +0x114, 0x880428\nSTR             S9, [X19,#0x250]                                       ; +0x118, 0x88042c\nSTR             S3, [X19,#0x260]                                       ; +0x11c, 0x880430\nSTR             S10, [X19,#0x268]                                      ; +0x120, 0x880434\nBL              _ZN7cocos2d6clampfEfff; cocos2d::clampf(float,float,float) ; +0x124, 0x880438\nLDR             W0, [X19,#0x1E0]                                       ; +0x128, 0x88043c\nSTR             S0, [X19,#0x200]                                       ; +0x12c, 0x880440\nSTR             W0, [X19,#0x1D8]                                       ; +0x130, 0x880444\nCBNZ            W25, loc_880494                                        ; +0x134, 0x880448\nLDRB            W0, [X19,#0x310]                                       ; +0x138, 0x88044c\nCBZ             W0, loc_880460                                         ; +0x13c, 0x880450\nLDR             S0, [X19,#0x23C]                                       ; +0x140, 0x880454\nFCMP            S0, #0.0                                               ; +0x144, 0x880458\nB.EQ            loc_88050C                                             ; +0x148, 0x88045c\nLDR             X22, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x14c, 0x880460\nLDR             X1, [X29,#0x90+var_8]                                  ; +0x150, 0x880464\nLDR             X0, [X22]                                              ; +0x154, 0x880468\nCMP             X1, X0                                                 ; +0x158, 0x88046c\nB.NE            loc_880528                                             ; +0x15c, 0x880470\nLDP             X19, X20, [SP,#0x90+var_80]                            ; +0x160, 0x880474\nLDP             D8, D9, [SP,#0x90+var_40]                              ; +0x164, 0x880478\nLDP             X21, X22, [SP,#0x90+var_70]                            ; +0x168, 0x88047c\nLDP             X23, X24, [SP,#0x90+var_60]                            ; +0x16c, 0x880480\nLDP             X25, X26, [SP,#0x90+var_50]                            ; +0x170, 0x880484\nLDR             D10, [SP,#0x90+var_30]                                 ; +0x174, 0x880488\nLDP             X29, X30, [SP+0x90+var_90],#0x90                       ; +0x178, 0x88048c\nRET                                                                    ; +0x17c, 0x880490\nLDR             S0, [X19,#0x23C]                                       ; +0x180, 0x880494\nFCMP            S0, #0.0                                               ; +0x184, 0x880498\nB.EQ            loc_880504                                             ; +0x188, 0x88049c\nFMOV            S0, WZR                                                ; +0x18c, 0x8804a0\nADD             X0, X19, #0x1A8; this                                  ; +0x190, 0x8804a4\nMOV             W1, #0xB; int                                          ; +0x194, 0x8804a8\nSTR             S0, [X19,#0x23C]                                       ; +0x198, 0x8804ac\nFMOV            S0, #1.0                                               ; +0x19c, 0x8804b0\nSTR             S0, [X19,#0x244]                                       ; +0x1a0, 0x8804b4\nBL              _ZN11GJGameState15stopTweenActionEi; GJGameState::stopTweenAction(int) ; +0x1a4, 0x8804b8\nSCVTF           S4, W23                                                ; +0x1a8, 0x8804bc\nUCVTF           S3, W24                                                ; +0x1ac, 0x8804c0\nLDR             S0, [X19,#0x1D4]; float                                ; +0x1b0, 0x8804c4\nLDR             S1, flt_88052C; float                                  ; +0x1b4, 0x8804c8\nLDR             S2, flt_880530; float                                  ; +0x1b8, 0x8804cc\nSTR             S8, [X19,#0x24C]                                       ; +0x1bc, 0x8804d0\nSTR             S4, [X19,#0x25C]                                       ; +0x1c0, 0x8804d4\nSTR             S9, [X19,#0x254]                                       ; +0x1c4, 0x8804d8\nSTR             S3, [X19,#0x264]                                       ; +0x1c8, 0x8804dc\nSTR             S10, [X19,#0x26C]                                      ; +0x1cc, 0x8804e0\nBL              _ZN7cocos2d6clampfEfff; cocos2d::clampf(float,float,float) ; +0x1d0, 0x8804e4\nLDR             W0, [X19,#0x1E4]                                       ; +0x1d4, 0x8804e8\nSTR             S0, [X19,#0x204]                                       ; +0x1d8, 0x8804ec\nSTR             W0, [X19,#0x1DC]                                       ; +0x1dc, 0x8804f0\nB               loc_88044C                                             ; +0x1e0, 0x8804f4\nMOV             W0, #1                                                 ; +0x1e4, 0x8804f8\nSTRB            W0, [X19,#0x781]                                       ; +0x1e8, 0x8804fc\nB               loc_88037C                                             ; +0x1ec, 0x880500\nLDRB            W0, [X19,#0x310]                                       ; +0x1f0, 0x880504\nCBZ             W0, loc_880460                                         ; +0x1f4, 0x880508\nFMOV            S0, WZR; float                                         ; +0x1f8, 0x88050c\nLDR             X1, [X19,#0xDF8]; PlayerObject *                       ; +0x1fc, 0x880510\nLDR             W2, [X19,#0x540]; int                                  ; +0x200, 0x880514\nMOV             X0, X19; this                                          ; +0x204, 0x880518\nMOV             W3, #0; bool                                           ; +0x208, 0x88051c\nBL              _ZN15GJBaseGameLayer16updateDualGroundEP12PlayerObjectibf; GJBaseGameLayer::updateDualGround(PlayerObject *,int,bool,float) ; +0x20c, 0x880520\nB               loc_880460                                             ; +0x210, 0x880524\nBL              .__stack_chk_fail                                      ; +0x214, 0x880528", "xrefs": ["CameraTriggerGameObject::triggerObject @ 0x770570", "<???> @ 0x64ab8"], "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"}