	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c2_post_receive                ## -- Begin function c2_post_receive
	.p2align	4, 0x90
_c2_post_receive:                       ## @c2_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	$56, %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, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_c2dev
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_to_c2qp
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_IB_QPS_RTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	testl	%r14d, %r14d
	jne	LBB0_15
	jmp	LBB0_9
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.3:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leaq	16(%r12), %r13
	movq	%r12, %rax
	addq	$20, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	8(%r12), %rax
	jg	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	20(%rbx), %eax
	movl	%eax, -76(%rbp)
	movq	_CCWR_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_c2_wr_set_id
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_c2_wr_set_flags
	xorl	%edi, %edi
	cmpq	$256, (%rbx)                    ## imm = 0x100
	setge	%dil
	callq	_BUG_ON
	movl	(%rbx), %edx
	movl	16(%rbx), %esi
	movq	%r15, %rdi
	leaq	-84(%rbp), %rcx
	leaq	-52(%rbp), %r8
	callq	_move_sgl
	movl	%eax, %r14d
	movl	-52(%rbp), %esi
	movq	%r15, %rdi
	callq	_c2_wr_set_sge_count
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movl	28(%r12), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_qp_wr_post
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	20(%r12), %edx
	movl	24(%r12), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_c2_activity
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_9
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_13:
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
LBB0_11:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	testl	%r14d, %r14d
	je	LBB0_9
LBB0_15:
	movq	%rbx, (%r15)
	jmp	LBB0_16
LBB0_9:
	xorl	%r14d, %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPS_RTS,8,3                 ## @IB_QPS_RTS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CCWR_RECV,4,2                  ## @CCWR_RECV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c2_post_receive                ; -- Begin function c2_post_receive
	.p2align	2
_c2_post_receive:                       ; @c2_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
	mov	x22, x0
	ldr	w0, [x0]
	bl	_to_c2dev
	mov	x21, x0
	mov	x0, x22
	bl	_to_c2qp
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IB_QPS_RTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPS_RTS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_4
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_2:
	cbz	w25, LBB0_11
; %bb.3:
	str	x20, [x19]
	b	LBB0_11
LBB0_4:
	cbz	x20, LBB0_10
; %bb.5:
	mov	x22, x0
	add	x23, x0, #16
	add	x24, x0, #20
Lloh6:
	adrp	x26, _CCWR_RECV@GOTPAGE
Lloh7:
	ldr	x26, [x26, _CCWR_RECV@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x22, #8]
	cmp	x8, x9
	b.gt	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #20]
	str	w8, [sp, #12]
	ldr	w1, [x26]
	add	x0, sp, #8
	bl	_c2_wr_set_id
	add	x0, sp, #8
	mov	w1, #0
	bl	_c2_wr_set_flags
	ldr	x8, [x20]
	cmp	x8, #255
	cset	w0, gt
	bl	_BUG_ON
	ldr	w1, [x20, #16]
	ldr	w2, [x20]
	add	x0, sp, #8
	add	x3, sp, #4
	mov	x4, sp
	bl	_move_sgl
	mov	x25, x0
	ldr	w1, [sp]
	add	x0, sp, #8
	bl	_c2_wr_set_sge_count
	cbnz	w25, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	w3, [x22, #28]
	add	x1, sp, #8
	mov	x0, x24
	mov	x2, x22
	bl	_qp_wr_post
	cbnz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	w2, w1, [x22, #20]
	mov	x0, x21
	bl	_c2_activity
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_6
LBB0_10:
	mov	w25, #0
LBB0_11:
	mov	x0, x25
	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_12:
	mov	x25, x0
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPS_RTS,8,3                 ; @IB_QPS_RTS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CCWR_RECV,4,2                  ; @CCWR_RECV
.subsections_via_symbols
