	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Script_LoadData_b              ## -- Begin function Script_LoadData_b
	.p2align	4, 0x90
_Script_LoadData_b:                     ## @Script_LoadData_b
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_RAM_START_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_RAMPtr@GOTPCREL(%rip), %r8
	movq	%rax, (%r8)
	movl	(%rax), %edx
	movq	_TRUE@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_17
## %bb.1:
	movl	4(%rax), %edx
	movq	_scene_next_index@GOTPCREL(%rip), %rsi
	movl	%edx, (%rsi)
	incl	%edx
	movq	_scene_index@GOTPCREL(%rip), %rsi
	movl	%edx, (%rsi)
	movl	8(%rax), %edx
	movq	_map_next_pos@GOTPCREL(%rip), %rsi
	movl	%edx, (%rsi)
	movl	12(%rax), %edx
	movl	%edx, 4(%rsi)
	movl	16(%rax), %edx
	xorl	%esi, %esi
	cmpl	$4, %edx
	sete	%sil
	cmpl	$2, %edx
	movl	$-1, %edi
	cmovel	%edi, %esi
	movq	_map_next_dir@GOTPCREL(%rip), %rcx
	movl	%esi, (%rcx)
	xorl	%esi, %esi
	cmpl	$1, %edx
	sete	%sil
	cmpl	$8, %edx
	cmovel	%edi, %esi
	movl	%esi, 4(%rcx)
	movl	20(%rax), %eax
	movq	_map_next_sprite@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_RAM_START_VARS_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r8)
	movq	_NUM_VARIABLES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	testq	%r8, %r8
	je	LBB0_16
## %bb.2:
	movq	_script_variables@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	xorl	%esi, %esi
	cmpq	$8, %r8
	jb	LBB0_12
## %bb.3:
	movq	%rdx, %rcx
	subq	%rax, %rcx
	cmpq	$32, %rcx
	jb	LBB0_12
## %bb.4:
	movq	%r8, %rsi
	andq	$-8, %rsi
	leaq	-8(%rsi), %rcx
	movq	%rcx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r9d
	andl	$3, %r9d
	cmpq	$24, %rcx
	jae	LBB0_6
## %bb.5:
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_6:
	andq	$-4, %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rax,%rcx,4), %xmm0
	movups	16(%rax,%rcx,4), %xmm1
	movups	%xmm0, (%rdx,%rcx,4)
	movups	%xmm1, 16(%rdx,%rcx,4)
	movups	32(%rax,%rcx,4), %xmm0
	movups	48(%rax,%rcx,4), %xmm1
	movups	%xmm0, 32(%rdx,%rcx,4)
	movups	%xmm1, 48(%rdx,%rcx,4)
	movups	64(%rax,%rcx,4), %xmm0
	movups	80(%rax,%rcx,4), %xmm1
	movups	%xmm0, 64(%rdx,%rcx,4)
	movups	%xmm1, 80(%rdx,%rcx,4)
	movups	96(%rax,%rcx,4), %xmm0
	movups	112(%rax,%rcx,4), %xmm1
	movups	%xmm0, 96(%rdx,%rcx,4)
	movups	%xmm1, 112(%rdx,%rcx,4)
	addq	$32, %rcx
	addq	$-4, %rdi
	jne	LBB0_7
LBB0_8:
	testq	%r9, %r9
	je	LBB0_11
## %bb.9:
	leaq	(%rdx,%rcx,4), %r10
	addq	$16, %r10
	leaq	(%rax,%rcx,4), %rcx
	addq	$16, %rcx
	shlq	$5, %r9
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rcx,%rdi), %xmm0
	movups	(%rcx,%rdi), %xmm1
	movups	%xmm0, -16(%r10,%rdi)
	movups	%xmm1, (%r10,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_10
LBB0_11:
	cmpq	%rsi, %r8
	je	LBB0_16
LBB0_12:
	movq	%rsi, %r9
	notq	%r9
	addq	%r8, %r9
	movq	%r8, %rdi
	andq	$3, %rdi
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rsi,4), %ecx
	movl	%ecx, (%rdx,%rsi,4)
	incq	%rsi
	decq	%rdi
	jne	LBB0_13
LBB0_14:
	cmpq	$3, %r9
	jb	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rsi,4), %ecx
	movl	%ecx, (%rdx,%rsi,4)
	movl	4(%rax,%rsi,4), %ecx
	movl	%ecx, 4(%rdx,%rsi,4)
	movl	8(%rax,%rsi,4), %ecx
	movl	%ecx, 8(%rdx,%rsi,4)
	movl	12(%rax,%rsi,4), %ecx
	movl	%ecx, 12(%rdx,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_15
LBB0_16:
	movq	_SCENE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_stage_next_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_scene_loaded@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$2, %edi
	callq	_FadeSetSpeed
	xorl	%eax, %eax
	callq	_FadeOut
	movq	(%rbx), %rax
	movq	_script_action_complete@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_17:
	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)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENABLE_RAM,4,2                 ## @ENABLE_RAM
	.comm	_RAM_START_PTR,8,3              ## @RAM_START_PTR
	.comm	_RAMPtr,8,3                     ## @RAMPtr
	.comm	_TRUE,4,2                       ## @TRUE
	.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	_map_next_sprite,4,2            ## @map_next_sprite
	.comm	_RAM_START_VARS_PTR,8,3         ## @RAM_START_VARS_PTR
	.comm	_NUM_VARIABLES,8,3              ## @NUM_VARIABLES
	.comm	_script_variables,8,3           ## @script_variables
	.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	_DISABLE_RAM,4,2                ## @DISABLE_RAM
	.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_LoadData_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_LoadData_b
	.p2align	2
