	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function canonical_charset_name
_canonical_charset_name:                ## @canonical_charset_name
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	cmpb	$0, (%rdi)
	je	LBB0_14
## %bb.3:
	movq	%rbx, %rdi
	callq	_strlen
	cmpl	$15, %eax
	jle	LBB0_4
LBB0_14:
	movq	%rbx, %r14
	jmp	LBB0_15
LBB0_1:
	xorl	%r14d, %r14d
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movq	%r14, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movb	(%rbx), %dl
	leaq	-48(%rbp), %rax
	testb	%dl, %dl
	je	LBB0_7
## %bb.5:
	leaq	1(%rbx), %rcx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	-97(%rdx), %esi
	leal	-32(%rdx), %edi
	cmpb	$26, %sil
	movzbl	%dl, %edx
	movzbl	%dil, %esi
	cmovael	%edx, %esi
	movb	%sil, (%rax)
	incq	%rax
	movzbl	(%rcx), %edx
	incq	%rcx
	testb	%dl, %dl
	jne	LBB0_6
LBB0_7:
	movb	$0, (%rax)
	leaq	L_.str(%rip), %r14
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	leaq	L_.str.2(%rip), %r14
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	leaq	L_.str.4(%rip), %r14
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	leaq	L_.str.6(%rip), %r14
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	cmoveq	%r14, %rbx
	jmp	LBB0_14
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UTF-8"

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

L_.str.2:                               ## @.str.2
	.asciz	"UTF-16BE"

L_.str.3:                               ## @.str.3
	.asciz	"UTF16BE"

L_.str.4:                               ## @.str.4
	.asciz	"UTF-16LE"

L_.str.5:                               ## @.str.5
	.asciz	"UTF16LE"

L_.str.6:                               ## @.str.6
	.asciz	"CP932"

	.no_dead_strip	_canonical_charset_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function canonical_charset_name
_canonical_charset_name:                ; @canonical_charset_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	x0, LBB0_18
; %bb.1:
	ldrb	w8, [x19]
	cbz	w8, LBB0_18
; %bb.2:
	mov	x0, x19
	bl	_strlen
	cmp	w0, #15
	b.gt	LBB0_18
; %bb.3:
	ldrb	w9, [x19]
	cbz	w9, LBB0_6
; %bb.4:
	add	x8, sp, #8
	add	x10, x19, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w11, w9, #97
	and	w11, w11, #0xff
	sub	w12, w9, #32
	cmp	w11, #26
	csel	w9, w12, w9, lo
	strb	w9, [x8], #1
	ldrb	w9, [x10], #1
	cbnz	w9, LBB0_5
	b	LBB0_7
LBB0_6:
	add	x8, sp, #8
LBB0_7:
	strb	wzr, [x8]
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x1, x20
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.8:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_strcmp
	cbz	x0, LBB0_15
; %bb.9:
Lloh7:
	adrp	x20, l_.str.2@PAGE
Lloh8:
	add	x20, x20, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	x1, x20
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.10:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_strcmp
	cbz	x0, LBB0_16
; %bb.11:
Lloh11:
	adrp	x20, l_.str.4@PAGE
Lloh12:
	add	x20, x20, l_.str.4@PAGEOFF
	add	x0, sp, #8
	mov	x1, x20
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.12:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #8
	bl	_strcmp
	cbz	x0, LBB0_17
; %bb.13:
Lloh15:
	adrp	x20, l_.str.6@PAGE
Lloh16:
	add	x20, x20, l_.str.6@PAGEOFF
	add	x0, sp, #8
	mov	x1, x20
	bl	_strcmp
	cmp	x0, #0
	csel	x19, x20, x19, eq
	b	LBB0_18
LBB0_14:
	mov	x19, x20
	b	LBB0_18
LBB0_15:
Lloh17:
	adrp	x19, l_.str@PAGE
Lloh18:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh19:
	adrp	x19, l_.str.2@PAGE
Lloh20:
	add	x19, x19, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh21:
	adrp	x19, l_.str.4@PAGE
Lloh22:
	add	x19, x19, l_.str.4@PAGEOFF
LBB0_18:
	ldr	x8, [sp, #24]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UTF-8"

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

l_.str.2:                               ; @.str.2
	.asciz	"UTF-16BE"

l_.str.3:                               ; @.str.3
	.asciz	"UTF16BE"

l_.str.4:                               ; @.str.4
	.asciz	"UTF-16LE"

l_.str.5:                               ; @.str.5
	.asciz	"UTF16LE"

l_.str.6:                               ; @.str.6
	.asciz	"CP932"

	.no_dead_strip	_canonical_charset_name
.subsections_via_symbols
