	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_ipaddr
_parse_ipaddr:                          ## @parse_ipaddr
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rdi
	movq	%rdi, %r13
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	leaq	L_.str(%rip), %rbx
	leaq	L_.str.1(%rip), %rdx
	cmovneq	%rdx, %rbx
	movl	$32, %eax
	movl	$128, %edi
	cmovel	%eax, %edi
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	cmovel	%r8d, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jne	LBB0_6
## %bb.3:
	movl	%r12d, (%rax)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_6:
	cmpl	%r12d, %ecx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_7
LBB0_4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r13, %rbx
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%rax, %r13
	movb	$0, (%rax)
	movq	8(%r14), %rsi
	movl	%r12d, %edi
	movq	%r15, %rdx
	callq	_inet_pton
	movb	$47, (%r13)
	testl	%eax, %eax
	jle	LBB0_9
## %bb.10:
	incq	%r13
	leaq	-88(%rbp), %rsi
	movq	%r13, %rdi
	movl	$10, %edx
	callq	_strtoul
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_1
LBB0_5:
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_inet_pton
	testl	%eax, %eax
	jle	LBB0_9
LBB0_20:
	xorl	%ebx, %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_25
## %bb.21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$8, %eax
	jb	LBB0_23
## %bb.22:
	leal	-8(%rax), %r14d
	shrl	$3, %r14d
	leaq	4(,%r14,4), %rdx
	movq	%r15, %rdi
	movl	$255, %esi
	callq	_memset
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r15,%r14,4), %r15
	addq	$4, %r15
	andl	$7, %eax
LBB0_23:
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movb	$8, %cl
	subb	%al, %cl
	movl	$-1, %eax
	shll	%cl, %eax
	movl	%eax, (%r15)
	jmp	LBB0_25
LBB0_9:
	movq	8(%r14), %rcx
	leaq	L_.str.4(%rip), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_1
LBB0_7:
	cmpl	%r8d, %ecx
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %rdx
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_1
LBB0_12:
	movl	%eax, %r14d
	movq	-88(%rbp), %rax
	cmpq	%r13, %rax
	je	LBB0_13
## %bb.14:
	cmpb	$0, (%rax)
	je	LBB0_17
## %bb.15:
	leaq	L_.str.7(%rip), %rdi
	movq	%r13, %rsi
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str.6(%rip), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
LBB0_16:
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_1
LBB0_17:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpl	%edx, %r14d
	jbe	LBB0_19
## %bb.18:
	leaq	L_.str.8(%rip), %rdi
	movl	%r14d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_1
LBB0_19:
	shrl	$3, %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movl	%r14d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IPv4"

	.comm	_AF_INET,4,2                    ## @AF_INET
L_.str.1:                               ## @.str.1
	.asciz	"IPv6"

	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
L_.str.2:                               ## @.str.2
	.asciz	"address %s is not of expected family %s"

L_.str.3:                               ## @.str.3
	.asciz	"IP"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot parse %s %s address %s"

L_.str.5:                               ## @.str.5
	.asciz	"mask cannot be provided for maskless specification"

L_.str.6:                               ## @.str.6
	.asciz	"missing address prefix for %s"

L_.str.7:                               ## @.str.7
	.asciz	"%s is not a valid address prefix"

L_.str.8:                               ## @.str.8
	.asciz	"prefix %u is too long for an %s address"

	.no_dead_strip	_parse_ipaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_ipaddr
