	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	8(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %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
	movq	_OCRDMA_EQE_VALID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	movq	_OCRDMA_EQE_FOR_CQE_MASK@GOTPCREL(%rip), %r14
	leaq	-48(%rbp), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_ocrdma_eq_inc_tail
	movq	%r15, %rdi
	callq	_ocrdma_get_eqe
	movq	%rax, %rbx
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_ocrdma_le32_to_cpu
	movq	_OCRDMA_EQE_VALID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%r13d
	testl	%eax, -48(%rbp)
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, (%rbx)
	movl	-48(%rbp), %esi
	testl	%esi, (%r14)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_OCRDMA_EQE_RESOURCE_ID_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ocrdma_cq_handler
	jmp	LBB0_5
LBB0_1:
	xorl	%r13d, %r13d
LBB0_6:
	movl	(%r15), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	movl	%r13d, %r8d
	callq	_ocrdma_ring_eq_db
	movq	(%rbx), %rax
	movq	_BE_INTERRUPT_MODE_INTX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_ocrdma_ring_eq_db
LBB0_8:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_BE_INTERRUPT_MODE_INTX,8,3     ## @BE_INTERRUPT_MODE_INTX
	.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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	ldr	x19, [x1, #8]
	mov	x0, x1
	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	w8, [sp, #8]
Lloh0:
	adrp	x23, _OCRDMA_EQE_VALID_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _OCRDMA_EQE_VALID_MASK@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	w21, #0
Lloh2:
	adrp	x24, _OCRDMA_EQE_FOR_CQE_MASK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _OCRDMA_EQE_FOR_CQE_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x25, _OCRDMA_EQE_RESOURCE_ID_SHIFT@GOTPAGE
Lloh5:
	ldr	x25, [x25, _OCRDMA_EQE_RESOURCE_ID_SHIFT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_ocrdma_eq_inc_tail
	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	w8, [sp, #8]
	ldr	w9, [x23]
	add	w21, w21, #1
	tst	w9, w8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [x22]
	ldr	w8, [sp, #8]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x25]
	asr	w1, w8, w9
	mov	x0, x19
	bl	_ocrdma_cq_handler
	b	LBB0_2
LBB0_5:
	mov	w21, #0
LBB0_6:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	mov	x4, x21
	bl	_ocrdma_ring_eq_db
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _BE_INTERRUPT_MODE_INTX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BE_INTERRUPT_MODE_INTX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	mov	w4, #0
	bl	_ocrdma_ring_eq_db
LBB0_8:
Lloh9:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.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	_BE_INTERRUPT_MODE_INTX,8,3     ; @BE_INTERRUPT_MODE_INTX
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ocrdma_irq_handler
.subsections_via_symbols
