	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Reached_BinaryMover            ## -- Begin function Reached_BinaryMover
	.p2align	4, 0x90
_Reached_BinaryMover:                   ## @Reached_BinaryMover
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	64(%rdi), %eax
	movl	%eax, 68(%rdi)
	movq	(%rdi), %rax
	movq	_MOVER_1TO2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	_MOVER_POS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_level@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	%rbx, %rdi
	callq	_SetMoverState
	movq	56(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	movq	_EV_GENERAL_SOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_G_AddEvent
LBB0_3:
	movq	_ReturnToPos1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	24(%rbx), %rsi
	movq	32(%rbx), %rax
	addq	(%r14), %rax
	movq	%rax, 40(%rbx)
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.4:
	movq	%rbx, 24(%rbx)
	movq	%rbx, %rsi
LBB0_5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_G_UseTargets                   ## TAILCALL
LBB0_6:
	movq	_MOVER_2TO1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.7:
	movq	_MOVER_POS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_level@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_SetMoverState
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:
	movq	_EV_GENERAL_SOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_G_AddEvent
LBB0_9:
	movq	8(%rbx), %rax
	cmpq	%rbx, %rax
	je	LBB0_11
## %bb.10:
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_G_Error                        ## TAILCALL
LBB0_11:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_trap_AdjustAreaPortalState     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MOVER_1TO2,8,3                 ## @MOVER_1TO2
	.comm	_MOVER_POS2,4,2                 ## @MOVER_POS2
	.comm	_level,8,3                      ## @level
	.comm	_EV_GENERAL_SOUND,4,2           ## @EV_GENERAL_SOUND
	.comm	_ReturnToPos1,4,2               ## @ReturnToPos1
	.comm	_MOVER_2TO1,8,3                 ## @MOVER_2TO1
	.comm	_MOVER_POS1,4,2                 ## @MOVER_POS1
	.comm	_qfalse,4,2                     ## @qfalse
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reached_BinaryMover: bad moverState"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Reached_BinaryMover            ; -- Begin function Reached_BinaryMover
	.p2align	2
_Reached_BinaryMover:                   ; @Reached_BinaryMover
	.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
	mov	x19, x0
	ldr	w8, [x0, #64]
	str	w8, [x0, #68]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MOVER_1TO2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MOVER_1TO2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _MOVER_POS2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MOVER_POS2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x20, _level@GOTPAGE
Lloh7:
	ldr	x20, [x20, _level@GOTPAGEOFF]
	ldr	x2, [x20]
	mov	x0, x19
	bl	_SetMoverState
	ldr	x2, [x19, #56]
	cbz	x2, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _EV_GENERAL_SOUND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_GENERAL_SOUND@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_G_AddEvent
LBB0_3:
Lloh11:
	adrp	x8, _ReturnToPos1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ReturnToPos1@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	ldr	x8, [x20]
	ldp	x1, x9, [x19, #24]
	add	x8, x9, x8
	str	x8, [x19, #40]
	cbnz	x1, LBB0_5
; %bb.4:
	str	x19, [x19, #24]
	mov	x1, x19
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_G_UseTargets
LBB0_6:
Lloh14:
	adrp	x9, _MOVER_2TO1@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MOVER_2TO1@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.7:
Lloh17:
	adrp	x8, _MOVER_POS1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MOVER_POS1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _level@GOTPAGE
Lloh21:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh22:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_SetMoverState
	ldr	x2, [x19, #16]
	cbz	x2, LBB0_9
; %bb.8:
Lloh23:
	adrp	x8, _EV_GENERAL_SOUND@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EV_GENERAL_SOUND@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_G_AddEvent
LBB0_9:
	ldr	x8, [x19, #8]
	cmp	x8, x19
	b.eq	LBB0_13
; %bb.10:
	cbz	x8, LBB0_13
; %bb.11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_G_Error
LBB0_13:
Lloh28:
	adrp	x8, _qfalse@GOTPAGE
Lloh29:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trap_AdjustAreaPortalState
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MOVER_1TO2,8,3                 ; @MOVER_1TO2
	.comm	_MOVER_POS2,4,2                 ; @MOVER_POS2
	.comm	_level,8,3                      ; @level
	.comm	_EV_GENERAL_SOUND,4,2           ; @EV_GENERAL_SOUND
	.comm	_ReturnToPos1,4,2               ; @ReturnToPos1
	.comm	_MOVER_2TO1,8,3                 ; @MOVER_2TO1
	.comm	_MOVER_POS1,4,2                 ; @MOVER_POS1
	.comm	_qfalse,4,2                     ; @qfalse
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reached_BinaryMover: bad moverState"

.subsections_via_symbols
