	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_post_wq_recv              ## -- Begin function mlx5_post_wq_recv
	.p2align	4, 0x90
_mlx5_post_wq_recv:                     ## @mlx5_post_wq_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, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	callq	_to_mrwq
	movq	%rax, %r13
	leaq	24(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mlx5_spin_lock
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%r13, %rax
	addq	$8, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	12(%r13), %r14d
	decl	%r14d
	andl	8(%r13), %r14d
	xorl	%r12d, %r12d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rbx), %eax
	movq	32(%r13), %rcx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movslq	%r14d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	incl	%r14d
	movl	12(%r13), %eax
	decl	%eax
	andl	%eax, %r14d
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	incl	%r12d
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_21
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movl	48(%r13), %edi
	callq	_to_mcq
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %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	(%rbx), %eax
	xorl	%edi, %edi
	cmpl	16(%r13), %eax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_get_wq_recv_wqe
	movq	%rax, %r15
	movl	(%r13), %edi
	callq	_unlikely
	movq	%r15, %rsi
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	20(%r13), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movq	%rsi, %r15
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r15, %rsi
	addq	$24, %r15
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%rbx)
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=2
	incq	%r14
	movslq	(%rbx), %rax
	addq	$4, %r13
	cmpq	%rax, %r14
	jge	LBB0_16
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax,%r13)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movslq	%r12d, %rax
	incl	%r12d
	leaq	(%rax,%rax,2), %rax
	leaq	(%r15,%rax,8), %rdi
	movq	8(%rbx), %rsi
	addq	%r13, %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	%r12d, %r12d
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	cmpl	16(%r13), %r12d
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r12d, %rax
	leaq	(%rax,%rax,2), %r14
	movq	$0, 16(%r15,%r14,8)
	movq	_MLX5_INVALID_LKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htobe32
	movq	%rax, 8(%r15,%r14,8)
	movq	$0, (%r15,%r14,8)
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edx
	shll	$4, %edx
	addl	$16, %edx
	movzwl	8(%r13), %ecx
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_wq_sig_seg
	jmp	LBB0_20
LBB0_1:
	xorl	%r12d, %r12d
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	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
LBB0_22:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%r12d, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	addl	%r12d, 8(%r13)
	xorl	%eax, %eax
	callq	_udma_to_device_barrier
	movzwl	8(%r13), %edi
	callq	_htobe32
	movq	40(%r13), %rcx
	movq	%rax, (%rcx)
LBB0_24:
	movq	%rbx, %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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_post_wq_recv              ; -- Begin function mlx5_post_wq_recv
	.p2align	2
_mlx5_post_wq_recv:                     ; @mlx5_post_wq_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	x23, x1
	bl	_to_mrwq
	mov	x20, x0
	add	x19, x0, #24
	mov	x0, x19
	bl	_mlx5_spin_lock
	cbz	x23, LBB0_17
; %bb.1:
	stp	x21, x19, [sp, #8]              ; 16-byte Folded Spill
	mov	w21, #0
	add	x8, x20, #8
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldp	w9, w8, [x20, #8]
	sub	w8, w8, #1
	and	w25, w8, w9
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23, #4]
	ldr	x9, [x20, #32]
	str	w8, [x9, w25, sxtw #2]
	add	w8, w25, #1
	ldr	w9, [x20, #12]
	sub	w9, w9, #1
	and	w25, w9, w8
	add	w21, w21, #1
	ldr	x23, [x23, #16]
	cbz	x23, LBB0_21
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w0, [x20, #48]
	bl	_to_mcq
	mov	x2, x0
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x21
	bl	_mlx5_wq_overflow
	bl	_unlikely
	cbnz	x0, LBB0_18
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x20, #16]
	cmp	w8, w9
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x25
	bl	_get_wq_recv_wqe
	mov	x27, x0
	ldr	w0, [x20]
	bl	_unlikely
	mov	x26, x27
	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, x27
	mov	w1, #0
	bl	_memset
	add	x26, x27, #24
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, #0
	mov	x22, #0
	mov	w28, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x22, x22, #1
	ldrsw	x8, [x23]
	add	x19, x19, #4
	cmp	x22, x8
	b.ge	LBB0_13
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23, #8]
	ldr	w8, [x8, x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	w24, w28, #1
	mov	w8, #24
	smaddl	x0, w28, w8, x26
	ldr	x8, [x23, #8]
	add	x1, x8, x19
	mov	w2, #0
	bl	_set_data_ptr_seg
	mov	x28, x24
	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	x19, w28, w8, x26
	str	xzr, [x19, #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, [x19]
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, [x23]
	lsl	w8, w8, #4
	add	w2, w8, #16
	ldrh	w3, [x20, #8]
	mov	x0, x20
	mov	x1, x27
	bl	_set_wq_sig_seg
	b	LBB0_2
LBB0_17:
	mov	w21, #0
	mov	w24, #0
	b	LBB0_23
LBB0_18:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_20:
	ldr	w24, [x8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x23, [x8]
	b	LBB0_22
LBB0_21:
	mov	w24, #0
LBB0_22:
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
LBB0_23:
	mov	x0, x21
	bl	_likely
	cbz	x0, LBB0_25
; %bb.24:
	ldr	w8, [x20, #8]
	add	w8, w8, w21
	str	w8, [x20, #8]
	bl	_udma_to_device_barrier
	ldrh	w0, [x20, #8]
	bl	_htobe32
	ldr	x8, [x20, #40]
	str	x0, [x8]
LBB0_25:
	mov	x0, x19
	bl	_mlx5_spin_unlock
	mov	x0, x24
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX5_INVALID_LKEY,4,2          ; @MLX5_INVALID_LKEY
.subsections_via_symbols