_parse_ipaddr:                          ; @parse_ipaddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x5
	mov	x19, x4
	mov	x23, x3
	mov	x25, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x1, [x1]
	bl	_strcmp
	cbz	x0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
	ldr	x24, [x22, #8]
	mov	x0, x24
	mov	w1, #58
	bl	_strchr
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str@PAGE
Lloh6:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x0, #0
	csel	x28, x9, x8, eq
	mov	w9, #128
	mov	w10, #32
	csel	w12, w10, w9, eq
Lloh7:
	adrp	x9, _AF_INET@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _AF_INET6@GOTPAGE
Lloh11:
	ldr	x10, [x10, _AF_INET6@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	csel	w26, w9, w10, eq
	ldr	w10, [x25]
Lloh13:
	adrp	x11, _AF_UNSPEC@GOTPAGE
Lloh14:
	ldr	x11, [x11, _AF_UNSPEC@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_5
; %bb.4:
	str	w26, [x25]
	b	LBB0_6
LBB0_5:
	cmp	w10, w26
	b.ne	LBB0_17
LBB0_6:
	str	w12, [sp, #36]                  ; 4-byte Folded Spill
	mov	w27, #47
	mov	x0, x24
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_10
; %bb.7:
	mov	x25, x0
	strb	wzr, [x0]
	ldr	x1, [x22, #8]
	mov	x0, x26
	mov	x2, x23
	bl	_inet_pton
	strb	w27, [x25]
	cmp	w0, #0
	b.le	LBB0_16
; %bb.8:
	add	x23, x25, #1
	add	x1, sp, #40
	mov	x0, x23
	mov	w2, #10
	bl	_strtoul
	cbz	w21, LBB0_18
; %bb.9:
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_warnx
	b	LBB0_1
LBB0_10:
	mov	x0, x26
	mov	x1, x24
	mov	x2, x23
	bl	_inet_pton
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.11:
	cbz	x19, LBB0_25
LBB0_12:
	ldr	w21, [sp, #36]                  ; 4-byte Folded Reload
	subs	w8, w21, #8
	b.lo	LBB0_14
; %bb.13:
	lsr	w8, w8, #3
	lsl	x8, x8, #2
	add	x20, x8, #4
	mov	x0, x19
	mov	w1, #255
	mov	x2, x20
	bl	_memset
	add	x19, x19, x20
	and	w21, w21, #0x7
LBB0_14:
	mov	w0, #0
	cbz	w21, LBB0_2
; %bb.15:
	mov	w8, #8
	sub	w8, w8, w21
	mov	w9, #-1
	lsl	w8, w9, w8
	str	w8, [x19]
	b	LBB0_2
LBB0_16:
	ldr	x8, [x22, #8]
	stp	x28, x8, [sp, #8]
	str	x20, [sp]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warnx
	b	LBB0_1
LBB0_17:
Lloh20:
	adrp	x11, l_.str.3@PAGE
Lloh21:
	add	x11, x11, l_.str.3@PAGEOFF
	cmp	w10, w9
	csel	x8, x11, x8, eq
	stp	x24, x8, [sp]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warnx
	b	LBB0_1
LBB0_18:
	ldr	x8, [sp, #40]
	cmp	x8, x23
	b.eq	LBB0_21
; %bb.19:
	ldrb	w8, [x8]
	cbz	w8, LBB0_22
; %bb.20:
	str	x23, [sp]
Lloh24:
	adrp	x0, l_.str.7@PAGE
Lloh25:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_warnx
	b	LBB0_1
LBB0_21:
	str	x20, [sp]
Lloh26:
	adrp	x0, l_.str.6@PAGE
Lloh27:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_warnx
	b	LBB0_1
LBB0_22:
	mov	x22, x0
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w0, w8
	b.ls	LBB0_24
; %bb.23:
	stp	x22, x28, [sp]
Lloh28:
	adrp	x0, l_.str.8@PAGE
Lloh29:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_warnx
	b	LBB0_1
LBB0_24:
	lsr	w2, w8, #3
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	mov	x8, x22
	str	w22, [sp, #36]                  ; 4-byte Folded Spill
	cbnz	x19, LBB0_12
LBB0_25:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IPv4"

	.comm	_AF_INET,4,2                    ; @AF_INET
l_.str.1:                               ; @.str.1
	.asciz	"IPv6"

	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
l_.str.2:                               ; @.str.2
	.asciz	"address %s is not of expected family %s"

l_.str.3:                               ; @.str.3
	.asciz	"IP"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot parse %s %s address %s"

l_.str.5:                               ; @.str.5
	.asciz	"mask cannot be provided for maskless specification"

l_.str.6:                               ; @.str.6
	.asciz	"missing address prefix for %s"

l_.str.7:                               ; @.str.7
	.asciz	"%s is not a valid address prefix"

l_.str.8:                               ; @.str.8
	.asciz	"prefix %u is too long for an %s address"

	.no_dead_strip	_parse_ipaddr
.subsections_via_symbols
