	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getXMLCharset                  ## -- Begin function getXMLCharset
	.p2align	4, 0x90
_getXMLCharset:                         ## @getXMLCharset
	.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
	movb	$0, (%rsi)
	movq	%rdi, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_getTok
	movq	%rax, %rbx
	movq	-48(%rbp), %rsi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	callq	_matchkey
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcpy
	jmp	LBB0_3
LBB0_2:
	movq	-48(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_matchkey
	testq	%rax, %rax
	je	LBB0_43
LBB0_3:
	leaq	-48(%rbp), %rdi
	callq	_getTok
	testq	%rax, %rax
	je	LBB0_43
## %bb.4:
	cmpb	$47, (%rax)
	jne	LBB0_43
## %bb.5:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_getTok
	movq	%rbx, %rdi
	callq	_getTok
	testq	%rax, %rax
	je	LBB0_43
## %bb.6:
	movq	%rax, %r13
	leaq	-48(%rbp), %r15
	leaq	L_.str.3(%rip), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	testq	%r13, %r13
	je	LBB0_43
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13), %ebx
	movq	%r15, %rdi
	callq	_getTok
	movq	%rax, %r13
	cmpb	$59, %bl
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_matchkey
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	leaq	-48(%rbp), %rdi
	callq	_getTok
	testq	%rax, %rax
	je	LBB0_43
## %bb.11:
	cmpb	$61, (%rax)
	jne	LBB0_43
## %bb.12:
	leaq	-48(%rbp), %rdi
	callq	_getTok
	testq	%rax, %rax
	je	LBB0_43
## %bb.13:
	movb	(%rax), %bl
	movq	-48(%rbp), %r11
	cmpb	$34, %bl
	jne	LBB0_21
## %bb.14:
	decq	%r11
	movq	%rax, %rbx
	incq	%rbx
	cmpq	%r11, %rbx
	je	LBB0_28
## %bb.15:
	leaq	-1(%r14), %rsi
	movq	_CHARSET_MAX@GOTPCREL(%rip), %rdi
	movq	%r14, %rdx
	jmp	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%rbx, %rax
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	movzbl	(%rax), %ecx
	movb	%cl, (%rdx)
	incq	%rdx
	leaq	1(%rax), %rbx
	cmpq	%r11, %rbx
	je	LBB0_42
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rdi), %rcx
	addq	%rsi, %rcx
	cmpq	%rcx, %rdx
	je	LBB0_29
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpb	$92, (%rbx)
	jne	LBB0_16
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	addq	$2, %rax
	jmp	LBB0_17
LBB0_21:
	movq	%r11, %rcx
	subq	%rax, %rcx
	movq	_CHARSET_MAX@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	decq	%rdx
	cmpq	%rdx, %rcx
	jg	LBB0_43
## %bb.22:
	cmpq	%r11, %rax
	je	LBB0_28
## %bb.23:
	leaq	1(%rax), %rsi
	leaq	1(%r14), %rdx
	movb	%bl, (%r14)
	cmpq	%r11, %rsi
	je	LBB0_42
## %bb.24:
	movq	%rax, %r9
	notq	%r9
	addq	%r11, %r9
	cmpq	$32, %r9
	jb	LBB0_38
## %bb.25:
	movq	%r14, %rcx
	subq	%rax, %rcx
	cmpq	$32, %rcx
	jb	LBB0_38
## %bb.26:
	movq	%r9, %r8
	andq	$-32, %r8
	leaq	-32(%r8), %rcx
	movq	%rcx, %rbx
	shrq	$5, %rbx
	incq	%rbx
	movl	%ebx, %r10d
	andl	$3, %r10d
	cmpq	$96, %rcx
	jae	LBB0_31
## %bb.27:
	xorl	%edi, %edi
	jmp	LBB0_33
LBB0_28:
	movq	%r14, %rdx
	jmp	LBB0_42
