	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_cpp_area_alloc_with_name   ## -- Begin function nfp_cpp_area_alloc_with_name
	.p2align	4, 0x90
_nfp_cpp_area_alloc_with_name:          ## @nfp_cpp_area_alloc_with_name
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movl	%esi, -44(%rbp)
	movq	%rcx, -56(%rbp)
	movl	16(%rdi), %r8d
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movl	%esi, %edi
	movq	%rcx, %rsi
	movq	%rax, %rcx
	callq	_nfp_target_cpp
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r15
	testq	%rbx, %rbx
	leaq	L_.str(%rip), %r13
	cmovneq	%rbx, %r13
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %r14d
	movq	8(%r12), %rax
	movl	(%rax), %eax
	leal	(%r14,%rax), %edi
	addl	$73, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %rbx
	incl	%r14d
	movq	%r12, 64(%rax)
	movq	8(%r12), %rax
	movslq	(%rax), %rax
	leaq	(%rbx,%rax), %rdi
	addq	$72, %rdi
	movq	%rdi, 40(%rbx)
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movl	-44(%rbp), %eax
	movl	%eax, 36(%rbx)
	movq	%r15, 16(%rbx)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	leaq	(%r15,%r13), %rax
	decq	%rax
	movq	%rax, 24(%rbx)
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	56(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	52(%rbx), %rdi
	callq	_kref_init
	leaq	48(%rbx), %rdi
	callq	_mutex_init
	movq	8(%r12), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	*%rax
	testl	%eax, %eax
	js	LBB0_7
LBB0_4:
	movq	%rbx, %r14
	addq	$16, %r14
	movq	%r12, %rdi
	callq	_write_lock
	leaq	4(%r12), %rdi
	movq	%r14, %rsi
	callq	___resource_add
	movq	%r12, %rdi
	callq	_write_unlock
	movq	%r15, (%rbx)
	movq	%r13, 8(%rbx)
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(reserved)"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_cpp_area_alloc_with_name   ; -- Begin function nfp_cpp_area_alloc_with_name
	.p2align	2
_nfp_cpp_area_alloc_with_name:          ; @nfp_cpp_area_alloc_with_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x4
	mov	x8, x3
	mov	x22, x2
	mov	x20, x0
	str	w1, [sp, #12]
	str	x3, [sp]
	ldr	w4, [x0, #16]
	add	x2, sp, #12
	mov	x3, sp
	mov	x0, x1
	mov	x1, x8
	bl	_nfp_target_cpp
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x21, [sp]
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x22, #0
	csel	x23, x8, x22, eq
	mov	x0, x23
	bl	_strlen
	mov	x24, x0
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	add	w8, w0, w8
	add	w0, w8, #73
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x22, x0
	cbz	x0, LBB0_7
; %bb.2:
	add	w2, w24, #1
	str	x20, [x22, #64]
	ldr	x8, [x20, #8]
	ldrsw	x8, [x8]
	add	x8, x22, x8
	add	x0, x8, #72
	str	x0, [x22, #40]
	mov	x1, x23
	bl	_memcpy
	mov	x23, x22
	str	x21, [x23, #16]!
	ldr	w8, [sp, #12]
	str	w8, [x23, #20]
	add	x8, x19, x21
	sub	x8, x8, #1
	str	x8, [x23, #8]
	add	x0, x23, #16
	bl	_INIT_LIST_HEAD
	add	x0, x23, #40
	mov	w1, #0
	bl	_atomic_set
	add	x0, x23, #36
	bl	_kref_init
	add	x0, x23, #32
	bl	_mutex_init
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [sp, #12]
	mov	x0, x22
	mov	x2, x21
	mov	x3, x19
	blr	x8
	tbnz	w0, #31, LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_write_lock
	add	x0, x20, #4
	mov	x1, x23
	bl	___resource_add
	mov	x0, x20
	bl	_write_unlock
	stp	x21, x19, [x22]
	b	LBB0_7
LBB0_5:
	mov	x0, x22
	bl	_kfree
LBB0_6:
	mov	x22, #0
LBB0_7:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(reserved)"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
