	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_str
_parse_str:                             ## @parse_str
	.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	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r13
	movl	%edi, %r15d
	movq	%rsi, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_print_usage
LBB0_2:
	movb	$0, (%rbx)
	movl	%r15d, %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_inet_pton
	cmpl	$1, %eax
	je	LBB0_6
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_print_usage
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_print_error
LBB0_6:
	incq	%rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, (%r14)
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_8
## %bb.7:
	cmpq	$32, %rax
	ja	LBB0_11
LBB0_8:
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_10
## %bb.9:
	cmpq	$129, %rax
	jb	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_print_usage                    ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.no_dead_strip	_parse_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_str
_parse_str:                             ; @parse_str
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #47
	bl	_strchr
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
	bl	_print_usage
LBB0_2:
	strb	wzr, [x21]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_inet_pton
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.3:
	cbnz	w0, LBB0_5
; %bb.4:
	bl	_print_usage
	b	LBB0_6
LBB0_5:
	bl	_print_error
LBB0_6:
	add	x0, x21, #1
	mov	x1, #0
	mov	w2, #10
	bl	_strtoul
	str	x0, [x20]
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_8
; %bb.7:
	cmp	x0, #32
	b.hi	LBB0_10
LBB0_8:
Lloh3:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_11
; %bb.9:
	cmp	x0, #129
	b.lo	LBB0_11
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_print_usage
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.no_dead_strip	_parse_str
.subsections_via_symbols
