	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_flower_metadata_init       ## -- Begin function nfp_flower_metadata_init
	.p2align	4, 0x90
_nfp_flower_metadata_init:              ## @nfp_flower_metadata_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	(%rdi), %rbx
	movl	56(%rbx), %edi
	callq	_hash_init
	movq	_nfp_flower_table_params@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rhashtable_init
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	leaq	4(%rbx), %r14
	movq	_stats_ctx_table_params@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_rhashtable_init
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:
	leaq	52(%rbx), %rdi
	movl	$4, %esi
	callq	_get_random_bytes
	movq	_NFP_FLOWER_MASK_ENTRY_RS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_NFP_FLOWER_MASK_ELEMENT_RS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_kmalloc_array
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	_NFP_FLOWER_MASK_ENTRY_RS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	-1(%rdi), %rax
	movq	%rax, 24(%rbx)
	movl	(%r13), %edx
	movl	$1, %esi
	callq	_kmalloc_array
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	_NFP_FL_STATS_ELEM_RS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	48(%rbx), %esi
	callq	_array_size
	movl	%eax, %edi
	callq	_vmalloc
	movl	%eax, 32(%rbx)
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_div_u64
	movl	%eax, 36(%rbx)
	movq	_NFP_FL_STAT_ID_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_FIELD_PREP
	movl	%eax, %r12d
	movq	_NFP_FL_STAT_ID_MU_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decl	%r15d
	movl	%r15d, %esi
	callq	_FIELD_PREP
	orl	%eax, %r12d
	movl	(%r13), %edx
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_kvmalloc_array
	movl	%eax, 44(%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	addq	$40, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_init
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_7:
	movl	32(%rbx), %edi
	callq	_vfree
LBB0_8:
	movq	16(%rbx), %rdi
	callq	_kfree
LBB0_9:
	movq	8(%rbx), %rdi
	callq	_kfree
LBB0_10:
	movq	%r14, %rdi
	callq	_rhashtable_destroy
LBB0_11:
	movq	%rbx, %rdi
	callq	_rhashtable_destroy
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nfp_flower_table_params,4,2    ## @nfp_flower_table_params
	.comm	_stats_ctx_table_params,4,2     ## @stats_ctx_table_params
	.comm	_NFP_FLOWER_MASK_ENTRY_RS,8,3   ## @NFP_FLOWER_MASK_ENTRY_RS
	.comm	_NFP_FLOWER_MASK_ELEMENT_RS,4,2 ## @NFP_FLOWER_MASK_ELEMENT_RS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_NFP_FL_STATS_ELEM_RS,4,2       ## @NFP_FL_STATS_ELEM_RS
	.comm	_NFP_FL_STAT_ID_STAT,4,2        ## @NFP_FL_STAT_ID_STAT
	.comm	_NFP_FL_STAT_ID_MU_NUM,4,2      ## @NFP_FL_STAT_ID_MU_NUM
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_flower_metadata_init       ; -- Begin function nfp_flower_metadata_init
	.p2align	2
_nfp_flower_metadata_init:              ; @nfp_flower_metadata_init
	.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	x21, x2
	mov	x22, x1
	ldr	x19, [x0]
	ldr	w0, [x19, #56]
	bl	_hash_init
Lloh0:
	adrp	x1, _nfp_flower_table_params@GOTPAGE
Lloh1:
	ldr	x1, [x1, _nfp_flower_table_params@GOTPAGEOFF]
	mov	x0, x19
	bl	_rhashtable_init
	cbnz	w0, LBB0_12
; %bb.1:
	add	x20, x19, #4
Lloh2:
	adrp	x1, _stats_ctx_table_params@GOTPAGE
Lloh3:
	ldr	x1, [x1, _stats_ctx_table_params@GOTPAGEOFF]
	mov	x0, x20
	bl	_rhashtable_init
	cbnz	w0, LBB0_11
; %bb.2:
	add	x0, x19, #52
	mov	w1, #4
	bl	_get_random_bytes
Lloh4:
	adrp	x24, _NFP_FLOWER_MASK_ENTRY_RS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _NFP_FLOWER_MASK_ENTRY_RS@GOTPAGEOFF]
	ldr	x0, [x24]
Lloh6:
	adrp	x8, _NFP_FLOWER_MASK_ELEMENT_RS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFP_FLOWER_MASK_ELEMENT_RS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_kmalloc_array
	str	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.3:
	ldr	x0, [x24]
	sub	x8, x0, #1
	str	x8, [x19, #24]
	ldr	w2, [x23]
	mov	w1, #1
	bl	_kmalloc_array
	str	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.4:
Lloh11:
	adrp	x8, _NFP_FL_STATS_ELEM_RS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NFP_FL_STATS_ELEM_RS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x19, #48]
	bl	_array_size
	bl	_vmalloc
	str	w0, [x19, #32]
	cbz	w0, LBB0_8
; %bb.5:
	mov	x0, x22
	mov	x1, x21
	bl	_div_u64
	str	w0, [x19, #36]
Lloh14:
	adrp	x8, _NFP_FL_STAT_ID_STAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NFP_FL_STAT_ID_STAT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELD_PREP
	mov	x22, x0
Lloh17:
	adrp	x8, _NFP_FL_STAT_ID_MU_NUM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NFP_FL_STAT_ID_MU_NUM@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	sub	w1, w21, #1
	bl	_FIELD_PREP
	orr	w0, w0, w22
	ldr	w2, [x23]
	mov	w1, #4
	bl	_kvmalloc_array
	str	w0, [x19, #44]
	cbz	w0, LBB0_7
; %bb.6:
	add	x0, x19, #40
	bl	_spin_lock_init
	mov	w0, #0
	b	LBB0_12
LBB0_7:
	ldr	w0, [x19, #32]
	bl	_vfree
LBB0_8:
	ldr	x0, [x19, #16]
	bl	_kfree
LBB0_9:
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_10:
	mov	x0, x20
	bl	_rhashtable_destroy
LBB0_11:
	mov	x0, x19
	bl	_rhashtable_destroy
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_nfp_flower_table_params,4,2    ; @nfp_flower_table_params
	.comm	_stats_ctx_table_params,4,2     ; @stats_ctx_table_params
	.comm	_NFP_FLOWER_MASK_ENTRY_RS,8,3   ; @NFP_FLOWER_MASK_ENTRY_RS
	.comm	_NFP_FLOWER_MASK_ELEMENT_RS,4,2 ; @NFP_FLOWER_MASK_ELEMENT_RS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_NFP_FL_STATS_ELEM_RS,4,2       ; @NFP_FL_STATS_ELEM_RS
	.comm	_NFP_FL_STAT_ID_STAT,4,2        ; @NFP_FL_STAT_ID_STAT
	.comm	_NFP_FL_STAT_ID_MU_NUM,4,2      ; @NFP_FL_STAT_ID_MU_NUM
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
