	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CASSETTE_TapeMotor             ## -- Begin function CASSETTE_TapeMotor
	.p2align	4, 0x90
_CASSETTE_TapeMotor:                    ## @CASSETTE_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_cassette_motor@GOTPCREL(%rip), %r14
	cmpl	%edi, (%r14)
	jne	LBB0_1
## %bb.5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	%edi, %ebx
	movq	_CASSETTE_record@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_cassette_writable@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_cassette_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IMG_TAPE_Flush
LBB0_4:
	movl	%ebx, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_UpdateFlags                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cassette_motor,4,2             ## @cassette_motor
	.comm	_CASSETTE_record,8,3            ## @CASSETTE_record
	.comm	_cassette_writable,8,3          ## @cassette_writable
	.comm	_cassette_file,4,2              ## @cassette_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CASSETTE_TapeMotor             ; -- Begin function CASSETTE_TapeMotor
	.p2align	2
_CASSETTE_TapeMotor:                    ; @CASSETTE_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
Lloh0:
	adrp	x20, _cassette_motor@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cassette_motor@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
Lloh2:
	adrp	x8, _CASSETTE_record@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CASSETTE_record@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _cassette_writable@GOTPAGE
Lloh6:
	ldr	x9, [x9, _cassette_writable@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _cassette_file@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cassette_file@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_IMG_TAPE_Flush
LBB0_4:
	str	w19, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_UpdateFlags
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cassette_motor,4,2             ; @cassette_motor
	.comm	_CASSETTE_record,8,3            ; @CASSETTE_record
	.comm	_cassette_writable,8,3          ; @cassette_writable
	.comm	_cassette_file,4,2              ; @cassette_file
.subsections_via_symbols
