	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_post_rx_wqes             ## -- Begin function mlx5e_post_rx_wqes
	.p2align	4, 0x90
_mlx5e_post_rx_wqes:                    ## @mlx5e_post_rx_wqes
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MLX5E_RQ_STATE_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r14), %rsi
	callq	_test_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	leaq	16(%r14), %r15
	movq	8(%r14), %r12
	movq	%r15, %rdi
	callq	_mlx5_wq_cyc_missing
	cmpq	%r12, %rax
	jl	LBB0_6
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_mlx5_wq_cyc_get_head
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_mlx5e_alloc_rx_wqes
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mlx5_wq_cyc_push_n
	movq	%r15, %rdi
	callq	_mlx5_wq_cyc_missing
	cmpq	%r12, %rax
	jge	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movq	(%r14), %rax
	incl	(%rax)
LBB0_5:
	xorl	%eax, %eax
	callq	_dma_wmb
	movq	%r15, %rdi
	callq	_mlx5_wq_cyc_update_db_record
	xorl	%r13d, %r13d
	testl	%ebx, %ebx
	setne	%r13b
LBB0_6:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5E_RQ_STATE_ENABLED,4,2     ## @MLX5E_RQ_STATE_ENABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_post_rx_wqes             ; -- Begin function mlx5e_post_rx_wqes
	.p2align	2
_mlx5e_post_rx_wqes:                    ; @mlx5e_post_rx_wqes
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
Lloh0:
	adrp	x8, _MLX5E_RQ_STATE_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5E_RQ_STATE_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_bit
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	add	x20, x19, #16
	ldr	x21, [x19, #8]
	mov	x0, x20
	bl	_mlx5_wq_cyc_missing
	cmp	x0, x21
	b.ge	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_mlx5_wq_cyc_get_head
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_mlx5e_alloc_rx_wqes
	mov	x22, x0
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_mlx5_wq_cyc_push_n
	mov	x0, x20
	bl	_mlx5_wq_cyc_missing
	cmp	x0, x21
	b.ge	LBB0_4
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_7:
	bl	_dma_wmb
	mov	x0, x20
	bl	_mlx5_wq_cyc_update_db_record
	cmp	w22, #0
	cset	w0, ne
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5E_RQ_STATE_ENABLED,4,2     ; @MLX5E_RQ_STATE_ENABLED
.subsections_via_symbols
