	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_poll_hwcq
_ocrdma_poll_hwcq:                      ## @ocrdma_poll_hwcq
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	24(%rdi), %edi
	callq	_get_ocrdma_dev
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r12d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	je	LBB0_16
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r12d, %r15
	shlq	$3, %r15
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	16(%rdi), %r15
	movq	%r15, %rsi
	callq	_is_cqe_valid
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rdi
	callq	_le32_to_cpu
	movq	_OCRDMA_CQE_QPN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	cltq
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	sete	%dil
	callq	_BUG_ON
	movq	%r15, %rdi
	callq	_is_cqe_for_sq
	movq	%r13, %rdi
	movq	%r15, %rsi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_ocrdma_poll_scqe
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_ocrdma_poll_rcqe
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	cmpl	$0, -44(%rbp)
	jne	LBB0_14
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -48(%rbp)
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, (%r15)
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	incl	%r12d
	movl	%r12d, %eax
	cltd
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	idivl	4(%rdi)
	movl	%edx, %r12d
	movq	%r15, %rsi
	callq	_ocrdma_change_cq_phase
	cmpl	$0, -44(%rbp)
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	decl	%ebx
	incl	%r14d
	addq	$4, -64(%rbp)                   ## 8-byte Folded Spill
	movl	$0, -44(%rbp)
	jmp	LBB0_15
LBB0_16:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, (%rcx)
	testl	%r13d, %r13d
	je	LBB0_18
## %bb.17:
	movl	8(%rcx), %esi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r13d, %r8d
	callq	_ocrdma_ring_cq_db
	jmp	LBB0_18
LBB0_1:
	xorl	%r14d, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_CQE_QPN_MASK,4,2        ## @OCRDMA_CQE_QPN_MASK
	.no_dead_strip	_ocrdma_poll_hwcq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_poll_hwcq
_ocrdma_poll_hwcq:                      ; @ocrdma_poll_hwcq
	.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	x23, x2
	mov	x24, x1
	mov	x20, x0
	ldr	w0, [x0, #24]
	bl	_get_ocrdma_dev
	str	xzr, [sp, #8]
	cbz	w24, LBB0_15
; %bb.1:
	mov	x21, x0
	mov	w22, #0
	mov	w19, #0
	ldr	w25, [x20]
Lloh0:
	adrp	x28, _OCRDMA_CQE_QPN_MASK@GOTPAGE
Lloh1:
	ldr	x28, [x28, _OCRDMA_CQE_QPN_MASK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w24, LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x26, x8, w25, sxtw #3
	mov	x0, x20
	mov	x1, x26
	bl	_is_cqe_valid
	cbz	w0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x26]
	bl	_le32_to_cpu
	ldr	w8, [x28]
	ands	w8, w8, w0
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x21]
	ldr	x27, [x9, w8, sxtw #3]
	cmp	x27, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x26
	bl	_is_cqe_for_sq
	add	x3, sp, #12
	add	x4, sp, #8
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x27
	mov	x1, x26
	mov	x2, x23
	bl	_ocrdma_poll_scqe
	cbnz	w0, LBB0_11
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x27
	mov	x1, x26
	mov	x2, x23
	bl	_ocrdma_poll_rcqe
	cbnz	w0, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x26]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	add	w8, w25, #1
	ldr	w9, [x20, #4]
	sdiv	w10, w8, w9
	msub	w25, w10, w9, w8
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	bl	_ocrdma_change_cq_phase
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	w24, w24, #1
	add	w19, w19, #1
	add	x23, x23, #4
	str	wzr, [sp, #12]
	b	LBB0_2
LBB0_13:
	str	w25, [x20]
	cbz	w22, LBB0_16
; %bb.14:
	ldr	w1, [x20, #8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	mov	x4, x22
	bl	_ocrdma_ring_cq_db
	b	LBB0_16
LBB0_15:
	mov	w19, #0
LBB0_16:
	mov	x0, x19
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_CQE_QPN_MASK,4,2        ; @OCRDMA_CQE_QPN_MASK
	.no_dead_strip	_ocrdma_poll_hwcq
.subsections_via_symbols
