	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_reap_cqe                   ## -- Begin function siw_reap_cqe
	.p2align	4, 0x90
_siw_reap_cqe:                          ## @siw_reap_cqe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	24(%r13), %rbx
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	leaq	(%rdx,%rdx,2), %r12
	shlq	$4, %r12
	movl	(%rbx,%r12), %edi
	callq	_READ_ONCE
	movq	_SIW_WQE_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.5:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%r12), %r14
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	24(%rbx,%r12), %rax
	movq	%rax, 24(%r15)
	movq	_map_cqe_status@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx,%r12), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 20(%r15)
	movq	_map_wc_opcode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rbx,%r12), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 16(%r15)
	movl	40(%rbx,%r12), %eax
	movl	%eax, 12(%r15)
	movl	20(%r13), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movl	(%r14), %r8d
	movq	_SIW_WQE_REM_INVAL@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_8
## %bb.7:
	movl	36(%rbx,%r12), %eax
	movl	%eax, 8(%r15)
	movq	_IB_WC_WITH_INVALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
LBB0_8:
	leaq	(%rbx,%r12), %rsi
	addq	$24, %rsi
	movl	32(%rbx,%r12), %eax
	movl	%eax, (%r15)
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_9
## %bb.10:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_11
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_11:
	movq	-8(%rsi), %rcx
	movq	(%rsi), %r9
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_siw_dbg_cq
LBB0_12:
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_WRITE_ONCE
	incq	(%r13)
	movl	$1, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_13:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIW_WQE_VALID,4,2              ## @SIW_WQE_VALID
	.comm	_map_cqe_status,8,3             ## @map_cqe_status
	.comm	_map_wc_opcode,8,3              ## @map_wc_opcode
	.comm	_SIW_WQE_REM_INVAL,4,2          ## @SIW_WQE_REM_INVAL
	.comm	_IB_WC_WITH_INVALIDATE,4,2      ## @IB_WC_WITH_INVALIDATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"idx %u, type %d, flags %2x, id 0x%pK\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_reap_cqe                   ; -- Begin function siw_reap_cqe
	.p2align	2
_siw_reap_cqe:                          ; @siw_reap_cqe
	.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, x1
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x23, [x20, #24]
	ldp	x8, x9, [x20]
	udiv	x10, x8, x9
	msub	x24, x10, x9, x8
	mov	w8, #48
	madd	x22, x24, x8, x23
	ldr	w0, [x22]
	bl	_READ_ONCE
Lloh0:
	adrp	x8, _SIW_WQE_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIW_WQE_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	w8, #48
	madd	x25, x24, x8, x23
	ldr	x8, [x25, #16]!
	mov	x26, x25
	ldr	x9, [x26, #8]!
	str	x9, [x21, #24]
Lloh3:
	adrp	x9, _map_cqe_status@GOTPAGE
Lloh4:
	ldr	x9, [x9, _map_cqe_status@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldur	x10, [x25, #-8]
	ldr	w9, [x9, x10, lsl #2]
	str	w9, [x21, #20]
Lloh6:
	adrp	x9, _map_wc_opcode@GOTPAGE
Lloh7:
	ldr	x9, [x9, _map_wc_opcode@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	ldr	w9, [x25, #24]
	stp	w9, w8, [x21, #12]
	ldr	w0, [x20, #20]
	bl	_likely
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w4, [x22]
Lloh9:
	adrp	x8, _SIW_WQE_REM_INVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIW_WQE_REM_INVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w4
	b.eq	LBB0_4
; %bb.3:
	mov	w8, #48
	madd	x8, x24, x8, x23
	ldr	w8, [x8, #36]
Lloh12:
	adrp	x9, _IB_WC_WITH_INVALIDATE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_WC_WITH_INVALIDATE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #4]
LBB0_4:
	mov	w8, #48
	madd	x8, x24, x8, x23
	ldr	w8, [x8, #32]
	str	w8, [x21]
	ldp	x8, x9, [x20]
	udiv	x10, x8, x9
	msub	w2, w10, w9, w8
	ldr	x3, [x25]
	ldr	x5, [x26]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_siw_dbg_cq
LBB0_5:
	ldr	w0, [x22]
	mov	w1, #0
	bl	_WRITE_ONCE
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	mov	w20, #1
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SIW_WQE_VALID,4,2              ; @SIW_WQE_VALID
	.comm	_map_cqe_status,8,3             ; @map_cqe_status
	.comm	_map_wc_opcode,8,3              ; @map_wc_opcode
	.comm	_SIW_WQE_REM_INVAL,4,2          ; @SIW_WQE_REM_INVAL
	.comm	_IB_WC_WITH_INVALIDATE,4,2      ; @IB_WC_WITH_INVALIDATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"idx %u, type %d, flags %2x, id 0x%pK\n"

.subsections_via_symbols
