	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_swf_bm_pool_init_shared
_mvpp2_swf_bm_pool_init_shared:         ## @mvpp2_swf_bm_pool_init_shared
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_MVPP2_BM_LONG_PKT_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_MVPP2_BM_LONG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, %r14d
	cmpq	%rcx, %rax
	jg	LBB0_2
## %bb.1:
	movq	_MVPP2_BM_SHORT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
LBB0_2:
	cmpq	$0, 32(%r12)
	je	LBB0_3
LBB0_9:
	xorl	%r15d, %r15d
	cmpq	$0, 16(%r12)
	jne	LBB0_15
## %bb.10:
	movq	_mvpp2_pools@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_mvpp2_bm_pool_use
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.11:
	movl	24(%r12), %edi
	callq	_BIT
	movq	16(%r12), %rcx
	orl	%eax, 4(%rcx)
	cmpl	$0, 8(%r12)
	jle	LBB0_15
## %bb.12:
	movl	(%rcx), %edx
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_mvpp2_rxq_short_pool_set
	cmpl	$2, 8(%r12)
	jl	LBB0_15
## %bb.13:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_mvpp2_rxq_short_pool_set
	incl	%ebx
	cmpl	8(%r12), %ebx
	jl	LBB0_14
	jmp	LBB0_15
LBB0_3:
	cmpq	%rcx, %rax
	movq	_MVPP2_BM_JUMBO@GOTPCREL(%rip), %rax
	cmovgl	(%rax), %esi
	movq	_mvpp2_pools@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_mvpp2_bm_pool_use
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	24(%r12), %edi
	callq	_BIT
	movq	32(%r12), %rcx
	orl	%eax, 4(%rcx)
	cmpl	$0, 8(%r12)
	jle	LBB0_9
## %bb.6:
	movl	(%rcx), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_mvpp2_rxq_long_pool_set
	cmpl	$2, 8(%r12)
	jl	LBB0_9
## %bb.7:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_mvpp2_rxq_long_pool_set
	incl	%ebx
	cmpl	8(%r12), %ebx
	jl	LBB0_8
	jmp	LBB0_9
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_15:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_BM_LONG_PKT_SIZE,8,3     ## @MVPP2_BM_LONG_PKT_SIZE
	.comm	_MVPP2_BM_JUMBO,4,2             ## @MVPP2_BM_JUMBO
	.comm	_MVPP2_BM_LONG,4,2              ## @MVPP2_BM_LONG
	.comm	_MVPP2_BM_SHORT,4,2             ## @MVPP2_BM_SHORT
	.comm	_mvpp2_pools,8,3                ## @mvpp2_pools
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mvpp2_swf_bm_pool_init_shared
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_swf_bm_pool_init_shared
_mvpp2_swf_bm_pool_init_shared:         ; @mvpp2_swf_bm_pool_init_shared
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MVPP2_BM_LONG_PKT_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MVPP2_BM_LONG_PKT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _MVPP2_BM_LONG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MVPP2_BM_LONG@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _MVPP2_BM_SHORT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MVPP2_BM_SHORT@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	x8, x9
	csel	w20, w10, w11, gt
	ldr	x11, [x0, #32]
	cbz	x11, LBB0_3
LBB0_1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
LBB0_2:
	mov	w0, #0
	b	LBB0_14
LBB0_3:
Lloh9:
	adrp	x11, _MVPP2_BM_JUMBO@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MVPP2_BM_JUMBO@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	cmp	x8, x9
	csel	w1, w11, w10, gt
Lloh12:
	adrp	x8, _mvpp2_pools@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mvpp2_pools@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w2, [x8, w1, uxtw #2]
	mov	x0, x19
	bl	_mvpp2_bm_pool_use
	str	x0, [x19, #32]
	cbz	x0, LBB0_13
; %bb.4:
	ldr	w0, [x19, #24]
	bl	_BIT
	ldr	x8, [x19, #32]
	ldr	w9, [x8, #4]
	orr	w9, w9, w0
	str	w9, [x8, #4]
	ldr	w9, [x19, #8]
	cmp	w9, #1
	b.lt	LBB0_1
; %bb.5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_mvpp2_rxq_long_pool_set
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lt	LBB0_1
; %bb.6:
	mov	w21, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_mvpp2_rxq_long_pool_set
	add	w21, w21, #1
	ldr	w8, [x19, #8]
	cmp	w21, w8
	b.lt	LBB0_7
	b	LBB0_1
LBB0_8:
Lloh15:
	adrp	x8, _mvpp2_pools@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mvpp2_pools@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	w2, [x8, w20, uxtw #2]
	mov	x0, x19
	mov	x1, x20
	bl	_mvpp2_bm_pool_use
	str	x0, [x19, #16]
	cbz	x0, LBB0_13
; %bb.9:
	ldr	w0, [x19, #24]
	bl	_BIT
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #4]
	orr	w9, w9, w0
	str	w9, [x8, #4]
	ldr	w9, [x19, #8]
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_mvpp2_rxq_short_pool_set
	mov	w0, #0
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lt	LBB0_14
; %bb.11:
	mov	w20, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_mvpp2_rxq_short_pool_set
	add	w20, w20, #1
	ldr	w8, [x19, #8]
	cmp	w20, w8
	b.lt	LBB0_12
	b	LBB0_2
LBB0_13:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_BM_LONG_PKT_SIZE,8,3     ; @MVPP2_BM_LONG_PKT_SIZE
	.comm	_MVPP2_BM_JUMBO,4,2             ; @MVPP2_BM_JUMBO
	.comm	_MVPP2_BM_LONG,4,2              ; @MVPP2_BM_LONG
	.comm	_MVPP2_BM_SHORT,4,2             ; @MVPP2_BM_SHORT
	.comm	_mvpp2_pools,8,3                ; @mvpp2_pools
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mvpp2_swf_bm_pool_init_shared
.subsections_via_symbols
