	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_post_receive               ## -- Begin function siw_post_receive
	.p2align	4, 0x90
_siw_post_receive:                      ## @siw_post_receive
	.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, %r14
	movq	%rsi, %r12
	callq	_to_siw_qp
	cmpq	$0, 56(%rax)
	je	LBB0_5
## %bb.1:
	movq	%r12, (%r14)
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
LBB0_3:
	subl	(%rax), %ebx
	movl	%ebx, %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rax, %r15
	leaq	8(%rax), %r13
	movq	%r13, %rdi
	callq	_down_read_trylock
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$0, 48(%r15)
	je	LBB0_10
## %bb.7:
	movq	16(%r15), %rax
	movq	_SIW_QP_STATE_RTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_11
## %bb.8:
	movq	%r13, %rdi
	callq	_up_read
	movq	%r12, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movq	%r12, (%r14)
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_siw_dbg_qp
	movq	%r13, %rdi
	callq	_up_read
	movq	%r12, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	movq	%r15, %rdi
	addq	$12, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	testq	%r12, %r12
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_20
## %bb.12:
	movq	(%r15), %rax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	40(%r15), %rax
	leaq	(%rdx,%rdx,2), %rcx
	cmpq	$0, 8(%rax,%rcx,8)
	jne	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r12), %edx
	cmpl	32(%r15), %edx
	jg	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%rax,%rcx,8), %rbx
	addq	$8, %rbx
	movl	20(%r12), %esi
	movl	%esi, 20(%rax,%rcx,8)
	movl	%edx, (%rax,%rcx,8)
	movl	16(%r12), %edi
	movl	16(%rax,%rcx,8), %esi
	callq	_siw_copy_sgl
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	_SIW_WQE_VALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	(%r15), %rax
	incq	%rax
	movq	%rax, (%r15)
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	LBB0_13
## %bb.19:
	xorl	%r12d, %r12d
	jmp	LBB0_24
LBB0_20:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_24
LBB0_21:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_siw_dbg_qp
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_22:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_siw_dbg_qp
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_23:
	subl	(%rax), %r13d
LBB0_24:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_up_read
	testl	%r13d, %r13d
	jns	LBB0_26
## %bb.25:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_siw_dbg_qp
	movq	%r12, (%r14)
LBB0_26:
	movl	%r13d, %eax
	sarl	$31, %eax
	andl	%r13d, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no kernel post_recv for user mapped sq\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SIW_QP_STATE_RTS,8,3           ## @SIW_QP_STATE_RTS
L_.str.1:                               ## @.str.1
	.asciz	"RQ full\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"too many sge's: %d\n"

	.comm	_SIW_WQE_VALID,8,3              ## @SIW_WQE_VALID
L_.str.3:                               ## @.str.3
	.asciz	"error %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_post_receive               ; -- Begin function siw_post_receive
	.p2align	2
_siw_post_receive:                      ; @siw_post_receive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_to_siw_qp
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_2
; %bb.1:
	str	x20, [x19]
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_14
LBB0_2:
	mov	x21, x0
	add	x22, x0, #8
	mov	x0, x22
	bl	_down_read_trylock
	cbz	w0, LBB0_11
; %bb.3:
	ldr	w8, [x21, #48]
	cbz	w8, LBB0_12
; %bb.4:
	ldr	x8, [x21, #16]
Lloh2:
	adrp	x9, _SIW_QP_STATE_RTS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SIW_QP_STATE_RTS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_13
; %bb.5:
	add	x23, x21, #12
	mov	x0, x23
	bl	_spin_lock_irqsave
	cbz	x20, LBB0_10
; %bb.6:
	ldr	x8, [x21]
	mov	w24, #24
Lloh5:
	adrp	x25, _SIW_WQE_VALID@GOTPAGE
Lloh6:
	ldr	x25, [x25, _SIW_WQE_VALID@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #24]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	ldr	x9, [x21, #40]
	madd	x26, x8, x24, x9
	ldr	x10, [x26, #8]!
	cbnz	x10, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x20]
	ldr	w10, [x21, #32]
	cmp	w2, w10
	b.gt	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	madd	x8, x8, x24, x9
	ldp	w0, w9, [x20, #16]
	str	w9, [x8, #20]
	str	w2, [x8]
	ldr	w1, [x8, #16]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_siw_copy_sgl
	bl	_smp_wmb
	ldr	x8, [x25]
	str	x8, [x26]
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_7
LBB0_10:
	mov	w24, #0
	b	LBB0_19
LBB0_11:
	str	x20, [x19]
Lloh7:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_siw_dbg_qp
LBB0_13:
	mov	x0, x22
	bl	_up_read
	str	x20, [x19]
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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
	add	sp, sp, #96
	ret
LBB0_16:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_siw_dbg_qp
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
	str	x2, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_siw_dbg_qp
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_19:
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	bl	_up_read
	tbz	w24, #31, LBB0_21
; %bb.20:
	str	x24, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_siw_dbg_qp
	str	x20, [x19]
LBB0_21:
	cmp	w24, #0
	csel	w0, w24, wzr, lt
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no kernel post_recv for user mapped sq\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SIW_QP_STATE_RTS,8,3           ; @SIW_QP_STATE_RTS
l_.str.1:                               ; @.str.1
	.asciz	"RQ full\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"too many sge's: %d\n"

	.comm	_SIW_WQE_VALID,8,3              ; @SIW_WQE_VALID
l_.str.3:                               ; @.str.3
	.asciz	"error %d\n"

.subsections_via_symbols
