	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function poll_cq
_poll_cq:                               ## @poll_cq
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movl	$0, (%rcx)
	movq	$0, (%r9)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_t4_next_cqe
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_48
## %bb.1:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi
	callq	_CQE_OVFBIT
	movl	%eax, %r14d
	movq	-48(%rbp), %rdi
	callq	_CQE_QPID
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rdi
	callq	_CQE_GENBIT
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rdi
	callq	_CQE_TYPE
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rdi
	callq	_CQE_STATUS
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-48(%rbp), %rdi
	callq	_CQE_OPCODE
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-48(%rbp), %rdi
	callq	_CQE_LEN
	movl	%eax, %r13d
	movq	-48(%rbp), %rdi
	callq	_CQE_WRID_HI
	movl	%eax, %r12d
	movq	-48(%rbp), %rdi
	callq	_CQE_WRID_LOW
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%r14d, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movq	-104(%rbp), %r9                 ## 8-byte Reload
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r12
	movq	-120(%rbp), %r12                ## 8-byte Reload
	pushq	%r13
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	callq	_pr_debug
	addq	$32, %rsp
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	cmpq	$0, 64(%r12)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rdi
	callq	_SW_CQE
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdi
	callq	_CQE_OPCODE
	movq	_FW_RI_TERMINATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_5:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_45
