	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_poll_cq
_i40iw_poll_cq:                         ## @i40iw_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	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_spin_lock_irqsave
	xorl	%eax, %eax
	testl	%ebx, %ebx
	cmovlel	%eax, %ebx
	jle	LBB0_21
## %bb.1:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%r14), %rbx
	leaq	-120(%rbp), %r13
	movq	_I40IW_ERR_QUEUE_EMPTY@GOTPCREL(%rip), %r14
	movq	_I40IW_ERR_QUEUE_DESTROYED@GOTPCREL(%rip), %r15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	*(%rbx)
	cmpl	(%r14), %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	(%r15), %eax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 48(%r12)
	movl	-80(%rbp), %eax
	movl	%eax, 44(%r12)
	cmpq	$0, -88(%rbp)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-120(%rbp), %ecx
	shll	$16, %ecx
	orl	-116(%rbp), %ecx
	movl	%ecx, (%r12)
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, 40(%r12)
	movl	-112(%rbp), %eax
	addl	$-128, %eax
	movq	_IB_WC_RECV@GOTPCREL(%rip), %rcx
	cmpl	$7, %eax
	ja	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cltq
	leaq	l_switch.table.i40iw_poll_cq(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rax
	movq	%rax, 32(%r12)
	movq	$0, 24(%r12)
	movq	-96(%rbp), %rdx
	movq	8(%rdx), %rcx
	movq	%rcx, 16(%r12)
	movl	-104(%rbp), %eax
	movl	%eax, 8(%r12)
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rax
	movq	_I40IW_QP_STATE_RTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rdx), %edi
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	callq	_I40IW_RING_MORE_WORK
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	12(%rax), %rdi
	callq	_complete
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_I40IW_RING_MORE_WORK
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rdi
	callq	_complete
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-108(%rbp), %eax
	movl	%eax, 4(%r12)
	addq	$56, %r12
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_2
## %bb.19:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_20
LBB0_4:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_20:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_21:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$1, %eax
	sbbl	%ebx, %ebx
	orl	%eax, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_ERR_QUEUE_EMPTY,4,2      ## @I40IW_ERR_QUEUE_EMPTY
	.comm	_I40IW_ERR_QUEUE_DESTROYED,4,2  ## @I40IW_ERR_QUEUE_DESTROYED
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ## @IB_WC_WR_FLUSH_ERR
	.comm	_IB_WC_SUCCESS,4,2              ## @IB_WC_SUCCESS
	.comm	_IB_WC_RDMA_WRITE,8,3           ## @IB_WC_RDMA_WRITE
	.comm	_IB_WC_RDMA_READ,8,3            ## @IB_WC_RDMA_READ
	.comm	_IB_WC_SEND,8,3                 ## @IB_WC_SEND
	.comm	_IB_WC_RECV,8,3                 ## @IB_WC_RECV
	.comm	_I40IW_QP_STATE_RTS,8,3         ## @I40IW_QP_STATE_RTS
	.no_dead_strip	_i40iw_poll_cq
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.i40iw_poll_cq
l_switch.table.i40iw_poll_cq:
	.quad	_IB_WC_SEND
	.quad	_IB_WC_SEND
	.quad	_IB_WC_SEND
	.quad	_IB_WC_SEND
	.quad	_IB_WC_RECV
	.quad	_IB_WC_RDMA_WRITE
	.quad	_IB_WC_RDMA_READ
	.quad	_IB_WC_RDMA_READ

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_poll_cq
_i40iw_poll_cq:                         ; @i40iw_poll_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_spin_lock_irqsave
	cmp	w22, #0
	csel	w20, w22, wzr, gt
	cmp	w22, #1
	b.lt	LBB0_17
; %bb.1:
	mov	w23, #0
	add	x22, x19, #8
Lloh0:
	adrp	x24, _I40IW_ERR_QUEUE_EMPTY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _I40IW_ERR_QUEUE_EMPTY@GOTPAGEOFF]
Lloh2:
	adrp	x25, _I40IW_ERR_QUEUE_DESTROYED@GOTPAGE
Lloh3:
	ldr	x25, [x25, _I40IW_ERR_QUEUE_DESTROYED@GOTPAGEOFF]
Lloh4:
	adrp	x27, _IB_WC_RECV@GOTPAGE
Lloh5:
	ldr	x27, [x27, _IB_WC_RECV@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	mov	x1, sp
	mov	x0, x22
	blr	x8
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_16
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w0, LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	str	xzr, [x21, #48]
	ldr	w8, [sp, #40]
	str	w8, [x21, #44]
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh6:
	adrp	x8, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	w9, w10, [sp]
	orr	w9, w10, w9, lsl #16
	str	w9, [x21]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh9:
	adrp	x8, _IB_WC_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w8, [x21, #40]
	ldr	w8, [sp, #8]
	sub	w9, w8, #128
	mov	x26, x27
	mov	x8, x27
	cmp	w9, #7
	b.hi	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh12:
	adrp	x8, l_switch.table.i40iw_poll_cq@PAGE
Lloh13:
	add	x8, x8, l_switch.table.i40iw_poll_cq@PAGEOFF
	ldr	x8, [x8, w9, sxtw #3]
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x8]
	stp	xzr, x8, [x21, #24]
	ldr	x27, [sp, #24]
	ldr	x28, [x27, #8]
	str	x28, [x21, #16]
	ldr	w8, [sp, #16]
	str	w8, [x21, #8]
	ldr	x8, [x28]
Lloh14:
	adrp	x9, _I40IW_QP_STATE_RTS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _I40IW_QP_STATE_RTS@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27, #4]
	bl	_I40IW_RING_MORE_WORK
	cbnz	w0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x28, #12
	bl	_complete
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	bl	_I40IW_RING_MORE_WORK
	cbnz	w0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x28, #8
	bl	_complete
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	str	w8, [x21, #4]
	add	x21, x21, #56
	add	w23, w23, #1
	cmp	w23, w20
	mov	x27, x26
	b.ne	LBB0_2
	b	LBB0_17
LBB0_16:
	mov	x20, x23
LBB0_17:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_18:
	cmp	w23, #0
	csinv	w20, w23, wzr, ne
	b	LBB0_17
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_ERR_QUEUE_EMPTY,4,2      ; @I40IW_ERR_QUEUE_EMPTY
	.comm	_I40IW_ERR_QUEUE_DESTROYED,4,2  ; @I40IW_ERR_QUEUE_DESTROYED
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ; @IB_WC_WR_FLUSH_ERR
	.comm	_IB_WC_SUCCESS,4,2              ; @IB_WC_SUCCESS
	.comm	_IB_WC_RDMA_WRITE,8,3           ; @IB_WC_RDMA_WRITE
	.comm	_IB_WC_RDMA_READ,8,3            ; @IB_WC_RDMA_READ
	.comm	_IB_WC_SEND,8,3                 ; @IB_WC_SEND
	.comm	_IB_WC_RECV,8,3                 ; @IB_WC_RECV
	.comm	_I40IW_QP_STATE_RTS,8,3         ; @I40IW_QP_STATE_RTS
	.no_dead_strip	_i40iw_poll_cq
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.i40iw_poll_cq
l_switch.table.i40iw_poll_cq:
	.quad	_IB_WC_SEND
	.quad	_IB_WC_SEND
	.quad	_IB_WC_SEND
	.quad	_IB_WC_SEND
	.quad	_IB_WC_RECV
	.quad	_IB_WC_RDMA_WRITE
	.quad	_IB_WC_RDMA_READ
	.quad	_IB_WC_RDMA_READ

.subsections_via_symbols
