	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__nl_normalize_codeset          ## -- Begin function _nl_normalize_codeset
	.p2align	4, 0x90
__nl_normalize_codeset:                 ## @_nl_normalize_codeset
	.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
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	$1, %r12d
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	cmpq	%r15, %r14
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%r15), %edi
	callq	_isalnum
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movzbl	(%r13,%r15), %edi
	callq	_isalpha
	testq	%rax, %rax
	movl	$0, %eax
	cmovnel	%eax, %r12d
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	xorl	%eax, %eax
	testl	%r12d, %r12d
	setne	%al
	leal	(%rax,%rax,2), %eax
	leal	(%rbx,%rax), %edi
	incl	%edi
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_19
## %bb.7:
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.9:
	movq	%r15, %r12
	addq	$3, %r12
	movl	$7304041, (%r15)                ## imm = 0x6F7369
	testq	%r14, %r14
	jne	LBB0_11
	jmp	LBB0_18
LBB0_8:
	movq	%r15, %r12
	testq	%r14, %r14
	je	LBB0_18
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	callq	_tolower
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movb	%al, (%r12)
	incq	%r12
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_18
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%rbx), %edi
	callq	_isalpha
	movzbl	(%r13,%rbx), %ecx
	movzbl	%cl, %edi
	testq	%rax, %rax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movzbl	(%r13,%rbx), %eax
	jmp	LBB0_16
LBB0_18:
	movb	$0, (%r12)
LBB0_19:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__nl_normalize_codeset          ; -- Begin function _nl_normalize_codeset
	.p2align	2
__nl_normalize_codeset:                 ; @_nl_normalize_codeset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
	mov	w22, #1
	cbz	x1, LBB0_5
; %bb.1:
	mov	x23, x20
	mov	x24, x19
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	subs	x24, x24, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x23]
	bl	_isalnum
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrb	w0, [x23]
	bl	_isalpha
	cmp	x0, #0
	csel	w22, w22, wzr, eq
	b	LBB0_2
LBB0_5:
	mov	w8, #3
	cmp	w22, #0
	csel	w8, wzr, w8, eq
	add	w8, w8, w21
	add	w0, w8, #1
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_10
; %bb.6:
	cbz	w22, LBB0_8
; %bb.7:
	mov	w8, #29545
	movk	w8, #111, lsl #16
	mov	x22, x21
	str	w8, [x22], #3
	cbnz	x19, LBB0_14
	b	LBB0_9
LBB0_8:
	mov	x22, x21
	cbnz	x19, LBB0_14
LBB0_9:
	strb	wzr, [x22]
LBB0_10:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_tolower
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	strb	w0, [x22], #1
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x20, x20, #1
	subs	x19, x19, #1
	b.eq	LBB0_9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x20]
	bl	_isalpha
	mov	x8, x0
	ldrb	w0, [x20]
	cbnz	x8, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_isdigit
	cbz	x0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldrb	w0, [x20]
	b	LBB0_12
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
