	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nb_name_encode                 ## -- Begin function nb_name_encode
	.p2align	4, 0x90
_nb_name_encode:                        ## @nb_name_encode
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_NB_ENCNAMELEN@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	leaq	1(%rsi), %rcx
	movq	%rcx, -48(%rbp)
	movb	%al, (%rsi)
	movq	(%rdi), %rbx
	movb	(%rbx), %al
	cmpb	$42, %al
	jne	LBB0_3
## %bb.1:
	cmpb	$0, 1(%rbx)
	je	LBB0_2
LBB0_3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_NB_NAMELEN@GOTPCREL(%rip), %r13
	cmpl	$2, (%r13)
	jl	LBB0_10
## %bb.4:
	movl	$1, %r14d
	leaq	-48(%rbp), %r12
	testb	%al, %al
	je	LBB0_6
	.p2align	4, 0x90
LBB0_7:
	movsbl	%al, %edi
	incq	%rbx
	callq	_toupper
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:
	movb	$32, %al
LBB0_8:
	movsbl	%al, %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_nb_char_encode
	movl	(%r13), %eax
	decl	%eax
	cmpl	%eax, %r14d
	jge	LBB0_10
## %bb.9:
	movb	(%rbx), %al
	incl	%r14d
	testb	%al, %al
	jne	LBB0_7
	jmp	LBB0_6
LBB0_10:
	movsbl	8(%r15), %esi
	leaq	-48(%rbp), %rdi
	movl	$1, %edx
	callq	_nb_char_encode
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_2:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$42, %esi
	movl	$1, %edx
	callq	_nb_char_encode
	movq	_NB_NAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	decl	%edx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_nb_char_encode
LBB0_11:
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	-48(%rbp), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, -48(%rbp)
	xorl	%edx, %edx
	movq	_NB_MAXLABLEN@GOTPCREL(%rip), %r8
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movb	%dl, (%rcx)
	movq	-48(%rbp), %rcx
	leaq	1(%rcx), %rdi
	movq	%rdi, -48(%rbp)
	movb	$0, (%rcx)
	cmpb	$0, (%rax)
	je	LBB0_16
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rax
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ebx
	cmpb	$46, %bl
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	testb	%bl, %bl
	je	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	(%r8), %edx
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-48(%rbp), %rdi
	leaq	1(%rdi), %rsi
	movq	%rsi, -48(%rbp)
	movb	%bl, (%rdi)
	incl	%edx
	jmp	LBB0_19
LBB0_16:
	movq	%r14, %rdi
	callq	_nb_encname_len
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NB_ENCNAMELEN,4,2              ## @NB_ENCNAMELEN
	.comm	_NB_NAMELEN,4,2                 ## @NB_NAMELEN
	.comm	_NB_MAXLABLEN,4,2               ## @NB_MAXLABLEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nb_name_encode                 ; -- Begin function nb_name_encode
	.p2align	2
_nb_name_encode:                        ; @nb_name_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NB_ENCNAMELEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NB_ENCNAMELEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x9, x1
	strb	w8, [x9], #1
	str	x9, [sp, #8]
	ldr	x21, [x0]
	ldrb	w8, [x21]
	cmp	w8, #42
	b.ne	LBB0_2
; %bb.1:
	ldrb	w9, [x21, #1]
	cbz	w9, LBB0_9
LBB0_2:
Lloh3:
	adrp	x22, _NB_NAMELEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NB_NAMELEN@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w9, #2
	b.lt	LBB0_8
; %bb.3:
	mov	w23, #1
	tst	w8, #0xff
	b.eq	LBB0_5
LBB0_4:
	sxtb	w0, w8
	add	x21, x21, #1
	bl	_toupper
	mov	x1, x0
	b	LBB0_6
LBB0_5:
	mov	w1, #32
LBB0_6:
	add	x0, sp, #8
	mov	w2, #1
	bl	_nb_char_encode
	ldr	w8, [x22]
	sub	w8, w8, #1
	cmp	w23, w8
	b.ge	LBB0_8
; %bb.7:
	ldrb	w8, [x21]
	add	w23, w23, #1
	tst	w8, #0xff
	b.ne	LBB0_4
	b	LBB0_5
LBB0_8:
	ldrsb	w1, [x20, #8]
	add	x0, sp, #8
	mov	w2, #1
	b	LBB0_10
LBB0_9:
	add	x0, sp, #8
	mov	w1, #42
	mov	w2, #1
	bl	_nb_char_encode
Lloh5:
	adrp	x8, _NB_NAMELEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NB_NAMELEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	sub	w2, w8, #1
	add	x0, sp, #8
	mov	w1, #32
LBB0_10:
	bl	_nb_char_encode
	ldr	x8, [sp, #8]
	strb	wzr, [x8]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_17
; %bb.11:
	mov	w9, #0
	ldr	x10, [sp, #8]
	add	x11, x10, #1
	str	x11, [sp, #8]
Lloh8:
	adrp	x11, _NB_MAXLABLEN@GOTPAGE
Lloh9:
	ldr	x11, [x11, _NB_MAXLABLEN@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	strb	w9, [x10]
	ldr	x10, [sp, #8]
	add	x12, x10, #1
	str	x12, [sp, #8]
	strb	wzr, [x10]
	ldrb	w12, [x8]
	cbz	w12, LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x8, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x8]
	cmp	w12, #46
	ccmp	w12, #0, #4, ne
	b.eq	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w13, [x11]
	cmp	w9, w13
	b.ge	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x13, [sp, #8]
	add	x14, x13, #1
	str	x14, [sp, #8]
	strb	w12, [x13]
	add	w9, w9, #1
	b	LBB0_13
LBB0_17:
	mov	x0, x19
	bl	_nb_encname_len
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NB_ENCNAMELEN,4,2              ; @NB_ENCNAMELEN
	.comm	_NB_NAMELEN,4,2                 ; @NB_NAMELEN
	.comm	_NB_MAXLABLEN,4,2               ; @NB_MAXLABLEN
.subsections_via_symbols
