	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_disk_get
_ide_disk_get:                          ## @ide_disk_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_ide_disk_ref_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_ide_disk_obj@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ide_drv_g
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_ide_device_get
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_get_device
LBB0_5:
	movq	_ide_disk_ref_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ide_disk_ref_mutex,4,2         ## @ide_disk_ref_mutex
	.comm	_ide_disk_obj,4,2               ## @ide_disk_obj
	.no_dead_strip	_ide_disk_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_disk_get
_ide_disk_get:                          ; @ide_disk_get
	.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	x0, _ide_disk_ref_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ide_disk_ref_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _ide_disk_obj@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ide_disk_obj@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ide_drv_g
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_ide_device_get
	cbz	x0, LBB0_3
; %bb.2:
	mov	x19, #0
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_get_device
LBB0_4:
Lloh5:
	adrp	x0, _ide_disk_ref_mutex@GOTPAGE
Lloh6:
	ldr	x0, [x0, _ide_disk_ref_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ide_disk_ref_mutex,4,2         ; @ide_disk_ref_mutex
	.comm	_ide_disk_obj,4,2               ; @ide_disk_obj
	.no_dead_strip	_ide_disk_get
.subsections_via_symbols
