	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function afu_read_error_state
_afu_read_error_state:                  ## @afu_read_error_state
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %edi
	leaq	-12(%rbp), %rsi
	callq	_cxl_h_read_error_state
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	-12(%rbp), %eax
	movq	_H_STATE_NORMAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setne	%cl
	movq	_H_STATE_DISABLE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	setne	%dl
	andb	%cl, %dl
	movq	_H_STATE_TEMP_UNAVAILABLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setne	%cl
	movq	_H_STATE_PERM_UNAVAILABLE@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	setne	%al
	andb	%cl, %al
	andb	%dl, %al
	movzbl	%al, %edi
	callq	_WARN_ON
	movl	-12(%rbp), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_H_STATE_NORMAL,4,2             ## @H_STATE_NORMAL
	.comm	_H_STATE_DISABLE,4,2            ## @H_STATE_DISABLE
	.comm	_H_STATE_TEMP_UNAVAILABLE,4,2   ## @H_STATE_TEMP_UNAVAILABLE
	.comm	_H_STATE_PERM_UNAVAILABLE,4,2   ## @H_STATE_PERM_UNAVAILABLE
	.no_dead_strip	_afu_read_error_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function afu_read_error_state
_afu_read_error_state:                  ; @afu_read_error_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	x8, [x0]
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_cxl_h_read_error_state
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _H_STATE_NORMAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _H_STATE_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _H_STATE_DISABLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _H_STATE_DISABLE@GOTPAGEOFF]
	cmp	w8, w9
Lloh5:
	ldr	w9, [x10]
	ccmp	w8, w9, #4, ne
Lloh6:
	adrp	x9, _H_STATE_TEMP_UNAVAILABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _H_STATE_TEMP_UNAVAILABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ccmp	w8, w9, #4, ne
Lloh9:
	adrp	x9, _H_STATE_PERM_UNAVAILABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _H_STATE_PERM_UNAVAILABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ccmp	w8, w9, #4, ne
	cset	w0, ne
	bl	_WARN_ON
	mov	w0, #0
	ldr	w8, [sp, #12]
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_H_STATE_NORMAL,4,2             ; @H_STATE_NORMAL
	.comm	_H_STATE_DISABLE,4,2            ; @H_STATE_DISABLE
	.comm	_H_STATE_TEMP_UNAVAILABLE,4,2   ; @H_STATE_TEMP_UNAVAILABLE
	.comm	_H_STATE_PERM_UNAVAILABLE,4,2   ; @H_STATE_PERM_UNAVAILABLE
	.no_dead_strip	_afu_read_error_state
.subsections_via_symbols
