{"type": "func", "start": 4743264, "end": 4743346, "name": "GJBaseGameLayer::updateMGOffsetY", "pseudocode": "// \n// GJBaseGameLayer::updateMGOffsetY from 0x486060 to 0x4860b2 (82 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::activateTriggerEffect @ 0x36df16\n// > LevelEditorLayer::updateGameObjects @ 0x3759da\n// > EffectGameObject::triggerObject @ 0x3edd50\n// > GJBaseGameLayer::resetLevelVariables @ 0x491db8\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::updateMGOffsetY(GJBaseGameLayer *a1, float a2, float a3, int a4, float a5, int a6, int a7)\n{\n  GJGameState *p_m_gameState; // r0\n\n  *(float *)&a1->m_gameState.m_unkInt3 = a2;\n  *(float *)&a1->m_gameState.m_unkInt4 = a3;\n  p_m_gameState = &a1->m_gameState;\n  if ( a3 <= 0.0 )\n  {\n    GJGameState::stopTweenAction(p_m_gameState, 20);\n    LODWORD(a1->m_gameState.m_middleGroundOffsetY) = a1->m_gameState.m_unkInt3;\n  }\n  else\n  {\n    GJGameState::tweenValue(p_m_gameState, a1->m_gameState.m_middleGroundOffsetY, a2, 20, a3, a4, a5, a6, a7);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateMGOffsetY from 0x486060 to 0x4860b2 (82 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::activateTriggerEffect @ 0x36df16\n; > LevelEditorLayer::updateGameObjects @ 0x3759da\n; > EffectGameObject::triggerObject @ 0x3edd50\n; > GJBaseGameLayer::resetLevelVariables @ 0x491db8\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\nVMOV            S15, R2                                                ; +0x0, 0x486060\nPUSH            {R4,R5,LR}                                             ; +0x4, 0x486064\nVCMPE.F32       S15, #0.0                                              ; +0x6, 0x486066\nMOV             R4, R0                                                 ; +0xa, 0x48606a\nSUB             SP, SP, #0x1C                                          ; +0xc, 0x48606c\nMOV             R5, R1                                                 ; +0xe, 0x48606e\nSTR.W           R1, [R4,#0x260]                                        ; +0x10, 0x486070\nSTR.W           R2, [R4,#0x264]                                        ; +0x14, 0x486074\nADD.W           R0, R0, #0x148; this                                   ; +0x18, 0x486078\nVMRS            APSR_nzcv, FPSCR                                       ; +0x1c, 0x48607c\nBLE             loc_4860A0                                             ; +0x20, 0x486080\nSTR             R3, [SP,#0x1C+var_18]; int                             ; +0x22, 0x486082\nLDR             R3, [SP,#0x1C+arg_0]                                   ; +0x24, 0x486084\nSTR             R2, [SP,#0x1C+var_1C]; float                           ; +0x26, 0x486086\nMOV             R2, R5; float                                          ; +0x28, 0x486088\nLDR.W           R1, [R4,#0x25C]; float                                 ; +0x2a, 0x48608a\nSTR             R3, [SP,#0x1C+var_14]; float                           ; +0x2e, 0x48608e\nLDR             R3, [SP,#0x1C+arg_4]                                   ; +0x30, 0x486090\nSTR             R3, [SP,#0x1C+var_10]; int                             ; +0x32, 0x486092\nLDR             R3, [SP,#0x1C+arg_8]                                   ; +0x34, 0x486094\nSTR             R3, [SP,#0x1C+var_C]; int                              ; +0x36, 0x486096\nMOVS            R3, #0x14; int                                         ; +0x38, 0x486098\nBL              _ZN11GJGameState10tweenValueEffififii; GJGameState::tweenValue(float,float,int,float,int,float,int,int) ; +0x3a, 0x48609a\nB               loc_4860AE                                             ; +0x3e, 0x48609e\nMOVS            R1, #0x14; int                                         ; +0x40, 0x4860a0\nBL              _ZN11GJGameState15stopTweenActionEi; GJGameState::stopTweenAction(int) ; +0x42, 0x4860a2\nLDR.W           R3, [R4,#0x260]                                        ; +0x46, 0x4860a6\nSTR.W           R3, [R4,#0x25C]                                        ; +0x4a, 0x4860aa\nADD             SP, SP, #0x1C                                          ; +0x4e, 0x4860ae\nPOP             {R4,R5,PC}                                             ; +0x50, 0x4860b0", "xrefs": ["LevelEditorLayer::activateTriggerEffect @ 0x36df16", "LevelEditorLayer::updateGameObjects @ 0x3759da", "EffectGameObject::triggerObject @ 0x3edd50", "GJBaseGameLayer::resetLevelVariables @ 0x491db8"], "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"}