{"type": "func", "start": 4751648, "end": 4752076, "name": "GJBaseGameLayer::exitStaticCamera", "pseudocode": "// \n// GJBaseGameLayer::exitStaticCamera from 0x488120 to 0x4882cc (428 bytes)\n// \n// 1 xrefs:\n// > CameraTriggerGameObject::triggerObject @ 0x3ee6aa\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; // r10\n  _BOOL4 v12; // r11\n  cocos2d::CCDirector *v13; // r0\n  int v14; // r2\n  bool v15; // r3\n  float x; // r0\n  float v17; // r0\n  float y; // r0\n  float v19; // r0\n  cocos2d::CCSize v20; // [sp+Ch] [bp-20h] BYREF\n  _BYTE v21[8]; // [sp+14h] [bp-18h] BYREF\n  cocos2d::CCPoint v22; // [sp+1Ch] [bp-10h] BYREF\n\n  v10 = a3;\n  v12 = a2;\n  if ( a9 )\n  {\n    if ( a2 )\n      a1->m_gameState.m_unkBool28 = 1;\n    if ( a3 )\n      a1->m_gameState.m_unkBool29 = 1;\n  }\n  v13 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(&v20, v13);\n  cocos2d::CCPoint::CCPoint(\n    &v22,\n    (float)(v20.width * 0.5) / a1->m_gameState.m_cameraZoom,\n    (float)(v20.height * 0.5) / a1->m_gameState.m_cameraZoom);\n  cocos2d::CCPoint::operator+(v21, &a1->m_gameState.m_cameraPosition2, &v22);\n  cocos2d::CCPoint::operator-(&v22, v21, &a1->m_gameState.m_cameraOffset);\n  cocos2d::CCPoint::operator=((PlayerObject *)v21, COERCE_FLOAT(&v22), v14, v15);\n  if ( v12 && a1->m_gameState.m_unkPoint17.x != 0.0 )\n  {\n    a1->m_gameState.m_unkPoint18.x = 1.0;\n    a1->m_gameState.m_unkPoint17.x = 0.0;\n    GJGameState::stopTweenAction(&a1->m_gameState, 10);\n    a1->m_gameState.m_unkPoint19.x = a4;\n    a1->m_gameState.m_unkPoint20.x = a6;\n    a1->m_gameState.m_unkPoint23.x = a8;\n    x = a1->m_gameState.m_unkPoint4.x;\n    a1->m_gameState.m_unkPoint21.x = (float)a5;\n    a1->m_gameState.m_unkPoint22.x = (float)a7;\n    v17 = cocos2d::clampf(x, -10000.0, 10000.0);\n    a1->m_gameState.m_unkPoint5.x = a1->m_gameState.m_unkPoint6.x;\n    a1->m_gameState.m_unkPoint10.x = v17;\n  }\n  if ( v10 && a1->m_gameState.m_unkPoint17.y != 0.0 )\n  {\n    a1->m_gameState.m_unkPoint18.y = 1.0;\n    a1->m_gameState.m_unkPoint17.y = 0.0;\n    GJGameState::stopTweenAction(&a1->m_gameState, 11);\n    a1->m_gameState.m_unkPoint19.y = a4;\n    a1->m_gameState.m_unkPoint20.y = a6;\n    y = a1->m_gameState.m_unkPoint4.y;\n    a1->m_gameState.m_unkPoint23.y = a8;\n    a1->m_gameState.m_unkPoint22.y = (float)a7;\n    a1->m_gameState.m_unkPoint21.y = (float)a5;\n    v19 = cocos2d::clampf(y, -10000.0, 10000.0);\n    a1->m_gameState.m_unkPoint5.y = a1->m_gameState.m_unkPoint6.y;\n    a1->m_gameState.m_unkPoint10.y = v19;\n  }\n  if ( a1->m_gameState.m_unkBool7 && a1->m_gameState.m_unkPoint17.y == 0.0 )\n    GJBaseGameLayer::updateDualGround(a1, a1->m_player1, a1->m_gameState.m_dualRelated, 0, 0.0);\n}", "assembly": "; \n; GJBaseGameLayer::exitStaticCamera from 0x488120 to 0x4882cc (428 bytes)\n; \n; 1 xrefs:\n; > CameraTriggerGameObject::triggerObject @ 0x3ee6aa\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\nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x488120\nMOV             R9, R3                                                 ; +0x4, 0x488124\nVPUSH           {D8}                                                   ; +0x6, 0x488126\nMOV             R10, R2                                                ; +0xa, 0x48812a\nMOV             R4, R0                                                 ; +0xc, 0x48812c\nMOV             R11, R1                                                ; +0xe, 0x48812e\nSUB             SP, SP, #0x2C                                          ; +0x10, 0x488130\nLDRB.W          R3, [SP,#0x2C+arg_8]                                   ; +0x12, 0x488132\nLDR.W           R8, [SP,#0x2C+arg_4]                                   ; +0x16, 0x488136\nVLDR            S17, [SP,#0x2C+arg_C]                                  ; +0x1a, 0x48813a\nVMOV            S16, R3                                                ; +0x1e, 0x48813e\nLDR             R3, =(__stack_chk_guard_ptr - 0x488148)                ; +0x22, 0x488142\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x24, 0x488144\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x26, 0x488146\nLDR             R2, [R3]                                               ; +0x28, 0x488148\nMOV             R6, R3                                                 ; +0x2a, 0x48814a\nLDRB.W          R3, [SP,#0x2C+arg_10]                                  ; +0x2c, 0x48814c\nSTR             R2, [SP,#0x2C+var_8]                                   ; +0x30, 0x488150\nCBZ             R3, loc_488168                                         ; +0x32, 0x488152\nCBZ             R1, loc_48815C                                         ; +0x34, 0x488154\nMOVS            R3, #1                                                 ; +0x36, 0x488156\nSTRB.W          R3, [R0,#0x560]                                        ; +0x38, 0x488158\nCMP.W           R10, #0                                                ; +0x3c, 0x48815c\nBEQ             loc_488168                                             ; +0x40, 0x488160\nMOVS            R3, #1                                                 ; +0x42, 0x488162\nSTRB.W          R3, [R4,#0x561]                                        ; +0x44, 0x488164\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x48, 0x488168\nADD             R5, SP, #0x2C+var_10                                   ; +0x4c, 0x48816c\nADD             R7, SP, #0x2C+var_18                                   ; +0x4e, 0x48816e\nMOV             R1, R0                                                 ; +0x50, 0x488170\nADD             R0, SP, #0x2C+var_20; this                             ; +0x52, 0x488172\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x54, 0x488174\nVMOV.F32        S12, #0.5                                              ; +0x58, 0x488178\nVLDR            S14, [SP,#0x2C+var_20]                                 ; +0x5c, 0x48817c\nMOV             R0, R5; this                                           ; +0x60, 0x488180\nVLDR            S15, [SP,#0x2C+var_1C]                                 ; +0x62, 0x488182\nVLDR            S13, [R4,#0x148]                                       ; +0x66, 0x488186\nVMUL.F32        S14, S14, S12                                          ; +0x6a, 0x48818a\nVMUL.F32        S15, S15, S12                                          ; +0x6e, 0x48818e\nVDIV.F32        S14, S14, S13                                          ; +0x72, 0x488192\nVDIV.F32        S15, S15, S13                                          ; +0x76, 0x488196\nVMOV            R1, S14; float                                         ; +0x7a, 0x48819a\nVMOV            R2, S15; float                                         ; +0x7e, 0x48819e\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x82, 0x4881a2\nMOV             R0, R7                                                 ; +0x86, 0x4881a6\nADD.W           R1, R4, #0x410                                         ; +0x88, 0x4881a8\nMOV             R2, R5                                                 ; +0x8c, 0x4881ac\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x8e, 0x4881ae\nMOV             R0, R5                                                 ; +0x92, 0x4881b2\nMOV             R1, R7                                                 ; +0x94, 0x4881b4\nADD.W           R2, R4, #0x150                                         ; +0x96, 0x4881b6\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x9a, 0x4881ba\nMOV             R0, R7                                                 ; +0x9e, 0x4881be\nMOV             R1, R5                                                 ; +0xa0, 0x4881c0\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xa2, 0x4881c2\nCMP.W           R11, #0                                                ; +0xa6, 0x4881c6\nBEQ             loc_48822A                                             ; +0xaa, 0x4881ca\nVLDR            S15, [R4,#0x1D8]                                       ; +0xac, 0x4881cc\nVCMP.F32        S15, #0.0                                              ; +0xb0, 0x4881d0\nVMRS            APSR_nzcv, FPSCR                                       ; +0xb4, 0x4881d4\nBEQ             loc_48822A                                             ; +0xb8, 0x4881d8\nMOV.W           R3, #0x3F800000                                        ; +0xba, 0x4881da\nADD.W           R0, R4, #0x148; this                                   ; +0xbe, 0x4881de\nSTR.W           R3, [R4,#0x1E0]                                        ; +0xc2, 0x4881e2\nMOVS            R1, #0xA; int                                          ; +0xc6, 0x4881e6\nMOVS            R3, #0                                                 ; +0xc8, 0x4881e8\nSTR.W           R3, [R4,#0x1D8]                                        ; +0xca, 0x4881ea\nBL              _ZN11GJGameState15stopTweenActionEi; GJGameState::stopTweenAction(int) ; +0xce, 0x4881ee\nVLDR            S15, [SP,#0x2C+arg_0]                                  ; +0xd2, 0x4881f2\nSTR.W           R9, [R4,#0x1E8]                                        ; +0xd6, 0x4881f6\nSTR.W           R8, [R4,#0x1F0]                                        ; +0xda, 0x4881fa\nVSTR            S17, [R4,#0x208]                                       ; +0xde, 0x4881fe\nLDR.W           R0, [R4,#0x170]; this                                  ; +0xe2, 0x488202\nLDR             R1, flt_4882CC; float                                  ; +0xe6, 0x488206\nVCVT.F32.S32    S15, S15                                               ; +0xe8, 0x488208\nLDR             R2, flt_4882D0; float                                  ; +0xec, 0x48820c\nVSTR            S15, [R4,#0x1F8]                                       ; +0xee, 0x48820e\nVCVT.F32.U32    S15, S16                                               ; +0xf2, 0x488212\nVSTR            S15, [R4,#0x200]                                       ; +0xf6, 0x488216\nBL              _ZN7cocos2d6clampfEfff; cocos2d::clampf(float,float,float) ; +0xfa, 0x48821a\nLDR.W           R3, [R4,#0x180]                                        ; +0xfe, 0x48821e\nSTR.W           R3, [R4,#0x178]                                        ; +0x102, 0x488222\nSTR.W           R0, [R4,#0x1A0]                                        ; +0x106, 0x488226\nCMP.W           R10, #0                                                ; +0x10a, 0x48822a\nBEQ             loc_48828E                                             ; +0x10e, 0x48822e\nVLDR            S15, [R4,#0x1DC]                                       ; +0x110, 0x488230\nVCMP.F32        S15, #0.0                                              ; +0x114, 0x488234\nVMRS            APSR_nzcv, FPSCR                                       ; +0x118, 0x488238\nBEQ             loc_48828E                                             ; +0x11c, 0x48823c\nMOV.W           R3, #0x3F800000                                        ; +0x11e, 0x48823e\nADD.W           R0, R4, #0x148; this                                   ; +0x122, 0x488242\nSTR.W           R3, [R4,#0x1E4]                                        ; +0x126, 0x488246\nMOVS            R1, #0xB; int                                          ; +0x12a, 0x48824a\nMOVS            R3, #0                                                 ; +0x12c, 0x48824c\nSTR.W           R3, [R4,#0x1DC]                                        ; +0x12e, 0x48824e\nBL              _ZN11GJGameState15stopTweenActionEi; GJGameState::stopTweenAction(int) ; +0x132, 0x488252\nVLDR            S15, [SP,#0x2C+arg_0]                                  ; +0x136, 0x488256\nSTR.W           R9, [R4,#0x1EC]                                        ; +0x13a, 0x48825a\nSTR.W           R8, [R4,#0x1F4]                                        ; +0x13e, 0x48825e\nVCVT.F32.U32    S16, S16                                               ; +0x142, 0x488262\nLDR.W           R0, [R4,#0x174]; this                                  ; +0x146, 0x488266\nVSTR            S17, [R4,#0x20C]                                       ; +0x14a, 0x48826a\nLDR             R1, flt_4882CC; float                                  ; +0x14e, 0x48826e\nLDR             R2, flt_4882D0; float                                  ; +0x150, 0x488270\nVCVT.F32.S32    S15, S15                                               ; +0x152, 0x488272\nVSTR            S16, [R4,#0x204]                                       ; +0x156, 0x488276\nVSTR            S15, [R4,#0x1FC]                                       ; +0x15a, 0x48827a\nBL              _ZN7cocos2d6clampfEfff; cocos2d::clampf(float,float,float) ; +0x15e, 0x48827e\nLDR.W           R3, [R4,#0x184]                                        ; +0x162, 0x488282\nSTR.W           R3, [R4,#0x17C]                                        ; +0x166, 0x488286\nSTR.W           R0, [R4,#0x1A4]                                        ; +0x16a, 0x48828a\nLDRB.W          R3, [R4,#0x2B0]                                        ; +0x16e, 0x48828e\nCBZ             R3, loc_4882B6                                         ; +0x172, 0x488292\nVLDR            S15, [R4,#0x1DC]                                       ; +0x174, 0x488294\nVCMP.F32        S15, #0.0                                              ; +0x178, 0x488298\nVMRS            APSR_nzcv, FPSCR                                       ; +0x17c, 0x48829c\nBNE             loc_4882B6                                             ; +0x180, 0x4882a0\nMOVS            R3, #0                                                 ; +0x182, 0x4882a2\nMOV             R0, R4; this                                           ; +0x184, 0x4882a4\nSTR             R3, [SP,#0x2C+var_2C]; float                           ; +0x186, 0x4882a6\nMOVS            R3, #0; bool                                           ; +0x188, 0x4882a8\nLDR.W           R1, [R4,#0x8B8]; PlayerObject *                        ; +0x18a, 0x4882aa\nLDR.W           R2, [R4,#0x440]; int                                   ; +0x18e, 0x4882ae\nBL              _ZN15GJBaseGameLayer16updateDualGroundEP12PlayerObjectibf; GJBaseGameLayer::updateDualGround(PlayerObject *,int,bool,float) ; +0x192, 0x4882b2\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0x196, 0x4882b6\nLDR             R3, [R6]                                               ; +0x198, 0x4882b8\nCMP             R2, R3                                                 ; +0x19a, 0x4882ba\nBEQ             loc_4882C2                                             ; +0x19c, 0x4882bc\nBLX             __stack_chk_fail                                       ; +0x19e, 0x4882be\nADD             SP, SP, #0x2C ; ','                                    ; +0x1a2, 0x4882c2\nVPOP            {D8}                                                   ; +0x1a4, 0x4882c4\nPOP.W           {R4-R11,PC}                                            ; +0x1a8, 0x4882c8", "xrefs": ["CameraTriggerGameObject::triggerObject @ 0x3ee6aa"], "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"}