	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_post_recv                 ## -- Begin function mlx5_post_recv
	.p2align	4, 0x90
_mlx5_post_recv:                        ## @mlx5_post_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_to_mqp
	movq	%rax, %r14
	addq	$8, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	addq	$24, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mlx5_spin_lock
	testq	%r15, %r15
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movl	12(%r14), %ebx
	decl	%ebx
	andl	8(%r14), %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r15), %eax
	movq	32(%r14), %rcx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movslq	%ebx, %rdx
	movl	%eax, (%rcx,%rdx,4)
	incl	%ebx
	movl	12(%r14), %eax
	decl	%eax
	andl	%eax, %ebx
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	incl	%r13d
	movq	16(%r15), %r15
	testq	%r15, %r15
	je	LBB0_21
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	48(%r14), %rax
	movl	(%rax), %edi
	callq	_to_mcq
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_mlx5_wq_overflow
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %eax
	xorl	%edi, %edi
	cmpl	16(%r14), %eax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_get_recv_wqe
	movq	%rax, %r12
	movl	(%r14), %edi
	callq	_unlikely
	movq	%r12, %rsi
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	20(%r14), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movq	%rsi, %r14
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r14, %rsi
	movq	%r14, %r12
	addq	$24, %r12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%r15)
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=2
	incq	%r14
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jge	LBB0_16
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax,%rbx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movslq	%r13d, %rax
	incl	%r13d
	leaq	(%rax,%rax,2), %rax
	leaq	(%r12,%rax,8), %rdi
	movq	8(%r15), %rsi
	addq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_set_data_ptr_seg
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpl	16(%r14), %r13d
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r13d, %rax
	leaq	(%rax,%rax,2), %rbx
	movq	$0, 16(%r12,%rbx,8)
	movq	_MLX5_INVALID_LKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htobe32
	movq	%rax, 8(%r12,%rbx,8)
	movq	$0, (%r12,%rbx,8)
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edx
	shll	$4, %edx
	addl	$16, %edx
	movzwl	8(%r14), %ecx
	movq	%r14, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_sig_seg
	jmp	LBB0_20
LBB0_1:
	xorl	%r13d, %r13d
LBB0_21:
	xorl	%r14d, %r14d
	jmp	LBB0_22
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r14d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
LBB0_22:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%r13d, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_27
## %bb.23:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	%r13d, (%rax)
	xorl	%eax, %eax
	callq	_udma_to_device_barrier
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movq	_IBV_QPT_RAW_PACKET@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.24:
	movq	8(%rdx), %rax
	movq	_IBV_QPS_RTR@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
LBB0_25:
	callq	_likely
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movzwl	8(%rbx), %edi
	callq	_htobe32
	movq	40(%rbx), %rcx
	movq	_MLX5_RCV_DBR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_27:
	movq	%r15, %rdi
	callq	_mlx5_spin_unlock
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX5_INVALID_LKEY,4,2          ## @MLX5_INVALID_LKEY
	.comm	_IBV_QPT_RAW_PACKET,8,3         ## @IBV_QPT_RAW_PACKET
	.comm	_IBV_QPS_RTR,8,3                ## @IBV_QPS_RTR
	.comm	_MLX5_RCV_DBR,8,3               ## @MLX5_RCV_DBR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_post_recv                 ; -- Begin function mlx5_post_recv
	.p2align	2
_mlx5_post_recv:                        ; @mlx5_post_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x2
	mov	x25, x1
	mov	x19, x0
	bl	_to_mqp
	mov	x20, x0
	add	x8, x0, #8
	add	x0, x0, #24
	stp	x0, x8, [sp, #16]               ; 16-byte Folded Spill
	bl	_mlx5_spin_lock
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	cbz	x25, LBB0_17
; %bb.1:
	str	x21, [sp]                       ; 8-byte Folded Spill
	mov	w23, #0
	ldp	w9, w8, [x20, #8]
	sub	w8, w8, #1
	and	w26, w8, w9
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25, #4]
	ldr	x9, [x20, #32]
	str	w8, [x9, w26, sxtw #2]
	add	w8, w26, #1
	ldr	w9, [x20, #12]
	sub	w9, w9, #1
	and	w26, w9, w8
	add	w23, w23, #1
	ldr	x25, [x25, #16]
	cbz	x25, LBB0_18
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x20, #48]
	ldr	w0, [x8]
	bl	_to_mcq
	mov	x2, x0
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x23
	bl	_mlx5_wq_overflow
	bl	_unlikely
	cbnz	x0, LBB0_19
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	ldr	w9, [x20, #16]
	cmp	w8, w9
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x26
	bl	_get_recv_wqe
	mov	x19, x0
	ldr	w0, [x20]
	bl	_unlikely
	mov	x27, x19
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #20]
	mov	w9, #1
	lsl	w2, w9, w8
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	add	x27, x19, #24
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	mov	x24, #0
	mov	w28, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x24, x24, #1
	ldrsw	x8, [x25]
	add	x21, x21, #4
	cmp	x24, x8
	b.ge	LBB0_13
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25, #8]
	ldr	w8, [x8, x21]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	w22, w28, #1
	mov	w8, #24
	smaddl	x0, w28, w8, x27
	ldr	x8, [x25, #8]
	add	x1, x8, x21
	mov	w2, #0
	bl	_set_data_ptr_seg
	mov	x28, x22
	b	LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #0
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #16]
	cmp	w28, w8
	b.ge	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #24
	smaddl	x21, w28, w8, x27
	str	xzr, [x21, #16]
Lloh0:
	adrp	x8, _MLX5_INVALID_LKEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_INVALID_LKEY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htobe32
	stp	xzr, x0, [x21]
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	lsl	w8, w8, #4
	add	w2, w8, #16
	ldrh	w3, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_set_sig_seg
	b	LBB0_2
LBB0_17:
	mov	w23, #0
LBB0_18:
	mov	w26, #0
	b	LBB0_22
LBB0_19:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_21:
	ldr	w26, [x8]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	x25, [x8]
LBB0_22:
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x23
	bl	_likely
	cbz	x0, LBB0_27
; %bb.23:
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x9]
	add	w8, w8, w23
	str	w8, [x9]
	bl	_udma_to_device_barrier
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x8, [x10]
Lloh7:
	adrp	x9, _IBV_QPT_RAW_PACKET@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IBV_QPT_RAW_PACKET@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.24:
	ldr	x8, [x10, #8]
Lloh10:
	adrp	x9, _IBV_QPS_RTR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IBV_QPS_RTR@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ge
	bl	_likely
	cbnz	x0, LBB0_26
	b	LBB0_27
LBB0_25:
	mov	w0, #1
	bl	_likely
	cbz	x0, LBB0_27
LBB0_26:
	ldrh	w0, [x20, #8]
	bl	_htobe32
	ldr	x8, [x20, #40]
Lloh13:
	adrp	x9, _MLX5_RCV_DBR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MLX5_RCV_DBR@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
LBB0_27:
	mov	x0, x19
	bl	_mlx5_spin_unlock
	mov	x0, x26
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX5_INVALID_LKEY,4,2          ; @MLX5_INVALID_LKEY
	.comm	_IBV_QPT_RAW_PACKET,8,3         ; @IBV_QPT_RAW_PACKET
	.comm	_IBV_QPS_RTR,8,3                ; @IBV_QPS_RTR
	.comm	_MLX5_RCV_DBR,8,3               ; @MLX5_RCV_DBR
.subsections_via_symbols