LBB0_2:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_45
LBB0_7:
	movq	-48(%rbp), %rdi
	callq	_DRAIN_CQE
	movq	-48(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	callq	_CQE_DRAIN_COOKIE
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-48(%rbp), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_44:
	xorl	%r15d, %r15d
LBB0_45:
	movq	-48(%rbp), %rdi
	callq	_SW_CQE
	movl	4(%rbx), %edx
	testq	%rax, %rax
	je	LBB0_47
## %bb.46:
	movl	8(%rbx), %ecx
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_t4_swcq_consume
	jmp	LBB0_48
LBB0_47:
	movl	(%rbx), %ecx
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_t4_hwcq_consume
LBB0_48:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	_RQ_TYPE
	testq	%rax, %rax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_19
## %bb.10:
	movq	-48(%rbp), %rdi
	callq	_CQE_OPCODE
	movq	_FW_RI_READ_RESP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.11:
	movq	-48(%rbp), %rdi
	callq	_CQE_TYPE
	movq	-48(%rbp), %rdi
	cmpl	$1, %eax
	je	LBB0_12
## %bb.14:
	callq	_CQE_WRID_STAG
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.15:
	movq	-48(%rbp), %rdi
LBB0_12:
	callq	_CQE_STATUS
	testq	%rax, %rax
	je	LBB0_5
## %bb.13:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_t4_set_wq_in_error
	jmp	LBB0_5
LBB0_16:
	movq	56(%r12), %rax
	cmpl	$0, (%rax)
	je	LBB0_17
## %bb.18:
	movq	-48(%rbp), %rsi
	leaq	-128(%rbp), %r14
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_create_read_req_cqe
	movq	%r14, -48(%rbp)
	movq	%r12, %rdi
	callq	_advance_oldest_read
LBB0_19:
	movq	-48(%rbp), %rdi
	callq	_CQE_STATUS
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	movq	%r12, %rdi
	callq	_t4_wq_in_error
	testq	%rax, %rax
	je	LBB0_22
LBB0_21:
	movq	-48(%rbp), %rdi
	callq	_CQE_STATUS
	movq	_T4_ERR_SWFLUSH@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, (%r15)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_t4_set_wq_in_error
LBB0_22:
	movq	-48(%rbp), %rdi
	callq	_RQ_TYPE
	movq	-48(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_30
## %bb.23:
	callq	_CQE_STATUS
	xorl	%edi, %edi
	testq	%rax, %rax
	jne	LBB0_25
## %bb.24:
	movq	-48(%rbp), %rdi
	callq	_CQE_WRID_MSN
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setne	%dil
LBB0_25:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_t4_set_wq_in_error
	movq	_T4_ERR_MSN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CQE_STATUS_V
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	-48(%rbp), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_27
LBB0_30:
	callq	_SW_CQE
	testq	%rax, %rax
	jne	LBB0_27
## %bb.31:
	movq	-48(%rbp), %rdi
	callq	_CQE_WRID_SQ_IDX
	cmpq	24(%r12), %rax
	jne	LBB0_32
LBB0_27:
	movq	-48(%rbp), %rdi
	movl	(%rdi), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	callq	_SQ_TYPE
	testq	%rax, %rax
	je	LBB0_38
## %bb.28:
	movq	-48(%rbp), %rdi
	callq	_CQE_WRID_SQ_IDX
	movslq	%eax, %rsi
	movq	24(%r12), %rcx
	cmpq	%rcx, %rsi
	jae	LBB0_34
## %bb.29:
	movl	32(%r12), %edx
	addl	%eax, %edx
	subl	%edx, %ecx
	jmp	LBB0_35
LBB0_38:
	movq	16(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_39
## %bb.42:
	movq	-48(%rbp), %rdi
	callq	_reap_srq_cqe
	movl	%eax, (%r13)
	jmp	LBB0_43
LBB0_34:
	subl	%eax, %ecx
LBB0_35:
	addl	%ecx, 48(%r12)
	movq	%rsi, 24(%r12)
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pr_debug
	movq	24(%r12), %rax
	movq	40(%r12), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	4(%rcx,%rax,4), %eax
	movl	%eax, (%r13)
	movq	_c4iw_wr_log@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_37
## %bb.36:
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_c4iw_log_wr_stats
LBB0_37:
	movq	%r12, %rdi
	callq	_t4_sq_consume
LBB0_33:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_flush_completed_wrs
	jmp	LBB0_45
LBB0_39:
	movq	8(%r12), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%r13)
	movq	_c4iw_wr_log@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_41
## %bb.40:
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_c4iw_log_wr_stats
LBB0_41:
	movq	%r12, %rdi
	callq	_t4_rq_consume
LBB0_43:
	incq	(%r12)
	jmp	LBB0_44
LBB0_32:
	movq	-48(%rbp), %rdi
	callq	_CQE_WRID_SQ_IDX
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	40(%r12), %r14
	movq	-48(%rbp), %rdi
	callq	_CQE_WRID_SQ_IDX
	movq	-48(%rbp), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r14,%rax,4)
	movl	$1, (%r14,%rax,4)
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_33
LBB0_17:
	movq	%r12, %rdi
	callq	_advance_oldest_read
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CQE OVF %u qpid 0x%0x genbit %u type %u status 0x%0x opcode 0x%0x len 0x%0x wrid_hi_stag 0x%x wrid_low_msn 0x%x\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_FW_RI_TERMINATE,8,3            ## @FW_RI_TERMINATE
	.comm	_FW_RI_READ_RESP,8,3            ## @FW_RI_READ_RESP
	.comm	_T4_ERR_SWFLUSH,8,3             ## @T4_ERR_SWFLUSH
	.comm	_T4_ERR_MSN,4,2                 ## @T4_ERR_MSN
L_.str.1:                               ## @.str.1
	.asciz	"out of order completion going in sw_sq at idx %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"completing sq idx %u\n"

	.comm	_c4iw_wr_log,8,3                ## @c4iw_wr_log
L_.str.3:                               ## @.str.3
	.asciz	"completing rq idx %u\n"

L_.str.4:                               ## @.str.4
	.asciz	"cq %p cqid 0x%x skip sw cqe cidx %u\n"

L_.str.5:                               ## @.str.5
	.asciz	"cq %p cqid 0x%x skip hw cqe cidx %u\n"

	.no_dead_strip	_poll_cq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function poll_cq
_poll_cq:                               ; @poll_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x22, x6
	mov	x21, x4
	mov	x24, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	str	wzr, [x3]
	str	xzr, [x5]
	sub	x1, x29, #88
	mov	x0, x19
	bl	_t4_next_cqe
	mov	x25, x0
	cbnz	w0, LBB0_10
; %bb.1:
	stp	x21, x23, [sp, #88]             ; 16-byte Folded Spill
	str	x22, [sp, #80]                  ; 8-byte Folded Spill
	str	x19, [sp, #104]                 ; 8-byte Folded Spill
	ldur	x0, [x29, #-88]
	bl	_CQE_OVFBIT
	mov	x25, x0
	ldur	x0, [x29, #-88]
	bl	_CQE_QPID
	mov	x26, x0
	ldur	x0, [x29, #-88]
	bl	_CQE_GENBIT
	mov	x27, x0
	ldur	x0, [x29, #-88]
	bl	_CQE_TYPE
	mov	x28, x0
	ldur	x0, [x29, #-88]
	bl	_CQE_STATUS
	mov	x19, x20
	mov	x21, x0
	ldur	x0, [x29, #-88]
	bl	_CQE_OPCODE
	mov	x22, x0
	ldur	x0, [x29, #-88]
	bl	_CQE_LEN
	mov	x23, x0
	ldur	x0, [x29, #-88]
	bl	_CQE_WRID_HI
	mov	x20, x0
	ldur	x0, [x29, #-88]
	bl	_CQE_WRID_LOW
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp, #56]
	stp	x22, x23, [sp, #40]
	stp	x28, x21, [sp, #24]
	mov	x21, x19
	stp	x26, x27, [sp, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	str	x25, [sp]
	bl	_pr_debug
	cbz	x19, LBB0_5
; %bb.2:
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_4
; %bb.3:
	ldur	x0, [x29, #-88]
	bl	_SW_CQE
	cbz	x0, LBB0_5
LBB0_4:
	ldur	x0, [x29, #-88]
	bl	_CQE_OPCODE
Lloh2:
	adrp	x8, _FW_RI_TERMINATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FW_RI_TERMINATE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
LBB0_5:
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_6:
	ldr	x19, [sp, #104]                 ; 8-byte Folded Reload
LBB0_7:
	ldur	x0, [x29, #-88]
	bl	_SW_CQE
	ldr	w8, [x19, #4]
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w9, [x19, #8]
	stp	x8, x9, [sp, #8]
	str	x19, [sp]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_t4_swcq_consume
	b	LBB0_10
LBB0_9:
	ldr	w9, [x19]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x9, [sp, #8]
	str	x19, [sp]
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_t4_hwcq_consume
LBB0_10:
	mov	x0, x25
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_11:
	ldur	x0, [x29, #-88]
	bl	_DRAIN_CQE
	mov	x8, x0
	ldur	x0, [x29, #-88]
	cbz	x8, LBB0_13
; %bb.12:
	bl	_CQE_DRAIN_COOKIE
	mov	w25, #0
	ldp	x8, x9, [sp, #88]               ; 16-byte Folded Reload
	str	w0, [x8]
	ldur	x8, [x29, #-88]
	ldr	w8, [x8]
	str	w8, [x9]
	b	LBB0_6
LBB0_13:
	bl	_RQ_TYPE
	ldr	x19, [sp, #80]                  ; 8-byte Folded Reload
	ldr	x22, [sp, #96]                  ; 8-byte Folded Reload
	cbz	x0, LBB0_22
; %bb.14:
	ldur	x0, [x29, #-88]
	bl	_CQE_OPCODE
Lloh12:
	adrp	x8, _FW_RI_READ_RESP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FW_RI_READ_RESP@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.15:
	ldur	x0, [x29, #-88]
	bl	_CQE_TYPE
	mov	x8, x0
	ldur	x0, [x29, #-88]
	cmp	w8, #1
	b.eq	LBB0_18
; %bb.16:
	bl	_CQE_WRID_STAG
	cmp	w0, #1
	b.ne	LBB0_20
; %bb.17:
	ldur	x0, [x29, #-88]
LBB0_18:
	bl	_CQE_STATUS
	cbz	x0, LBB0_5
; %bb.19:
	mov	x0, x21
	mov	w1, #0
	bl	_t4_set_wq_in_error
	b	LBB0_5
LBB0_20:
	ldr	x8, [x21, #56]
	ldr	w8, [x8]
	cbz	w8, LBB0_48
; %bb.21:
	ldur	x1, [x29, #-88]
	sub	x20, x29, #96
	sub	x2, x29, #96
	mov	x0, x21
	bl	_create_read_req_cqe
	stur	x20, [x29, #-88]
	mov	x0, x21
	bl	_advance_oldest_read
LBB0_22:
	ldur	x0, [x29, #-88]
	bl	_CQE_STATUS
	cbnz	x0, LBB0_24
; %bb.23:
	mov	x0, x21
	bl	_t4_wq_in_error
	cbz	x0, LBB0_25
LBB0_24:
	ldur	x0, [x29, #-88]
	bl	_CQE_STATUS
Lloh15:
	adrp	x8, _T4_ERR_SWFLUSH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _T4_ERR_SWFLUSH@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w8, eq
	str	w8, [x24]
	mov	x0, x21
	mov	w1, #0
	bl	_t4_set_wq_in_error
LBB0_25:
	ldur	x0, [x29, #-88]
	bl	_RQ_TYPE
	mov	x8, x0
	ldur	x0, [x29, #-88]
	cbz	x8, LBB0_28
; %bb.26:
	bl	_CQE_STATUS
	cbz	x0, LBB0_31
; %bb.27:
	mov	w0, #0
	b	LBB0_32
LBB0_28:
	bl	_SW_CQE
	cbnz	x0, LBB0_34
; %bb.29:
	ldur	x0, [x29, #-88]
	bl	_CQE_WRID_SQ_IDX
	ldr	x8, [x21, #24]
	cmp	x0, x8
	b.eq	LBB0_34
; %bb.30:
	ldur	x0, [x29, #-88]
	bl	_CQE_WRID_SQ_IDX
	str	x0, [sp]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	x20, [x21, #40]
	ldur	x0, [x29, #-88]
	bl	_CQE_WRID_SQ_IDX
	ldur	x8, [x29, #-88]
	mov	w9, #12
	madd	x9, x0, x9, x20
	ldr	w8, [x8]
	str	w8, [x9, #8]
	mov	w8, #1
	str	w8, [x9]
Lloh20:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_43
LBB0_31:
	ldur	x0, [x29, #-88]
	bl	_CQE_WRID_MSN
	ldr	x8, [x21]
	cmp	x0, x8
	cset	w0, ne
LBB0_32:
	bl	_unlikely
	cbz	x0, LBB0_34
; %bb.33:
	mov	x0, x21
	mov	w1, #0
	bl	_t4_set_wq_in_error
Lloh23:
	adrp	x8, _T4_ERR_MSN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _T4_ERR_MSN@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_CQE_STATUS_V
	bl	_cpu_to_be32
	ldur	x8, [x29, #-88]
	ldr	w9, [x8]
	orr	w9, w9, w0
	str	w9, [x8]
LBB0_34:
	ldur	x0, [x29, #-88]
	ldr	w8, [x0]
	str	w8, [x22]
	bl	_SQ_TYPE
	cbz	x0, LBB0_37
; %bb.35:
	ldur	x0, [x29, #-88]
	bl	_CQE_WRID_SQ_IDX
	sxtw	x8, w0
	ldr	x9, [x21, #24]
	cmp	x8, x9
	b.hs	LBB0_39
; %bb.36:
	ldr	w10, [x21, #32]
	ldr	w11, [x21, #48]
	add	w10, w10, w0
	sub	w9, w9, w10
	add	w9, w9, w11
	b	LBB0_40
LBB0_37:
	cbz	x19, LBB0_44
; %bb.38:
	ldur	x0, [x29, #-88]
	mov	x1, x19
	bl	_reap_srq_cqe
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	str	w0, [x8]
	b	LBB0_47
LBB0_39:
	ldr	w10, [x21, #48]
	sub	w9, w9, w0
	add	w9, w10, w9
LBB0_40:
	str	w9, [x21, #48]
	str	x8, [x21, #24]
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x21, #40]
	ldr	x9, [x21, #24]
	mov	w10, #12
	madd	x8, x9, x10, x8
	ldr	w8, [x8, #4]
	ldr	x9, [sp, #88]                   ; 8-byte Folded Reload
	str	w8, [x9]
Lloh28:
	adrp	x8, _c4iw_wr_log@GOTPAGE
Lloh29:
	ldr	x8, [x8, _c4iw_wr_log@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cbz	x8, LBB0_42
; %bb.41:
	ldur	x1, [x29, #-88]
	mov	x0, x21
	bl	_c4iw_log_wr_stats
LBB0_42:
	mov	x0, x21
	bl	_t4_sq_consume
	mov	w25, #0
LBB0_43:
	mov	x0, x21
	ldr	x19, [sp, #104]                 ; 8-byte Folded Reload
	mov	x1, x19
	bl	_flush_completed_wrs
	b	LBB0_7
LBB0_44:
	ldr	x8, [x21, #8]
	str	x8, [sp]
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
	ldp	x9, x8, [x21, #8]
	ldr	w8, [x8, x9, lsl #2]
	ldr	x9, [sp, #88]                   ; 8-byte Folded Reload
	str	w8, [x9]
Lloh33:
	adrp	x8, _c4iw_wr_log@GOTPAGE
Lloh34:
	ldr	x8, [x8, _c4iw_wr_log@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cbz	x8, LBB0_46
; %bb.45:
	ldur	x1, [x29, #-88]
	mov	x0, x21
	bl	_c4iw_log_wr_stats
LBB0_46:
	mov	x0, x21
	bl	_t4_rq_consume
LBB0_47:
	mov	w25, #0
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	b	LBB0_6
LBB0_48:
	mov	x0, x21
	bl	_advance_oldest_read
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CQE OVF %u qpid 0x%0x genbit %u type %u status 0x%0x opcode 0x%0x len 0x%0x wrid_hi_stag 0x%x wrid_low_msn 0x%x\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_FW_RI_TERMINATE,8,3            ; @FW_RI_TERMINATE
	.comm	_FW_RI_READ_RESP,8,3            ; @FW_RI_READ_RESP
	.comm	_T4_ERR_SWFLUSH,8,3             ; @T4_ERR_SWFLUSH
	.comm	_T4_ERR_MSN,4,2                 ; @T4_ERR_MSN
l_.str.1:                               ; @.str.1
	.asciz	"out of order completion going in sw_sq at idx %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"completing sq idx %u\n"

	.comm	_c4iw_wr_log,8,3                ; @c4iw_wr_log
l_.str.3:                               ; @.str.3
	.asciz	"completing rq idx %u\n"

l_.str.4:                               ; @.str.4
	.asciz	"cq %p cqid 0x%x skip sw cqe cidx %u\n"

l_.str.5:                               ; @.str.5
	.asciz	"cq %p cqid 0x%x skip hw cqe cidx %u\n"

	.no_dead_strip	_poll_cq
.subsections_via_symbols
