	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_refill_rx_buffers
_mlx4_en_refill_rx_buffers:             ## @mlx4_en_refill_rx_buffers
	.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
	movl	(%rsi), %r13d
	movl	4(%rsi), %ebx
	movl	8(%rsi), %r12d
	movl	%r12d, %eax
	subl	%ebx, %eax
	addl	%r13d, %eax
	cmpl	$8, %eax
	jge	LBB0_1
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	12(%rsi), %edx
	andl	%ebx, %edx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movq	___GFP_MEMALLOC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	callq	_mlx4_en_prepare_rx_desc
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	addl	%r13d, %r12d
	notl	%ebx
	addl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	4(%r15)
	movl	%ebx, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%r15), %edx
	andl	4(%r15), %edx
	movq	___GFP_MEMALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mlx4_en_prepare_rx_desc
	decl	%ebx
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx4_en_update_rx_prod_db      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	___GFP_MEMALLOC,4,2             ## @__GFP_MEMALLOC
	.no_dead_strip	_mlx4_en_refill_rx_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_refill_rx_buffers
_mlx4_en_refill_rx_buffers:             ; @mlx4_en_refill_rx_buffers
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldp	w21, w24, [x1]
	ldr	w25, [x1, #8]
	sub	w8, w25, w24
	add	w8, w8, w21
	cmp	w8, #8
	b.ge	LBB0_2
; %bb.1:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1, #12]
Lloh0:
	adrp	x22, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_ATOMIC@GOTPAGEOFF]
	and	w2, w8, w24
	ldr	w8, [x22]
Lloh2:
	adrp	x23, ___GFP_MEMALLOC@GOTPAGE
Lloh3:
	ldr	x23, [x23, ___GFP_MEMALLOC@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w3, w9, w8
	bl	_mlx4_en_prepare_rx_desc
	cbnz	x0, LBB0_6
; %bb.3:
	mvn	w8, w24
	add	w9, w25, w21
	add	w21, w8, w9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x21
	bl	_likely
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	ldr	w9, [x19, #12]
	and	w2, w9, w8
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, x19
	bl	_mlx4_en_prepare_rx_desc
	sub	w21, w21, #1
	cbz	x0, LBB0_4
LBB0_6:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mlx4_en_update_rx_prod_db
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	___GFP_MEMALLOC,4,2             ; @__GFP_MEMALLOC
	.no_dead_strip	_mlx4_en_refill_rx_buffers
.subsections_via_symbols
