	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SIO_TapeMotor                  ## -- Begin function SIO_TapeMotor
	.p2align	4, 0x90
_SIO_TapeMotor:                         ## @SIO_TapeMotor
	.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
	movl	%edi, %ebx
	callq	_CASSETTE_TapeMotor
	movq	_TransferStatus@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movq	_SIO_NoFrame@GOTPCREL(%rip), %rsi
	movq	_SIO_CasReadWrite@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rsi), %rdx
	je	LBB0_3
## %bb.2:
	cmpq	%rcx, %rdx
	jne	LBB0_4
LBB0_3:
	movq	%rcx, (%rax)
LBB0_4:
	movq	_SIO_last_drive@GOTPCREL(%rip), %rax
	movl	$96, (%rax)
	movl	$16, %ecx
	jmp	LBB0_7
LBB0_5:
	movq	_SIO_CasReadWrite@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	cmpq	(%rsi), %rdx
	jne	LBB0_7
## %bb.6:
	movq	_SIO_NoFrame@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rax)
LBB0_7:
	movq	_SIO_last_op_time@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TransferStatus,8,3             ## @TransferStatus
	.comm	_SIO_NoFrame,8,3                ## @SIO_NoFrame
	.comm	_SIO_CasReadWrite,8,3           ## @SIO_CasReadWrite
	.comm	_SIO_last_drive,4,2             ## @SIO_last_drive
	.comm	_SIO_last_op_time,4,2           ## @SIO_last_op_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SIO_TapeMotor                  ; -- Begin function SIO_TapeMotor
	.p2align	2
_SIO_TapeMotor:                         ; @SIO_TapeMotor
	.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
	bl	_CASSETTE_TapeMotor
Lloh0:
	adrp	x8, _TransferStatus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TransferStatus@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	w19, LBB0_4
; %bb.1:
Lloh2:
	adrp	x10, _SIO_NoFrame@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SIO_NoFrame@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x10]
Lloh5:
	adrp	x10, _SIO_CasReadWrite@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SIO_CasReadWrite@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x11
	ccmp	x9, x10, #4, ne
	b.ne	LBB0_3
; %bb.2:
	str	x10, [x8]
LBB0_3:
Lloh8:
	adrp	x8, _SIO_last_drive@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIO_last_drive@GOTPAGEOFF]
	mov	w9, #96
Lloh10:
	str	w9, [x8]
	mov	w9, #16
	b	LBB0_7
LBB0_4:
Lloh11:
	adrp	x10, _SIO_CasReadWrite@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SIO_CasReadWrite@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
	mov	w9, #0
Lloh14:
	adrp	x10, _SIO_NoFrame@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SIO_NoFrame@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	str	x10, [x8]
	b	LBB0_7
LBB0_6:
	mov	w9, #0
LBB0_7:
Lloh17:
	adrp	x8, _SIO_last_op_time@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SIO_last_op_time@GOTPAGEOFF]
Lloh19:
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TransferStatus,8,3             ; @TransferStatus
	.comm	_SIO_NoFrame,8,3                ; @SIO_NoFrame
	.comm	_SIO_CasReadWrite,8,3           ; @SIO_CasReadWrite
	.comm	_SIO_last_drive,4,2             ; @SIO_last_drive
	.comm	_SIO_last_op_time,4,2           ; @SIO_last_op_time
.subsections_via_symbols
