	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_poll_cq                   ## -- Begin function c4iw_poll_cq
	.p2align	4, 0x90
_c4iw_poll_cq:                          ## @c4iw_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	$24, %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
	callq	_to_c4iw_cq
	movq	%rax, %r13
	movq	%rax, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_t4_cq_in_error
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_t4_reset_cq_in_error
	movl	8(%r13), %edi
	callq	_c4iw_flush_qps
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.3:
	movq	%r13, %rdi
	callq	_pthread_spin_lock
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.6:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	_EAGAIN@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,4), %r12
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_c4iw_poll_cq_one
	movl	%eax, %ebx
	movl	(%r15), %eax
	addl	%ebx, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	jne	LBB0_7
## %bb.11:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_5
LBB0_14:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_t4_cq_notempty                 ## TAILCALL
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r13, %rdi
	callq	_pthread_spin_unlock
	jmp	LBB0_13
LBB0_12:
	movq	%r13, %rdi
	callq	_pthread_spin_unlock
	movq	_ENODATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	cmovnel	%ebx, %r14d
	movl	%r14d, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ENODATA,4,2                    ## @ENODATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_poll_cq                   ; -- Begin function c4iw_poll_cq
	.p2align	2
_c4iw_poll_cq:                          ; @c4iw_poll_cq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x1
	bl	_to_c4iw_cq
	mov	x20, x0
	add	x22, x0, #4
	mov	x0, x22
	bl	_t4_cq_in_error
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_t4_reset_cq_in_error
	ldr	w0, [x20, #8]
	bl	_c4iw_flush_qps
LBB0_2:
	cbz	w19, LBB0_9
; %bb.3:
	mov	x0, x20
	bl	_pthread_spin_lock
	cmp	w19, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x24, #0
	mov	w25, w19
Lloh0:
	adrp	x26, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EAGAIN@GOTPAGEOFF]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x23, x21, x24, lsl #2
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x23
	bl	_c4iw_poll_cq_one
	ldr	w8, [x26]
	cmn	w0, w8
	b.eq	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	cmp	x24, x25
	b.ne	LBB0_5
	b	LBB0_11
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_t4_cq_notempty
LBB0_10:
	mov	w19, #0
LBB0_11:
	mov	x0, x20
	bl	_pthread_spin_unlock
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_pthread_spin_unlock
Lloh2:
	adrp	x8, _ENODATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w22, w8
	csel	w19, w24, w22, eq
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ENODATA,4,2                    ; @ENODATA
.subsections_via_symbols
