	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nptv6_parse_prefix
_nptv6_parse_prefix:                    ## @nptv6_parse_prefix
	.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
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_strdup
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_err
LBB0_2:
	movq	%r13, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	incq	%rbx
	movq	%rbx, -48(%rbp)
	movb	$0, (%rax)
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_inet_pton
	cmpl	$1, %eax
	je	LBB0_7
## %bb.6:
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_errx
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.8:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, (%r15)
	movq	-48(%rbp), %rcx
	cmpb	$0, (%rcx)
	jne	LBB0_11
## %bb.9:
	testl	%eax, %eax
	jle	LBB0_11
## %bb.10:
	cmpl	$65, %eax
	jl	LBB0_13
LBB0_11:
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_errx
	jmp	LBB0_13
LBB0_12:
	movl	$0, (%r15)
LBB0_13:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_EX_USAGE,4,2                   ## @EX_USAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad prefix: %s"

L_.str.1:                               ## @.str.1
	.asciz	"Bad prefix length: %s"

	.no_dead_strip	_nptv6_parse_prefix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nptv6_parse_prefix
_nptv6_parse_prefix:                    ; @nptv6_parse_prefix
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_strdup
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_err
LBB0_2:
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	mov	x23, x0
	str	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.3:
	strb	wzr, [x23], #1
	str	x23, [sp, #8]
LBB0_4:
Lloh3:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, x22
	bl	_inet_pton
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_errx
LBB0_6:
	cbz	x23, LBB0_10
; %bb.7:
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #10
	bl	_strtol
	str	w0, [x21]
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cmp	w8, #0
	ccmp	w0, #1, #8, eq
	b.lt	LBB0_9
; %bb.8:
	cmp	w0, #65
	b.lt	LBB0_11
LBB0_9:
Lloh11:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_errx
	b	LBB0_11
LBB0_10:
	str	wzr, [x21]
LBB0_11:
	mov	x0, x19
	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
	b	_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_EX_USAGE,4,2                   ; @EX_USAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad prefix: %s"

l_.str.1:                               ; @.str.1
	.asciz	"Bad prefix length: %s"

	.no_dead_strip	_nptv6_parse_prefix
.subsections_via_symbols
