	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idetape_open
_idetape_open:                          ## @idetape_open
	.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
	movq	%rdi, %rbx
	movq	_ide_tape_mutex@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%rbx), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ide_tape_get
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testq	%rbx, %rbx
	cmovnel	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ide_tape_mutex,4,2             ## @ide_tape_mutex
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_idetape_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idetape_open
_idetape_open:                          ; @idetape_open
	.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
Lloh0:
	adrp	x20, _ide_tape_mutex@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ide_tape_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	ldr	w0, [x19]
	mov	w1, #0
	mov	w2, #0
	bl	_ide_tape_get
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x19, #0
	csneg	w0, wzr, w8, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ide_tape_mutex,4,2             ; @ide_tape_mutex
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_idetape_open
.subsections_via_symbols
