	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_post_srq_recv              ## -- Begin function siw_post_srq_recv
	.p2align	4, 0x90
_siw_post_srq_recv:                     ## @siw_post_srq_recv
	.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, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_siw_srq
	movq	%rax, %r13
	xorl	%edi, %edi
	cmpl	$0, 32(%rax)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_siw_dbg_pd
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_2:
	leaq	20(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	testq	%r14, %r14
	je	LBB0_11
## %bb.3:
	movq	(%r13), %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r13), %r12
	leaq	(%rdx,%rdx,2), %rbx
	cmpq	$0, 8(%r12,%rbx,8)
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %eax
	xorl	%edi, %edi
	cmpl	16(%r13), %eax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r12,%rbx,8), %r15
	addq	$8, %r15
	movl	20(%r14), %eax
	movl	%eax, 20(%r12,%rbx,8)
	movl	(%r14), %edx
	movl	%edx, (%r12,%rbx,8)
	movl	16(%r14), %edi
	movl	16(%r12,%rbx,8), %esi
	callq	_siw_copy_sgl
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	_SIW_WQE_VALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	(%r13), %rax
	incq	%rax
	movq	%rax, (%r13)
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	LBB0_4
## %bb.10:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_11:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_siw_dbg_pd
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_siw_dbg_pd
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	subl	(%rax), %r12d
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
LBB0_16:
	movl	%r12d, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_siw_dbg_pd
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
LBB0_18:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[SRQ]: no kernel post_recv for mapped srq\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"SRQ full\n"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_post_srq_recv              ; -- Begin function siw_post_srq_recv
	.p2align	2
_siw_post_srq_recv:                     ; @siw_post_srq_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_to_siw_srq
	mov	x23, x0
	ldr	w8, [x0, #32]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_siw_dbg_pd
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_12
LBB0_2:
	add	x22, x23, #20
	mov	x0, x22
	bl	_spin_lock_irqsave
	cbz	x20, LBB0_7
; %bb.3:
	ldr	x8, [x23]
	mov	w24, #24
Lloh5:
	adrp	x25, _SIW_WQE_VALID@GOTPAGE
Lloh6:
	ldr	x25, [x25, _SIW_WQE_VALID@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23, #8]
	udiv	x10, x8, x9
	msub	x27, x10, x9, x8
	ldr	x28, [x23, #24]
	madd	x26, x27, x24, x28
	ldr	x8, [x26, #8]!
	cbnz	x8, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x23, #16]
	cmp	w8, w9
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x8, x27, x24, x28
	ldp	w0, w9, [x20, #16]
	str	w9, [x8, #20]
	ldr	w2, [x20]
	str	w2, [x8]
	ldr	w1, [x8, #16]
	bl	_siw_copy_sgl
	bl	_smp_wmb
	ldr	x8, [x25]
	str	x8, [x26]
	ldr	x8, [x23]
	add	x8, x8, #1
	str	x8, [x23]
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_4
LBB0_7:
	mov	w23, #0
	b	LBB0_11
LBB0_8:
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_siw_dbg_pd
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	ldr	w0, [x21]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_siw_dbg_pd
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_12:
	lsr	w0, w23, #31
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w0, [x21]
	str	x23, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_siw_dbg_pd
	str	x20, [x19]
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[SRQ]: no kernel post_recv for mapped srq\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"SRQ full\n"

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

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

.subsections_via_symbols
