	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function insert_recv_cqe
_insert_recv_cqe:                       ## @insert_recv_cqe
	.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
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	24(%rsi), %ecx
	movq	(%rsi), %r8
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_pr_debug
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_T4_ERR_SWFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CQE_STATUS_V
	movl	%eax, %r13d
	movq	_FW_RI_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CQE_OPCODE_V
	orl	%eax, %r13d
	xorl	%edi, %edi
	callq	_CQE_TYPE_V
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_CQE_SWCQE_V
	orl	%eax, %ebx
	movl	(%r15), %edi
	callq	_CQE_QPID_V
	orl	%eax, %ebx
	orl	%r13d, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -48(%rbp)
	movl	16(%r12), %edi
	callq	_CQE_GENBIT_V
	movl	%eax, %edi
	callq	_cpu_to_be64
	movl	%eax, -56(%rbp)
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_cpu_to_be32
	movq	%rax, -64(%rbp)
LBB0_2:
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	leaq	(%rax,%rax,2), %rax
	movq	-48(%rbp), %rdx
	movq	%rdx, 16(%rcx,%rax,8)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, (%rcx,%rax,8)
	movq	%r12, %rdi
	callq	_t4_swcq_produce
	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	"wq %p cq %p sw_cidx %u sw_pidx %u\n"

	.comm	_T4_ERR_SWFLUSH,4,2             ## @T4_ERR_SWFLUSH
	.comm	_FW_RI_SEND,4,2                 ## @FW_RI_SEND
	.no_dead_strip	_insert_recv_cqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function insert_recv_cqe
_insert_recv_cqe:                       ; @insert_recv_cqe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w3, [x1, #24]
	ldr	x4, [x1]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	bl	_pr_debug
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh2:
	adrp	x8, _T4_ERR_SWFLUSH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _T4_ERR_SWFLUSH@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_CQE_STATUS_V
	mov	x22, x0
Lloh5:
	adrp	x8, _FW_RI_SEND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FW_RI_SEND@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_CQE_OPCODE_V
	orr	w22, w0, w22
	mov	w0, #0
	bl	_CQE_TYPE_V
	orr	w22, w22, w0
	mov	w0, #1
	bl	_CQE_SWCQE_V
	orr	w22, w22, w0
	ldr	w0, [x21]
	bl	_CQE_QPID_V
	orr	w0, w22, w0
	bl	_cpu_to_be32
	str	x0, [sp, #24]
	ldr	w0, [x19, #16]
	bl	_CQE_GENBIT_V
	bl	_cpu_to_be64
	str	w0, [sp, #16]
	cbz	w20, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_cpu_to_be32
	str	x0, [sp, #8]
LBB0_2:
	ldp	x9, x8, [x19]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldur	q0, [sp, #8]
	ldr	x9, [sp, #24]
	str	x9, [x8, #16]
	str	q0, [x8]
	mov	x0, x19
	bl	_t4_swcq_produce
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wq %p cq %p sw_cidx %u sw_pidx %u\n"

	.comm	_T4_ERR_SWFLUSH,4,2             ; @T4_ERR_SWFLUSH
	.comm	_FW_RI_SEND,4,2                 ; @FW_RI_SEND
	.no_dead_strip	_insert_recv_cqe
.subsections_via_symbols
