	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_bm_pool_use_percpu
_mvpp2_bm_pool_use_percpu:              ## @mvpp2_bm_pool_use_percpu
	.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, %rbx
	movl	(%rdi), %eax
	addl	%eax, %eax
	cmpl	%edx, %eax
	jae	LBB0_2
## %bb.1:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_2:
	movl	%ecx, %r12d
	movq	8(%rbx), %r13
	movq	(%r13), %rcx
	movl	%edx, %eax
	leaq	(%rax,%rax,2), %r15
	leaq	(%rcx,%r15,8), %r14
	movl	(%r14), %edi
	testl	%edi, %edi
	jne	LBB0_8
## %bb.3:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rcx,%r15,8), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ecx
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	%ecx, %r13d
	callq	_mvpp2_bm_bufs_free
	jmp	LBB0_6
LBB0_4:
	movq	_mvpp2_pools@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movl	(%rax,%rcx,4), %r13d
LBB0_6:
	movl	%r12d, (%r14)
	movl	%r12d, %edi
	callq	_MVPP2_RX_BUF_SIZE
	movl	%eax, %edi
	callq	_SKB_DATA_ALIGN
	movq	_MVPP2_SKB_SHINFO_SIZE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, 16(%r12,%r15,8)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_mvpp2_bm_bufs_add
	cmpl	%r13d, %eax
	jne	LBB0_10
## %bb.7:
	movq	8(%rbx), %r13
	movl	(%r14), %edi
LBB0_8:
	callq	_MVPP2_RX_BUF_SIZE
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_mvpp2_bm_pool_bufsize_set
LBB0_9:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	8(%r12,%r15,8), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %ecx
	movl	%r13d, %r8d
	callq	_WARN
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid pool %d\n"

	.comm	_mvpp2_pools,8,3                ## @mvpp2_pools
	.comm	_MVPP2_SKB_SHINFO_SIZE,8,3      ## @MVPP2_SKB_SHINFO_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"pool %d: %d of %d allocated\n"

	.no_dead_strip	_mvpp2_bm_pool_use_percpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_bm_pool_use_percpu
_mvpp2_bm_pool_use_percpu:              ; @mvpp2_bm_pool_use_percpu
	.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
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w2, w8, lsl #1
	b.ls	LBB0_2
; %bb.1:
	ldr	x0, [x20, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	mov	x19, #0
	b	LBB0_9
LBB0_2:
	ldr	x23, [x20, #8]
	ldr	x24, [x23]
	mov	w8, #24
	umaddl	x19, w2, w8, x24
	ldr	w0, [x19]
	cbnz	w0, LBB0_8
; %bb.3:
	mov	x22, x3
	mov	w25, w2
	mov	w8, #24
	madd	x8, x25, x8, x24
	ldr	w21, [x8, #4]
	cbz	w21, LBB0_5
; %bb.4:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	mov	x1, x23
	mov	x2, x19
	mov	x3, x21
	bl	_mvpp2_bm_bufs_free
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _mvpp2_pools@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mvpp2_pools@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w21, [x8, w1, sxtw #2]
LBB0_6:
	str	w22, [x19]
	mov	x0, x22
	bl	_MVPP2_RX_BUF_SIZE
	bl	_SKB_DATA_ALIGN
Lloh5:
	adrp	x8, _MVPP2_SKB_SHINFO_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MVPP2_SKB_SHINFO_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x8, x8, x0
	mov	w9, #24
	madd	x9, x25, x9, x24
	str	x8, [x9, #16]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_mvpp2_bm_bufs_add
	cmp	w0, w21
	b.ne	LBB0_10
; %bb.7:
	ldr	x23, [x20, #8]
	ldr	w0, [x19]
LBB0_8:
	bl	_MVPP2_RX_BUF_SIZE
	mov	x2, x0
	mov	x0, x23
	mov	x1, x19
	bl	_mvpp2_bm_pool_bufsize_set
LBB0_9:
	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
	ret
LBB0_10:
	mov	x3, x0
	mov	w8, #24
	madd	x8, x25, x8, x24
	ldr	w2, [x8, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x4, x21
	bl	_WARN
	mov	x19, #0
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid pool %d\n"

	.comm	_mvpp2_pools,8,3                ; @mvpp2_pools
	.comm	_MVPP2_SKB_SHINFO_SIZE,8,3      ; @MVPP2_SKB_SHINFO_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"pool %d: %d of %d allocated\n"

	.no_dead_strip	_mvpp2_bm_pool_use_percpu
.subsections_via_symbols
