	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmlescape
_xmlescape:                             ## @xmlescape
	.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	%rdi, %rbx
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,2), %eax
	movl	%eax, %r13d
	shrl	$31, %r13d
	addl	%eax, %r13d
	sarl	%r13d
	leal	7(%r13), %esi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_av_realloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, %r12
	movb	(%rbx), %cl
	testb	%cl, %cl
	je	LBB0_19
## %bb.2:
	addl	$6, %r13d
	incq	%rbx
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r14d, %rax
	incl	%r14d
	movb	%cl, (%r12,%rax)
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %r15d
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%rbx), %ecx
	incq	%rbx
	movl	%r15d, %r14d
	testb	%cl, %cl
	je	LBB0_19
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	6(%r14), %r15d
	cmpl	%r13d, %r15d
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	7(%r13,%r13), %esi
	movq	%r12, %rdi
	callq	_av_realloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%r13d, %r13d
	addl	$6, %r13d
	movzbl	-1(%rbx), %ecx
	movq	%rax, %r12
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	-34(%rcx), %eax
	cmpb	$28, %al
	ja	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r14d, %rdi
	addq	%r12, %rdi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r14d, %rdi
	addq	%r12, %rdi
	leaq	L_.str.3(%rip), %rsi
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$6, %edx
	callq	_memcpy
	jmp	LBB0_18
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r14d, %rdi
	addq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$5, %edx
	callq	_memcpy
	addl	$5, %r14d
	jmp	LBB0_17
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r14d, %rdi
	addq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r14d, %rdi
	addq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$4, %edx
	callq	_memcpy
	addl	$4, %r14d
	jmp	LBB0_17
LBB0_19:
	movslq	%r15d, %rax
	movb	$0, (%r12,%rax)
	movq	%r12, %r15
	jmp	LBB0_20
LBB0_5:
	movq	%r12, %rdi
	callq	_av_free
	xorl	%r15d, %r15d
LBB0_20:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_10
	.long	L0_0_set_16
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"&amp;"

L_.str.1:                               ## @.str.1
	.asciz	"&lt;"

L_.str.2:                               ## @.str.2
	.asciz	"&gt;"

L_.str.3:                               ## @.str.3
	.asciz	"&apos;"

L_.str.4:                               ## @.str.4
	.asciz	"&quot;"

	.no_dead_strip	_xmlescape
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmlescape
_xmlescape:                             ; @xmlescape
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
	bl	_strlen
	add	w8, w0, w0, lsl #1
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w21, w8, #1
	add	w1, w21, #7
	mov	x0, #0
	bl	_av_realloc
	mov	x19, x0
	cbz	x0, LBB0_20
; %bb.1:
	ldrb	w8, [x20]
	cbz	w8, LBB0_17
; %bb.2:
	mov	w28, #0
	add	w27, w21, #6
	add	x25, x20, #1
Lloh0:
	adrp	x26, lJTI0_0@PAGE
Lloh1:
	add	x26, x26, lJTI0_0@PAGEOFF
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x22, l_.str.3@PAGE
Lloh5:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh8:
	adrp	x24, l_.str.2@PAGE
Lloh9:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w28, #1
	strb	w8, [x19, w28, sxtw]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x25], #1
	mov	x28, x20
	cbz	w8, LBB0_18
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w28, #6
	cmp	w20, w27
	b.le	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	w27, w27, #1
	add	w1, w27, #7
	mov	x0, x19
	bl	_av_realloc
	cbz	x0, LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w27, w27, #6
	ldurb	w8, [x25, #-1]
	mov	x19, x0
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w9, w8, #34
	cmp	w9, #28
	b.hi	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x10, LBB0_3
	ldrb	w11, [x26, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x19, w28, sxtw
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x19, w28, sxtw
	mov	x1, x22
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w2, #6
	bl	_memcpy
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x19, w28, sxtw
	mov	x1, x21
	mov	w2, #5
	bl	_memcpy
	add	w20, w28, #5
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x19, w28, sxtw
	mov	x1, x23
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x19, w28, sxtw
	mov	x1, x24
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w2, #4
	bl	_memcpy
	add	w20, w28, #4
	b	LBB0_4
LBB0_17:
	mov	w20, #0
LBB0_18:
	strb	wzr, [x19, w20, sxtw]
	b	LBB0_20
LBB0_19:
	mov	x0, x19
	bl	_av_free
	mov	x19, #0
LBB0_20:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"&amp;"

l_.str.1:                               ; @.str.1
	.asciz	"&lt;"

l_.str.2:                               ; @.str.2
	.asciz	"&gt;"

l_.str.3:                               ; @.str.3
	.asciz	"&apos;"

l_.str.4:                               ; @.str.4
	.asciz	"&quot;"

	.no_dead_strip	_xmlescape
.subsections_via_symbols
