	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_eh_categorize_error
_ata_eh_categorize_error:               ## @ata_eh_categorize_error
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ATA_EFLAG_DUBIOUS_XFER@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_1
## %bb.2:
	xorl	%ecx, %ecx
	cmpl	$0, (%rdx)
	jne	LBB0_4
## %bb.3:
	movq	_ATA_ECAT_DUBIOUS_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_4
LBB0_1:
	movl	$1, (%rdx)
	xorl	%ecx, %ecx
LBB0_4:
	movq	_AC_ERR_ATA_BUS@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_ATA_ECAT_ATA_BUS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	_AC_ERR_TIMEOUT@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_8
LBB0_7:
	movq	_ATA_ECAT_TOUT_HSM@GOTPCREL(%rip), %rax
LBB0_12:
	addl	(%rax), %ecx
	movl	%ecx, %eax
LBB0_13:
	popq	%rbp
	retq
LBB0_8:
	movq	_ATA_EFLAG_IS_IO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%edi, (%rdx)
	je	LBB0_13
## %bb.9:
	movq	_AC_ERR_HSM@GOTPCREL(%rip), %rdx
	testl	%esi, (%rdx)
	jne	LBB0_7
## %bb.10:
	movq	_AC_ERR_DEV@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_AC_ERR_MEDIA@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	%r8d, %edi
	movq	_AC_ERR_INVALID@GOTPCREL(%rip), %rdx
	orl	(%rdx), %edi
	andl	%esi, %edi
	cmpl	%r8d, %edi
	jne	LBB0_13
## %bb.11:
	movq	_ATA_ECAT_UNK_DEV@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_EFLAG_DUBIOUS_XFER,4,2     ## @ATA_EFLAG_DUBIOUS_XFER
	.comm	_ATA_ECAT_DUBIOUS_NONE,4,2      ## @ATA_ECAT_DUBIOUS_NONE
	.comm	_AC_ERR_ATA_BUS,4,2             ## @AC_ERR_ATA_BUS
	.comm	_ATA_ECAT_ATA_BUS,4,2           ## @ATA_ECAT_ATA_BUS
	.comm	_AC_ERR_TIMEOUT,4,2             ## @AC_ERR_TIMEOUT
	.comm	_ATA_ECAT_TOUT_HSM,4,2          ## @ATA_ECAT_TOUT_HSM
	.comm	_ATA_EFLAG_IS_IO,4,2            ## @ATA_EFLAG_IS_IO
	.comm	_AC_ERR_HSM,4,2                 ## @AC_ERR_HSM
	.comm	_AC_ERR_DEV,4,2                 ## @AC_ERR_DEV
	.comm	_AC_ERR_MEDIA,4,2               ## @AC_ERR_MEDIA
	.comm	_AC_ERR_INVALID,4,2             ## @AC_ERR_INVALID
	.comm	_ATA_ECAT_UNK_DEV,4,2           ## @ATA_ECAT_UNK_DEV
	.no_dead_strip	_ata_eh_categorize_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_eh_categorize_error
_ata_eh_categorize_error:               ; @ata_eh_categorize_error
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ATA_EFLAG_DUBIOUS_XFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_EFLAG_DUBIOUS_XFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x2]
Lloh3:
	adrp	x9, _ATA_ECAT_DUB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DEV@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _AC_ERR_MEDIA@GOTPAGE
Lloh26:
	ldr	x10, [x10, _AC_ERR_MEDIA@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	orr	w10, w10, w9
Lloh28:
	adrp	x11, _AC_ERR_INVALID@GOTPAGE
Lloh29:
	ldr	x11, [x11, _AC_ERR_INVALID@GOTPAGEOFF]
Lloh30:
	ldr	w11, [x11]
	orr	w10, w10, w11
	and	w10, w10, w1
	cmp	w10, w9
	b.ne	LBB0_12
; %bb.11:
Lloh31:
	adrp	x9, _ATA_ECAT_UNK_DEV@GOTPAGE
Lloh32:
	ldr	x9, [x9, _ATA_ECAT_UNK_DEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_12:
	mov	w0, #0
	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 AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_EFLAG_DUBIOUS_XFER,4,2     ; @ATA_EFLAG_DUBIOUS_XFER
	.comm	_ATA_ECAT_DUBIOUS_NONE,4,2      ; @ATA_ECAT_DUBIOUS_NONE
	.comm	_AC_ERR_ATA_BUS,4,2             ; @AC_ERR_ATA_BUS
	.comm	_ATA_ECAT_ATA_BUS,4,2           ; @ATA_ECAT_ATA_BUS
	.comm	_AC_ERR_TIMEOUT,4,2             ; @AC_ERR_TIMEOUT
	.comm	_ATA_ECAT_TOUT_HSM,4,2          ; @ATA_ECAT_TOUT_HSM
	.comm	_ATA_EFLAG_IS_IO,4,2            ; @ATA_EFLAG_IS_IO
	.comm	_AC_ERR_HSM,4,2                 ; @AC_ERR_HSM
	.comm	_AC_ERR_DEV,4,2                 ; @AC_ERR_DEV
	.comm	_AC_ERR_MEDIA,4,2               ; @AC_ERR_MEDIA
	.comm	_AC_ERR_INVALID,4,2             ; @AC_ERR_INVALID
	.comm	_ATA_ECAT_UNK_DEV,4,2           ; @ATA_ECAT_UNK_DEV
	.no_dead_strip	_ata_eh_categorize_error
.subsections_via_symbols
