	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Script_SaveData_b              ## -- Begin function Script_SaveData_b
	.p2align	4, 0x90
_Script_SaveData_b:                     ## @Script_SaveData_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	_RAM_START_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movl	%r8d, (%rax)
	movq	_scene_index@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_actors@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	16(%rcx), %edx
	movl	%edx, 8(%rax)
	movl	20(%rcx), %edx
	movl	%edx, 12(%rax)
	cmpq	$0, (%rcx)
	js	LBB0_1
## %bb.2:
	je	LBB0_4
## %bb.3:
	movl	$4, 16(%rax)
	jmp	LBB0_7
LBB0_1:
	movl	$2, 16(%rax)
	jmp	LBB0_7
LBB0_4:
	cmpq	$0, 8(%rcx)
	js	LBB0_5
## %bb.6:
	movl	$1, 16(%rax)
	jmp	LBB0_7
LBB0_5:
	movl	$8, 16(%rax)
LBB0_7:
	movq	_map_next_sprite@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_RAM_START_VARS_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_RAMPtr@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	movq	_NUM_VARIABLES@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	testq	%r9, %r9
	je	LBB0_22
## %bb.8:
	movq	_script_variables@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%edi, %edi
	cmpq	$8, %r9
	jb	LBB0_18
## %bb.9:
	movq	%rcx, %rax
	subq	%rsi, %rax
	cmpq	$32, %rax
	jb	LBB0_18
## %bb.10:
	movq	%r9, %rdi
	andq	$-8, %rdi
	leaq	-8(%rdi), %rdx
	movq	%rdx, %rax
	shrq	$3, %rax
	incq	%rax
	movl	%eax, %r10d
	andl	$3, %r10d
	cmpq	$24, %rdx
	jae	LBB0_12
## %bb.11:
	xorl	%edx, %edx
	jmp	LBB0_14
LBB0_12:
	andq	$-4, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rsi,%rdx,4), %xmm0
	movups	16(%rsi,%rdx,4), %xmm1
	movups	%xmm0, (%rcx,%rdx,4)
	movups	%xmm1, 16(%rcx,%rdx,4)
	movups	32(%rsi,%rdx,4), %xmm0
	movups	48(%rsi,%rdx,4), %xmm1
	movups	%xmm0, 32(%rcx,%rdx,4)
	movups	%xmm1, 48(%rcx,%rdx,4)
	movups	64(%rsi,%rdx,4), %xmm0
	movups	80(%rsi,%rdx,4), %xmm1
	movups	%xmm0, 64(%rcx,%rdx,4)
	movups	%xmm1, 80(%rcx,%rdx,4)
	movups	96(%rsi,%rdx,4), %xmm0
	movups	112(%rsi,%rdx,4), %xmm1
	movups	%xmm0, 96(%rcx,%rdx,4)
	movups	%xmm1, 112(%rcx,%rdx,4)
	addq	$32, %rdx
	addq	$-4, %rax
	jne	LBB0_13
LBB0_14:
	testq	%r10, %r10
	je	LBB0_17
## %bb.15:
	leaq	(%rcx,%rdx,4), %r11
	addq	$16, %r11
	leaq	(%rsi,%rdx,4), %rdx
	addq	$16, %rdx
	shlq	$5, %r10
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rdx,%rax), %xmm0
	movups	(%rdx,%rax), %xmm1
	movups	%xmm0, -16(%r11,%rax)
	movups	%xmm1, (%r11,%rax)
	addq	$32, %rax
	cmpq	%rax, %r10
	jne	LBB0_16
LBB0_17:
	cmpq	%rdi, %r9
	je	LBB0_22
LBB0_18:
	movq	%rdi, %r10
	notq	%r10
	addq	%r9, %r10
	movq	%r9, %rdx
	andq	$3, %rdx
	je	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdi,4), %eax
	movl	%eax, (%rcx,%rdi,4)
	incq	%rdi
	decq	%rdx
	jne	LBB0_19
LBB0_20:
	cmpq	$3, %r10
	jb	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdi,4), %eax
	movl	%eax, (%rcx,%rdi,4)
	movl	4(%rsi,%rdi,4), %eax
	movl	%eax, 4(%rcx,%rdi,4)
	movl	8(%rsi,%rdi,4), %eax
	movl	%eax, 8(%rcx,%rdi,4)
	movl	12(%rsi,%rdi,4), %eax
	movl	%eax, 12(%rcx,%rdi,4)
	addq	$4, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_21
