{"type": "func", "start": 4752088, "end": 4752560, "name": "GJBaseGameLayer::updateStaticCameraPosToGroup", "pseudocode": "// \n// GJBaseGameLayer::updateStaticCameraPosToGroup from 0x4882d8 to 0x4884b0 (472 bytes)\n// \n// 1 xrefs:\n// > CameraTriggerGameObject::triggerObject @ 0x3ee68a\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::updateStaticCameraPosToGroup(\n        GJBaseGameLayer *a1,\n        int a2,\n        bool a3,\n        bool a4,\n        bool a5,\n        float a6,\n        float a7,\n        int a8,\n        float a9,\n        bool a10,\n        float a11)\n{\n  _BOOL4 v11; // r10\n  _BOOL4 v13; // r9\n  float v15; // s17\n  GameObject *MainObject; // r0\n  char v17; // r5\n  cocos2d::CCPoint *v18; // r1 OVERLAPPED\n  _BOOL4 v19; // r2 OVERLAPPED\n  int v20; // [sp+10h] [bp-24h]\n  cocos2d::CCPoint v21; // [sp+1Ch] [bp-18h] BYREF\n  cocos2d::CCPoint v22; // [sp+24h] [bp-10h] BYREF\n\n  v11 = a4;\n  v13 = a3;\n  v15 = a6;\n  MainObject = GJBaseGameLayer::tryGetMainObject(a1, a2);\n  if ( MainObject )\n  {\n    MainObject->getRealPosition(&v21, MainObject);\n    if ( a6 <= 1.0 )\n      v15 = 1.0;\n    if ( v13 )\n    {\n      a1->m_gameState.m_unkPoint23.x = a11;\n      a1->m_gameState.m_unkPoint14.x = v15;\n      a1->m_gameState.m_unkPoint15.x = (float)a5;\n      a1->m_gameState.m_unkPoint22.x = (float)a10;\n      a1->m_gameState.m_unkPoint16.x = (float)a2;\n      GJGameState::stopTweenAction(&a1->m_gameState, 21);\n      if ( a1->m_gameState.m_unkPoint15.x != 0.0 || a1->m_gameState.m_unkPoint22.x != 0.0 )\n      {\n        if ( a7 > 0.0 )\n        {\n          a1->m_gameState.m_unkPoint12.x = 0.0;\n          a1->m_gameState.m_unkPoint13.x = 0.0;\n          GJGameState::tweenValue(&a1->m_gameState, 0.0, 1.0, 21, a7, a8, a9, -1, -1);\n        }\n        else\n        {\n          a1->m_gameState.m_unkPoint12.x = 1.0;\n          a1->m_gameState.m_unkPoint13.x = 1.0;\n        }\n      }\n    }\n    if ( v11 )\n    {\n      a1->m_gameState.m_unkPoint23.y = a11;\n      a1->m_gameState.m_unkPoint14.y = v15;\n      a1->m_gameState.m_unkPoint15.y = (float)a5;\n      a1->m_gameState.m_unkPoint16.y = (float)a2;\n      a1->m_gameState.m_unkPoint22.y = (float)a10;\n      GJGameState::stopTweenAction(&a1->m_gameState, 22);\n      if ( a1->m_gameState.m_unkPoint15.y != 0.0 || a1->m_gameState.m_unkPoint22.y != 0.0 )\n      {\n        if ( a7 > 0.0 )\n        {\n          a1->m_gameState.m_unkPoint12.y = 0.0;\n          a1->m_gameState.m_unkPoint13.y = 0.0;\n          GJGameState::tweenValue(&a1->m_gameState, 0.0, 1.0, 22, a7, a8, a9, -1, -1);\n        }\n        else\n        {\n          a1->m_gameState.m_unkPoint12.y = 1.0;\n          a1->m_gameState.m_unkPoint13.y = 1.0;\n        }\n      }\n    }\n    v17 = a10;\n    cocos2d::CCPoint::CCPoint(&v22, &v21);\n    v18 = &v22;\n    v19 = v13;\n    if ( a5 )\n      v17 = 1;\n    GJBaseGameLayer::updateStaticCameraPos(\n      a1,\n      *(cocos2d::CCPoint *)&v18,\n      v11,\n      v17,\n      SLOBYTE(a7),\n      *(float *)&a8,\n      SLODWORD(a9),\n      *(float *)&v20);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateStaticCameraPosToGroup from 0x4882d8 to 0x4884b0 (472 bytes)\n; \n; 1 xrefs:\n; > CameraTriggerGameObject::triggerObject @ 0x3ee68a\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, 0x4882d8\nMOV             R10, R3                                                ; +0x4, 0x4882dc\nVPUSH           {D8-D11}                                               ; +0x6, 0x4882de\nMOV             R4, R0                                                 ; +0xa, 0x4882e2\nLDR             R6, =(__stack_chk_guard_ptr - 0x4882EC)                ; +0xc, 0x4882e4\nMOV             R9, R2                                                 ; +0xe, 0x4882e6\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x10, 0x4882e8\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x12, 0x4882ea\nVMOV            S18, R1; int                                           ; +0x14, 0x4882ec\nSUB             SP, SP, #0x34; float                                   ; +0x18, 0x4882f0\nLDRB.W          R3, [SP,#0x34+arg_0]                                   ; +0x1a, 0x4882f2\nVLDR            S17, [SP,#0x34+arg_4]                                  ; +0x1e, 0x4882f6\nLDR.W           R8, [SP,#0x34+arg_C]                                   ; +0x22, 0x4882fa\nVMOV            S22, R3                                                ; +0x26, 0x4882fe\nLDRB.W          R3, [SP,#0x34+arg_14]                                  ; +0x2a, 0x488302\nVLDR            S16, [SP,#0x34+arg_8]                                  ; +0x2e, 0x488306\nVMOV            S23, R3                                                ; +0x32, 0x48830a\nLDR             R3, [R6]                                               ; +0x36, 0x48830e\nVLDR            S20, [SP,#0x34+arg_10]                                 ; +0x38, 0x488310\nSTR             R3, [SP,#0x34+var_8]                                   ; +0x3c, 0x488314\nVLDR            S21, [SP,#0x34+arg_18]                                 ; +0x3e, 0x488316\nBL              _ZN15GJBaseGameLayer16tryGetMainObjectEi; GJBaseGameLayer::tryGetMainObject(int) ; +0x42, 0x48831a\nMOV             R1, R0                                                 ; +0x46, 0x48831e\nCMP             R0, #0                                                 ; +0x48, 0x488320\nBEQ.W           loc_48849A                                             ; +0x4a, 0x488322\nVMOV.F32        S19, #1.0                                              ; +0x4e, 0x488326\nLDR             R3, [R0]                                               ; +0x52, 0x48832a\nADD.W           R11, SP, #0x34+var_18                                  ; +0x54, 0x48832c\nLDR.W           R3, [R3,#0x2A0]                                        ; +0x58, 0x488330\nMOV             R0, R11                                                ; +0x5c, 0x488334\nBLX             R3                                                     ; +0x5e, 0x488336\nVCMPE.F32       S17, S19                                               ; +0x60, 0x488338\nVMRS            APSR_nzcv, FPSCR                                       ; +0x64, 0x48833c\nIT LE                                                                  ; +0x68, 0x488340\nVMOVLE.F32      S17, S19                                               ; +0x6a, 0x488342\nCMP.W           R9, #0                                                 ; +0x6e, 0x488346\nBEQ             loc_488394                                             ; +0x72, 0x48834a\nADD.W           R5, R4, #0x148                                         ; +0x74, 0x48834c\nVSTR            S21, [R4,#0x208]                                       ; +0x78, 0x488350\nMOVS            R1, #0x15; int                                         ; +0x7c, 0x488354\nMOV             R0, R5; this                                           ; +0x7e, 0x488356\nVCVT.F32.U32    S15, S22                                               ; +0x80, 0x488358\nVSTR            S17, [R4,#0x1C0]                                       ; +0x84, 0x48835c\nVSTR            S15, [R4,#0x1C8]                                       ; +0x88, 0x488360\nVCVT.F32.U32    S15, S23                                               ; +0x8c, 0x488364\nVSTR            S15, [R4,#0x200]                                       ; +0x90, 0x488368\nVCVT.F32.S32    S15, S18                                               ; +0x94, 0x48836c\nVSTR            S15, [R4,#0x1D0]                                       ; +0x98, 0x488370\nBL              _ZN11GJGameState15stopTweenActionEi; GJGameState::stopTweenAction(int) ; +0x9c, 0x488374\nVLDR            S15, [R4,#0x1C8]                                       ; +0xa0, 0x488378\nVCMP.F32        S15, #0.0                                              ; +0xa4, 0x48837c\nVMRS            APSR_nzcv, FPSCR                                       ; +0xa8, 0x488380\nBNE             loc_488416                                             ; +0xac, 0x488384\nVLDR            S15, [R4,#0x200]                                       ; +0xae, 0x488386\nVCMP.F32        S15, #0.0                                              ; +0xb2, 0x48838a\nVMRS            APSR_nzcv, FPSCR                                       ; +0xb6, 0x48838e\nBNE             loc_488416                                             ; +0xba, 0x488392\nCMP.W           R10, #0                                                ; +0xbc, 0x488394\nBEQ             loc_4883E2                                             ; +0xc0, 0x488398\nVCVT.F32.U32    S15, S22                                               ; +0xc2, 0x48839a\nADD.W           R5, R4, #0x148                                         ; +0xc6, 0x48839e\nVSTR            S21, [R4,#0x20C]                                       ; +0xca, 0x4883a2\nMOVS            R1, #0x16; int                                         ; +0xce, 0x4883a6\nMOV             R0, R5; this                                           ; +0xd0, 0x4883a8\nVSTR            S17, [R4,#0x1C4]                                       ; +0xd2, 0x4883aa\nVSTR            S15, [R4,#0x1CC]                                       ; +0xd6, 0x4883ae\nVCVT.F32.S32    S18, S18                                               ; +0xda, 0x4883b2\nVCVT.F32.U32    S15, S23                                               ; +0xde, 0x4883b6\nVSTR            S18, [R4,#0x1D4]                                       ; +0xe2, 0x4883ba\nVSTR            S15, [R4,#0x204]                                       ; +0xe6, 0x4883be\nBL              _ZN11GJGameState15stopTweenActionEi; GJGameState::stopTweenAction(int) ; +0xea, 0x4883c2\nVLDR            S15, [R4,#0x1CC]                                       ; +0xee, 0x4883c6\nVCMP.F32        S15, #0.0                                              ; +0xf2, 0x4883ca\nVMRS            APSR_nzcv, FPSCR                                       ; +0xf6, 0x4883ce\nBNE             loc_488456                                             ; +0xfa, 0x4883d2\nVLDR            S15, [R4,#0x204]                                       ; +0xfc, 0x4883d4\nVCMP.F32        S15, #0.0                                              ; +0x100, 0x4883d8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x104, 0x4883dc\nBNE             loc_488456                                             ; +0x108, 0x4883e0\nADD             R7, SP, #0x34+var_10                                   ; +0x10a, 0x4883e2\nMOV             R1, R11; cocos2d::CCPoint *                            ; +0x10c, 0x4883e4\nVMOV            R5, S23                                                ; +0x10e, 0x4883e6\nMOV             R0, R7; this                                           ; +0x112, 0x4883ea\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x114, 0x4883ec\nVMOV            R3, S22                                                ; +0x118, 0x4883f0\nVSTR            S16, [SP,#0x34+var_30]                                 ; +0x11c, 0x4883f4\nMOV             R0, R4                                                 ; +0x120, 0x4883f8\nSTR.W           R8, [SP,#0x34+var_2C]                                  ; +0x122, 0x4883fa\nMOV             R1, R7                                                 ; +0x126, 0x4883fe\nMOV             R2, R9                                                 ; +0x128, 0x488400\nVSTR            S20, [SP,#0x34+var_28]                                 ; +0x12a, 0x488402\nCMP             R3, #0                                                 ; +0x12e, 0x488406\nMOV             R3, R10                                                ; +0x130, 0x488408\nIT NE                                                                  ; +0x132, 0x48840a\nMOVNE           R5, #1                                                 ; +0x134, 0x48840c\nSTR             R5, [SP,#0x34+var_34]                                  ; +0x136, 0x48840e\nBL              _ZN15GJBaseGameLayer21updateStaticCameraPosEN7cocos2d7CCPointEbbbfif; GJBaseGameLayer::updateStaticCameraPos(cocos2d::CCPoint,bool,bool,bool,float,int,float) ; +0x138, 0x488410\nB               loc_48849A                                             ; +0x13c, 0x488414\nVCMPE.F32       S16, #0.0                                              ; +0x13e, 0x488416\nMOVS            R1, #0; float                                          ; +0x142, 0x48841a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x144, 0x48841c\nBGT             loc_48842C                                             ; +0x148, 0x488420\nVSTR            S19, [R4,#0x1B0]                                       ; +0x14a, 0x488422\nVSTR            S19, [R4,#0x1B8]                                       ; +0x14e, 0x488426\nB               loc_488394                                             ; +0x152, 0x48842a\nMOV.W           R2, #0xFFFFFFFF                                        ; +0x154, 0x48842c\nSTR.W           R1, [R4,#0x1B0]                                        ; +0x158, 0x488430\nSTR             R2, [SP,#0x34+var_28]; int                             ; +0x15c, 0x488434\nMOV             R0, R5; this                                           ; +0x15e, 0x488436\nSTR             R2, [SP,#0x34+var_24]; int                             ; +0x160, 0x488438\nMOVS            R3, #0x15; int                                         ; +0x162, 0x48843a\nSTR.W           R1, [R4,#0x1B8]                                        ; +0x164, 0x48843c\nMOV.W           R2, #0x3F800000; float                                 ; +0x168, 0x488440\nVSTR            S16, [SP,#0x34+var_34]                                 ; +0x16c, 0x488444\nSTR.W           R8, [SP,#0x34+var_30]; int                             ; +0x170, 0x488448\nVSTR            S20, [SP,#0x34+var_2C]                                 ; +0x174, 0x48844c\nBL              _ZN11GJGameState10tweenValueEffififii; GJGameState::tweenValue(float,float,int,float,int,float,int,int) ; +0x178, 0x488450\nB               loc_488394                                             ; +0x17c, 0x488454\nVCMPE.F32       S16, #0.0                                              ; +0x17e, 0x488456\nMOVS            R1, #0; float                                          ; +0x182, 0x48845a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x184, 0x48845c\nBGT             loc_488470                                             ; +0x188, 0x488460\nMOV.W           R3, #0x3F800000                                        ; +0x18a, 0x488462\nSTR.W           R3, [R4,#0x1B4]                                        ; +0x18e, 0x488466\nSTR.W           R3, [R4,#0x1BC]                                        ; +0x192, 0x48846a\nB               loc_4883E2                                             ; +0x196, 0x48846e\nMOV.W           R2, #0xFFFFFFFF                                        ; +0x198, 0x488470\nSTR.W           R1, [R4,#0x1B4]                                        ; +0x19c, 0x488474\nSTR             R2, [SP,#0x34+var_28]; int                             ; +0x1a0, 0x488478\nMOV             R0, R5; this                                           ; +0x1a2, 0x48847a\nSTR             R2, [SP,#0x34+var_24]; int                             ; +0x1a4, 0x48847c\nMOVS            R3, #0x16; int                                         ; +0x1a6, 0x48847e\nSTR.W           R1, [R4,#0x1BC]                                        ; +0x1a8, 0x488480\nMOV.W           R2, #0x3F800000; float                                 ; +0x1ac, 0x488484\nVSTR            S16, [SP,#0x34+var_34]                                 ; +0x1b0, 0x488488\nSTR.W           R8, [SP,#0x34+var_30]; int                             ; +0x1b4, 0x48848c\nVSTR            S20, [SP,#0x34+var_2C]                                 ; +0x1b8, 0x488490\nBL              _ZN11GJGameState10tweenValueEffififii; GJGameState::tweenValue(float,float,int,float,int,float,int,int) ; +0x1bc, 0x488494\nB               loc_4883E2                                             ; +0x1c0, 0x488498\nLDR             R2, [SP,#0x34+var_8]                                   ; +0x1c2, 0x48849a\nLDR             R3, [R6]                                               ; +0x1c4, 0x48849c\nCMP             R2, R3                                                 ; +0x1c6, 0x48849e\nBEQ             loc_4884A6                                             ; +0x1c8, 0x4884a0\nBLX             __stack_chk_fail                                       ; +0x1ca, 0x4884a2\nADD             SP, SP, #0x34 ; '4'                                    ; +0x1ce, 0x4884a6\nVPOP            {D8-D11}                                               ; +0x1d0, 0x4884a8\nPOP.W           {R4-R11,PC}                                            ; +0x1d4, 0x4884ac", "xrefs": ["CameraTriggerGameObject::triggerObject @ 0x3ee68a"], "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"}