	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScriptLastFnComplete           ## -- Begin function ScriptLastFnComplete
	.p2align	4, 0x90
_ScriptLastFnComplete:                  ## @ScriptLastFnComplete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_IsFading
	movq	_last_fn@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	_Script_FadeIn_b@GOTPCREL(%rip), %rdx
	movq	_TRUE@GOTPCREL(%rip), %r15
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	testl	%eax, %eax
	je	LBB0_36
LBB0_2:
	movq	_Script_FadeOut_b@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	testl	%eax, %eax
	je	LBB0_36
LBB0_4:
	testl	%eax, %eax
	setne	%dl
	movq	_Script_LoadScene_b@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	setne	%bl
	orb	%dl, %bl
	cmpb	$1, %bl
	jne	LBB0_36
## %bb.5:
	movq	_Script_ScenePopState_b@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_36
## %bb.6:
	movq	_Script_ScenePopAllState_b@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_36
## %bb.7:
	movq	_Script_LoadData_b@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.8:
	testl	%eax, %eax
	je	LBB0_36
LBB0_9:
	movq	_Script_ActorSetEmote_b@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_12
## %bb.10:
	xorl	%eax, %eax
	callq	_SceneIsEmoting
	testl	%eax, %eax
	je	LBB0_36
## %bb.11:
	movq	(%r14), %rcx
LBB0_12:
	movq	_Script_Text_b@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_15
## %bb.13:
	xorl	%eax, %eax
	callq	_UIIsClosed
	testq	%rax, %rax
	jne	LBB0_36
## %bb.14:
	movq	(%r14), %rcx
LBB0_15:
	movq	_Script_Choice_b@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_18
## %bb.16:
	xorl	%eax, %eax
	callq	_UIIsClosed
	testq	%rax, %rax
	jne	LBB0_36
## %bb.17:
	movq	(%r14), %rcx
LBB0_18:
	movq	_Script_TextMenu_b@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_21
## %bb.19:
	xorl	%eax, %eax
	callq	_UIIsClosed
	testq	%rax, %rax
	jne	LBB0_36
## %bb.20:
	movq	(%r14), %rcx
LBB0_21:
	movq	_Script_OverlayMoveTo_b@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_24
## %bb.22:
	xorl	%eax, %eax
	callq	_UIAtDest
	testq	%rax, %rax
	jne	LBB0_36
## %bb.23:
	movq	(%r14), %rcx
LBB0_24:
	movq	_Script_AwaitInput_b@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_27
## %bb.25:
	xorl	%eax, %eax
	callq	_SceneAwaitInputPressed
	testq	%rax, %rax
	jne	LBB0_36
## %bb.26:
	movq	(%r14), %rcx
LBB0_27:
	movq	_Script_CameraMoveTo_b@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_30
## %bb.28:
	xorl	%eax, %eax
	callq	_SceneCameraAtDest
	testq	%rax, %rax
	je	LBB0_29
## %bb.37:
	movq	_camera_settings@GOTPCREL(%rip), %rax
	movq	_CAMERA_TRANSITION_FLAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, (%rax)
	jmp	LBB0_36
LBB0_29:
	movq	(%r14), %rcx
LBB0_30:
	movq	_Script_CameraLock_b@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_33
## %bb.31:
	xorl	%eax, %eax
	callq	_SceneCameraAtDest
	testq	%rax, %rax
	je	LBB0_32
## %bb.38:
	movq	_CAMERA_LOCK_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_camera_settings@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_36
LBB0_32:
	movq	(%r14), %rcx
LBB0_33:
	movq	_Script_TextWithAvatar_b@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_35
## %bb.34:
	xorl	%eax, %eax
	callq	_UIIsClosed
	testq	%rax, %rax
	jne	LBB0_36
LBB0_35:
	movq	_FALSE@GOTPCREL(%rip), %r15
