	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa_eth_refill_bpool
_dpaa_eth_refill_bpool:                 ## @dpaa_eth_refill_bpool
	.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	%rsi, %rbx
	movq	%rdi, %r12
	movl	(%rsi), %r13d
	movq	_FSL_DPAA_ETH_REFILL_THRESHOLD@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r13d
	setl	%dil
	callq	_unlikely
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_FSL_DPAA_ETH_MAX_BUF_COUNT@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_dpaa_bp_add_8_bufs
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%ebx, %r13d
	cmpl	(%r14), %r13d
	jl	LBB0_2
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	xorl	%edi, %edi
	cmpl	(%r14), %r13d
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSL_DPAA_ETH_REFILL_THRESHOLD,4,2 ## @FSL_DPAA_ETH_REFILL_THRESHOLD
	.comm	_FSL_DPAA_ETH_MAX_BUF_COUNT,4,2 ## @FSL_DPAA_ETH_MAX_BUF_COUNT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_dpaa_eth_refill_bpool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa_eth_refill_bpool
_dpaa_eth_refill_bpool:                 ; @dpaa_eth_refill_bpool
	.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	x19, x1
	mov	x20, x0
	ldr	w22, [x1]
Lloh0:
	adrp	x8, _FSL_DPAA_ETH_REFILL_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSL_DPAA_ETH_REFILL_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, w8
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x23, _FSL_DPAA_ETH_MAX_BUF_COUNT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FSL_DPAA_ETH_MAX_BUF_COUNT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_dpaa_bp_add_8_bufs
	mov	x21, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	add	w22, w21, w22
	cmp	w22, w8
	b.lt	LBB0_2
LBB0_4:
	str	w22, [x19]
	ldr	w8, [x23]
	cmp	w22, w8
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FSL_DPAA_ETH_REFILL_THRESHOLD,4,2 ; @FSL_DPAA_ETH_REFILL_THRESHOLD
	.comm	_FSL_DPAA_ETH_MAX_BUF_COUNT,4,2 ; @FSL_DPAA_ETH_MAX_BUF_COUNT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_dpaa_eth_refill_bpool
.subsections_via_symbols
