	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function WriteEncodedText
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_WriteEncodedText:                      ## @WriteEncodedText
	.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
	movl	$4168, %eax                     ## imm = 0x1048
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -4168(%rbp)               ## 8-byte Spill
	movl	%edi, -4176(%rbp)               ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdx, %rdx
	jle	LBB0_31
## %bb.1:
	movl	%ecx, %r14d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ecx, %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_33
## %bb.2:
	movq	%rdx, %r15
	movl	%ebx, -4156(%rbp)               ## 4-byte Spill
	xorl	%r12d, %r12d
	movl	%r14d, -4172(%rbp)              ## 4-byte Spill
	movq	%rdx, -4184(%rbp)               ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r15, %r12
	jge	LBB0_31
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	cmpl	$131, %r14d
	je	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$130, %r14d
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$129, %r14d
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-4168(%rbp), %rax               ## 8-byte Reload
	leaq	(%rax,%r12,4), %r13
	movq	%r15, %rbx
	subq	%r12, %rbx
	shlq	$2, %rbx
	xorl	%eax, %eax
	movq	%rax, -4152(%rbp)               ## 8-byte Spill
	movq	%r15, %r12
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rbx
	subq	%r12, %rbx
	shlq	$2, %rbx
	cmpq	$4096, %rbx                     ## imm = 0x1000
	movl	$4096, %eax                     ## imm = 0x1000
	cmovaeq	%rax, %rbx
	movq	-4168(%rbp), %rax               ## 8-byte Reload
	leaq	(%rax,%r12,4), %rsi
	leaq	-4144(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_memcpy
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1(%rbx), %rcx
	cmpq	$6, %rcx
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_CP_UTF8@GOTPCREL(%rip), %rax
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %r14
	movl	(%rax), %r15d
	movq	-4168(%rbp), %rax               ## 8-byte Reload
	leaq	(%rax,%r12,4), %rbx
	subq	%r12, %r14
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, (%rsp)
	movl	%r15d, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_WideCharToMultiByte
	movq	%rax, %r12
	testl	%r12d, %r12d
	jle	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	$-4096, %r12d                   ## imm = 0xF000
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_HeapAlloc
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %r13
	movq	%r13, %rax
	movq	%r13, -4152(%rbp)               ## 8-byte Spill
	jmp	LBB0_23
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$4096, %r12d                    ## imm = 0x1000
	xorl	%eax, %eax
	movq	%rax, -4152(%rbp)               ## 8-byte Spill
	leaq	-4144(%rbp), %r13
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, (%rsp)
	movl	%r15d, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movq	%r13, %r8
	movl	%r12d, %r9d
	callq	_WideCharToMultiByte
	testq	%rax, %rax
	je	LBB0_24
## %bb.26:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	-4184(%rbp), %r15               ## 8-byte Reload
	movq	%r15, %r12
	movl	-4172(%rbp), %r14d              ## 4-byte Reload
	jmp	LBB0_27
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	shrq	%rcx
	incq	%rcx
	movq	%rcx, %rdx
	andq	$-4, %rdx
	leaq	(%rdx,%rdx), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	pshufd	$177, -4144(%rbp,%rsi,8), %xmm0 ## xmm0 = mem[1,0,3,2]
	movdqa	%xmm0, -4144(%rbp,%rsi,8)
	pshufd	$177, -4128(%rbp,%rsi,8), %xmm0 ## xmm0 = mem[1,0,3,2]
	movdqa	%xmm0, -4128(%rbp,%rsi,8)
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdx, %rcx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	rolq	$32, -4144(%rbp,%rax,4)
	addq	$2, %rax
	cmpq	%rbx, %rax
	jb	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	-4144(,%r12,4), %r13
	addq	%rbp, %r13
	movq	%rbx, %rax
	shrq	$2, %rax
	addq	%rax, %r12
	xorl	%eax, %eax
	movq	%rax, -4152(%rbp)               ## 8-byte Spill
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-4176(%rbp), %edi               ## 4-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	leaq	-4192(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_WriteFile
	testl	%eax, %eax
	je	LBB0_24
## %bb.28:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-4152(%rbp), %rbx               ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapFree
	jmp	LBB0_30
LBB0_31:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_32:
	movl	(%rax), %ebx
LBB0_33:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.34:
	movl	%ebx, %eax
	addq	$4168, %rsp                     ## imm = 0x1048
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	-4152(%rbp), %r14               ## 8-byte Reload
	testq	%r14, %r14
	movl	-4156(%rbp), %ebx               ## 4-byte Reload
	je	LBB0_33
## %bb.25:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_HeapFree
	jmp	LBB0_33
LBB0_17:
	movl	-4156(%rbp), %ebx               ## 4-byte Reload
	jmp	LBB0_33
LBB0_21:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.comm	_CP_UTF8,4,2                    ## @CP_UTF8
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_WriteEncodedText
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WriteEncodedText
_WriteEncodedText:                      ; @WriteEncodedText
	.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	w9, #4144
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #48
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	cmp	x2, #1
	b.lt	LBB0_28
; %bb.1:
	mov	x20, x3
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	and	w8, w3, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_30
; %bb.2:
	mov	x21, x2
	mov	x22, x1
	mov	x27, x0
	str	w19, [sp, #4]                   ; 4-byte Folded Spill
	mov	x19, #0
	add	x23, sp, #32
	add	x8, x23, #32
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x19, x21
	b.ge	LBB0_28
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_23 Depth 2
	cmp	w20, #131
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w20, #130
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w20, #129
	b.ne	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, #0
	add	x26, x22, x19, lsl #2
	sub	x8, x21, x19
	lsl	x24, x8, #2
	mov	x19, x21
	b	LBB0_25
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x8, _CP_ACP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CP_ACP@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x21, x19
	lsl	x8, x8, #2
	cmp	x8, #1, lsl #12                 ; =4096
	mov	w9, #4096
	csel	x24, x8, x9, lo
	add	x1, x22, x19, lsl #2
	add	x0, sp, #32
	mov	x2, x24
	bl	_memcpy
	cbz	x24, LBB0_24
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x24, #1
	cmp	x8, #14
	b.hs	LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	b	LBB0_23
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh10:
	adrp	x8, _CP_UTF8@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CP_UTF8@GOTPAGEOFF]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w28, [x8]
	add	x24, x22, x19, lsl #2
	sub	x27, x21, x19
	mov	x0, x28
	mov	w1, #0
	mov	x2, x24
	mov	x3, x27
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	mov	x19, x0
	cmp	w19, #1
	b.lt	LBB0_34
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	tst	x19, #0xfffff000
	b.eq	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x19
	bl	_HeapAlloc
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_35
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x25, w0
	mov	x26, x25
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, #0
	add	x26, sp, #32
	mov	w19, #4096
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
	mov	w1, #0
	mov	x2, x24
	mov	x3, x27
	mov	x4, x26
	mov	x5, x19
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	cbz	x0, LBB0_32
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	mov	x19, x21
	ldr	w27, [sp, #20]                  ; 4-byte Folded Reload
	b	LBB0_25
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	x8, x8, #1
	add	x9, x8, #1
	and	x10, x9, #0xfffffffffffffff8
	lsl	x8, x10, #1
	mov	x11, x10
	ldr	x12, [sp, #8]                   ; 8-byte Folded Reload
LBB0_21:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x13, x12, #32
	ld2.4s	{ v0, v1 }, [x13]
	ld2.4s	{ v3, v4 }, [x12]
	mov.16b	v2, v0
	mov.16b	v5, v3
	st2.4s	{ v1, v2 }, [x13]
	st2.4s	{ v4, v5 }, [x12]
	add	x12, x12, #64
	subs	x11, x11, #8
	b.ne	LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x9, x10
	b.eq	LBB0_24
LBB0_23:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x9, x23, x8, lsl #2
	ldp	w10, w11, [x9]
	stp	w11, w10, [x9]
	add	x8, x8, #2
	cmp	x8, x24
	b.lo	LBB0_23
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, #0
	add	x26, x23, x19, lsl #2
	add	x19, x19, x24, lsr #2
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x3, sp, #24
	mov	x0, x27
	mov	x1, x26
	mov	x2, x24
	mov	x4, #0
	bl	_WriteFile
	cbz	w0, LBB0_32
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	x25, LBB0_3
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x25
	bl	_HeapFree
	b	LBB0_3
LBB0_28:
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_29:
	ldr	w19, [x8]
LBB0_30:
	ldur	x8, [x29, #-96]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.31:
	mov	x0, x19
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #48
	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
LBB0_32:
	ldr	w19, [sp, #4]                   ; 4-byte Folded Reload
	cbz	x25, LBB0_30
; %bb.33:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x25
	bl	_HeapFree
	b	LBB0_30
LBB0_34:
	ldr	w19, [sp, #4]                   ; 4-byte Folded Reload
	b	LBB0_30
LBB0_35:
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_29
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.comm	_CP_UTF8,4,2                    ; @CP_UTF8
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_WriteEncodedText
.subsections_via_symbols
