	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cidr_parse
_cidr_parse:                            ## @cidr_parse
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_strtoul
	movl	%eax, %r15d
	movq	-40(%rbp), %rax
	cmpq	%rbx, %rax
	jbe	LBB0_2
## %bb.1:
	cmpb	$0, (%rax)
	je	LBB0_10
LBB0_2:
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchr
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_cidr_parse6
	jmp	LBB0_5
LBB0_4:
	callq	_cidr_parse4
LBB0_5:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpl	%r14d, (%rbx)
	je	LBB0_9
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AF_INET@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	leaq	L_.str.1(%rip), %r8
	leaq	L_.str.2(%rip), %rax
	movq	%rax, %rcx
	cmoveq	%r8, %rcx
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_fprintf
	movl	$4, %edi
	callq	_exit
LBB0_10:
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movq	%rax, %rbx
	movq	_AF_INET@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_14
## %bb.12:
	movl	%r14d, (%rbx)
	movl	%r15d, 4(%rbx)
	movl	%r15d, %edi
	callq	_htonl
	movl	%eax, 16(%rbx)
	jmp	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	%r15d, 4(%rbx)
	movq	8(%rbx), %rax
	leal	255(%r15), %ecx
	testl	%r15d, %r15d
	cmovnsl	%r15d, %ecx
	andl	$-256, %ecx
	movl	%r15d, %edx
	subl	%ecx, %edx
	movl	%edx, 60(%rax)
	movl	%r15d, %ecx
	sarl	$8, %ecx
	leal	255(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	andl	$-256, %edx
	subl	%edx, %ecx
	movl	%ecx, 56(%rax)
	movl	%r15d, %ecx
	shrl	$16, %ecx
	leal	255(%rcx), %edx
	testw	%cx, %cx
	cmovnsl	%ecx, %edx
	andl	$-256, %edx
	subl	%edx, %ecx
	movswl	%cx, %ecx
	movl	%ecx, 52(%rax)
	movd	%r15d, %xmm0
	sarl	$24, %r15d
	movl	%r15d, 48(%rax)
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	psrad	$31, %xmm0
	movdqu	%xmm0, 32(%rax)
	movdqu	%xmm0, 16(%rax)
	movdqu	%xmm0, (%rax)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempt to '%s' %s with %s address\n"

L_.str.1:                               ## @.str.1
	.asciz	"ipv4"

L_.str.2:                               ## @.str.2
	.asciz	"ipv6"

	.no_dead_strip	_cidr_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cidr_parse
_cidr_parse:                            ; @cidr_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #0
	bl	_strtoul
	ldr	x8, [sp, #8]
	cmp	x8, x20
	b.ls	LBB0_2
; %bb.1:
	ldrb	w8, [x8]
	cbz	w8, LBB0_7
LBB0_2:
	mov	x0, x20
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_cidr_parse6
	mov	x20, x0
	cbnz	x0, LBB0_5
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_cidr_parse4
	mov	x20, x0
	cbz	x0, LBB0_6
LBB0_5:
	ldr	w8, [x20]
	cmp	w8, w19
	b.ne	LBB0_11
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_7:
	mov	x22, x0
	mov	w0, #24
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.8:
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_10
; %bb.9:
	stp	w19, w22, [x20]
	mov	x0, x22
	bl	_htonl
	str	w0, [x20, #16]
	b	LBB0_6
LBB0_10:
Lloh3:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w22, [x20]
	negs	w8, w22
	and	w8, w8, #0xff
	and	w9, w22, #0xff
	csneg	w8, w9, w8, mi
	asr	w9, w22, #8
	negs	w10, w9
	and	w10, w10, #0xff
	and	w9, w9, #0xff
	csneg	w9, w9, w10, mi
	ldr	x10, [x20, #8]
	stp	w9, w8, [x10, #56]
	lsr	w8, w22, #16
	asr	w9, w22, #16
	lsr	w9, w9, #23
	add	w9, w8, w9, uxtb
	and	w9, w9, #0xff00
	sub	w8, w8, w9
	sxth	w8, w8
	asr	w9, w22, #24
	stp	w9, w8, [x10, #48]
	asr	w8, w22, #31
	dup.4s	v0, w8
	stp	q0, q0, [x10, #16]
	str	q0, [x10]
	b	LBB0_6
LBB0_11:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _AF_INET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh11:
	adrp	x9, l_.str.2@PAGE
Lloh12:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x10, l_.str.1@PAGE
Lloh15:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, w19
	csel	x3, x10, x9, eq
	csel	x4, x9, x10, eq
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_fprintf
	mov	w0, #4
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempt to '%s' %s with %s address\n"

l_.str.1:                               ; @.str.1
	.asciz	"ipv4"

l_.str.2:                               ; @.str.2
	.asciz	"ipv6"

	.no_dead_strip	_cidr_parse
.subsections_via_symbols
