	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_charset_aliases
_get_charset_aliases:                   ## @get_charset_aliases
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_charset_aliases@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	testq	%r15, %r15
	jne	LBB0_38
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r15
	cmpb	$0, (%rax)
	jne	LBB0_4
LBB0_3:
	movq	_LIBDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_relocate
	movq	%rax, %r15
LBB0_4:
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movsbl	-1(%rbx,%r15), %edi
	callq	_ISSLASH
	testl	%eax, %eax
	sete	%al
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	movzbl	%al, %r14d
	leaq	(%rbx,%r14), %rdi
	addq	$14, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:
	movq	_DIRECTORY_SEPARATOR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%r13,%rbx)
LBB0_11:
	movq	%r13, %rdi
	addq	%rbx, %rdi
	addq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$14, %edx
	callq	_memcpy
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_HAVE_WORKING_O_NOFOLLOW@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	$0, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	_O_NOFOLLOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_13:
	orl	(%rax), %esi
	movq	%r13, %rdi
	callq	_open
	leaq	L_.str.2(%rip), %r15
	testl	%eax, %eax
	js	LBB0_36
## %bb.14:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_fdopen
	testq	%rax, %rax
	je	LBB0_40
## %bb.15:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_getc
                                        ## kill: def $eax killed $eax def $rax
	movq	_EOF@GOTPCREL(%rip), %r14
	xorl	%ecx, %ecx
	movq	%rcx, -192(%rbp)                ## 8-byte Spill
	movl	$0, %ecx
	movq	%rcx, -184(%rbp)                ## 8-byte Spill
	cmpl	(%r14), %eax
	jne	LBB0_16
