	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_alloc_rx_wqes
_mlx5e_alloc_rx_wqes:                   ## @mlx5e_alloc_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
	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, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r13
	cmpq	$0, 8(%rdi)
	je	LBB0_3
## %bb.1:
	movb	(%r13), %cl
	movl	%ebx, %esi
	shll	%cl, %esi
	movq	%r13, %rdi
	callq	_mlx5e_xsk_pages_enough_umem
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_3:
	xorl	%r15d, %r15d
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.4:
	movq	%r14, %rax
	leaq	4(%r13), %r12
	movl	%ebx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	$-1, %r14
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mlx5_wq_cyc_get_wqe
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_mlx5e_alloc_rx_wqe
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	decq	%rax
	decq	%r14
	cmpq	$-1, %rax
	jne	LBB0_5
## %bb.10:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_6:
	cmpl	$-1, %r14d
	je	LBB0_11
## %bb.7:
	negq	%r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r14), %rsi
	addq	$-2, %rsi
	movq	%r13, %rdi
	callq	_mlx5e_dealloc_rx_wqe
	decq	%r14
	cmpq	$1, %r14
	jg	LBB0_8
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mlx5e_alloc_rx_wqes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_alloc_rx_wqes
_mlx5e_alloc_rx_wqes:                   ; @mlx5e_alloc_rx_wqes
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x20]
	lsl	w1, w21, w8
	mov	x0, x20
	bl	_mlx5e_xsk_pages_enough_umem
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_3:
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x23, #0
	add	x22, x20, #4
	mov	w24, w21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x21, x19, x23
	mov	x0, x22
	mov	x1, x21
	bl	_mlx5_wq_cyc_get_wqe
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_mlx5e_alloc_rx_wqe
	mov	x21, x0
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	cmp	x24, x23
	b.ne	LBB0_5
LBB0_7:
	mov	w21, #0
	b	LBB0_11
LBB0_8:
	cbz	w23, LBB0_11
; %bb.9:
	add	x22, x23, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x19, x22
	sub	x1, x8, #2
	mov	x0, x20
	bl	_mlx5e_dealloc_rx_wqe
	sub	x22, x22, #1
	cmp	x22, #1
	b.gt	LBB0_10
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mlx5e_alloc_rx_wqes
.subsections_via_symbols