_Script_LoadData_b:                     ; @Script_LoadData_b
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _RAM_START_PTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RAM_START_PTR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _RAMPtr@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RAMPtr@GOTPAGEOFF]
	str	x8, [x9]
	ldr	w10, [x8]
Lloh5:
	adrp	x11, _TRUE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_10
; %bb.1:
Lloh8:
	adrp	x10, _scene_next_index@GOTPAGE
Lloh9:
	ldr	x10, [x10, _scene_next_index@GOTPAGEOFF]
	ldr	w11, [x8, #4]
Lloh10:
	str	w11, [x10]
	add	w10, w11, #1
Lloh11:
	adrp	x11, _scene_index@GOTPAGE
Lloh12:
	ldr	x11, [x11, _scene_index@GOTPAGEOFF]
Lloh13:
	str	w10, [x11]
	ldr	d0, [x8, #8]
Lloh14:
	adrp	x10, _map_next_pos@GOTPAGE
Lloh15:
	ldr	x10, [x10, _map_next_pos@GOTPAGEOFF]
	add	x11, x8, #16
	ld1r.2s	{ v1 }, [x11]
Lloh16:
	str	d0, [x10]
Lloh17:
	adrp	x10, lCPI0_0@PAGE
Lloh18:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	cmeq.2s	v0, v1, v0
Lloh19:
	adrp	x10, lCPI0_1@PAGE
Lloh20:
	ldr	d2, [x10, lCPI0_1@PAGEOFF]
	cmeq.2s	v1, v1, v2
	movi.2s	v2, #1
	and.8b	v1, v1, v2
	orr.8b	v0, v1, v0
Lloh21:
	adrp	x10, _map_next_dir@GOTPAGE
Lloh22:
	ldr	x10, [x10, _map_next_dir@GOTPAGEOFF]
Lloh23:
	str	d0, [x10]
	ldr	w8, [x8, #20]
Lloh24:
	adrp	x10, _map_next_sprite@GOTPAGE
Lloh25:
	ldr	x10, [x10, _map_next_sprite@GOTPAGEOFF]
Lloh26:
	adrp	x11, _RAM_START_VARS_PTR@GOTPAGE
Lloh27:
	ldr	x11, [x11, _RAM_START_VARS_PTR@GOTPAGEOFF]
Lloh28:
	str	w8, [x10]
Lloh29:
	ldr	x8, [x11]
	str	x8, [x9]
Lloh30:
	adrp	x9, _NUM_VARIABLES@GOTPAGE
Lloh31:
	ldr	x9, [x9, _NUM_VARIABLES@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cbz	x9, LBB0_9
; %bb.2:
	mov	x11, #0
Lloh33:
	adrp	x10, _script_variables@GOTPAGE
Lloh34:
	ldr	x10, [x10, _script_variables@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	cmp	x9, #16
	b.lo	LBB0_7
; %bb.3:
	sub	x12, x10, x8
	cmp	x12, #64
	b.lo	LBB0_7
; %bb.4:
	and	x11, x9, #0xfffffffffffffff0
	add	x12, x8, #32
	add	x13, x10, #32
	mov	x14, x11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_5
; %bb.6:
	cmp	x9, x11
	b.eq	LBB0_9
LBB0_7:
	sub	x9, x9, x11
	lsl	x11, x11, #2
	add	x10, x10, x11
	add	x8, x8, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8], #4
	str	w11, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
Lloh36:
	adrp	x8, _SCENE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SCENE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _stage_next_type@GOTPAGE
Lloh40:
	ldr	x9, [x9, _stage_next_type@GOTPAGEOFF]
Lloh41:
	str	w8, [x9]
Lloh42:
	adrp	x19, _FALSE@GOTPAGE
Lloh43:
	ldr	x19, [x19, _FALSE@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh44:
	adrp	x9, _scene_loaded@GOTPAGE
Lloh45:
	ldr	x9, [x9, _scene_loaded@GOTPAGEOFF]
Lloh46:
	str	x8, [x9]
	mov	w0, #2
	bl	_FadeSetSpeed
	bl	_FadeOut
	ldr	x8, [x19]
Lloh47:
	adrp	x9, _script_action_complete@GOTPAGE
Lloh48:
	ldr	x9, [x9, _script_action_complete@GOTPAGEOFF]
Lloh49:
	str	x8, [x9]
LBB0_10:
Lloh50:
	adrp	x8, _script_cmd_args_len@GOTPAGE
Lloh51:
	ldr	x8, [x8, _script_cmd_args_len@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	adrp	x9, _script_ptr@GOTPAGE
Lloh54:
	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
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdrp	Lloh19, Lloh21
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpAdrp	Lloh17, Lloh19
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotStr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_ENABLE_RAM,4,2                 ; @ENABLE_RAM
	.comm	_RAM_START_PTR,8,3              ; @RAM_START_PTR
	.comm	_RAMPtr,8,3                     ; @RAMPtr
	.comm	_TRUE,4,2                       ; @TRUE
	.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	_map_next_sprite,4,2            ; @map_next_sprite
	.comm	_RAM_START_VARS_PTR,8,3         ; @RAM_START_VARS_PTR
	.comm	_NUM_VARIABLES,8,3              ; @NUM_VARIABLES
	.comm	_script_variables,8,3           ; @script_variables
	.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	_DISABLE_RAM,4,2                ; @DISABLE_RAM
	.comm	_script_cmd_args_len,8,3        ; @script_cmd_args_len
	.comm	_script_ptr,4,2                 ; @script_ptr
.subsections_via_symbols
