	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ns_name_pton2                  ## -- Begin function ns_name_pton2
	.p2align	4, 0x90
_ns_name_pton2:                         ## @ns_name_pton2
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	leaq	(%rsi,%rdx,4), %rbx
	leaq	4(%rsi), %rdx
	movq	%rdx, -48(%rbp)
	movq	%rsi, -72(%rbp)
	leaq	1(%rdi), %r13
	movq	%r13, -56(%rbp)
	movb	(%rdi), %cl
	testb	%cl, %cl
	je	LBB0_27
## %bb.1:
	movq	%rdi, %r12
	movb	$1, %al
	movq	%r15, %rsi
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %r12
	incq	%r13
	movq	%r13, -56(%rbp)
	movzbl	(%r12), %ecx
	testb	%cl, %cl
	je	LBB0_28
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%cl, %r14d
	testb	$1, %al
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$92, %cl
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$46, %cl
	jne	LBB0_23
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdx, %rax
	subq	%rsi, %rax
	shrq	$2, %rax
	decl	%eax
	movq	_NS_CMPRSFLGS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_37
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rbx, %rsi
	jae	LBB0_37
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, (%rsi)
	movzbl	(%r13), %ecx
	testb	%cl, %cl
	je	LBB0_44
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	je	LBB0_37
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$46, %cl
	je	LBB0_37
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdx, -72(%rbp)
	movq	%rdx, %rsi
	leaq	4(%rdx), %rcx
	movq	%rcx, -48(%rbp)
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$91, %cl
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movl	$93, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_41
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rax
	leaq	-56(%rbp), %rdi
	movq	%rax, %rsi
	leaq	-72(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %r8
	callq	_encode_bitsring
	testl	%eax, %eax
	jne	LBB0_39
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rsi
	leaq	4(%rsi), %rdx
	movq	%rdx, -48(%rbp)
	movq	%rsi, -72(%rbp)
	movq	-56(%rbp), %rax
	leaq	1(%rax), %r13
	movq	%r13, -56(%rbp)
	movzbl	(%rax), %ecx
	movb	$1, %al
	cmpb	$46, %cl
	je	LBB0_3
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	_digits@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, %rbx
	movl	%r14d, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_26
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	2(%r12), %rax
	movq	%rax, -56(%rbp)
	movsbl	(%r13), %esi
	testl	%esi, %esi
	je	LBB0_37
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_37
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	3(%r12), %r13
	movq	%r13, -56(%rbp)
	movsbl	2(%r12), %esi
	testl	%esi, %esi
	je	LBB0_37
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_37
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r14
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	subq	%rbx, %rcx
	movabsq	$429496729600, %rax             ## imm = 0x6400000000
	imulq	%rax, %rcx
	subq	%rbx, %r15
	leaq	(%r15,%r15,4), %rax
	shlq	$33, %rax
	addq	%rcx, %rax
	shrq	$32, %rax
	subl	%ebx, %eax
	addl	%eax, %r14d
	cmpl	$256, %r14d                     ## imm = 0x100
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	jge	LBB0_37
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rbx, %rdx
	jae	LBB0_37
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	4(%rdx), %rcx
	movq	%rcx, -48(%rbp)
	movl	%r14d, (%rdx)
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movb	$1, %al
	movq	%rcx, %rdx
	jmp	LBB0_3
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rbx, %rdx
	jb	LBB0_24
	jmp	LBB0_37
LBB0_27:
	movq	%r15, %rsi
LBB0_28:
	movq	%rdx, %rax
	subq	%rsi, %rax
	shrq	$2, %rax
	decl	%eax
	movq	_NS_CMPRSFLGS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_37
## %bb.29:
	cmpq	%rbx, %rsi
	jae	LBB0_37
## %bb.30:
	movl	%eax, (%rsi)
	testl	%eax, %eax
	je	LBB0_36
## %bb.31:
	cmpq	%rbx, %rdx
	jae	LBB0_37
## %bb.32:
	movq	%rdx, %rsi
	leaq	4(%rdx), %rax
	movq	%rax, -48(%rbp)
	movq	%rax, %rdx
	jmp	LBB0_35
LBB0_33:
	testb	%cl, %cl
	jne	LBB0_41
## %bb.34:
	cmpq	%rbx, %rsi
	jae	LBB0_37
LBB0_35:
	movl	$0, (%rsi)
LBB0_36:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	subq	%r15, %rdx
	sarq	$2, %rdx
	movq	_MAXCDNAME@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	LBB0_42
LBB0_37:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
LBB0_38:
	movl	(%rax), %eax
LBB0_39:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_40:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_38
LBB0_42:
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_40
LBB0_43:
	movq	%rdx, (%rcx)
	jmp	LBB0_40
LBB0_44:
	testl	%eax, %eax
	je	LBB0_47
## %bb.45:
	cmpq	%rbx, %rdx
	jae	LBB0_37
## %bb.46:
	leaq	4(%rdx), %rax
	movq	%rax, -48(%rbp)
	movl	$0, (%rdx)
	movq	%rax, %rdx
LBB0_47:
	subq	%r15, %rdx
	sarq	$2, %rdx
	movq	_MAXCDNAME@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jg	LBB0_37
## %bb.48:
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_43
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_digits,8,3                     ## @digits
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_NS_CMPRSFLGS,4,2               ## @NS_CMPRSFLGS
	.comm	_MAXCDNAME,4,2                  ## @MAXCDNAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ns_name_pton2                  ; -- Begin function ns_name_pton2
	.p2align	2
_ns_name_pton2:                         ; @ns_name_pton2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	add	x21, x1, x2, lsl #2
	add	x27, x1, #4
	stp	x3, x27, [sp]                   ; 8-byte Folded Spill
	mov	x22, x0
	ldrb	w9, [x22], #1
	stp	x1, x22, [sp, #16]
Lloh0:
	adrp	x28, _NS_CMPRSFLGS@GOTPAGE
Lloh1:
	ldr	x28, [x28, _NS_CMPRSFLGS@GOTPAGEOFF]
	cbz	w9, LBB0_27
; %bb.1:
	mov	x23, x0
	mov	w8, #1
	mov	x20, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w25, w9
	tbz	w8, #0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, #92
	b.eq	LBB0_26
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w8, w25, #0xff
	cmp	w8, #46
	b.ne	LBB0_21
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x8, x27, x20
	lsr	x8, x8, #2
	sub	w8, w8, #1
	ldr	w9, [x28]
	tst	w8, w9
	b.ne	LBB0_37
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x20, x21
	b.hs	LBB0_37
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w8, [x20]
	ldrb	w9, [x22]
	cbz	w9, LBB0_45
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w8, LBB0_37
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w9, #46
	b.eq	LBB0_37
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	str	x27, [sp, #16]
	mov	x20, x27
	add	x27, x27, #4
	b	LBB0_23
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, #91
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	w1, #93
	bl	_strchr
	cbz	x0, LBB0_41
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x1, x0, #2
	add	x0, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x4, x21
	bl	_encode_bitsring
	cbnz	w0, LBB0_44
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [sp, #8]
	add	x27, x20, #4
	stp	x27, x20, [sp, #8]
	ldr	x8, [sp, #24]
	add	x22, x8, #1
	str	x22, [sp, #24]
	ldrb	w8, [x8]
	cmp	w8, #46
	b.eq	LBB0_24
	b	LBB0_33
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh2:
	adrp	x8, _digits@GOTPAGE
Lloh3:
	ldr	x8, [x8, _digits@GOTPAGEOFF]
Lloh4:
	ldr	x24, [x8]
	mov	x0, x24
	mov	x1, x25
	bl	_strchr
	cbz	x0, LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x23, #2
	str	x8, [sp, #24]
	ldrsb	w1, [x22]
	cbz	w1, LBB0_37
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, x0
	mov	x0, x24
	bl	_strchr
	cbz	x0, LBB0_37
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x23, #3
	str	x22, [sp, #24]
	ldrsb	w1, [x23, #2]
	cbz	w1, LBB0_37
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x0
	mov	x0, x24
	bl	_strchr
	cbz	x0, LBB0_37
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x8, x26, x24
	sub	x9, x25, x24
	mov	x10, #429496729600
	mul	x8, x8, x10
	mov	x10, #42949672960
	madd	x8, x9, x10, x8
	lsr	x8, x8, #32
	sub	w8, w8, w24
	add	w25, w8, w0
	cmp	w25, #256
	b.ge	LBB0_37
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x27, x21
	b.hs	LBB0_37
; %bb.22:                               ;   in Loop: Header=BB0_2 Depth=1
	str	w25, [x27], #4
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x27, [sp, #8]
LBB0_24:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x22
	add	x22, x22, #1
	str	x22, [sp, #24]
	ldrb	w9, [x23]
	cbnz	w9, LBB0_2
	b	LBB0_28
LBB0_26:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #0
	b	LBB0_25
LBB0_27:
	mov	x20, x19
LBB0_28:
	sub	x8, x27, x20
	lsr	x8, x8, #2
	sub	w8, w8, #1
	ldr	w9, [x28]
	tst	w8, w9
	b.ne	LBB0_37
; %bb.29:
	cmp	x20, x21
	b.hs	LBB0_37
; %bb.30:
	str	w8, [x20]
	cbz	w8, LBB0_36
; %bb.31:
	cmp	x27, x21
	b.hs	LBB0_37
; %bb.32:
	mov	x20, x27
	add	x27, x27, #4
	str	x27, [sp, #8]
	b	LBB0_35
LBB0_33:
	cbnz	w8, LBB0_41
; %bb.34:
	cmp	x20, x21
	b.hs	LBB0_37
LBB0_35:
	str	wzr, [x20]
LBB0_36:
	sub	x8, x27, x19
	asr	x8, x8, #2
Lloh5:
	adrp	x9, _MAXCDNAME@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAXCDNAME@GOTPAGEOFF]
Lloh7:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_42
LBB0_37:
Lloh8:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
LBB0_38:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _errno@GOTPAGE
Lloh11:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
LBB0_39:
	mov	w0, #-1
LBB0_40:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_41:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_38
LBB0_42:
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	cbz	x9, LBB0_51
; %bb.43:
	mov	w0, #0
	str	x8, [x9]
	b	LBB0_40
LBB0_44:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	str	w0, [x8]
	b	LBB0_39
LBB0_45:
	cbz	w8, LBB0_48
; %bb.46:
	cmp	x27, x21
	b.hs	LBB0_37
; %bb.47:
	str	wzr, [x27], #4
	str	x27, [sp, #8]
LBB0_48:
	sub	x8, x27, x19
	asr	x8, x8, #2
Lloh18:
	adrp	x9, _MAXCDNAME@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MAXCDNAME@GOTPAGEOFF]
Lloh20:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_37
; %bb.49:
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	cbz	x9, LBB0_52
; %bb.50:
	str	x8, [x9]
	mov	w0, #1
	b	LBB0_40
LBB0_51:
	mov	w0, #0
	b	LBB0_40
LBB0_52:
	mov	w0, #1
	b	LBB0_40
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_digits,8,3                     ; @digits
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_NS_CMPRSFLGS,4,2               ; @NS_CMPRSFLGS
	.comm	_MAXCDNAME,4,2                  ; @MAXCDNAME
.subsections_via_symbols