LBB0_36:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_last_fn,8,3                    ## @last_fn
	.comm	_Script_FadeIn_b,8,3            ## @Script_FadeIn_b
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_Script_FadeOut_b,8,3           ## @Script_FadeOut_b
	.comm	_Script_LoadScene_b,8,3         ## @Script_LoadScene_b
	.comm	_Script_ScenePopState_b,8,3     ## @Script_ScenePopState_b
	.comm	_Script_ScenePopAllState_b,8,3  ## @Script_ScenePopAllState_b
	.comm	_Script_LoadData_b,8,3          ## @Script_LoadData_b
	.comm	_Script_ActorSetEmote_b,8,3     ## @Script_ActorSetEmote_b
	.comm	_Script_Text_b,8,3              ## @Script_Text_b
	.comm	_Script_Choice_b,8,3            ## @Script_Choice_b
	.comm	_Script_TextMenu_b,8,3          ## @Script_TextMenu_b
	.comm	_Script_OverlayMoveTo_b,8,3     ## @Script_OverlayMoveTo_b
	.comm	_Script_AwaitInput_b,8,3        ## @Script_AwaitInput_b
	.comm	_Script_CameraMoveTo_b,8,3      ## @Script_CameraMoveTo_b
	.comm	_camera_settings,4,2            ## @camera_settings
	.comm	_CAMERA_TRANSITION_FLAG,4,2     ## @CAMERA_TRANSITION_FLAG
	.comm	_Script_CameraLock_b,8,3        ## @Script_CameraLock_b
	.comm	_CAMERA_LOCK_FLAG,4,2           ## @CAMERA_LOCK_FLAG
	.comm	_Script_TextWithAvatar_b,8,3    ## @Script_TextWithAvatar_b
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScriptLastFnComplete           ; -- Begin function ScriptLastFnComplete
	.p2align	2
_ScriptLastFnComplete:                  ; @ScriptLastFnComplete
	.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
	bl	_IsFading
Lloh0:
	adrp	x19, _last_fn@GOTPAGE
