	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipstrtoaddr                    ## -- Begin function ipstrtoaddr
	.p2align	4, 0x90
_ipstrtoaddr:                           ## @ipstrtoaddr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movslq	%esi, %r13
	callq	_str_is_ip6
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rsp, %r12
	movq	_MAX_ADDR_STRLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movl	$56, (%r14)
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r15)
	movq	%r13, %rdi
	callq	_htons
	movq	%rax, 48(%r15)
	movq	%rbx, %rdi
	movl	$37, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r13
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	subq	%rbx, %r12
	movq	_MAX_ADDR_STRLEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_8
## %bb.4:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strlcpy
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movb	$0, (%rbx,%r12)
	incq	%r13
	movq	%r13, %rdi
	callq	_atoi
	movq	%rax, 40(%r15)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_5:
	movl	32(%r15), %edi
	addq	$24, %r15
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_inet_pton
	testq	%rax, %rax
	movq	%r12, %rsp
	jg	LBB0_7
	jmp	LBB0_10
LBB0_6:
	movl	$56, (%r14)
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	%r13, %rdi
	callq	_htons
	movq	%rax, 16(%r15)
	movl	8(%r15), %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_inet_pton
	testq	%rax, %rax
	jle	LBB0_10
LBB0_7:
	movl	$1, %r14d
	jmp	LBB0_10
LBB0_8:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ADDR_STRLEN,4,2            ## @MAX_ADDR_STRLEN
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_AF_INET,8,3                    ## @AF_INET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipstrtoaddr                    ; -- Begin function ipstrtoaddr
	.p2align	2
_ipstrtoaddr:                           ; @ipstrtoaddr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cbz	x0, LBB0_10
; %bb.1:
	mov	x24, x3
	mov	x19, x2
	mov	x20, x0
	sxtw	x23, w1
	bl	_str_is_ip6
	cbz	x0, LBB0_6
; %bb.2:
	mov	x25, sp
Lloh3:
	adrp	x26, _MAX_ADDR_STRLEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MAX_ADDR_STRLEN@GOTPAGEOFF]
	ldr	w22, [x26]
	mov	x9, x22
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	mov	w8, #56
	str	w8, [x24]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh7:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	mov	x0, x23
	bl	_htons
	str	x0, [x19, #48]
	mov	x0, x20
	mov	w1, #37
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.3:
	mov	x23, x0
	ldrsw	x8, [x26]
	sub	x24, x0, x20
	cmp	x24, x8
	b.ge	LBB0_8
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_strlcpy
	strb	wzr, [x21, x24]
	add	x0, x23, #1
	bl	_atoi
	str	x0, [x19, #40]
	mov	x20, x21
LBB0_5:
	ldr	w0, [x19, #32]
	add	x2, x19, #24
	mov	x1, x20
	bl	_inet_pton
	mov	sp, x25
	cmp	x0, #0
	b.gt	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	w8, #56
	str	w8, [x24]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh10:
	adrp	x8, _AF_INET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	x0, x23
	bl	_htons
	str	x0, [x19, #16]
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	x2, x19
	bl	_inet_pton
	cmp	x0, #1
	b.lt	LBB0_9
LBB0_7:
	mov	w0, #1
	b	LBB0_10
LBB0_8:
	mov	sp, x25
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ADDR_STRLEN,4,2            ; @MAX_ADDR_STRLEN
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_AF_INET,8,3                    ; @AF_INET
.subsections_via_symbols
