	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_dev_classify               ## -- Begin function ata_dev_classify
	.p2align	4, 0x90
_ata_dev_classify:                      ## @ata_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %eax
	cmpl	$59, %eax
	jg	LBB0_5
## %bb.1:
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	cmpl	$20, %eax
	jne	LBB0_13
## %bb.3:
	cmpl	$235, 4(%rdi)
	jne	LBB0_13
## %bb.4:
	movq	_ATA_DEV_ATAPI@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_14
LBB0_5:
	cmpl	$60, %eax
	je	LBB0_11
## %bb.6:
	cmpl	$105, %eax
	jne	LBB0_13
## %bb.7:
	cmpl	$150, 4(%rdi)
	jne	LBB0_13
## %bb.8:
	movq	_ATA_DEV_PMP@GOTPCREL(%rip), %rbx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_14
LBB0_9:
	cmpl	$0, 4(%rdi)
	jne	LBB0_13
## %bb.10:
	movq	_ATA_DEV_ATA@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_14
LBB0_11:
	cmpl	$195, 4(%rdi)
	jne	LBB0_13
## %bb.12:
	movq	_ATA_DEV_SEMB@GOTPCREL(%rip), %rbx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_14
LBB0_13:
	movq	_ATA_DEV_UNKNOWN@GOTPCREL(%rip), %rbx
	leaq	L_.str.4(%rip), %rdi
LBB0_14:
	callq	_DPRINTK
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found ATA device by sig\n"

	.comm	_ATA_DEV_ATA,4,2                ## @ATA_DEV_ATA
L_.str.1:                               ## @.str.1
	.asciz	"found ATAPI device by sig\n"

	.comm	_ATA_DEV_ATAPI,4,2              ## @ATA_DEV_ATAPI
L_.str.2:                               ## @.str.2
	.asciz	"found PMP device by sig\n"

	.comm	_ATA_DEV_PMP,4,2                ## @ATA_DEV_PMP
L_.str.3:                               ## @.str.3
	.asciz	"found SEMB device by sig (could be ATA device)\n"

	.comm	_ATA_DEV_SEMB,4,2               ## @ATA_DEV_SEMB
L_.str.4:                               ## @.str.4
	.asciz	"unknown device\n"

	.comm	_ATA_DEV_UNKNOWN,4,2            ## @ATA_DEV_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_dev_classify               ; -- Begin function ata_dev_classify
	.p2align	2
_ata_dev_classify:                      ; @ata_dev_classify
	.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
	ldr	w8, [x0]
	cmp	w8, #59
	b.gt	LBB0_5
; %bb.1:
	cbz	w8, LBB0_9
; %bb.2:
	cmp	w8, #20
	b.ne	LBB0_13
; %bb.3:
	ldr	w8, [x0, #4]
	cmp	w8, #235
	b.ne	LBB0_13
; %bb.4:
Lloh0:
	adrp	x19, _ATA_DEV_ATAPI@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ATA_DEV_ATAPI@GOTPAGEOFF]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_5:
	cmp	w8, #60
	b.eq	LBB0_11
; %bb.6:
	cmp	w8, #105
	b.ne	LBB0_13
; %bb.7:
	ldr	w8, [x0, #4]
	cmp	w8, #150
	b.ne	LBB0_13
; %bb.8:
Lloh4:
	adrp	x19, _ATA_DEV_PMP@GOTPAGE
Lloh5:
	ldr	x19, [x19, _ATA_DEV_PMP@GOTPAGEOFF]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_9:
	ldr	w8, [x0, #4]
	cbnz	w8, LBB0_13
; %bb.10:
Lloh8:
	adrp	x19, _ATA_DEV_ATA@GOTPAGE
Lloh9:
	ldr	x19, [x19, _ATA_DEV_ATA@GOTPAGEOFF]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_11:
	ldr	w8, [x0, #4]
	cmp	w8, #195
	b.ne	LBB0_13
; %bb.12:
Lloh12:
	adrp	x19, _ATA_DEV_SEMB@GOTPAGE
Lloh13:
	ldr	x19, [x19, _ATA_DEV_SEMB@GOTPAGEOFF]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh16:
	adrp	x19, _ATA_DEV_UNKNOWN@GOTPAGE
Lloh17:
	ldr	x19, [x19, _ATA_DEV_UNKNOWN@GOTPAGEOFF]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_14:
	bl	_DPRINTK
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found ATA device by sig\n"

	.comm	_ATA_DEV_ATA,4,2                ; @ATA_DEV_ATA
l_.str.1:                               ; @.str.1
	.asciz	"found ATAPI device by sig\n"

	.comm	_ATA_DEV_ATAPI,4,2              ; @ATA_DEV_ATAPI
l_.str.2:                               ; @.str.2
	.asciz	"found PMP device by sig\n"

	.comm	_ATA_DEV_PMP,4,2                ; @ATA_DEV_PMP
l_.str.3:                               ; @.str.3
	.asciz	"found SEMB device by sig (could be ATA device)\n"

	.comm	_ATA_DEV_SEMB,4,2               ; @ATA_DEV_SEMB
l_.str.4:                               ; @.str.4
	.asciz	"unknown device\n"

	.comm	_ATA_DEV_UNKNOWN,4,2            ; @ATA_DEV_UNKNOWN
.subsections_via_symbols
