	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_encode_string               ## -- Begin function ng_encode_string
	.p2align	4, 0x90
_ng_encode_string:                      ## @ng_encode_string
	.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	%esi, %r15d
	movq	%rdi, %r14
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	3(,%rax,4), %edi
	movq	_M_NETGRAPH_PARSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_malloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movb	$34, (%r12)
	testl	%r15d, %r15d
	jle	LBB0_17
## %bb.2:
	movl	%r15d, %r13d
	movl	$1, %ebx
	xorl	%r15d, %r15d
	leaq	LJTI0_0(%rip), %rsi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	movslq	%ebx, %rax
	movb	$92, (%r12,%rax)
	movzbl	(%r14,%r15), %ecx
	movb	%cl, 1(%r12,%rax)
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$2, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	addl	%eax, %ebx
	incq	%r15
	cmpl	%r15d, %r13d
	je	LBB0_18
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%r15), %eax
	movsbl	%al, %edx
	leal	-9(%rdx), %ecx
	cmpl	$25, %ecx
	ja	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movslq	%ebx, %rax
	movw	$29788, (%r12,%rax)             ## imm = 0x745C
	jmp	LBB0_4
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$92, %edx
	je	LBB0_3
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	leal	-127(%rax), %ecx
	movslq	%ebx, %rdi
	addq	%r12, %rdi
	cmpb	$-96, %cl
	ja	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_sprintf
	leaq	LJTI0_0(%rip), %rsi
	jmp	LBB0_5
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%ebx, %rax
	movw	$28252, (%r12,%rax)             ## imm = 0x6E5C
	jmp	LBB0_4
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%ebx, %rax
	movw	$30300, (%r12,%rax)             ## imm = 0x765C
	jmp	LBB0_4
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%ebx, %rax
	movw	$26204, (%r12,%rax)             ## imm = 0x665C
	jmp	LBB0_4
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%ebx, %rax
	movw	$29276, (%r12,%rax)             ## imm = 0x725C
	jmp	LBB0_4
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	%al, (%rdi)
	movl	$1, %eax
	jmp	LBB0_5
LBB0_17:
	movl	$1, %ebx
LBB0_18:
	movslq	%ebx, %rax
	movw	$34, (%r12,%rax)
LBB0_19:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_M_NETGRAPH_PARSE,4,2           ## @M_NETGRAPH_PARSE
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\x%02x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_encode_string               ; -- Begin function ng_encode_string
	.p2align	2
_ng_encode_string:                      ; @ng_encode_string
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	bl	_strlen
	mov	w8, #3
	bfi	w8, w0, #2, #30
Lloh0:
	adrp	x9, _M_NETGRAPH_PARSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _M_NETGRAPH_PARSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _M_NOWAIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _M_NOWAIT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	mov	x0, x8
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_18
; %bb.1:
	mov	w8, #34
	strb	w8, [x21]
	mov	w24, #1
	cmp	w19, #1
	b.lt	LBB0_17
; %bb.2:
	mov	w25, #92
	mov	w11, #29788
	mov	w27, #28252
	mov	w28, #30300
	mov	w22, #26204
	mov	w23, #29276
Lloh6:
	adrp	x26, lJTI0_0@PAGE
Lloh7:
	add	x26, x26, lJTI0_0@PAGEOFF
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x21, w24, sxtw
	strb	w25, [x8]
	ldrb	w9, [x20]
	strb	w9, [x8, #1]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #2
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w0, w24
	add	x20, x20, #1
	subs	w19, w19, #1
	b.eq	LBB0_17
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w2, [x20]
	sub	w8, w2, #9
	cmp	w8, #25
	b.hi	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	strh	w11, [x21, w24, sxtw]
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w2, #92
	b.eq	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	and	w8, w2, #0xff
	sub	w9, w8, #127
	and	w9, w9, #0xff
	add	x0, x21, w24, sxtw
	cmp	w9, #160
	b.hi	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
	mov	w11, #29788
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	strh	w27, [x21, w24, sxtw]
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	strh	w28, [x21, w24, sxtw]
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	strh	w22, [x21, w24, sxtw]
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	strh	w23, [x21, w24, sxtw]
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	strb	w8, [x0]
	mov	w0, #1
	b	LBB0_5
LBB0_17:
	mov	w8, #34
	strh	w8, [x21, w24, sxtw]
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
	.comm	_M_NETGRAPH_PARSE,4,2           ; @M_NETGRAPH_PARSE
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\x%02x"

.subsections_via_symbols
