	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_fpga_conn_rq_cqe
_mlx5_fpga_conn_rq_cqe:                 ## @mlx5_fpga_conn_rq_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	4(%rsi), %edi
	callq	_be16_to_cpu
	movslq	24(%rbx), %rcx
	decq	%rcx
	cltq
	andq	%rcx, %rax
	movq	32(%rbx), %rcx
	movq	(%rcx,%rax,8), %r14
	movq	$0, (%rcx,%rax,8)
	incl	28(%rbx)
	testl	%r12d, %r12d
	setne	%al
	movq	_MLX5_CQE_SYNDROME_WR_FLUSH_ERR@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	movl	(%rbx), %edi
	movl	40(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movl	%r12d, %r8d
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_mlx5_fpga_warn
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_mlx5_fpga_dbg
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mlx5_fpga_conn_unmap_buf
	movl	$1, %edi
	testl	%r12d, %r12d
	jne	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	cmpl	$0, 16(%rbx)
	sete	%dil
LBB0_5:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	$0, 16(%rbx)
	jmp	LBB0_7
LBB0_8:
	movl	(%r15), %edi
	callq	_be32_to_cpu
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movl	(%rbx), %edi
	movslq	%eax, %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_mlx5_fpga_dbg
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	callq	*8(%rbx)
	movq	_MLX5_FPGA_RECV_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mlx5_fpga_conn_post_recv
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_mlx5_fpga_warn
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_CQE_SYNDROME_WR_FLUSH_ERR,4,2 ## @MLX5_CQE_SYNDROME_WR_FLUSH_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RQ buf %p on FPGA QP %u completion status %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Message with %u bytes received successfully\n"

	.comm	_MLX5_FPGA_RECV_SIZE,4,2        ## @MLX5_FPGA_RECV_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"Failed to re-post recv buf: %d\n"

	.no_dead_strip	_mlx5_fpga_conn_rq_cqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_fpga_conn_rq_cqe
_mlx5_fpga_conn_rq_cqe:                 ; @mlx5_fpga_conn_rq_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	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x1, #4]
	bl	_be16_to_cpu
	ldp	w8, w9, [x19, #24]
	sub	w8, w8, #1
	and	w8, w8, w0
	ldr	x10, [x19, #32]
	sbfiz	x8, x8, #3, #32
	ldr	x20, [x10, x8]
	str	xzr, [x10, x8]
	add	w8, w9, #1
	str	w8, [x19, #28]
	cmp	w22, #0
Lloh0:
	adrp	x8, _MLX5_CQE_SYNDROME_WR_FLUSH_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_CQE_SYNDROME_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w22, #4, ne
	cset	w0, ne
	bl	_unlikely
	mov	x8, x0
	ldr	w0, [x19]
	ldr	w9, [x19, #40]
	cbz	x8, LBB0_2
; %bb.1:
	stp	x9, x22, [sp, #8]
	str	x20, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mlx5_fpga_warn
	b	LBB0_3
LBB0_2:
	mov	x8, x22
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stp	x9, x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_mlx5_fpga_dbg
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx5_fpga_conn_unmap_buf
	cbz	w22, LBB0_6
; %bb.4:
	mov	w0, #1
	bl	_unlikely
	cbz	x0, LBB0_7
LBB0_5:
	str	wzr, [x19, #16]
	b	LBB0_9
LBB0_6:
	ldr	w8, [x19, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_5
LBB0_7:
	ldr	w0, [x21]
	bl	_be32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x20]
	str	w0, [x8]
	ldr	w8, [x19]
	sxtw	x2, w0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_mlx5_fpga_dbg
	ldr	x8, [x19, #8]
	ldr	w0, [x19, #4]
	mov	x1, x20
	blr	x8
Lloh9:
	adrp	x8, _MLX5_FPGA_RECV_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX5_FPGA_RECV_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9]
	mov	x0, x19
	mov	x1, x20
	bl	_mlx5_fpga_conn_post_recv
	mov	x21, x0
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w0, [x19]
	str	x21, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_mlx5_fpga_warn
LBB0_9:
	mov	x0, x20
	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
	b	_kfree
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_CQE_SYNDROME_WR_FLUSH_ERR,4,2 ; @MLX5_CQE_SYNDROME_WR_FLUSH_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RQ buf %p on FPGA QP %u completion status %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Message with %u bytes received successfully\n"

	.comm	_MLX5_FPGA_RECV_SIZE,4,2        ; @MLX5_FPGA_RECV_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"Failed to re-post recv buf: %d\n"

	.no_dead_strip	_mlx5_fpga_conn_rq_cqe
.subsections_via_symbols