LBB0_29:
	movb	$0, (%r14)
LBB0_42:
	movb	$0, (%rdx)
LBB0_43:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	andq	$-4, %rbx
	xorl	%edi, %edi
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movups	1(%rax,%rdi), %xmm0
	movups	17(%rax,%rdi), %xmm1
	movups	%xmm0, 1(%r14,%rdi)
	movups	%xmm1, 17(%r14,%rdi)
	movups	33(%rax,%rdi), %xmm0
	movups	49(%rax,%rdi), %xmm1
	movups	%xmm0, 33(%r14,%rdi)
	movups	%xmm1, 49(%r14,%rdi)
	movups	65(%rax,%rdi), %xmm0
	movups	81(%rax,%rdi), %xmm1
	movups	%xmm0, 65(%r14,%rdi)
	movups	%xmm1, 81(%r14,%rdi)
	movups	97(%rax,%rdi), %xmm0
	movups	113(%rax,%rdi), %xmm1
	movups	%xmm0, 97(%r14,%rdi)
	movups	%xmm1, 113(%r14,%rdi)
	subq	$-128, %rdi
	addq	$-4, %rbx
	jne	LBB0_32
LBB0_33:
	testq	%r10, %r10
	je	LBB0_36
## %bb.34:
	addq	%rdi, %rax
	addq	$17, %rax
	addq	%r14, %rdi
	addq	$17, %rdi
	shlq	$5, %r10
	xorl	%ebx, %ebx
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rax,%rbx), %xmm0
	movups	(%rax,%rbx), %xmm1
	movups	%xmm0, -16(%rdi,%rbx)
	movups	%xmm1, (%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r10
	jne	LBB0_35
LBB0_36:
	addq	%r8, %rdx
	cmpq	%r8, %r9
	je	LBB0_42
## %bb.37:
	addq	%r8, %rsi
LBB0_38:
	movl	%r11d, %edi
	subl	%esi, %edi
	movq	%rsi, %rax
	notq	%rax
	addq	%r11, %rax
	andq	$7, %rdi
	je	LBB0_40
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi), %ecx
	incq	%rsi
	movb	%cl, (%rdx)
	incq	%rdx
	decq	%rdi
	jne	LBB0_39
LBB0_40:
	cmpq	$7, %rax
	jb	LBB0_42
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi), %eax
	movb	%al, (%rdx)
	movzbl	1(%rsi), %eax
	movb	%al, 1(%rdx)
	movzbl	2(%rsi), %eax
	movb	%al, 2(%rdx)
	movzbl	3(%rsi), %eax
	movb	%al, 3(%rdx)
	movzbl	4(%rsi), %eax
	movb	%al, 4(%rdx)
	movzbl	5(%rsi), %eax
	movb	%al, 5(%rdx)
	movzbl	6(%rsi), %eax
	movb	%al, 6(%rdx)
	movzbl	7(%rsi), %eax
	movb	%al, 7(%rdx)
	addq	$8, %rdx
	addq	$8, %rsi
	cmpq	%r11, %rsi
	jne	LBB0_41
	jmp	LBB0_42
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"text"

L_.str.1:                               ## @.str.1
	.asciz	"us-ascii"

L_.str.2:                               ## @.str.2
	.asciz	"application"

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

	.comm	_CHARSET_MAX,4,2                ## @CHARSET_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getXMLCharset                  ; -- Begin function getXMLCharset
	.p2align	2