LBB0_22:
	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)
	movq	_script_continue@GOTPCREL(%rip), %rax
	movq	%r8, (%rax)
	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,8,3                       ## @TRUE
	.comm	_scene_index,4,2                ## @scene_index
	.comm	_actors,8,3                     ## @actors
	.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	_DISABLE_RAM,4,2                ## @DISABLE_RAM
	.comm	_script_cmd_args_len,8,3        ## @script_cmd_args_len
	.comm	_script_ptr,4,2                 ## @script_ptr
	.comm	_script_continue,8,3            ## @script_continue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Script_SaveData_b              ; -- Begin function Script_SaveData_b
	.p2align	2
_Script_SaveData_b:                     ; @Script_SaveData_b
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _RAM_START_PTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RAM_START_PTR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	w8, [x9]
Lloh6:
	adrp	x10, _scene_index@GOTPAGE
Lloh7:
	ldr	x10, [x10, _scene_index@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	str	w10, [x9, #4]
Lloh9:
	adrp	x10, _actors@GOTPAGE
Lloh10:
	ldr	x10, [x10, _actors@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldr	w11, [x10, #16]
	str	w11, [x9, #8]
	ldr	w11, [x10, #20]
	str	w11, [x9, #12]
	ldr	x11, [x10]
	tbnz	x11, #63, LBB0_3
; %bb.1:
	cbz	x11, LBB0_4
; %bb.2:
	mov	w10, #4
	b	LBB0_7
LBB0_3:
	mov	w10, #2
	b	LBB0_7
LBB0_4:
	ldr	x10, [x10, #8]
	tbnz	x10, #63, LBB0_6
; %bb.5:
	mov	w10, #1
	b	LBB0_7
LBB0_6:
	mov	w10, #8
LBB0_7:
	str	w10, [x9, #16]
Lloh12:
	adrp	x10, _map_next_sprite@GOTPAGE
Lloh13:
	ldr	x10, [x10, _map_next_sprite@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	str	w10, [x9, #20]
Lloh15:
	adrp	x9, _RAM_START_VARS_PTR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RAM_START_VARS_PTR@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _RAMPtr@GOTPAGE
Lloh19:
	ldr	x10, [x10, _RAMPtr@GOTPAGEOFF]
Lloh20:
	str	x9, [x10]
Lloh21:
	adrp	x10, _NUM_VARIABLES@GOTPAGE
Lloh22:
	ldr	x10, [x10, _NUM_VARIABLES@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cbz	x10, LBB0_15
; %bb.8:
	mov	x12, #0
Lloh24:
	adrp	x11, _script_variables@GOTPAGE
Lloh25:
	ldr	x11, [x11, _script_variables@GOTPAGEOFF]
Lloh26:
	ldr	x11, [x11]
	cmp	x10, #16
	b.lo	LBB0_13
; %bb.9:
	sub	x13, x9, x11
	cmp	x13, #64
	b.lo	LBB0_13
; %bb.10:
	and	x12, x10, #0xfffffffffffffff0
	add	x13, x11, #32
	add	x14, x9, #32
	mov	x15, x12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13], #64
	stp	q0, q1, [x14, #-32]
	stp	q2, q3, [x14], #64
	subs	x15, x15, #16
	b.ne	LBB0_11
; %bb.12:
	cmp	x10, x12
	b.eq	LBB0_15
LBB0_13:
	sub	x10, x10, x12
	lsl	x12, x12, #2
	add	x9, x9, x12
	add	x11, x11, x12
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #4
	str	w12, [x9], #4
	subs	x10, x10, #1
	b.ne	LBB0_14
LBB0_15:
Lloh27:
	adrp	x9, _script_cmd_args_len@GOTPAGE
Lloh28:
	ldr	x9, [x9, _script_cmd_args_len@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _script_ptr@GOTPAGE
Lloh31:
	ldr	x10, [x10, _script_ptr@GOTPAGEOFF]
	ldr	w11, [x10]
	add	w9, w9, w11
	add	w9, w9, #1
	str	w9, [x10]
Lloh32:
	adrp	x9, _script_continue@GOTPAGE
Lloh33:
	ldr	x9, [x9, _script_continue@GOTPAGEOFF]
Lloh34:
	str	x8, [x9]
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.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,8,3                       ; @TRUE
	.comm	_scene_index,4,2                ; @scene_index
	.comm	_actors,8,3                     ; @actors
	.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	_DISABLE_RAM,4,2                ; @DISABLE_RAM
	.comm	_script_cmd_args_len,8,3        ; @script_cmd_args_len
	.comm	_script_ptr,4,2                 ; @script_ptr
	.comm	_script_continue,8,3            ; @script_continue
.subsections_via_symbols
