	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_sff_dev_classify           ## -- Begin function ata_sff_dev_classify
	.p2align	4, 0x90
_ata_sff_dev_classify:                  ## @ata_sff_dev_classify
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movq	(%r12), %rax
	movl	4(%rdi), %esi
	movq	%r12, %rdi
	callq	*16(%rax)
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	*8(%rax)
	movl	-48(%rbp), %eax
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	%eax, (%rbx)
LBB0_2:
	cmpl	$1, %eax
	je	LBB0_5
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	_ATA_HORKAGE_DIAGNOSTIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_5
LBB0_9:
	cmpl	$0, 4(%r14)
	jne	LBB0_13
## %bb.10:
	cmpl	$129, %eax
	jne	LBB0_13
LBB0_5:
	leaq	-48(%rbp), %rdi
	callq	_ata_dev_classify
	movl	%eax, %ebx
	movq	_ATA_DEV_UNKNOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_11
## %bb.6:
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.7:
	movq	_ATA_HORKAGE_DIAGNOSTIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_13
## %bb.8:
	movq	_ATA_DEV_ATA@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_ATA_DEV_ATA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_15
## %bb.12:
	movq	(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	testq	%rax, %rax
	jne	LBB0_15
LBB0_13:
	movq	_ATA_DEV_NONE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_HORKAGE_DIAGNOSTIC,4,2     ## @ATA_HORKAGE_DIAGNOSTIC
	.comm	_ATA_DEV_NONE,4,2               ## @ATA_DEV_NONE
	.comm	_ATA_DEV_UNKNOWN,4,2            ## @ATA_DEV_UNKNOWN
	.comm	_ATA_DEV_ATA,4,2                ## @ATA_DEV_ATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_sff_dev_classify           ; -- Begin function ata_sff_dev_classify
	.p2align	2
_ata_sff_dev_classify:                  ; @ata_sff_dev_classify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	ldr	w1, [x0, #4]
	mov	x0, x19
	blr	x8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #8]
	cbz	x22, LBB0_2
; %bb.1:
	str	w8, [x22]
LBB0_2:
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.3:
	cbnz	w8, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _ATA_HORKAGE_DIAGNOSTIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_HORKAGE_DIAGNOSTIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_7
LBB0_5:
	ldr	w9, [x20, #4]
	cbnz	w9, LBB0_13
; %bb.6:
	cmp	w8, #129
	b.ne	LBB0_13
LBB0_7:
	add	x0, sp, #8
	bl	_ata_dev_classify
Lloh3:
	adrp	x8, _ATA_DEV_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_DEV_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.8:
	cbz	w21, LBB0_13
; %bb.9:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _ATA_HORKAGE_DIAGNOSTIC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATA_HORKAGE_DIAGNOSTIC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.10:
Lloh9:
	adrp	x8, _ATA_DEV_ATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATA_DEV_ATA@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	mov	x22, x0
Lloh11:
	adrp	x8, _ATA_DEV_ATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATA_DEV_ATA@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.12:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
Lloh14:
	adrp	x8, _ATA_DEV_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ATA_DEV_NONE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w22, w8, w22, eq
	b	LBB0_15
LBB0_13:
Lloh17:
	adrp	x8, _ATA_DEV_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ATA_DEV_NONE@GOTPAGEOFF]
LBB0_14:
	ldr	w22, [x8]
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_HORKAGE_DIAGNOSTIC,4,2     ; @ATA_HORKAGE_DIAGNOSTIC
	.comm	_ATA_DEV_NONE,4,2               ; @ATA_DEV_NONE
	.comm	_ATA_DEV_UNKNOWN,4,2            ; @ATA_DEV_UNKNOWN
	.comm	_ATA_DEV_ATA,4,2                ; @ATA_DEV_ATA
.subsections_via_symbols