_getXMLCharset:                         ; @getXMLCharset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	strb	wzr, [x1]
	str	x0, [sp, #8]
	add	x0, sp, #8
	bl	_getTok
	mov	x20, x0
	ldr	x1, [sp, #8]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	bl	_matchkey
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcpy
	b	LBB0_3
LBB0_2:
	ldr	x1, [sp, #8]
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_matchkey
	cbz	x0, LBB0_30
LBB0_3:
	add	x0, sp, #8
	bl	_getTok
	cbz	x0, LBB0_30
; %bb.4:
	ldrb	w8, [x0]
	cmp	w8, #47
	b.ne	LBB0_30
; %bb.5:
	add	x0, sp, #8
	bl	_getTok
	add	x0, sp, #8
	bl	_getTok
	cbz	x0, LBB0_30
; %bb.6:
	mov	x20, x0
Lloh6:
	adrp	x21, l_.str.3@PAGE
Lloh7:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	cbz	x20, LBB0_30
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w22, [x20]
	add	x0, sp, #8
	bl	_getTok
	mov	x20, x0
	cmp	w22, #59
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_matchkey
	cbz	x0, LBB0_7
; %bb.10:
	add	x0, sp, #8
	bl	_getTok
	cbz	x0, LBB0_30
; %bb.11:
	ldrb	w8, [x0]
	cmp	w8, #61
	b.ne	LBB0_30
; %bb.12:
	add	x0, sp, #8
	bl	_getTok
	cbz	x0, LBB0_30
; %bb.13:
	ldrb	w11, [x0]
	ldr	x9, [sp, #8]
	cmp	w11, #34
	b.ne	LBB0_18
; %bb.14:
	sub	x9, x9, #1
	add	x10, x0, #1
	cmp	x10, x9
	b.eq	LBB0_27
; %bb.15:
	sub	x11, x19, #1
Lloh8:
	adrp	x12, _CHARSET_MAX@GOTPAGE
Lloh9:
	ldr	x12, [x12, _CHARSET_MAX@GOTPAGEOFF]
	mov	x8, x19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x13, [x12]
	add	x13, x11, x13
	cmp	x8, x13
	b.eq	LBB0_28
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldrb	w13, [x10]
	add	x14, x0, #2
	cmp	w13, #92
	csel	x0, x14, x10, eq
	mov	x10, x0
	ldrb	w13, [x10], #1
	strb	w13, [x8], #1
	cmp	x10, x9
	b.ne	LBB0_16
	b	LBB0_29
LBB0_18:
Lloh10:
	adrp	x8, _CHARSET_MAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CHARSET_MAX@GOTPAGEOFF]
Lloh12:
	ldrsw	x8, [x8]
	sub	x8, x8, #1
	sub	x10, x9, x0
	cmp	x10, x8
	b.gt	LBB0_30
; %bb.19:
	cmp	x0, x9
	b.eq	LBB0_27
; %bb.20:
	add	x10, x0, #1
	mov	x8, x19
	strb	w11, [x8], #1
	cmp	x10, x9
	b.eq	LBB0_29
; %bb.21:
	mvn	x11, x0
	add	x11, x11, x9
	cmp	x11, #64
	b.lo	LBB0_26
; %bb.22:
	sub	x12, x19, x0
	cmp	x12, #64
	b.lo	LBB0_26
; %bb.23:
	and	x12, x11, #0xffffffffffffffc0
	add	x8, x8, x12
	add	x10, x10, x12
	add	x13, x19, #33
	add	x14, x0, #33
	mov	x15, x12
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x14, #-32]
	ldp	q2, q3, [x14], #64
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x15, x15, #64
	b.ne	LBB0_24
; %bb.25:
	cmp	x11, x12
	b.eq	LBB0_29
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x10], #1
	strb	w11, [x8], #1
	cmp	x10, x9
	b.ne	LBB0_26
	b	LBB0_29
LBB0_27:
	mov	x8, x19
	b	LBB0_29
LBB0_28:
	strb	wzr, [x19]
LBB0_29:
	strb	wzr, [x8]
LBB0_30:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"text"

l_.str.1:                               ; @.str.1
	.asciz	"us-ascii"

l_.str.2:                               ; @.str.2
	.asciz	"application"

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

	.comm	_CHARSET_MAX,4,2                ; @CHARSET_MAX
.subsections_via_symbols
