	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Script_LoadScene_b             ## -- Begin function Script_LoadScene_b
	.p2align	4, 0x90
_Script_LoadScene_b:                    ## @Script_LoadScene_b
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_script_cmd_args@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	shll	$8, %ecx
	leal	(%rcx,%rdx), %esi
	movq	_scene_next_index@GOTPCREL(%rip), %rdi
	movl	%esi, (%rdi)
	addl	%edx, %ecx
	incl	%ecx
	movq	_scene_index@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	8(%rax), %ecx
	leal	8(,%rcx,8), %ecx
	movq	_map_next_pos@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	12(%rax), %ecx
	leal	8(,%rcx,8), %ecx
	movl	%ecx, 4(%rdx)
	movl	16(%rax), %ecx
	xorl	%edx, %edx
	cmpl	$4, %ecx
	sete	%dl
	cmpl	$2, %ecx
	movl	$-1, %esi
	cmovel	%esi, %edx
	movq	_map_next_dir@GOTPCREL(%rip), %rdi
	movl	%edx, (%rdi)
	xorl	%edx, %edx
	cmpl	$1, %ecx
	sete	%dl
	cmpl	$8, %ecx
	cmovel	%esi, %edx
	movl	%edx, 4(%rdi)
	movq	_SCENE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_stage_next_type@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_scene_loaded@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	_script_action_complete@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movl	20(%rax), %edi
	callq	_FadeSetSpeed
	xorl	%eax, %eax
	callq	_FadeOut
	movq	_script_cmd_args_len@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_script_ptr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	addl	%edx, %eax
	incl	%eax
	movl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_script_cmd_args,8,3            ## @script_cmd_args
	.comm	_scene_next_index,4,2           ## @scene_next_index
	.comm	_scene_index,4,2                ## @scene_index
	.comm	_map_next_pos,8,2               ## @map_next_pos
	.comm	_map_next_dir,8,2               ## @map_next_dir
	.comm	_SCENE,4,2                      ## @SCENE
	.comm	_stage_next_type,4,2            ## @stage_next_type
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_scene_loaded,8,3               ## @scene_loaded
	.comm	_script_action_complete,8,3     ## @script_action_complete
	.comm	_script_cmd_args_len,8,3        ## @script_cmd_args_len
	.comm	_script_ptr,4,2                 ## @script_ptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function Script_LoadScene_b
lCPI0_0:
	.long	2                               ; 0x2
	.long	8                               ; 0x8
lCPI0_1:
	.long	4                               ; 0x4
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_Script_LoadScene_b
	.p2align	2
_Script_LoadScene_b:                    ; @Script_LoadScene_b
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _script_cmd_args@GOTPAGE
Lloh1:
	ldr	x8, [x8, _script_cmd_args@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	w9, w10, [x8]
	add	w9, w10, w9, lsl #8
Lloh3:
	adrp	x10, _scene_next_index@GOTPAGE
Lloh4:
	ldr	x10, [x10, _scene_next_index@GOTPAGEOFF]
Lloh5:
	str	w9, [x10]
	add	w9, w9, #1
Lloh6:
	adrp	x10, _scene_index@GOTPAGE
Lloh7:
	ldr	x10, [x10, _scene_index@GOTPAGEOFF]
Lloh8:
	str	w9, [x10]
	ldr	d0, [x8, #8]
	shl.2s	v0, v0, #3
	movi.2s	v1, #8
	add.2s	v0, v0, v1
Lloh9:
	adrp	x9, _map_next_pos@GOTPAGE
Lloh10:
	ldr	x9, [x9, _map_next_pos@GOTPAGEOFF]
Lloh11:
	str	d0, [x9]
	add	x9, x8, #16
	ld1r.2s	{ v0 }, [x9]
Lloh12:
	adrp	x9, lCPI0_0@PAGE
Lloh13:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	cmeq.2s	v1, v0, v1
Lloh14:
	adrp	x9, lCPI0_1@PAGE
Lloh15:
	ldr	d2, [x9, lCPI0_1@PAGEOFF]
	cmeq.2s	v0, v0, v2
	movi.2s	v2, #1
	and.8b	v0, v0, v2
Lloh16:
	adrp	x9, _map_next_dir@GOTPAGE
Lloh17:
	ldr	x9, [x9, _map_next_dir@GOTPAGEOFF]
	orr.8b	v0, v0, v1
Lloh18:
	str	d0, [x9]
Lloh19:
	adrp	x9, _SCENE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SCENE@GOTPAGEOFF]
Lloh21:
	adrp	x10, _stage_next_type@GOTPAGE
Lloh22:
	ldr	x10, [x10, _stage_next_type@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	str	w9, [x10]
Lloh25:
	adrp	x9, _FALSE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh27:
	adrp	x10, _scene_loaded@GOTPAGE
Lloh28:
	ldr	x10, [x10, _scene_loaded@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
Lloh30:
	str	x9, [x10]
Lloh31:
	adrp	x10, _script_action_complete@GOTPAGE
Lloh32:
	ldr	x10, [x10, _script_action_complete@GOTPAGEOFF]
Lloh33:
	str	x9, [x10]
	ldr	w0, [x8, #20]
	bl	_FadeSetSpeed
	bl	_FadeOut
Lloh34:
	adrp	x8, _script_cmd_args_len@GOTPAGE
Lloh35:
	ldr	x8, [x8, _script_cmd_args_len@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _script_ptr@GOTPAGE
Lloh38:
	ldr	x9, [x9, _script_ptr@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w8, w8, w10
	add	w8, w8, #1
	str	w8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdrp	Lloh14, Lloh16
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_script_cmd_args,8,3            ; @script_cmd_args
	.comm	_scene_next_index,4,2           ; @scene_next_index
	.comm	_scene_index,4,2                ; @scene_index
	.comm	_map_next_pos,8,2               ; @map_next_pos
	.comm	_map_next_dir,8,2               ; @map_next_dir
	.comm	_SCENE,4,2                      ; @SCENE
	.comm	_stage_next_type,4,2            ; @stage_next_type
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_scene_loaded,8,3               ; @scene_loaded
	.comm	_script_action_complete,8,3     ; @script_action_complete
	.comm	_script_cmd_args_len,8,3        ; @script_cmd_args_len
	.comm	_script_ptr,4,2                 ; @script_ptr
.subsections_via_symbols
