	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function safexcel_irq_ring
_safexcel_irq_ring:                     ## @safexcel_irq_ring
	.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	8(%rsi), %r15
	movl	(%rsi), %r14d
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_EIP197_HIA_AIC_R
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_EIP197_HIA_AIC_R_ENABLED_STAT
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_EIP197_RDR_IRQ
	testl	%r12d, %eax
	je	LBB0_7
## %bb.2:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_EIP197_HIA_RDR
	movq	_EIP197_HIA_xDR_STAT@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, %rdi
	callq	_readl
	movl	%eax, %r13d
	movq	_EIP197_xDR_ERR@GOTPCREL(%rip), %rax
	movl	%r13d, %edi
	andl	(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_6
LBB0_4:
	movq	_EIP197_xDR_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r13d, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_6:
	movzbl	%r13b, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_EIP197_HIA_RDR
	movq	_EIP197_HIA_xDR_STAT@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_writel
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_7:
	movq	%r15, %rdi
	callq	_EIP197_HIA_AIC_R
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_EIP197_HIA_AIC_R_ACK
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
LBB0_8:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_EIP197_HIA_xDR_STAT,8,3        ## @EIP197_HIA_xDR_STAT
	.comm	_EIP197_xDR_ERR,4,2             ## @EIP197_xDR_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RDR: fatal error.\n"

	.comm	_EIP197_xDR_THRESH,4,2          ## @EIP197_xDR_THRESH
	.comm	_IRQ_WAKE_THREAD,4,2            ## @IRQ_WAKE_THREAD
	.no_dead_strip	_safexcel_irq_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function safexcel_irq_ring
_safexcel_irq_ring:                     ; @safexcel_irq_ring
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x21, [x1, #8]
	ldr	w20, [x1]
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	mov	x0, x21
	bl	_EIP197_HIA_AIC_R
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_HIA_AIC_R_ENABLED_STAT
	add	x0, x0, x22
	bl	_readl
	cbz	w0, LBB0_7
; %bb.1:
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_RDR_IRQ
	tst	w0, w22
	b.eq	LBB0_6
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	bl	_EIP197_HIA_RDR
Lloh3:
	adrp	x24, _EIP197_HIA_xDR_STAT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _EIP197_HIA_xDR_STAT@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x0, x8, x0
	bl	_readl
	mov	x23, x0
Lloh5:
	adrp	x8, _EIP197_xDR_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIP197_xDR_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w0, w8, w0
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _EIP197_xDR_THRESH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIP197_xDR_THRESH@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w0, w8, w23
	bl	_likely
Lloh13:
	adrp	x8, _IRQ_WAKE_THREAD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_WAKE_THREAD@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w19, w19, w8, eq
LBB0_5:
	and	w23, w23, #0xff
	mov	x0, x21
	mov	x1, x20
	bl	_EIP197_HIA_RDR
	ldr	x8, [x24]
	add	x1, x8, x0
	mov	x0, x23
	bl	_writel
LBB0_6:
	mov	x0, x21
	bl	_EIP197_HIA_AIC_R
	mov	x21, x0
	mov	x0, x20
	bl	_EIP197_HIA_AIC_R_ACK
	add	x1, x0, x21
	mov	x0, x22
	bl	_writel
LBB0_7:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_EIP197_HIA_xDR_STAT,8,3        ; @EIP197_HIA_xDR_STAT
	.comm	_EIP197_xDR_ERR,4,2             ; @EIP197_xDR_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RDR: fatal error.\n"

	.comm	_EIP197_xDR_THRESH,4,2          ; @EIP197_xDR_THRESH
	.comm	_IRQ_WAKE_THREAD,4,2            ; @IRQ_WAKE_THREAD
	.no_dead_strip	_safexcel_irq_ring
.subsections_via_symbols
