	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_sizedstring_unparse
_ng_sizedstring_unparse:                ## @ng_sizedstring_unparse
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rcx, -48(%rbp)
	movl	%r8d, -36(%rbp)
	movslq	(%rdx), %rax
	leaq	(%rsi,%rax), %rdi
	addq	$2, %rdi
	movl	(%rsi,%rax,4), %r15d
	movl	%r15d, %esi
	callq	_ng_encode_string
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdx
	leaq	-48(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	movq	%rax, %rcx
	callq	_ng_parse_append
	movl	%eax, %r12d
	movq	_M_NETGRAPH_PARSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_free
	testl	%r12d, %r12d
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %eax
	addl	%r15d, %eax
	addl	$2, %eax
	movl	%eax, (%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_4:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_M_NETGRAPH_PARSE,4,2           ## @M_NETGRAPH_PARSE
	.no_dead_strip	_ng_sizedstring_unparse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_sizedstring_unparse
_ng_sizedstring_unparse:                ; @ng_sizedstring_unparse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	str	x3, [sp, #8]
	str	w4, [sp, #4]
	ldrsw	x8, [x2]
	add	x9, x1, x8
	add	x0, x9, #2
	ldr	w20, [x1, x8, lsl #2]
	mov	x1, x20
	bl	_ng_encode_string
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	add	x1, sp, #4
	mov	x3, x22
	bl	_ng_parse_append
	mov	x21, x0
Lloh2:
	adrp	x8, _M_NETGRAPH_PARSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_NETGRAPH_PARSE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_free
	cbnz	w21, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	add	w8, w20, w8
	add	w8, w8, #2
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
LBB0_4:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_M_NETGRAPH_PARSE,4,2           ; @M_NETGRAPH_PARSE
	.no_dead_strip	_ng_sizedstring_unparse
.subsections_via_symbols