Lloh1:
	ldr	x19, [x19, _last_fn@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _Script_FadeIn_b@GOTPAGE
Lloh3:
	ldr	x9, [x9, _Script_FadeIn_b@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w0, #0, #0, eq
	b.eq	LBB0_32
; %bb.1:
Lloh5:
	adrp	x9, _Script_FadeOut_b@GOTPAGE
Lloh6:
	ldr	x9, [x9, _Script_FadeOut_b@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w0, #0, #0, eq
	b.eq	LBB0_32
; %bb.2:
	cmp	w0, #0
Lloh8:
	adrp	x9, _Script_LoadScene_b@GOTPAGE
Lloh9:
	ldr	x9, [x9, _Script_LoadScene_b@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ccmp	x8, x9, #0, eq
Lloh11:
	adrp	x9, _Script_ScenePopState_b@GOTPAGE
Lloh12:
	ldr	x9, [x9, _Script_ScenePopState_b@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _Script_ScenePopAllState_b@GOTPAGE
Lloh15:
	ldr	x10, [x10, _Script_ScenePopAllState_b@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	ccmp	x8, x9, #4, ne
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_32
; %bb.3:
Lloh17:
	adrp	x9, _Script_LoadData_b@GOTPAGE
Lloh18:
	ldr	x9, [x9, _Script_LoadData_b@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w0, #0, #0, eq
	b.eq	LBB0_32
; %bb.4:
Lloh20:
	adrp	x9, _Script_ActorSetEmote_b@GOTPAGE
Lloh21:
	ldr	x9, [x9, _Script_ActorSetEmote_b@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	bl	_SceneIsEmoting
	cbz	w0, LBB0_32
; %bb.6:
	ldr	x8, [x19]
LBB0_7:
Lloh23:
	adrp	x9, _Script_Text_b@GOTPAGE
Lloh24:
	ldr	x9, [x9, _Script_Text_b@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	bl	_UIIsClosed
	cbnz	x0, LBB0_32
; %bb.9:
	ldr	x8, [x19]
LBB0_10:
Lloh26:
	adrp	x9, _Script_Choice_b@GOTPAGE
Lloh27:
	ldr	x9, [x9, _Script_Choice_b@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	bl	_UIIsClosed
	cbnz	x0, LBB0_32
; %bb.12:
	ldr	x8, [x19]
LBB0_13:
Lloh29:
	adrp	x9, _Script_TextMenu_b@GOTPAGE
Lloh30:
	ldr	x9, [x9, _Script_TextMenu_b@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:
	bl	_UIIsClosed
	cbnz	x0, LBB0_32
; %bb.15:
	ldr	x8, [x19]
LBB0_16:
Lloh32:
	adrp	x9, _Script_OverlayMoveTo_b@GOTPAGE
Lloh33:
	ldr	x9, [x9, _Script_OverlayMoveTo_b@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.17:
	bl	_UIAtDest
	cbnz	x0, LBB0_32
; %bb.18:
	ldr	x8, [x19]
LBB0_19:
Lloh35:
	adrp	x9, _Script_AwaitInput_b@GOTPAGE
Lloh36:
	ldr	x9, [x9, _Script_AwaitInput_b@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.20:
	bl	_SceneAwaitInputPressed
	cbnz	x0, LBB0_32
; %bb.21:
	ldr	x8, [x19]
LBB0_22:
Lloh38:
	adrp	x9, _Script_CameraMoveTo_b@GOTPAGE
Lloh39:
	ldr	x9, [x9, _Script_CameraMoveTo_b@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.23:
	bl	_SceneCameraAtDest
	cbz	x0, LBB0_25
; %bb.24:
Lloh41:
	adrp	x8, _camera_settings@GOTPAGE
Lloh42:
	ldr	x8, [x8, _camera_settings@GOTPAGEOFF]
Lloh43:
	adrp	x9, _CAMERA_TRANSITION_FLAG@GOTPAGE
Lloh44:
	ldr	x9, [x9, _CAMERA_TRANSITION_FLAG@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh45:
	ldr	w9, [x9]
	bic	w9, w10, w9
	str	w9, [x8]
	b	LBB0_32
LBB0_25:
	ldr	x8, [x19]
LBB0_26:
Lloh46:
	adrp	x9, _Script_CameraLock_b@GOTPAGE
Lloh47:
	ldr	x9, [x9, _Script_CameraLock_b@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.27:
	bl	_SceneCameraAtDest
	cbz	x0, LBB0_29
; %bb.28:
Lloh49:
	adrp	x8, _CAMERA_LOCK_FLAG@GOTPAGE
Lloh50:
	ldr	x8, [x8, _CAMERA_LOCK_FLAG@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
Lloh52:
	adrp	x9, _camera_settings@GOTPAGE
Lloh53:
	ldr	x9, [x9, _camera_settings@GOTPAGEOFF]
Lloh54:
	str	w8, [x9]
	b	LBB0_32
LBB0_29:
	ldr	x8, [x19]
LBB0_30:
Lloh55:
	adrp	x9, _Script_TextWithAvatar_b@GOTPAGE
Lloh56:
	ldr	x9, [x9, _Script_TextWithAvatar_b@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_34
; %bb.31:
	bl	_UIIsClosed
	cbz	x0, LBB0_34
LBB0_32:
Lloh58:
	adrp	x8, _TRUE@GOTPAGE
Lloh59:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_33:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_34:
Lloh60:
	adrp	x8, _FALSE@GOTPAGE
Lloh61:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_33
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_last_fn,8,3                    ; @last_fn
	.comm	_Script_FadeIn_b,8,3            ; @Script_FadeIn_b
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_Script_FadeOut_b,8,3           ; @Script_FadeOut_b
	.comm	_Script_LoadScene_b,8,3         ; @Script_LoadScene_b
	.comm	_Script_ScenePopState_b,8,3     ; @Script_ScenePopState_b
	.comm	_Script_ScenePopAllState_b,8,3  ; @Script_ScenePopAllState_b
	.comm	_Script_LoadData_b,8,3          ; @Script_LoadData_b
	.comm	_Script_ActorSetEmote_b,8,3     ; @Script_ActorSetEmote_b
	.comm	_Script_Text_b,8,3              ; @Script_Text_b
	.comm	_Script_Choice_b,8,3            ; @Script_Choice_b
	.comm	_Script_TextMenu_b,8,3          ; @Script_TextMenu_b
	.comm	_Script_OverlayMoveTo_b,8,3     ; @Script_OverlayMoveTo_b
	.comm	_Script_AwaitInput_b,8,3        ; @Script_AwaitInput_b
	.comm	_Script_CameraMoveTo_b,8,3      ; @Script_CameraMoveTo_b
	.comm	_camera_settings,4,2            ; @camera_settings
	.comm	_CAMERA_TRANSITION_FLAG,4,2     ; @CAMERA_TRANSITION_FLAG
	.comm	_Script_CameraLock_b,8,3        ; @Script_CameraLock_b
	.comm	_CAMERA_LOCK_FLAG,4,2           ; @CAMERA_LOCK_FLAG
	.comm	_Script_TextWithAvatar_b,8,3    ; @Script_TextWithAvatar_b
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
