.module script_input_4

.include "vm.i"
.include "data/game_globals.i"
.include "macro.i"

.globl _fade_frames_per_step, _camera_settings, ___bank_scene_13, _scene_13

.area _CODE_255

.LOCAL_ACTOR = -4

___bank_script_input_4 = 255
.globl ___bank_script_input_4

_script_input_4::
        VM_RESERVE              4

GBVM$script_input_4$5202b387_b355_4b24_aac6_3909602aa8d3$961b9a60_e2d2_4dc4_a52b_577e08d087e1$scene$961b9a60_e2d2_4dc4_a52b_577e08d087e1$script = .
.globl GBVM$script_input_4$5202b387_b355_4b24_aac6_3909602aa8d3$961b9a60_e2d2_4dc4_a52b_577e08d087e1$scene$961b9a60_e2d2_4dc4_a52b_577e08d087e1$script
        ; Load Scene
        VM_SET_CONST_INT8       _fade_frames_per_step, 3
        VM_FADE_OUT             1
        ; -- Calculate coordinate values
        VM_RPN
            .R_INT16    0
            .R_REF_SET  ^/(.LOCAL_ACTOR + 1)/
            .R_INT16    0
            .R_REF_SET  ^/(.LOCAL_ACTOR + 2)/
            .R_STOP
        VM_SET_CONST            .LOCAL_ACTOR, 0
        VM_ACTOR_SET_POS        .LOCAL_ACTOR
        VM_ACTOR_SET_DIR        .LOCAL_ACTOR, .DIR_DOWN
        VM_SET_CONST_INT8       _camera_settings, .CAMERA_LOCK
        VM_RAISE                EXCEPTION_CHANGE_SCENE, 3
            IMPORT_FAR_PTR_DATA _scene_13

GBVM$script_input_4$987cb2c9_e6d2_4db7_a185_ed1a91ff4794$961b9a60_e2d2_4dc4_a52b_577e08d087e1$scene$961b9a60_e2d2_4dc4_a52b_577e08d087e1$script = .
.globl GBVM$script_input_4$987cb2c9_e6d2_4db7_a185_ed1a91ff4794$961b9a60_e2d2_4dc4_a52b_577e08d087e1$scene$961b9a60_e2d2_4dc4_a52b_577e08d087e1$script
        ; Input Script Attach
        VM_CONTEXT_PREPARE      1, ___bank_script_input_5, _script_input_5
        VM_INPUT_ATTACH         128, ^/(1 | .OVERRIDE_DEFAULT)/

GBVM_END$script_input_4$987cb2c9_e6d2_4db7_a185_ed1a91ff4794 = .
.globl GBVM_END$script_input_4$987cb2c9_e6d2_4db7_a185_ed1a91ff4794
        ; Stop Script
        VM_STOP
