	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nat64lsn_parse_prefix
_nat64lsn_parse_prefix:                 ## @nat64lsn_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	%rcx, %r12
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_strdup
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_err
LBB0_2:
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r14
	incq	%r14
	movq	%r14, -48(%rbp)
	movb	$0, (%rax)
	jmp	LBB0_5
LBB0_4:
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_errx
LBB0_5:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_inet_pton
	cmpl	$1, %eax
	je	LBB0_7
## %bb.6:
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_errx
LBB0_7:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, (%r12)
	movq	-48(%rbp), %rcx
	cmpb	$0, (%rcx)
	jne	LBB0_13
## %bb.8:
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_11
## %bb.10:
	cmpq	$32, %rax
	jg	LBB0_13
LBB0_11:
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_14
## %bb.12:
	cmpq	$97, %rax
	jl	LBB0_14
LBB0_13:
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_errx
	movq	(%r12), %rax
LBB0_14:
	movl	%r15d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_nat64lsn_apply_mask
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.comm	_EX_USAGE,4,2                   ## @EX_USAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Prefix length required"

L_.str.1:                               ## @.str.1
	.asciz	"Bad prefix: %s"

	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_AF_INET6,4,2                   ## @AF_INET6
L_.str.2:                               ## @.str.2
	.asciz	"Bad prefix length: %s"

	.no_dead_strip	_nat64lsn_parse_prefix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nat64lsn_parse_prefix
_nat64lsn_parse_prefix:                 ; @nat64lsn_parse_prefix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	bl	_strdup
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_err
LBB0_2:
	mov	x0, x21
	mov	w1, #47
	bl	_strchr
	mov	x24, x0
	str	x0, [sp, #8]
Lloh3:
	adrp	x25, _EX_USAGE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _EX_USAGE@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.3:
	strb	wzr, [x24], #1
	str	x24, [sp, #8]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x25]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_inet_pton
	cmp	w0, #1
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x25]
	str	x21, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
LBB0_7:
	add	x1, sp, #8
	mov	x0, x24
	mov	w2, #10
	bl	_strtol
	str	x0, [x22]
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cmp	w8, #0
	ccmp	x0, #0, #4, eq
	b.eq	LBB0_12
; %bb.8:
	mov	x2, x0
Lloh9:
	adrp	x8, _AF_INET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_10
; %bb.9:
	cmp	x2, #32
	b.gt	LBB0_12
LBB0_10:
Lloh12:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_13
; %bb.11:
	cmp	x2, #97
	b.lt	LBB0_13
LBB0_12:
	ldr	w0, [x25]
	str	x23, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_errx
	ldr	x2, [x22]
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_nat64lsn_apply_mask
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.comm	_EX_USAGE,4,2                   ; @EX_USAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Prefix length required"

l_.str.1:                               ; @.str.1
	.asciz	"Bad prefix: %s"

	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_AF_INET6,4,2                   ; @AF_INET6
l_.str.2:                               ; @.str.2
	.asciz	"Bad prefix length: %s"

	.no_dead_strip	_nat64lsn_parse_prefix
.subsections_via_symbols
