	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CASSETTE_Remove                ## -- Begin function CASSETTE_Remove
	.p2align	4, 0x90
_CASSETTE_Remove:                       ## @CASSETTE_Remove
	.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
	movq	_cassette_file@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_IMG_TAPE_Close
	movq	$0, (%rbx)
LBB0_2:
	movq	_CASSETTE_STATUS_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CASSETTE_status@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_CASSETTE_description@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	$0, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_UpdateFlags                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cassette_file,8,3              ## @cassette_file
	.comm	_CASSETTE_STATUS_NONE,4,2       ## @CASSETTE_STATUS_NONE
	.comm	_CASSETTE_status,4,2            ## @CASSETTE_status
	.comm	_CASSETTE_description,8,3       ## @CASSETTE_description
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CASSETTE_Remove                ; -- Begin function CASSETTE_Remove
	.p2align	2
_CASSETTE_Remove:                       ; @CASSETTE_Remove
	.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	x19, _cassette_file@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cassette_file@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_IMG_TAPE_Close
	str	xzr, [x19]
LBB0_2:
Lloh2:
	adrp	x8, _CASSETTE_STATUS_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CASSETTE_STATUS_NONE@GOTPAGEOFF]
Lloh4:
	adrp	x9, _CASSETTE_status@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CASSETTE_status@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	str	w8, [x9]
Lloh8:
	adrp	x8, _CASSETTE_description@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CASSETTE_description@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	strb	wzr, [x8]
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cassette_file,8,3              ; @cassette_file
	.comm	_CASSETTE_STATUS_NONE,4,2       ; @CASSETTE_STATUS_NONE
	.comm	_CASSETTE_status,4,2            ; @CASSETTE_status
	.comm	_CASSETTE_description,8,3       ; @CASSETTE_description
.subsections_via_symbols
