	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ace_interrupt_checkstate
_ace_interrupt_checkstate:              ## @ace_interrupt_checkstate
	.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
	movq	%rdi, %rbx
	movq	_ACE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ace_in32
	movl	%eax, %r14d
	movq	_ACE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ace_in
	movl	%eax, %ecx
	movq	_ACE_STATUS_CFGERROR@GOTPCREL(%rip), %rax
	movq	_ACE_STATUS_CFCERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	xorl	%eax, %eax
	testl	%r14d, %edx
	je	LBB0_3
## %bb.1:
	movq	_ACE_CTRL_ERRORIRQ@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_ace_dump_regs
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACE_STATUS,4,2                 ## @ACE_STATUS
	.comm	_ACE_CTRL,4,2                   ## @ACE_CTRL
	.comm	_ACE_STATUS_CFGERROR,4,2        ## @ACE_STATUS_CFGERROR
	.comm	_ACE_STATUS_CFCERROR,4,2        ## @ACE_STATUS_CFCERROR
	.comm	_ACE_CTRL_ERRORIRQ,4,2          ## @ACE_CTRL_ERRORIRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"transfer failure\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ace_interrupt_checkstate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ace_interrupt_checkstate
_ace_interrupt_checkstate:              ; @ace_interrupt_checkstate
	.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, x0
Lloh0:
	adrp	x8, _ACE_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACE_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ace_in32
	mov	x20, x0
Lloh3:
	adrp	x8, _ACE_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACE_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ace_in
Lloh6:
	adrp	x8, _ACE_STATUS_CFGERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACE_STATUS_CFGERROR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ACE_STATUS_CFCERROR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ACE_STATUS_CFCERROR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
Lloh12:
	adrp	x8, _ACE_CTRL_ERRORIRQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACE_CTRL_ERRORIRQ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_ace_dump_regs
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	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
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ACE_STATUS,4,2                 ; @ACE_STATUS
	.comm	_ACE_CTRL,4,2                   ; @ACE_CTRL
	.comm	_ACE_STATUS_CFGERROR,4,2        ; @ACE_STATUS_CFGERROR
	.comm	_ACE_STATUS_CFCERROR,4,2        ; @ACE_STATUS_CFCERROR
	.comm	_ACE_CTRL_ERRORIRQ,4,2          ; @ACE_CTRL_ERRORIRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"transfer failure\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ace_interrupt_checkstate
.subsections_via_symbols
