	.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_percpu
_mvpp2_swf_bm_pool_init_percpu:         ## @mvpp2_swf_bm_pool_init_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpl	$0, (%rdi)
	jle	LBB0_9
## %bb.1:
	xorl	%ebx, %ebx
	movq	_MVPP2_BM_SHORT@GOTPCREL(%rip), %r14
	movq	_mvpp2_pools@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	movq	(%r12), %rax
	movl	(%rax,%rsi,4), %ecx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mvpp2_bm_pool_use_percpu
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r15), %edi
	callq	_BIT
	movq	24(%r15), %rcx
	movq	(%rcx), %rcx
	orl	%eax, 4(%rcx,%rbx,8)
	movl	(%rcx,%rbx,8), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_mvpp2_rxq_short_pool_set
	incq	%rbx
	movslq	(%r15), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_2
## %bb.5:
	testl	%edx, %edx
	jle	LBB0_9
## %bb.6:
	xorl	%r14d, %r14d
	movq	_MVPP2_BM_LONG@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	addl	%r14d, %edx
	movq	(%r12), %rax
	movl	(%rax,%rsi,4), %ecx
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_mvpp2_bm_pool_use_percpu
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	32(%r15), %edi
	callq	_BIT
	movq	24(%r15), %rcx
	movq	(%rcx), %rcx
	movslq	(%r15), %rdx
	addq	%r14, %rdx
	orl	%eax, 4(%rcx,%rdx,8)
	movl	(%rcx,%rdx,8), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_mvpp2_rxq_long_pool_set
	movl	(%r15), %edx
	incq	%r14
	cmpl	%edx, %r14d
	jl	LBB0_7
LBB0_9:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_BM_SHORT,8,3             ## @MVPP2_BM_SHORT
	.comm	_mvpp2_pools,8,3                ## @mvpp2_pools
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MVPP2_BM_LONG,8,3              ## @MVPP2_BM_LONG
	.no_dead_strip	_mvpp2_swf_bm_pool_init_percpu
.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_percpu
_mvpp2_swf_bm_pool_init_percpu:         ; @mvpp2_swf_bm_pool_init_percpu
	.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, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x22, #0
	mov	x20, #0
Lloh0:
	adrp	x23, _MVPP2_BM_SHORT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MVPP2_BM_SHORT@GOTPAGEOFF]
Lloh2:
	adrp	x21, _mvpp2_pools@GOTPAGE
Lloh3:
	ldr	x21, [x21, _mvpp2_pools@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x23]
	ldr	x8, [x21]
	ldr	w3, [x8, x1, lsl #2]
	mov	x0, x19
	mov	x2, x20
	bl	_mvpp2_bm_pool_use_percpu
	cbz	x0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #32]
	bl	_BIT
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	add	x8, x8, x22
	ldp	w2, w9, [x8]
	orr	w9, w9, w0
	str	w9, [x8, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_mvpp2_rxq_short_pool_set
	add	x20, x20, #1
	ldrsw	x8, [x19]
	add	x22, x22, #8
	cmp	x20, x8
	b.lt	LBB0_2
; %bb.4:
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x20, #0
Lloh4:
	adrp	x22, _MVPP2_BM_LONG@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MVPP2_BM_LONG@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22]
	add	w2, w20, w8
	ldr	x8, [x21]
	ldr	w3, [x8, x1, lsl #2]
	mov	x0, x19
	bl	_mvpp2_bm_pool_use_percpu
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #32]
	bl	_BIT
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldrsw	x9, [x19]
	add	x9, x20, x9
	add	x8, x8, x9, lsl #3
	ldp	w2, w9, [x8]
	orr	w9, w9, w0
	str	w9, [x8, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_mvpp2_rxq_long_pool_set
	ldr	w8, [x19]
	add	x20, x20, #1
	cmp	w20, w8
	b.lt	LBB0_6
LBB0_8:
	mov	w0, #0
	stp	xzr, xzr, [x19, #8]
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_BM_SHORT,8,3             ; @MVPP2_BM_SHORT
	.comm	_mvpp2_pools,8,3                ; @mvpp2_pools
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MVPP2_BM_LONG,8,3              ; @MVPP2_BM_LONG
	.no_dead_strip	_mvpp2_swf_bm_pool_init_percpu
.subsections_via_symbols
