	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_tape_get
_ide_tape_get:                          ## @ide_tape_get
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_idetape_ref_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	movq	_idetape_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
	jmp	LBB0_5
LBB0_4:
	movq	_ide_tape_obj@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ide_drv_g
	movq	%rax, %rbx
	testq	%rbx, %rbx
	je	LBB0_5
LBB0_2:
	movl	4(%rbx), %edi
	callq	_ide_device_get
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_get_device
LBB0_7:
	movq	_idetape_ref_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_idetape_ref_mutex,4,2          ## @idetape_ref_mutex
	.comm	_idetape_devs,8,3               ## @idetape_devs
	.comm	_ide_tape_obj,4,2               ## @ide_tape_obj
	.no_dead_strip	_ide_tape_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_tape_get
_ide_tape_get:                          ; @ide_tape_get
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _idetape_ref_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _idetape_ref_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	cbz	w21, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _idetape_devs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _idetape_devs@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x19, [x8, w19, uxtw #3]
	cbnz	x19, LBB0_3
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _ide_tape_obj@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ide_tape_obj@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ide_drv_g
	mov	x19, x0
	cbz	x19, LBB0_6
LBB0_3:
	ldr	w0, [x19, #4]
	bl	_ide_device_get
	cbz	x0, LBB0_5
; %bb.4:
	mov	x19, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_get_device
LBB0_6:
Lloh8:
	adrp	x0, _idetape_ref_mutex@GOTPAGE
Lloh9:
	ldr	x0, [x0, _idetape_ref_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_idetape_ref_mutex,4,2          ; @idetape_ref_mutex
	.comm	_idetape_devs,8,3               ; @idetape_devs
	.comm	_ide_tape_obj,4,2               ; @ide_tape_obj
	.no_dead_strip	_ide_tape_get
.subsections_via_symbols
