	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_bm_pools_init
_mvneta_bm_pools_init:                  ## @mvneta_bm_pools_init
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_MVNETA_BM_COMMAND_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MVNETA_BM_START_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_mvneta_bm_write
	movq	_MVNETA_BM_POOLS_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.1:
	movl	$24, %r14d
	xorl	%ebx, %ebx
	leaq	-63(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_MVNETA_BM_POOLS_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$32, %r14
	cmpq	%rax, %rbx
	jge	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r12
	movl	%ebx, -24(%r12,%r14)
	movq	_MVNETA_BM_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12,%r14)
	movl	%ebx, %edi
	callq	_MVNETA_BM_POOL_READ_PTR_REG
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_mvneta_bm_write
	movl	%ebx, %edi
	callq	_MVNETA_BM_POOL_WRITE_PTR_REG
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_mvneta_bm_write
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_sprintf
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	leaq	-72(%rbp), %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MVNETA_BM_POOL_CAP_DEF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx
	movq	_MVNETA_BM_POOL_CAP_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpq	%r8, %rcx
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_warn
	movq	_MVNETA_BM_POOL_CAP_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MVNETA_BM_POOL_CAP_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpq	%r8, %rcx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_warn
	movq	_MVNETA_BM_POOL_CAP_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MVNETA_BM_POOL_CAP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, %rdi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	_MVNETA_BM_POOL_CAP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ALIGN
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %r8
	callq	_dev_warn
	movq	-72(%rbp), %rdi
	movq	_MVNETA_BM_POOL_CAP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ALIGN
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -72(%rbp)
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -8(%r12,%r14)
	movl	%ebx, %edi
	callq	_MVNETA_BM_POOL_SIZE_REG
	movq	-8(%r12,%r14), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mvneta_bm_write
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	callq	_sprintf
	addq	%r14, %r12
	addq	$-16, %r12
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%r12)
	jmp	LBB0_15
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MVNETA_BM_COMMAND_REG,4,2      ## @MVNETA_BM_COMMAND_REG
	.comm	_MVNETA_BM_START_MASK,8,3       ## @MVNETA_BM_START_MASK
	.comm	_MVNETA_BM_POOLS_NUM,4,2        ## @MVNETA_BM_POOLS_NUM
	.comm	_MVNETA_BM_FREE,4,2             ## @MVNETA_BM_FREE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pool%d,capacity"

	.comm	_MVNETA_BM_POOL_CAP_DEF,8,3     ## @MVNETA_BM_POOL_CAP_DEF
	.comm	_MVNETA_BM_POOL_CAP_MAX,8,3     ## @MVNETA_BM_POOL_CAP_MAX
L_.str.1:                               ## @.str.1
	.asciz	"Illegal pool %d capacity %d, set to %d\n"

	.comm	_MVNETA_BM_POOL_CAP_MIN,8,3     ## @MVNETA_BM_POOL_CAP_MIN
	.comm	_MVNETA_BM_POOL_CAP_ALIGN,4,2   ## @MVNETA_BM_POOL_CAP_ALIGN
L_.str.2:                               ## @.str.2
	.asciz	"Illegal pool %d capacity %d, round to %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"pool%d,pkt-size"

	.no_dead_strip	_mvneta_bm_pools_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvneta_bm_pools_init
_mvneta_bm_pools_init:                  ; @mvneta_bm_pools_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x0]
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _MVNETA_BM_COMMAND_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MVNETA_BM_COMMAND_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MVNETA_BM_START_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MVNETA_BM_START_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x2, [x8]
	bl	_mvneta_bm_write
Lloh9:
	adrp	x28, _MVNETA_BM_POOLS_NUM@GOTPAGE
