	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_list_charmaps                  ## -- Begin function list_charmaps
	.p2align	4, 0x90
_list_charmaps:                         ## @list_charmaps
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_sl_init
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	xorl	%eax, %eax
	callq	_init_locales_list
	movq	_locales@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	(%r15), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r12
	incq	%r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sl_find
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sl_add
	jmp	LBB0_7
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_sl_find
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_strdup
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_sl_add
LBB0_10:
	movq	(%r14), %rdi
	movq	8(%r14), %rsi
	movq	_scmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$8, %edx
	callq	_qsort
	cmpq	$0, 8(%r14)
	je	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	leaq	L_.str.2(%rip), %r15
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r15, %rdi
	callq	_printf
	incq	%rbx
	cmpq	8(%r14), %rbx
	jb	LBB0_12
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not allocate memory"

	.comm	_locales,8,3                    ## @locales
L_.str.1:                               ## @.str.1
	.asciz	"US-ASCII"

	.comm	_scmp,4,2                       ## @scmp
L_.str.2:                               ## @.str.2
	.asciz	"%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_list_charmaps                  ; -- Begin function list_charmaps
	.p2align	2
_list_charmaps:                         ; @list_charmaps
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_sl_init
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	bl	_init_locales_list
Lloh2:
	adrp	x21, _locales@GOTPAGE
Lloh3:
	ldr	x21, [x21, _locales@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x8]
	cbz	x9, LBB0_8
; %bb.3:
	mov	x22, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldr	x8, [x21]
	ldr	x9, [x8]
	cmp	x22, x9
	b.hs	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	x0, [x8, x22, lsl #3]
	mov	w1, #46
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x0, #1
	mov	x0, x19
	mov	x1, x20
	bl	_sl_find
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_sl_add
	b	LBB0_4
LBB0_8:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sl_find
	cbnz	x0, LBB0_10
; %bb.9:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strdup
	mov	x1, x0
	mov	x0, x19
	bl	_sl_add
LBB0_10:
	ldp	x0, x1, [x19]
Lloh8:
	adrp	x8, _scmp@GOTPAGE
Lloh9:
	ldr	x8, [x8, _scmp@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	w2, #8
	bl	_qsort
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.11:
	mov	x21, #0
Lloh11:
	adrp	x20, l_.str.2@PAGE
Lloh12:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x1, [x8, x21, lsl #3]
	mov	x0, x20
	bl	_printf
	add	x21, x21, #1
	ldr	x8, [x19, #8]
	cmp	x21, x8
	b.lo	LBB0_12
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not allocate memory"

	.comm	_locales,8,3                    ; @locales
l_.str.1:                               ; @.str.1
	.asciz	"US-ASCII"

	.comm	_scmp,4,2                       ; @scmp
l_.str.2:                               ; @.str.2
	.asciz	"%s\n"

.subsections_via_symbols
