	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_sqe_complete               ## -- Begin function siw_sqe_complete
	.p2align	4, 0x90
_siw_sqe_complete:                      ## @siw_sqe_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	%rdi, %r13
	movq	8(%rdi), %rbx
	movq	(%rsi), %rdi
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r12
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	leaq	16(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_4
LBB0_11:
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_smp_store_mb
	jmp	LBB0_12
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_4:
	movq	48(%rbx), %r14
	leaq	(%rdx,%rdx,2), %r15
	shlq	$4, %r15
	movl	16(%r14,%r15), %edi
	callq	_READ_ONCE
	testl	%eax, %eax
	je	LBB0_5
## %bb.10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_IB_EVENT_CQ_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_siw_cq_event
	jmp	LBB0_12
LBB0_5:
	leaq	(%r14,%r15), %rcx
	addq	$16, %rcx
	movl	12(%r12), %eax
	movl	%eax, 44(%r14,%r15)
	movl	8(%r12), %eax
	movl	%eax, 40(%r14,%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14,%r15)
	movq	$0, 32(%r14,%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r14,%r15)
	cmpq	$0, 40(%rbx)
	je	LBB0_7
## %bb.6:
	movl	(%r13), %eax
	movl	%eax, 24(%r14,%r15)
	jmp	LBB0_8
LBB0_7:
	movq	%r13, %rdi
	movq	%rcx, %r13
	callq	_qp_id
	movq	%r13, %rcx
	movl	%eax, 20(%r14,%r15)
LBB0_8:
	movl	(%rcx), %edi
	movq	_SIW_WQE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WRITE_ONCE
	movq	(%r12), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_smp_store_mb
	incq	(%rbx)
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_siw_cq_notify_now
	movl	%eax, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_siw_dbg_cq
	leaq	24(%rbx), %rdi
	movl	24(%rbx), %esi
	callq	*32(%rbx)
LBB0_12:
	movl	%r14d, %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
	.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_sqe_complete               ; -- Begin function siw_sqe_complete
	.p2align	2
_siw_sqe_complete:                      ; @siw_sqe_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
	ldr	x19, [x0, #8]
	ldr	x20, [x1]
	cbz	x19, LBB0_3
; %bb.1:
	mov	x25, x3
	mov	x24, x2
	mov	x22, x1
	mov	x23, x0
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldp	x8, x9, [x19]
	udiv	x10, x8, x9
	msub	x27, x10, x9, x8
	ldr	x28, [x19, #48]
	mov	w8, #48
	madd	x26, x27, x8, x28
	ldr	w0, [x26, #16]!
	bl	_READ_ONCE
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x21
	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_10
LBB0_3:
	mov	x0, x20
	mov	w1, #0
	bl	_smp_store_mb
	b	LBB0_9
LBB0_4:
	mov	w8, #48
	madd	x8, x27, x8, x28
	ldr	d0, [x22, #8]
	str	d0, [x8, #40]
	str	w25, [x8]
	str	xzr, [x8, #32]
	str	x24, [x8, #8]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w8, [x23]
	mov	w9, #48
	madd	x9, x27, x9, x28
	str	w8, [x9, #24]
	b	LBB0_7
LBB0_6:
	mov	x0, x23
	bl	_qp_id
	mov	w8, #48
	madd	x8, x27, x8, x28
	str	w0, [x8, #20]
LBB0_7:
	ldr	w0, [x26]
Lloh6:
	adrp	x8, _SIW_WQE_VALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIW_WQE_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_WRITE_ONCE
	ldr	x0, [x22]
	mov	w1, #0
	bl	_smp_store_mb
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_siw_cq_notify_now
	mov	x20, x0
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	w20, LBB0_10
; %bb.8:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	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_9:
	mov	w20, #0
LBB0_10:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SIW_WQE_VALID,4,2              ; @SIW_WQE_VALID
	.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
