	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_find_dev
_ata_find_dev:                          ## @ata_find_dev
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_sata_pmp_attached
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	xorl	%edi, %edi
	cmpl	%r14d, (%rbx)
	setg	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	8(%rbx), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rax
	jmp	LBB0_7
LBB0_3:
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_ata_link_max_devices
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	setg	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movslq	%r14d, %rax
	shlq	$2, %rax
	addq	(%rbx), %rax
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ata_find_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_find_dev
_ata_find_dev:                          ; @ata_find_dev
	.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, x1
	mov	x20, x0
	bl	_sata_pmp_attached
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, w19
	cset	w0, gt
	bl	_likely
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, w19, sxtw #3]
	b	LBB0_5
LBB0_3:
	add	x20, x20, #16
	mov	x0, x20
	bl	_ata_link_max_devices
	cmp	w0, w19
	cset	w0, gt
	bl	_likely
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	add	x0, x8, w19, sxtw #2
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ata_find_dev
.subsections_via_symbols
