	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_irq_handler
_ocrdma_irq_handler:                    ## @ocrdma_irq_handler
	.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	%rsi, %r13
	movq	16(%rsi), %r14
	movl	(%rsi), %r12d
	movq	_OCRDMA_EQE_VALID_MASK@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_ocrdma_get_eqe
	movq	%rax, %rbx
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	movl	$4, %esi
	callq	_ocrdma_le32_to_cpu
	movl	-48(%rbp), %edx
	movq	_OCRDMA_EQE_MAJOR_CODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	movq	_OCRDMA_EQE_MAJOR_CODE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %eax
	movq	_OCRDMA_MAJOR_CODE_SENTINAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r13), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	-48(%rbp), %edx
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%edx, (%r15)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, (%rbx)
	movl	4(%r13), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_ocrdma_ring_eq_db
	movl	-48(%rbp), %esi
	movq	_OCRDMA_EQE_FOR_CQE_MASK@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_OCRDMA_EQE_RESOURCE_ID_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %esi
	movq	%r14, %rdi
	callq	_ocrdma_cq_handler
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_ocrdma_eq_inc_tail
	subl	$1, %r12d
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	jne	LBB0_1
LBB0_8:
	incl	8(%r13)
	movl	4(%r13), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_ocrdma_ring_eq_db
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_EQE_MAJOR_CODE_MASK,4,2 ## @OCRDMA_EQE_MAJOR_CODE_MASK
	.comm	_OCRDMA_EQE_MAJOR_CODE_SHIFT,4,2 ## @OCRDMA_EQE_MAJOR_CODE_SHIFT
	.comm	_OCRDMA_MAJOR_CODE_SENTINAL,4,2 ## @OCRDMA_MAJOR_CODE_SENTINAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EQ full on eqid = 0x%x, eqe = 0x%x\n"

	.comm	_OCRDMA_EQE_VALID_MASK,4,2      ## @OCRDMA_EQE_VALID_MASK
	.comm	_OCRDMA_EQE_FOR_CQE_MASK,4,2    ## @OCRDMA_EQE_FOR_CQE_MASK
	.comm	_OCRDMA_EQE_RESOURCE_ID_SHIFT,4,2 ## @OCRDMA_EQE_RESOURCE_ID_SHIFT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ocrdma_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_irq_handler
_ocrdma_irq_handler:                    ; @ocrdma_irq_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	ldr	x19, [x1, #16]
	ldr	w24, [x1]
Lloh0:
	adrp	x23, _OCRDMA_EQE_MAJOR_CODE_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _OCRDMA_EQE_MAJOR_CODE_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x25, _OCRDMA_EQE_MAJOR_CODE_SHIFT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _OCRDMA_EQE_MAJOR_CODE_SHIFT@GOTPAGEOFF]
Lloh4:
	adrp	x26, _OCRDMA_MAJOR_CODE_SENTINAL@GOTPAGE
Lloh5:
	ldr	x26, [x26, _OCRDMA_MAJOR_CODE_SENTINAL@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
Lloh8:
	adrp	x27, _OCRDMA_EQE_VALID_MASK@GOTPAGE
Lloh9:
	ldr	x27, [x27, _OCRDMA_EQE_VALID_MASK@GOTPAGEOFF]
Lloh10:
	adrp	x28, _OCRDMA_EQE_FOR_CQE_MASK@GOTPAGE
Lloh11:
	ldr	x28, [x28, _OCRDMA_EQE_FOR_CQE_MASK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_ocrdma_get_eqe
	mov	x22, x0
	ldr	w8, [x0]
	str	w8, [sp, #8]
	add	x0, sp, #8
	mov	w1, #4
	bl	_ocrdma_le32_to_cpu
	ldr	w2, [sp, #8]
	ldr	w8, [x23]
	and	w8, w8, w2
	ldr	w9, [x25]
	asr	w8, w8, w9
	ldr	w9, [x26]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x20, #4]
	mov	x0, x21
	bl	_pr_err
	ldr	w2, [sp, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x27]
	tst	w8, w2
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	str	wzr, [x22]
	ldr	w1, [x20, #4]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	mov	w4, #1
	bl	_ocrdma_ring_eq_db
	ldr	w8, [sp, #8]
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh12:
	adrp	x9, _OCRDMA_EQE_RESOURCE_ID_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OCRDMA_EQE_RESOURCE_ID_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w1, w8, w9
	mov	x0, x19
	bl	_ocrdma_cq_handler
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_ocrdma_eq_inc_tail
	subs	w8, w24, #1
	cbz	w24, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x24, x8
	b.ne	LBB0_1
LBB0_8:
	ldp	w1, w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	mov	w4, #0
	bl	_ocrdma_ring_eq_db
Lloh15:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_EQE_MAJOR_CODE_MASK,4,2 ; @OCRDMA_EQE_MAJOR_CODE_MASK
	.comm	_OCRDMA_EQE_MAJOR_CODE_SHIFT,4,2 ; @OCRDMA_EQE_MAJOR_CODE_SHIFT
	.comm	_OCRDMA_MAJOR_CODE_SENTINAL,4,2 ; @OCRDMA_MAJOR_CODE_SENTINAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EQ full on eqid = 0x%x, eqe = 0x%x\n"

	.comm	_OCRDMA_EQE_VALID_MASK,4,2      ; @OCRDMA_EQE_VALID_MASK
	.comm	_OCRDMA_EQE_FOR_CQE_MASK,4,2    ; @OCRDMA_EQE_FOR_CQE_MASK
	.comm	_OCRDMA_EQE_RESOURCE_ID_SHIFT,4,2 ; @OCRDMA_EQE_RESOURCE_ID_SHIFT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ocrdma_irq_handler
.subsections_via_symbols
