	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_bm_bufs_add
_mvpp2_bm_bufs_add:                     ## @mvpp2_bm_bufs_add
	.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, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	cmpq	$0, (%rax)
	movq	(%rsi), %rdi
	je	LBB0_3
## %bb.1:
	movq	_MVPP2_BM_LONG_PKT_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jle	LBB0_3
## %bb.2:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_14
LBB0_3:
	callq	_MVPP2_RX_BUF_SIZE
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_MVPP2_RX_TOTAL_SIZE
	testl	%r14d, %r14d
	js	LBB0_7
## %bb.4:
	movl	%eax, %r9d
	movl	%r14d, %ecx
	movq	8(%r12), %rax
	addq	%rax, %rcx
	cmpq	16(%r12), %rcx
	jle	LBB0_5
LBB0_7:
	movl	(%r15), %edi
	movl	24(%r12), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_14
LBB0_5:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.8:
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	leaq	-52(%rbp), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r12, %rsi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rcx
	callq	_mvpp2_buf_alloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	24(%r12), %esi
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %ecx
	movq	%r15, %rdi
	callq	_mvpp2_bm_pool_put
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_9
## %bb.11:
	movl	%r14d, %ebx
LBB0_12:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	8(%r12), %rax
	jmp	LBB0_13
LBB0_6:
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %ecx
	addq	%rax, %rcx
	movq	%rcx, 8(%r12)
	movl	(%r15), %edi
	movl	(%r12), %ecx
	movl	24(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	(%r15), %edi
	movl	24(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_netdev_dbg
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_BM_LONG_PKT_SIZE,8,3     ## @MVPP2_BM_LONG_PKT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempted to use jumbo frames with per-cpu pools"

L_.str.1:                               ## @.str.1
	.asciz	"cannot allocate %d buffers for pool %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.2:                               ## @.str.2
	.asciz	"pool %d: pkt_size=%4d, buf_size=%4d, total_size=%4d\n"

L_.str.3:                               ## @.str.3
	.asciz	"pool %d: %d of %d buffers added\n"

	.no_dead_strip	_mvpp2_bm_bufs_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_bm_bufs_add
_mvpp2_bm_bufs_add:                     ; @mvpp2_bm_bufs_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x0, [x1]
Lloh0:
	adrp	x9, _MVPP2_BM_LONG_PKT_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MVPP2_BM_LONG_PKT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x0, x9, #4, ne
	b.gt	LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	bl	_MVPP2_RX_BUF_SIZE
	mov	x22, x0
	bl	_MVPP2_RX_TOTAL_SIZE
	tbnz	w19, #31, LBB0_3
; %bb.2:
	ldp	x8, x9, [x20, #8]
	add	x10, x8, w19, uxtw
	cmp	x10, x9
	b.le	LBB0_7
LBB0_3:
	ldr	w0, [x21]
	ldr	w8, [x20, #24]
	stp	x19, x8, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w0, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	bl	_netdev_err
	mov	w23, #0
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	mov	x24, x0
	mov	w23, #0
	cbz	w19, LBB0_13
; %bb.8:
Lloh7:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w4, [x25]
	add	x2, sp, #28
	add	x3, sp, #24
	mov	x0, x21
	mov	x1, x20
	bl	_mvpp2_buf_alloc
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x20, #24]
	ldp	w3, w2, [sp, #24]
	mov	x0, x21
	bl	_mvpp2_bm_pool_put
	add	w23, w23, #1
	cmp	w19, w23
	b.ne	LBB0_9
; %bb.11:
	mov	x23, x19
LBB0_12:
	ldr	x8, [x20, #8]
LBB0_13:
	add	x8, x8, w23, uxtw
	str	x8, [x20, #8]
	ldr	w0, [x21]
	ldr	w2, [x20, #24]
	ldr	w3, [x20]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	str	x24, [sp]
	mov	x4, x22
	bl	_netdev_dbg
	ldr	w0, [x21]
	ldr	w2, [x20, #24]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x3, x23
	mov	x4, x19
	bl	_netdev_dbg
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_BM_LONG_PKT_SIZE,8,3     ; @MVPP2_BM_LONG_PKT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempted to use jumbo frames with per-cpu pools"

l_.str.1:                               ; @.str.1
	.asciz	"cannot allocate %d buffers for pool %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.2:                               ; @.str.2
	.asciz	"pool %d: pkt_size=%4d, buf_size=%4d, total_size=%4d\n"

l_.str.3:                               ; @.str.3
	.asciz	"pool %d: %d of %d buffers added\n"

	.no_dead_strip	_mvpp2_bm_bufs_add
.subsections_via_symbols
