{"type": "func", "start": 8911424, "end": 8912000, "name": "GJBaseGameLayer::updateStaticCameraPos", "pseudocode": "// \n// GJBaseGameLayer::updateStaticCameraPos from 0x87fa40 to 0x87fc80 (576 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::playEndAnimationToPos @ 0x5cc18c\n// > GJBaseGameLayer::animateInDualGroundNew @ 0x87fde4\n// > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x88066c\n// > <???> @ 0x30f90\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// local variable allocation has failed, the output may be wrong!\nvoid GJBaseGameLayer::updateStaticCameraPos(\n        GJBaseGameLayer *a1,\n        cocos2d::CCPoint a2,\n        bool a3,\n        bool a4,\n        bool a5,\n        float a6,\n        int a7,\n        float a8)\n{\n  int v8; // w5\n  int v10; // w27\n  float x; // s8\n  float y; // s9\n  cocos2d::CCPoint v13; // x0\n  _BOOL4 v14; // w24\n  _BOOL4 v15; // w23\n  int v16; // w26\n  float *v17; // x25\n  cocos2d::CCDirector *v18; // x0\n  float v19; // s0\n  float v20; // s1\n  float v21; // w2\n  float v22; // s0\n  float v23; // w0\n  float v24; // w2\n  float v25; // s0\n  float v26; // w0\n  float v27; // [xsp+70h] [xbp+70h]\n  float v28; // [xsp+74h] [xbp+74h]\n  __int64 v29; // [xsp+78h] [xbp+78h] BYREF\n  cocos2d::CCPoint v30[2]; // [xsp+80h] [xbp+80h] BYREF\n\n  v10 = v8;\n  x = a2.x;\n  y = a2.y;\n  v13 = (cocos2d::CCPoint)_stack_chk_guard;\n  v14 = a4;\n  a1->m_gameState.m_unkBool1 = 0;\n  v15 = a5;\n  v16 = (unsigned __int8)a7;\n  v17 = (float *)a3;\n  v30[1] = v13;\n  v18 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v18);\n  cocos2d::CCPoint::CCPoint(\n    v30,\n    (float)(v27 * 0.5) / a1->m_gameState.m_cameraZoom,\n    (float)(v28 * 0.5) / a1->m_gameState.m_cameraZoom);\n  cocos2d::CCPoint::operator+(&v29, &a1->m_gameState.m_cameraPosition2, v30);\n  cocos2d::CCPoint::operator-(v30, &v29, &a1->m_gameState.m_cameraOffset);\n  cocos2d::CCPoint::operator=(&v29, v19, v20);\n  if ( v14 )\n  {\n    v21 = *(float *)&v29;\n    a1->m_gameState.m_unkPoint17.x = 1.0;\n    a1->m_gameState.m_unkPoint6.x = v21;\n    a1->m_gameState.m_unkPoint8.x = 0.0;\n    GJGameState::stopTweenAction(&a1->m_gameState, 12);\n    v22 = cocos2d::clampf(a1->m_gameState.m_unkPoint4.x, -10000.0, 10000.0);\n    v23 = *(float *)&v29;\n    a1->m_gameState.m_unkPoint10.x = v22;\n    a1->m_gameState.m_unkPoint11.x = x;\n    a1->m_gameState.m_unkPoint5.x = v23;\n    a1->m_gameState.m_unkPoint7.x = *v17;\n  }\n  if ( v15 )\n  {\n    v24 = *((float *)&v29 + 1);\n    a1->m_gameState.m_unkPoint17.y = 1.0;\n    a1->m_gameState.m_unkPoint6.y = v24;\n    a1->m_gameState.m_unkPoint8.y = 0.0;\n    GJGameState::stopTweenAction(&a1->m_gameState, 13);\n    v25 = cocos2d::clampf(a1->m_gameState.m_unkPoint4.y, -10000.0, 10000.0);\n    v26 = *((float *)&v29 + 1);\n    a1->m_gameState.m_unkPoint10.y = v25;\n    a1->m_gameState.m_unkPoint11.y = x;\n    a1->m_gameState.m_unkPoint5.y = v26;\n    a1->m_gameState.m_unkPoint7.y = v17[1];\n  }\n  if ( !v16 )\n  {\n    if ( x <= 0.0 )\n    {\n      if ( v14 )\n      {\n        GJGameState::stopTweenAction(&a1->m_gameState, 10);\n        a1->m_gameState.m_unkPoint6.x = a1->m_gameState.m_unkPoint7.x;\n      }\n      if ( v15 )\n      {\n        GJGameState::stopTweenAction(&a1->m_gameState, 11);\n        a1->m_gameState.m_unkPoint6.y = a1->m_gameState.m_unkPoint7.y;\n      }\n    }\n    else\n    {\n      if ( !v14 )\n      {\n        if ( !v15 )\n          return;\nLABEL_14:\n        GJGameState::tweenValue(\n          &a1->m_gameState,\n          a1->m_gameState.m_unkPoint6.y,\n          a1->m_gameState.m_unkPoint7.y,\n          11,\n          x,\n          v10,\n          y,\n          -1,\n          -1);\n        return;\n      }\n      GJGameState::tweenValue(\n        &a1->m_gameState,\n        a1->m_gameState.m_unkPoint6.x,\n        a1->m_gameState.m_unkPoint7.x,\n        10,\n        x,\n        v10,\n        y,\n        -1,\n        -1);\n      if ( v15 )\n        goto LABEL_14;\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateStaticCameraPos from 0x87fa40 to 0x87fc80 (576 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::playEndAnimationToPos @ 0x5cc18c\n; > GJBaseGameLayer::animateInDualGroundNew @ 0x87fde4\n; > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x88066c\n; > <???> @ 0x30f90\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, 0x87fa40\nMOV             X29, SP                                                ; +0x4, 0x87fa44\nSTP             X21, X22, [SP,#0x90+var_70]                            ; +0x8, 0x87fa48\nSTP             D8, D9, [SP,#0x90+var_38]                              ; +0xc, 0x87fa4c\nADRP            X22, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x87fa50\nSTR             X27, [SP,#0x90+var_40]                                 ; +0x14, 0x87fa54\nSTP             X19, X20, [SP,#0x90+var_80]                            ; +0x18, 0x87fa58\nMOV             X19, X0                                                ; +0x1c, 0x87fa5c\nMOV             W27, W5                                                ; +0x20, 0x87fa60\nLDR             X0, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x87fa64\nADD             X20, X29, #0x90+var_10                                 ; +0x28, 0x87fa68\nFMOV            S8, S0                                                 ; +0x2c, 0x87fa6c\nADD             X21, X29, #0x90+var_18                                 ; +0x30, 0x87fa70\nFMOV            S9, S1                                                 ; +0x34, 0x87fa74\nSTP             X23, X24, [SP,#0x90+var_60]                            ; +0x38, 0x87fa78\nSTP             X25, X26, [SP,#0x90+var_50]                            ; +0x3c, 0x87fa7c\nLDR             X0, [X0]; this                                         ; +0x40, 0x87fa80\nUXTB            W24, W2                                                ; +0x44, 0x87fa84\nSTRB            WZR, [X19,#0x2A0]                                      ; +0x48, 0x87fa88\nUXTB            W23, W3                                                ; +0x4c, 0x87fa8c\nUXTB            W26, W4                                                ; +0x50, 0x87fa90\nMOV             X25, X1                                                ; +0x54, 0x87fa94\nSTR             X0, [X29,#0x90+var_8]                                  ; +0x58, 0x87fa98\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x5c, 0x87fa9c\nADD             X8, X29, #0x90+var_20                                  ; +0x60, 0x87faa0\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x64, 0x87faa4\nFMOV            S1, #0.5                                               ; +0x68, 0x87faa8\nMOV             X0, X20; this                                          ; +0x6c, 0x87faac\nLDR             S0, [X29,#0x90+var_20]                                 ; +0x70, 0x87fab0\nLDR             S2, [X29,#0x90+var_1C]                                 ; +0x74, 0x87fab4\nFMUL            S0, S0, S1                                             ; +0x78, 0x87fab8\nFMUL            S2, S2, S1                                             ; +0x7c, 0x87fabc\nLDR             S1, [X19,#0x1A8]                                       ; +0x80, 0x87fac0\nFDIV            S0, S0, S1; float                                      ; +0x84, 0x87fac4\nFDIV            S1, S2, S1; float                                      ; +0x88, 0x87fac8\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x8c, 0x87facc\nMOV             X1, X20                                                ; +0x90, 0x87fad0\nMOV             X8, X21                                                ; +0x94, 0x87fad4\nADD             X0, X19, #0x50C                                        ; +0x98, 0x87fad8\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x9c, 0x87fadc\nMOV             X0, X21                                                ; +0xa0, 0x87fae0\nADD             X1, X19, #0x1B0                                        ; +0xa4, 0x87fae4\nMOV             X8, X20                                                ; +0xa8, 0x87fae8\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0xac, 0x87faec\nMOV             X0, X21                                                ; +0xb0, 0x87faf0\nMOV             X1, X20                                                ; +0xb4, 0x87faf4\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xb8, 0x87faf8\nCBZ             W24, loc_87FB4C                                        ; +0xbc, 0x87fafc\nFMOV            S0, #1.0                                               ; +0xc0, 0x87fb00\nADD             X0, X19, #0x1A8; this                                  ; +0xc4, 0x87fb04\nLDR             W2, [X29,#0x90+var_18]                                 ; +0xc8, 0x87fb08\nMOV             W1, #0xC; int                                          ; +0xcc, 0x87fb0c\nSTR             S0, [X19,#0x238]                                       ; +0xd0, 0x87fb10\nFMOV            S0, WZR                                                ; +0xd4, 0x87fb14\nSTR             W2, [X19,#0x1E0]                                       ; +0xd8, 0x87fb18\nSTR             S0, [X19,#0x1F0]                                       ; +0xdc, 0x87fb1c\nBL              _ZN11GJGameState15stopTweenActionEi; GJGameState::stopTweenAction(int) ; +0xe0, 0x87fb20\nLDR             S0, [X19,#0x1D0]; float                                ; +0xe4, 0x87fb24\nLDR             S1, flt_87FC80; float                                  ; +0xe8, 0x87fb28\nLDR             S2, flt_87FC84; float                                  ; +0xec, 0x87fb2c\nBL              _ZN7cocos2d6clampfEfff; cocos2d::clampf(float,float,float) ; +0xf0, 0x87fb30\nLDR             W0, [X29,#0x90+var_18]                                 ; +0xf4, 0x87fb34\nSTR             S0, [X19,#0x200]                                       ; +0xf8, 0x87fb38\nSTR             S8, [X19,#0x208]                                       ; +0xfc, 0x87fb3c\nSTR             W0, [X19,#0x1D8]                                       ; +0x100, 0x87fb40\nLDR             W0, [X25]                                              ; +0x104, 0x87fb44\nSTR             W0, [X19,#0x1E8]                                       ; +0x108, 0x87fb48\nCBNZ            W23, loc_87FB98                                        ; +0x10c, 0x87fb4c\nCBNZ            W26, loc_87FB64                                        ; +0x110, 0x87fb50\nFCMPE           S8, #0.0                                               ; +0x114, 0x87fb54\nB.LE            loc_87FBE8                                             ; +0x118, 0x87fb58\nCBNZ            W24, loc_87FC34                                        ; +0x11c, 0x87fb5c\nCBNZ            W23, loc_87FC08                                        ; +0x120, 0x87fb60\nLDR             X22, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x124, 0x87fb64\nLDR             X1, [X29,#0x90+var_8]                                  ; +0x128, 0x87fb68\nLDR             X0, [X22]                                              ; +0x12c, 0x87fb6c\nCMP             X1, X0                                                 ; +0x130, 0x87fb70\nB.NE            loc_87FC7C                                             ; +0x134, 0x87fb74\nLDP             X19, X20, [SP,#0x90+var_80]                            ; +0x138, 0x87fb78\nLDP             D8, D9, [SP,#0x90+var_38]                              ; +0x13c, 0x87fb7c\nLDP             X21, X22, [SP,#0x90+var_70]                            ; +0x140, 0x87fb80\nLDP             X23, X24, [SP,#0x90+var_60]                            ; +0x144, 0x87fb84\nLDP             X25, X26, [SP,#0x90+var_50]                            ; +0x148, 0x87fb88\nLDR             X27, [SP,#0x90+var_40]                                 ; +0x14c, 0x87fb8c\nLDP             X29, X30, [SP+0x90+var_90],#0x90                       ; +0x150, 0x87fb90\nRET                                                                    ; +0x154, 0x87fb94\nFMOV            S0, #1.0                                               ; +0x158, 0x87fb98\nADD             X0, X19, #0x1A8; this                                  ; +0x15c, 0x87fb9c\nLDR             W2, [X29,#0x90+var_14]                                 ; +0x160, 0x87fba0\nMOV             W1, #0xD; int                                          ; +0x164, 0x87fba4\nSTR             S0, [X19,#0x23C]                                       ; +0x168, 0x87fba8\nFMOV            S0, WZR                                                ; +0x16c, 0x87fbac\nSTR             W2, [X19,#0x1E4]                                       ; +0x170, 0x87fbb0\nSTR             S0, [X19,#0x1F4]                                       ; +0x174, 0x87fbb4\nBL              _ZN11GJGameState15stopTweenActionEi; GJGameState::stopTweenAction(int) ; +0x178, 0x87fbb8\nLDR             S0, [X19,#0x1D4]; float                                ; +0x17c, 0x87fbbc\nLDR             S1, flt_87FC80; float                                  ; +0x180, 0x87fbc0\nLDR             S2, flt_87FC84; float                                  ; +0x184, 0x87fbc4\nBL              _ZN7cocos2d6clampfEfff; cocos2d::clampf(float,float,float) ; +0x188, 0x87fbc8\nLDR             W0, [X29,#0x90+var_14]                                 ; +0x18c, 0x87fbcc\nSTR             S0, [X19,#0x204]                                       ; +0x190, 0x87fbd0\nSTR             S8, [X19,#0x20C]                                       ; +0x194, 0x87fbd4\nSTR             W0, [X19,#0x1DC]                                       ; +0x198, 0x87fbd8\nLDR             W0, [X25,#4]                                           ; +0x19c, 0x87fbdc\nSTR             W0, [X19,#0x1EC]                                       ; +0x1a0, 0x87fbe0\nB               loc_87FB50                                             ; +0x1a4, 0x87fbe4\nCBNZ            W24, loc_87FC64                                        ; +0x1a8, 0x87fbe8\nCBZ             W23, loc_87FB64                                        ; +0x1ac, 0x87fbec\nADD             X0, X19, #0x1A8; this                                  ; +0x1b0, 0x87fbf0\nMOV             W1, #0xB; int                                          ; +0x1b4, 0x87fbf4\nBL              _ZN11GJGameState15stopTweenActionEi; GJGameState::stopTweenAction(int) ; +0x1b8, 0x87fbf8\nLDR             W0, [X19,#0x1EC]                                       ; +0x1bc, 0x87fbfc\nSTR             W0, [X19,#0x1E4]                                       ; +0x1c0, 0x87fc00\nB               loc_87FB64                                             ; +0x1c4, 0x87fc04\nLDR             S0, [X19,#0x1E4]; float                                ; +0x1c8, 0x87fc08\nMOV             W3, #0xFFFFFFFF; int                                   ; +0x1cc, 0x87fc0c\nLDR             S1, [X19,#0x1EC]; float                                ; +0x1d0, 0x87fc10\nADD             X0, X19, #0x1A8; this                                  ; +0x1d4, 0x87fc14\nFMOV            S2, S8; float                                          ; +0x1d8, 0x87fc18\nMOV             W1, #0xB; int                                          ; +0x1dc, 0x87fc1c\nFMOV            S3, S9; float                                          ; +0x1e0, 0x87fc20\nMOV             W2, W27; int                                           ; +0x1e4, 0x87fc24\nMOV             W4, W3; int                                            ; +0x1e8, 0x87fc28\nBL              _ZN11GJGameState10tweenValueEffififii; GJGameState::tweenValue(float,float,int,float,int,float,int,int) ; +0x1ec, 0x87fc2c\nB               loc_87FB64                                             ; +0x1f0, 0x87fc30\nLDR             S0, [X19,#0x1E0]; float                                ; +0x1f4, 0x87fc34\nMOV             W3, #0xFFFFFFFF; int                                   ; +0x1f8, 0x87fc38\nLDR             S1, [X19,#0x1E8]; float                                ; +0x1fc, 0x87fc3c\nADD             X0, X19, #0x1A8; this                                  ; +0x200, 0x87fc40\nFMOV            S2, S8; float                                          ; +0x204, 0x87fc44\nMOV             W1, #0xA; int                                          ; +0x208, 0x87fc48\nFMOV            S3, S9; float                                          ; +0x20c, 0x87fc4c\nMOV             W2, W27; int                                           ; +0x210, 0x87fc50\nMOV             W4, W3; int                                            ; +0x214, 0x87fc54\nBL              _ZN11GJGameState10tweenValueEffififii; GJGameState::tweenValue(float,float,int,float,int,float,int,int) ; +0x218, 0x87fc58\nCBZ             W23, loc_87FB64                                        ; +0x21c, 0x87fc5c\nB               loc_87FC08                                             ; +0x220, 0x87fc60\nADD             X0, X19, #0x1A8; this                                  ; +0x224, 0x87fc64\nMOV             W1, #0xA; int                                          ; +0x228, 0x87fc68\nBL              _ZN11GJGameState15stopTweenActionEi; GJGameState::stopTweenAction(int) ; +0x22c, 0x87fc6c\nLDR             W0, [X19,#0x1E8]                                       ; +0x230, 0x87fc70\nSTR             W0, [X19,#0x1E0]                                       ; +0x234, 0x87fc74\nB               loc_87FBEC                                             ; +0x238, 0x87fc78\nBL              .__stack_chk_fail                                      ; +0x23c, 0x87fc7c", "xrefs": ["PlayLayer::playEndAnimationToPos @ 0x5cc18c", "GJBaseGameLayer::animateInDualGroundNew @ 0x87fde4", "GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x88066c", "<???> @ 0x30f90"], "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"}