	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ns_name_ntol                   ## -- Begin function ns_name_ntol
	.p2align	4, 0x90
_ns_name_ntol:                          ## @ns_name_ntol
	.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
	testq	%rdx, %rdx
	jle	LBB0_15
## %bb.1:
	movq	%rdi, %r12
	movl	(%rdi), %eax
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	testl	%eax, %eax
	je	LBB0_13
## %bb.2:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	leaq	(%r15,%rdx,4), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	%eax, %ecx
	notl	%ecx
	movq	_NS_CMPRSFLGS@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, (%r15)
	movq	%r12, %rdi
	callq	_labellen
	testl	%eax, %eax
	js	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r13d
	movl	%eax, %eax
	leaq	(%r15,%rax,4), %rax
	addq	$4, %rax
	cmpq	%r14, %rax
	jae	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %r15
	addq	$4, %r12
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	%ebx, (%r15)
	addq	$4, %r15
	addq	$4, %r12
	decl	%r13d
	cmpl	$1, %r13d
	jle	LBB0_3
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12), %ebx
	movl	%ebx, %edi
	callq	_isascii
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	%ebx, %edi
	callq	_isupper
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	%ebx, %edi
	callq	_tolower
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_15:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %r15d
	jmp	LBB0_14
LBB0_13:
	movl	$0, (%r15)
	subq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	addq	$4, %r15
	shrq	$2, %r15
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_errno,4,2                      ## @errno
	.comm	_NS_CMPRSFLGS,4,2               ## @NS_CMPRSFLGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ns_name_ntol                   ; -- Begin function ns_name_ntol
	.p2align	2
_ns_name_ntol:                          ; @ns_name_ntol
	.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
	cmp	x2, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	mov	x22, x1
	cbz	w8, LBB0_14
; %bb.2:
	add	x23, x19, x2, lsl #2
Lloh0:
	adrp	x24, _NS_CMPRSFLGS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NS_CMPRSFLGS@GOTPAGEOFF]
	mov	x22, x19
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	cbz	w8, LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w9, [x24]
	bics	wzr, w9, w8
	b.eq	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [x22]
	mov	x0, x20
	bl	_labellen
	tbnz	w0, #31, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #4
	add	x8, x22, w0, uxtw #2
	cmp	x8, x23
	b.hs	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #4
	cbz	w0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w0, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	str	w21, [x22], #4
	add	x20, x20, #4
	sub	w25, w25, #1
	cmp	w25, #1
	b.le	LBB0_3
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w21, [x20]
	mov	x0, x21
	bl	_isascii
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x21
	bl	_isupper
	cbz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x21
	bl	_tolower
	mov	x21, x0
	b	LBB0_9
LBB0_13:
Lloh2:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
	mov	w0, #-1
	b	LBB0_15
LBB0_14:
	str	wzr, [x22]
	sub	x8, x22, x19
	add	x8, x8, #4
	lsr	x0, x8, #2
LBB0_15:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_errno,4,2                      ; @errno
	.comm	_NS_CMPRSFLGS,4,2               ; @NS_CMPRSFLGS
.subsections_via_symbols