Lloh10:
	ldr	x28, [x28, _MVNETA_BM_POOLS_NUM@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x24, #0
	mov	x21, #0
Lloh11:
	adrp	x23, _MVNETA_BM_FREE@GOTPAGE
Lloh12:
	ldr	x23, [x23, _MVNETA_BM_FREE@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str@PAGE
Lloh14:
	add	x22, x22, l_.str@PAGEOFF
Lloh15:
	adrp	x27, _MVNETA_BM_POOL_CAP_MAX@GOTPAGE
Lloh16:
	ldr	x27, [x27, _MVNETA_BM_POOL_CAP_MAX@GOTPAGEOFF]
Lloh17:
	adrp	x25, _MVNETA_BM_POOL_CAP_DEF@GOTPAGE
Lloh18:
	ldr	x25, [x25, _MVNETA_BM_POOL_CAP_DEF@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x28]
	add	x24, x24, #32
	cmp	x21, x8
	b.ge	LBB0_16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x19, #8]
	add	x8, x26, x24
	str	w21, [x8]
	ldr	w9, [x23]
	str	w9, [x8, #24]
	mov	x0, x21
	bl	_MVNETA_BM_POOL_READ_PTR_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, #0
	bl	_mvneta_bm_write
	mov	x0, x21
	bl	_MVNETA_BM_POOL_WRITE_PTR_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, #0
	bl	_mvneta_bm_write
	add	x0, sp, #25
	mov	x1, x22
	mov	x2, x21
	bl	_sprintf
	add	x1, sp, #25
	add	x2, sp, #16
	mov	x0, x20
	bl	_of_property_read_u32
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x25]
	str	x0, [sp, #16]
	b	LBB0_14
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x3, [sp, #16]
	ldr	x4, [x27]
	cmp	x3, x4
	b.le	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_warn
	ldr	x0, [x27]
	str	x0, [sp, #16]
	b	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x28
	mov	x28, x22
	mov	x22, x23
Lloh21:
	adrp	x23, _MVNETA_BM_POOL_CAP_MIN@GOTPAGE
Lloh22:
	ldr	x23, [x23, _MVNETA_BM_POOL_CAP_MIN@GOTPAGEOFF]
	ldr	x4, [x23]
	cmp	x3, x4
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_warn
	ldr	x0, [x23]
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh25:
	adrp	x23, _MVNETA_BM_POOL_CAP_ALIGN@GOTPAGE
Lloh26:
	ldr	x23, [x23, _MVNETA_BM_POOL_CAP_ALIGN@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x3
	bl	_IS_ALIGNED
	cbz	w0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #16]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x27, [sp, #16]
	ldr	w1, [x23]
	mov	x0, x27
	bl	_ALIGN
	mov	x4, x0
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	mov	x3, x27
Lloh29:
	adrp	x27, _MVNETA_BM_POOL_CAP_MAX@GOTPAGE
Lloh30:
	ldr	x27, [x27, _MVNETA_BM_POOL_CAP_MAX@GOTPAGEOFF]
	bl	_dev_warn
	ldr	x0, [sp, #16]
	ldr	w1, [x23]
	bl	_ALIGN
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x0, [sp, #16]
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x22
	mov	x22, x28
	mov	x28, x25
Lloh31:
	adrp	x25, _MVNETA_BM_POOL_CAP_DEF@GOTPAGE
Lloh32:
	ldr	x25, [x25, _MVNETA_BM_POOL_CAP_DEF@GOTPAGEOFF]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, x24
	str	x0, [x26, #16]
	mov	x0, x21
	bl	_MVNETA_BM_POOL_SIZE_REG
	mov	x1, x0
	ldr	x2, [x26, #16]
	mov	x0, x19
	bl	_mvneta_bm_write
	add	x0, sp, #25
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_sprintf
	add	x26, x26, #8
	add	x1, sp, #25
	mov	x0, x20
	mov	x2, x26
	bl	_of_property_read_u32
	cbz	x0, LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x26]
	b	LBB0_2
LBB0_16:
	ldr	x8, [sp, #40]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MVNETA_BM_COMMAND_REG,4,2      ; @MVNETA_BM_COMMAND_REG
	.comm	_MVNETA_BM_START_MASK,8,3       ; @MVNETA_BM_START_MASK
	.comm	_MVNETA_BM_POOLS_NUM,4,2        ; @MVNETA_BM_POOLS_NUM
	.comm	_MVNETA_BM_FREE,4,2             ; @MVNETA_BM_FREE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pool%d,capacity"

	.comm	_MVNETA_BM_POOL_CAP_DEF,8,3     ; @MVNETA_BM_POOL_CAP_DEF
	.comm	_MVNETA_BM_POOL_CAP_MAX,8,3     ; @MVNETA_BM_POOL_CAP_MAX
l_.str.1:                               ; @.str.1
	.asciz	"Illegal pool %d capacity %d, set to %d\n"

	.comm	_MVNETA_BM_POOL_CAP_MIN,8,3     ; @MVNETA_BM_POOL_CAP_MIN
	.comm	_MVNETA_BM_POOL_CAP_ALIGN,4,2   ; @MVNETA_BM_POOL_CAP_ALIGN
l_.str.2:                               ; @.str.2
	.asciz	"Illegal pool %d capacity %d, round to %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"pool%d,pkt-size"

	.no_dead_strip	_mvneta_bm_pools_init
.subsections_via_symbols
