	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Script_ScenePopAllState_b      ## -- Begin function Script_ScenePopAllState_b
	.p2align	4, 0x90
_Script_ScenePopAllState_b:             ## @Script_ScenePopAllState_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	_scene_stack_ptr@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$0, (%rax)
	movq	_scene_stack@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rcx
	movq	_scene_next_index@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	incq	%rcx
	movq	_scene_index@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movl	8(%rax), %ecx
	shll	$3, %ecx
	movq	_map_next_pos@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	12(%rax), %ecx
	shll	$3, %ecx
	movl	%ecx, 4(%rdx)
	movl	4(%rax), %ecx
	movq	_map_next_dir@GOTPCREL(%rip), %rdx
	movl	%ecx, 4(%rdx)
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movq	_SCENE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_stage_next_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_scene_loaded@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_script_action_complete@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_script_cmd_args@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_FadeSetSpeed
	xorl	%eax, %eax
	callq	_FadeOut
	jmp	LBB0_3
LBB0_2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_script_action_complete@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_3:
	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	_scene_stack_ptr,4,2            ## @scene_stack_ptr
	.comm	_scene_stack,8,3                ## @scene_stack
	.comm	_scene_next_index,8,3           ## @scene_next_index
	.comm	_scene_index,8,3                ## @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,8,3            ## @script_cmd_args
	.comm	_script_cmd_args_len,8,3        ## @script_cmd_args_len
	.comm	_script_ptr,4,2                 ## @script_ptr
	.comm	_TRUE,8,3                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Script_ScenePopAllState_b      ; -- Begin function Script_ScenePopAllState_b
	.p2align	2
_Script_ScenePopAllState_b:             ; @Script_ScenePopAllState_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, _scene_stack_ptr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _scene_stack_ptr@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_2
; %bb.1:
	str	wzr, [x8]
Lloh2:
	adrp	x8, _scene_stack@GOTPAGE
Lloh3:
	ldr	x8, [x8, _scene_stack@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x8, #16]
Lloh5:
	adrp	x10, _scene_next_index@GOTPAGE
Lloh6:
	ldr	x10, [x10, _scene_next_index@GOTPAGEOFF]
Lloh7:
	str	x9, [x10]
Lloh8:
	adrp	x10, _scene_index@GOTPAGE
Lloh9:
	ldr	x10, [x10, _scene_index@GOTPAGEOFF]
	add	x9, x9, #1
Lloh10:
	str	x9, [x10]
	ldr	d0, [x8, #8]
	shl.2s	v0, v0, #3
Lloh11:
	adrp	x9, _map_next_pos@GOTPAGE
Lloh12:
	ldr	x9, [x9, _map_next_pos@GOTPAGEOFF]
Lloh13:
	str	d0, [x9]
	ldr	d0, [x8]
Lloh14:
	adrp	x8, _map_next_dir@GOTPAGE
Lloh15:
	ldr	x8, [x8, _map_next_dir@GOTPAGEOFF]
Lloh16:
	adrp	x9, _SCENE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SCENE@GOTPAGEOFF]
Lloh18:
	str	d0, [x8]
Lloh19:
	ldr	w8, [x9]
Lloh20:
	adrp	x9, _stage_next_type@GOTPAGE
Lloh21:
	ldr	x9, [x9, _stage_next_type@GOTPAGEOFF]
Lloh22:
	adrp	x10, _FALSE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _FALSE@GOTPAGEOFF]
Lloh24:
	str	w8, [x9]
Lloh25:
	ldr	x8, [x10]
Lloh26:
	adrp	x9, _scene_loaded@GOTPAGE
Lloh27:
	ldr	x9, [x9, _scene_loaded@GOTPAGEOFF]
Lloh28:
	adrp	x10, _script_action_complete@GOTPAGE
Lloh29:
	ldr	x10, [x10, _script_action_complete@GOTPAGEOFF]
Lloh30:
	str	x8, [x9]
Lloh31:
	str	x8, [x10]
Lloh32:
	adrp	x8, _script_cmd_args@GOTPAGE
Lloh33:
	ldr	x8, [x8, _script_cmd_args@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_FadeSetSpeed
	bl	_FadeOut
	b	LBB0_3
LBB0_2:
Lloh35:
	adrp	x8, _TRUE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
Lloh38:
	adrp	x9, _script_action_complete@GOTPAGE
Lloh39:
	ldr	x9, [x9, _script_action_complete@GOTPAGEOFF]
Lloh40:
	str	x8, [x9]
LBB0_3:
Lloh41:
	adrp	x8, _script_cmd_args_len@GOTPAGE
Lloh42:
	ldr	x8, [x8, _script_cmd_args_len@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _script_ptr@GOTPAGE
Lloh45:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh30
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_scene_stack_ptr,4,2            ; @scene_stack_ptr
	.comm	_scene_stack,8,3                ; @scene_stack
	.comm	_scene_next_index,8,3           ; @scene_next_index
	.comm	_scene_index,8,3                ; @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,8,3            ; @script_cmd_args
	.comm	_script_cmd_args_len,8,3        ; @script_cmd_args_len
	.comm	_script_ptr,4,2                 ; @script_ptr
	.comm	_TRUE,8,3                       ; @TRUE
.subsections_via_symbols
