	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_post_receive
_i40iw_post_receive:                    ## @i40iw_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	(%rdi), %rax
	cmpq	(%rsi), %rax
	jae	LBB0_2
## %bb.1:
	movq	_I40IW_ERR_INVALID_FRAG_COUNT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	%rsi, %r13
	movq	%rdi, %r12
	leaq	-56(%rbp), %rsi
	callq	_i40iw_qp_get_next_recv_wqe
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r15
	movl	16(%r13), %eax
	movq	16(%r12), %rcx
	movq	-56(%rbp), %rdx
	movl	%eax, (%rcx,%rdx,4)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_set_64bit_val
	movq	(%r13), %rax
	leal	-1(%rax), %edi
	cmpq	$2, %rax
	cmovbl	%ebx, %edi
	movq	_I40IWQPSQ_ADDFRAGCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%eax, %ebx
	movl	8(%r12), %edi
	movq	_I40IWQPSQ_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%ebx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r13), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_i40iw_set_fragment
	cmpq	$2, (%r13)
	jb	LBB0_6
## %bb.4:
	movl	$1, %r12d
	movl	$32, %ebx
	movl	$8, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdx
	addq	%r14, %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i40iw_set_fragment
	addq	$16, %rbx
	incq	%r12
	addq	$8, %r14
	cmpq	(%r13), %r12
	jb	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	callq	_wmb
	movq	%r15, %rdi
	movl	$24, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_set_64bit_val
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	_I40IW_ERR_QP_TOOMANY_WRS_POSTED@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_ERR_INVALID_FRAG_COUNT,4,2 ## @I40IW_ERR_INVALID_FRAG_COUNT
	.comm	_I40IW_ERR_QP_TOOMANY_WRS_POSTED,4,2 ## @I40IW_ERR_QP_TOOMANY_WRS_POSTED
	.comm	_I40IWQPSQ_ADDFRAGCNT,4,2       ## @I40IWQPSQ_ADDFRAGCNT
	.comm	_I40IWQPSQ_VALID,4,2            ## @I40IWQPSQ_VALID
	.no_dead_strip	_i40iw_post_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_post_receive
_i40iw_post_receive:                    ; @i40iw_post_receive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	ldr	x8, [x0]
	ldr	x9, [x1]
	cmp	x8, x9
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _I40IW_ERR_INVALID_FRAG_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_ERR_INVALID_FRAG_COUNT@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	x19, x1
	mov	x21, x0
	add	x1, sp, #8
	bl	_i40iw_qp_get_next_recv_wqe
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	ldr	w8, [x19, #16]
	ldr	x9, [x21, #16]
	ldr	x10, [sp, #8]
	str	w8, [x9, x10, lsl #2]
	mov	w1, #16
	mov	w2, #0
	bl	_set_64bit_val
	ldr	x8, [x19]
	sub	w9, w8, #1
	cmp	x8, #1
	csel	w0, w9, wzr, hi
Lloh2:
	adrp	x8, _I40IWQPSQ_ADDFRAGCNT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I40IWQPSQ_ADDFRAGCNT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LS_64
	mov	x22, x0
	ldr	w0, [x21, #8]
Lloh5:
	adrp	x8, _I40IWQPSQ_VALID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40IWQPSQ_VALID@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w21, w0, w22
	ldr	x2, [x19, #8]
	mov	x0, x20
	mov	x1, #0
	bl	_i40iw_set_fragment
	ldr	x8, [x19]
	cmp	x8, #2
	b.lo	LBB0_6
; %bb.4:
	mov	w23, #1
	mov	w22, #32
	mov	w24, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x2, x8, x24
	mov	x0, x20
	mov	x1, x22
	bl	_i40iw_set_fragment
	add	x22, x22, #16
	add	x23, x23, #1
	ldr	x8, [x19]
	add	x24, x24, #8
	cmp	x23, x8
	b.lo	LBB0_5
LBB0_6:
	bl	_wmb
	mov	x0, x20
	mov	w1, #24
	mov	x2, x21
	bl	_set_64bit_val
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _I40IW_ERR_QP_TOOMANY_WRS_POSTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I40IW_ERR_QP_TOOMANY_WRS_POSTED@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_ERR_INVALID_FRAG_COUNT,4,2 ; @I40IW_ERR_INVALID_FRAG_COUNT
	.comm	_I40IW_ERR_QP_TOOMANY_WRS_POSTED,4,2 ; @I40IW_ERR_QP_TOOMANY_WRS_POSTED
	.comm	_I40IWQPSQ_ADDFRAGCNT,4,2       ; @I40IWQPSQ_ADDFRAGCNT
	.comm	_I40IWQPSQ_VALID,4,2            ; @I40IWQPSQ_VALID
	.no_dead_strip	_i40iw_post_receive
.subsections_via_symbols
