	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_prefix
_parse_prefix:                          ## @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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_strdup
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_2:
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r13
	movb	$0, (%rax)
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_warnx
	movl	%ebx, %r15d
	jmp	LBB0_8
LBB0_5:
	leaq	4(%r14), %rdi
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_memcpy
	movq	-48(%rbp), %rdi
	callq	_freeaddrinfo
	incq	%r13
	movq	%r13, %rdi
	callq	_atoi
	movl	%eax, %esi
	cmpl	$129, %eax
	jb	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_plen2mask
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r12, %rdi
	callq	_free
	movl	%r15d, %eax
	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	"strdup failed"

	.comm	_AI_NUMERICHOST,4,2             ## @AI_NUMERICHOST
	.comm	_AF_INET6,4,2                   ## @AF_INET6
L_.str.1:                               ## @.str.1
	.asciz	"getaddrinfo failed for %s: %s"

L_.str.2:                               ## @.str.2
	.asciz	"invalid prefix length: %d"

	.no_dead_strip	_parse_prefix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_prefix
_parse_prefix:                          ; @parse_prefix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	bl	_strdup
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	strb	wzr, [x0]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh2:
	adrp	x8, _AI_NUMERICHOST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #40]
	add	x2, sp, #32
	add	x3, sp, #24
	mov	x0, x19
	mov	x1, #0
	bl	_getaddrinfo
	cbz	w0, LBB0_6
; %bb.4:
	mov	x22, x0
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	b	LBB0_9
LBB0_5:
	mov	w22, #-1
	b	LBB0_9
LBB0_6:
	add	x0, x20, #4
	ldr	x8, [sp, #24]
	ldp	w2, w1, [x8]
	bl	_memcpy
	ldr	x0, [sp, #24]
	bl	_freeaddrinfo
	add	x0, x21, #1
	bl	_atoi
	mov	x1, x0
	cmp	w0, #129
	b.lo	LBB0_8
; %bb.7:
	str	x1, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warnx
	mov	w22, #-1
	b	LBB0_9
LBB0_8:
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_plen2mask
	mov	w22, #0
LBB0_9:
	mov	x0, x19
	bl	_free
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"strdup failed"

	.comm	_AI_NUMERICHOST,4,2             ; @AI_NUMERICHOST
	.comm	_AF_INET6,4,2                   ; @AF_INET6
l_.str.1:                               ; @.str.1
	.asciz	"getaddrinfo failed for %s: %s"

l_.str.2:                               ; @.str.2
	.asciz	"invalid prefix length: %d"

	.no_dead_strip	_parse_prefix
.subsections_via_symbols
