	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_rqe_complete               ## -- Begin function siw_rqe_complete
	.p2align	4, 0x90
_siw_rqe_complete:                      ## @siw_rqe_complete
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_12
## %bb.1:
	movq	%rdx, %r12
	movq	%rdi, %r15
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	leaq	16(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_4
LBB0_12:
	movl	(%rsi), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_smp_store_mb
	jmp	LBB0_13
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_4:
	movq	%r14, %rbx
	movq	48(%r13), %r12
	imulq	$56, %rdx, %r14
	movl	24(%r12,%r14), %edi
	callq	_READ_ONCE
	testl	%eax, %eax
	je	LBB0_5
## %bb.11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	_IB_EVENT_CQ_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_siw_cq_event
	jmp	LBB0_13
LBB0_5:
	leaq	(%r12,%r14), %rdx
	addq	$24, %rdx
	movq	_SIW_WQE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %eax
	movl	%eax, 52(%r12,%r14)
	movq	_SIW_OP_RECEIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12,%r14)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12,%r14)
	movq	$0, 40(%r12,%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r12,%r14)
	cmpq	$0, 40(%r13)
	je	LBB0_8
## %bb.6:
	movl	(%r15), %eax
	movl	%eax, 32(%r12,%r14)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	movq	_SIW_WQE_REM_INVAL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rcx, 16(%r12,%r14)
	jmp	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	callq	_qp_id
	movq	%r15, %rdx
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, 28(%r12,%r14)
LBB0_9:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	(%rdx), %edi
	callq	_WRITE_ONCE
	movl	(%rbx), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_smp_store_mb
	incq	(%r13)
	movq	_SIW_WQE_SIGNALLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_siw_cq_notify_now
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_siw_dbg_cq
	leaq	24(%r13), %rdi
	movl	24(%r13), %esi
	callq	*32(%r13)
LBB0_13:
	movl	%r15d, %eax
	addq	$40, %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	_SIW_OP_RECEIVE,4,2             ## @SIW_OP_RECEIVE
	.comm	_SIW_WQE_REM_INVAL,4,2          ## @SIW_WQE_REM_INVAL
	.comm	_SIW_WQE_SIGNALLED,4,2          ## @SIW_WQE_SIGNALLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Call completion handler\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IB_EVENT_CQ_ERR,4,2            ## @IB_EVENT_CQ_ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_rqe_complete               ; -- Begin function siw_rqe_complete
	.p2align	2
_siw_rqe_complete:                      ; @siw_rqe_complete
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_3
; %bb.1:
	mov	x26, x4
	mov	x22, x3
	mov	x25, x2
	mov	x24, x0
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldp	x8, x9, [x19]
	udiv	x10, x8, x9
	msub	x28, x10, x9, x8
	ldr	x23, [x19, #48]
	mov	w8, #56
	madd	x27, x28, x8, x23
	ldr	w0, [x27, #24]!
	bl	_READ_ONCE
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
Lloh3:
	adrp	x8, _IB_EVENT_CQ_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_EVENT_CQ_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_siw_cq_event
	b	LBB0_11
LBB0_3:
	ldr	w0, [x21]
	mov	w1, #0
	bl	_smp_store_mb
	b	LBB0_10
LBB0_4:
Lloh6:
	adrp	x8, _SIW_WQE_VALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIW_WQE_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w8, [x21, #4]
	mov	w9, #56
	madd	x9, x28, x9, x23
	str	w8, [x9, #52]
Lloh9:
	adrp	x8, _SIW_OP_RECEIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIW_OP_RECEIVE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x9, #48]
	str	w26, [x9]
	str	xzr, [x9, #40]
	str	x25, [x9, #8]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w8, [x24]
	mov	w9, #56
	madd	x9, x28, x9, x23
	str	w8, [x9, #32]
	cbz	x22, LBB0_8
; %bb.6:
Lloh12:
	adrp	x8, _SIW_WQE_REM_INVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIW_WQE_REM_INVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w1, w8, w1
	mov	w8, #56
	madd	x8, x28, x8, x23
	str	x22, [x8, #16]
	b	LBB0_8
LBB0_7:
	mov	x0, x24
	mov	x22, x1
	bl	_qp_id
	mov	x1, x22
	mov	w8, #56
	madd	x8, x28, x8, x23
	str	w0, [x8, #28]
LBB0_8:
	ldr	w0, [x27]
	bl	_WRITE_ONCE
	ldr	w0, [x21]
	mov	w1, #0
	bl	_smp_store_mb
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
Lloh15:
	adrp	x8, _SIW_WQE_SIGNALLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIW_WQE_SIGNALLED@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_siw_cq_notify_now
	mov	x21, x0
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	cbz	w21, LBB0_10
; %bb.9:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_cq
	ldr	w1, [x19, #24]!
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SIW_WQE_VALID,4,2              ; @SIW_WQE_VALID
	.comm	_SIW_OP_RECEIVE,4,2             ; @SIW_OP_RECEIVE
	.comm	_SIW_WQE_REM_INVAL,4,2          ; @SIW_WQE_REM_INVAL
	.comm	_SIW_WQE_SIGNALLED,4,2          ; @SIW_WQE_SIGNALLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Call completion handler\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IB_EVENT_CQ_ERR,4,2            ; @IB_EVENT_CQ_ERR
.subsections_via_symbols