LBB0_34:
	movq	%rbx, %rdi
	callq	_fclose
	movq	-192(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %r15
	je	LBB0_36
## %bb.35:
	movq	-184(%rbp), %r15                ## 8-byte Reload
	movb	$0, (%r15,%rax)
	jmp	LBB0_36
LBB0_8:
	leaq	L_.str.2(%rip), %r15
	jmp	LBB0_37
LBB0_40:
	movl	%r14d, %edi
	callq	_close
	leaq	L_.str.2(%rip), %r15
LBB0_36:
	movq	%r13, %rdi
	callq	_free
LBB0_37:
	movq	%r15, (%r12)
LBB0_38:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.39:
	movq	%r15, %rax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%ecx, %ecx
	movq	%rcx, -184(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -192(%rbp)                ## 8-byte Spill
	movq	%r13, -200(%rbp)                ## 8-byte Spill
	jmp	LBB0_17
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	cmpl	%ecx, %eax
	je	LBB0_34
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rbx, %rdi
	callq	_getc
                                        ## kill: def $eax killed $eax def $rax
	cmpl	(%r14), %eax
	je	LBB0_34
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	leal	-9(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_33
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	$32, %eax
	je	LBB0_33
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	$35, %eax
	jne	LBB0_23
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_getc
	movl	(%r14), %ecx
	cmpl	$10, %eax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	cmpl	%ecx, %eax
	jne	LBB0_20
	jmp	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	leaq	-176(%rbp), %r15
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_ungetc
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	leaq	-112(%rbp), %r12
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_fscanf
	cmpl	$2, %eax
	jl	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r13
	movq	-192(%rbp), %rcx                ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=1
	leaq	(%r12,%r13), %rax
	leaq	(%rcx,%rax), %r15
	addq	$2, %r15
	leaq	(%rcx,%rax), %rsi
	addq	$3, %rsi
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	callq	_realloc
	jmp	LBB0_28
LBB0_26:                                ##   in Loop: Header=BB0_17 Depth=1
	leaq	(%r12,%r13), %r15
	addq	$2, %r15
	leaq	(%r12,%r13), %rdi
	addq	$3, %rdi
	callq	_malloc
LBB0_28:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, %rcx
	testq	%rax, %rax
	je	LBB0_29
## %bb.32:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %r15
	movq	%rcx, -192(%rbp)                ## 8-byte Spill
	addq	%rcx, %rax
	notq	%r13
	addq	%rax, %r13
	notq	%r12
	addq	%r13, %r12
	movq	%r12, %rdi
	leaq	-112(%rbp), %rsi
	callq	_strcpy
	movq	%r13, %rdi
	leaq	-176(%rbp), %rsi
	callq	_strcpy
	movq	%r15, -184(%rbp)                ## 8-byte Spill
	movq	_charset_aliases@GOTPCREL(%rip), %r12
	movq	-200(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_33
LBB0_24:
	movq	_charset_aliases@GOTPCREL(%rip), %r12
	jmp	LBB0_34
LBB0_29:
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	movq	_charset_aliases@GOTPCREL(%rip), %r12
	movq	-200(%rbp), %r13                ## 8-byte Reload
	je	LBB0_30
## %bb.31:
	callq	_free
LBB0_30:
	xorl	%eax, %eax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	jmp	LBB0_34
LBB0_41:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_charset_aliases,8,3            ## @charset_aliases
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"charset.alias"

L_.str.1:                               ## @.str.1
	.asciz	"CHARSETALIASDIR"

	.comm	_LIBDIR,4,2                     ## @LIBDIR
	.comm	_DIRECTORY_SEPARATOR,1,0        ## @DIRECTORY_SEPARATOR
L_.str.2:                               ## @.str.2
	.space	1

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_HAVE_WORKING_O_NOFOLLOW,8,3    ## @HAVE_WORKING_O_NOFOLLOW
	.comm	_O_NOFOLLOW,4,2                 ## @O_NOFOLLOW
L_.str.3:                               ## @.str.3
	.asciz	"r"

	.comm	_EOF,4,2                        ## @EOF
L_.str.4:                               ## @.str.4
	.asciz	"%50s %50s"

	.no_dead_strip	_get_charset_aliases
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_charset_aliases
_get_charset_aliases:                   ; @get_charset_aliases
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x26, _charset_aliases@GOTPAGE
Lloh4:
	ldr	x26, [x26, _charset_aliases@GOTPAGEOFF]
	ldr	x20, [x26]
	cbnz	x20, LBB0_21
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_3
; %bb.2:
	mov	x20, x0
	ldrb	w8, [x0]
	cbnz	w8, LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _LIBDIR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LIBDIR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_relocate
	mov	x20, x0
LBB0_4:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.5:
	add	x8, x21, x20
	ldursb	w0, [x8, #-1]
	bl	_ISSLASH
	cmp	w0, #0
	cset	w8, eq
	b	LBB0_7
LBB0_6:
	mov	w8, #0
LBB0_7:
	mov	w22, w8
	add	x8, x21, x22
	add	x0, x8, #14
	bl	_malloc
	cbz	x0, LBB0_16
; %bb.8:
	mov	x19, x0
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	cbz	x22, LBB0_10
; %bb.9:
Lloh10:
	adrp	x8, _DIRECTORY_SEPARATOR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DIRECTORY_SEPARATOR@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x19, x21]
LBB0_10:
	add	x8, x19, x21
	add	x0, x8, x22
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #14
	bl	_memcpy
Lloh14:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _HAVE_WORKING_O_NOFOLLOW@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HAVE_WORKING_O_NOFOLLOW@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	adrp	x10, _O_NOFOLLOW@GOTPAGE
Lloh21:
	ldr	x10, [x10, _O_NOFOLLOW@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w1, w9, w8
	mov	x0, x19
	bl	_open
	tbnz	w0, #31, LBB0_18
; %bb.11:
	mov	x20, x0
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fdopen
	cbz	x0, LBB0_17
; %bb.12:
	mov	x21, x0
	bl	_getc
Lloh25:
	adrp	x28, _EOF@GOTPAGE
Lloh26:
	ldr	x28, [x28, _EOF@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w0, w8
	b.ne	LBB0_23
LBB0_13:
	mov	x27, #0
	mov	x20, #0
LBB0_14:
	mov	x0, x21
	bl	_fclose
	cbz	x27, LBB0_18
; %bb.15:
	strb	wzr, [x20, x27]
	b	LBB0_19
LBB0_16:
Lloh27:
	adrp	x20, l_.str.2@PAGE
Lloh28:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_17:
	mov	x0, x20
	bl	_close
LBB0_18:
Lloh29:
	adrp	x20, l_.str.2@PAGE
Lloh30:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_free
LBB0_20:
	str	x20, [x26]
LBB0_21:
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_39
; %bb.22:
	mov	x0, x20
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_23:
	mov	x20, #0
	mov	x27, #0
Lloh34:
	adrp	x22, l_.str.4@PAGE
Lloh35:
	add	x22, x22, l_.str.4@PAGEOFF
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=1
	cmp	w0, w8
	b.eq	LBB0_14
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	mov	x0, x21
	bl	_getc
	ldr	w8, [x28]
	cmp	w0, w8
	b.eq	LBB0_14
LBB0_26:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
	sub	w8, w0, #9
	cmp	w8, #2
	b.lo	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	cmp	w0, #32
	b.eq	LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=1
	cmp	w0, #35
	b.ne	LBB0_31
LBB0_29:                                ;   Parent Loop BB0_26 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_getc
	ldr	w8, [x28]
	cmp	w0, #10
	b.eq	LBB0_24
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	cmp	w0, w8
	b.ne	LBB0_29
	b	LBB0_24
LBB0_31:                                ;   in Loop: Header=BB0_26 Depth=1
	mov	x1, x21
	bl	_ungetc
	add	x2, sp, #53
	add	x3, sp, #2
	mov	x0, x21
	mov	x1, x22
	bl	_fscanf
	cmp	w0, #2
	b.lt	LBB0_14
; %bb.32:                               ;   in Loop: Header=BB0_26 Depth=1
	add	x0, sp, #53
	bl	_strlen
	mov	x23, x0
	add	x0, sp, #2
	bl	_strlen
	mov	x24, x0
	cbz	x27, LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_26 Depth=1
	add	x8, x24, x23
	add	x8, x8, x27
	add	x27, x8, #2
	add	x1, x8, #3
	mov	x0, x20
	bl	_realloc
	mov	x25, x0
	cbnz	x0, LBB0_35
	b	LBB0_36
LBB0_34:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x8, x23, x24
	add	x27, x8, #2
	add	x0, x8, #3
	bl	_malloc
	mov	x25, x0
	cbz	x0, LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_26 Depth=1
	mvn	x8, x24
	add	x9, x25, x27
	add	x20, x9, x8
	mvn	x8, x23
	add	x0, x20, x8
	add	x1, sp, #53
	bl	_strcpy
	add	x1, sp, #2
	mov	x0, x20
	bl	_strcpy
	mov	x20, x25
	b	LBB0_25
LBB0_36:
	cbz	x20, LBB0_38
; %bb.37:
	mov	x0, x20
	bl	_free
	b	LBB0_13
LBB0_38:
	mov	x27, #0
	b	LBB0_14
LBB0_39:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_charset_aliases,8,3            ; @charset_aliases
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"charset.alias"

l_.str.1:                               ; @.str.1
	.asciz	"CHARSETALIASDIR"

	.comm	_LIBDIR,4,2                     ; @LIBDIR
	.comm	_DIRECTORY_SEPARATOR,1,0        ; @DIRECTORY_SEPARATOR
l_.str.2:                               ; @.str.2
	.space	1

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_HAVE_WORKING_O_NOFOLLOW,8,3    ; @HAVE_WORKING_O_NOFOLLOW
	.comm	_O_NOFOLLOW,4,2                 ; @O_NOFOLLOW
l_.str.3:                               ; @.str.3
	.asciz	"r"

	.comm	_EOF,4,2                        ; @EOF
l_.str.4:                               ; @.str.4
	.asciz	"%50s %50s"

	.no_dead_strip	_get_charset_aliases
.subsections_via_symbols
