	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_utf8_to_win                    ## -- Begin function utf8_to_win
	.p2align	4, 0x90
_utf8_to_win:                           ## @utf8_to_win
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	leal	(%rbx,%rbx,2), %ecx
	cmpl	%esi, %ecx
	cmovgel	%esi, %ecx
	testl	%edx, %edx
	cmovel	%esi, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jle	LBB0_40
## %bb.1:
	movq	%rdi, %r15
	testl	%ebx, %ebx
	setne	%r12b
	movl	%ecx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_25:                                ##   in Loop: Header=BB0_6 Depth=1
	addl	$-32, %eax
	movl	$2, %ecx
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=1
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	cmpq	%r14, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_36
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_cur_buff_len@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	setg	%al
	testb	%al, %r12b
	jne	LBB0_36
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%r15,%r14), %r13d
	testb	%r13b, %r13b
	js	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_39
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	$3, %esi
	callq	_write_buff
LBB0_2:                                 ##   in Loop: Header=BB0_6 Depth=1
	movsbl	%r13b, %edi
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	callq	_write_buff_char
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %eax
	andb	$-64, %al
	cmpb	$-64, %al
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$-128, %al
	jne	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%ecx, %ecx
	je	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	shll	$6, %eax
	addl	%r13d, %eax
	addl	$-128, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	decl	%ecx
	jne	LBB0_5
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$128, %r13d
	jl	LBB0_39
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$127, %r13d
	jg	LBB0_33
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_32
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%ecx, %ecx
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_39
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movl	$3, %esi
	callq	_write_buff
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	addb	$64, %r13b
	movzbl	%r13b, %eax
	movl	$1, %ecx
	cmpb	$32, %al
	jb	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$47, %r13b
	jbe	LBB0_25
## %bb.28:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$55, %r13b
	ja	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	$-48, %eax
	movl	$3, %ecx
	jmp	LBB0_23
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_39
## %bb.27:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_32
LBB0_30:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_39
## %bb.31:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.4(%rip), %rdi
LBB0_32:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$3, %esi
	callq	_write_buff
	jmp	LBB0_4
LBB0_33:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %edi
	callq	_utf8_to_win_char
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	cmpl	$-3, %ecx
	ja	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_6 Depth=1
	movsbl	%al, %edi
	jmp	LBB0_3
LBB0_35:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$38, %edi
	callq	_write_buff_char
	movl	$35, %edi
	callq	_write_buff_char
	movl	%r13d, %edi
	callq	_write_buff_long
	movl	$59, %edi
	jmp	LBB0_3
LBB0_36:
	xorl	%eax, %eax
	movl	%ecx, %edx
	negl	%edx
	sbbl	%eax, %eax
	orl	$1, %eax
	testl	%ecx, %ecx
	je	LBB0_40
## %bb.37:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_40
## %bb.38:
	leaq	L_.str.5(%rip), %rdi
	movl	$3, %esi
	callq	_write_buff
	movl	$1, %eax
	jmp	LBB0_40
LBB0_39:
	movl	$-1, %eax
LBB0_40:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cur_buff_len,4,2               ## @cur_buff_len
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"?1?"

L_.str.1:                               ## @.str.1
	.asciz	"?2?"

L_.str.2:                               ## @.str.2
	.asciz	"?3?"

L_.str.3:                               ## @.str.3
	.asciz	"?4?"

L_.str.4:                               ## @.str.4
	.asciz	"?5?"

L_.str.5:                               ## @.str.5
	.asciz	"?6?"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_utf8_to_win                    ; -- Begin function utf8_to_win
	.p2align	2
_utf8_to_win:                           ; @utf8_to_win
	.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
	add	w8, w2, w2, lsl #1
	cmp	w8, w1
	csel	w8, w8, w1, lt
	cmp	w2, #0
	csel	w28, w1, w8, eq
	cmp	w28, #1
	b.lt	LBB0_39
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	mov	w27, #0
	mov	w8, #0
	cmp	w2, #0
	cset	w23, ne
Lloh0:
	adrp	x26, _cur_buff_len@GOTPAGE
Lloh1:
	ldr	x26, [x26, _cur_buff_len@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
Lloh4:
	adrp	x24, l_.str.3@PAGE
Lloh5:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w1, #3
	bl	_write_buff
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	subs	x28, x28, #1
	b.eq	LBB0_36
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x26]
	cmp	w9, w20
	cset	w9, gt
	and	w9, w23, w9
	tbnz	w9, #0, LBB0_36
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsb	w9, [x21]
	and	w25, w9, #0xff
	tbnz	w9, #31, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w19, LBB0_41
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	w1, #3
	bl	_write_buff
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	sxtb	w0, w25
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_write_buff_char
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	and	w9, w25, #0xc0
	cmp	w9, #192
	b.eq	LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #128
	b.ne	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	w8, LBB0_29
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w9, w25, w27, lsl #6
	sub	w27, w9, #128
	subs	w8, w8, #1
	b.ne	LBB0_5
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	w19, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w27, #128
	b.lt	LBB0_41
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w27, #127
	b.le	LBB0_2
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
	bl	_utf8_to_win_char
	sub	w8, w0, #1
	cmn	w8, #3
	b.hi	LBB0_35
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	sxtb	w0, w0
	b	LBB0_12
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w8, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w19, LBB0_41
; %bb.24:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	mov	w1, #3
	bl	_write_buff
LBB0_25:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w25, #64
	and	w9, w8, #0xff
	subs	w10, w9, #32
	b.hs	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	mov	x27, x9
	b	LBB0_5
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #47
	b.hi	LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #2
	mov	x27, x10
	b	LBB0_5
LBB0_29:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w19, LBB0_41
; %bb.30:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_31:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #55
	b.hi	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w27, w9, #48
	mov	w8, #3
	b	LBB0_5
LBB0_33:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w19, LBB0_41
; %bb.34:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_35:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #38
	bl	_write_buff_char
	mov	w0, #35
	bl	_write_buff_char
	mov	x0, x27
	bl	_write_buff_long
	mov	w0, #59
	b	LBB0_12
LBB0_36:
	cmp	w8, #0
	mov	w9, #1
	cneg	w0, w9, ne
	cbz	w8, LBB0_40
; %bb.37:
	cbnz	w19, LBB0_40
; %bb.38:
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	w1, #3
	bl	_write_buff
LBB0_39:
	mov	w0, #1
LBB0_40:
	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_41:
	mov	w0, #-1
	b	LBB0_40
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_cur_buff_len,4,2               ; @cur_buff_len
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"?1?"

l_.str.1:                               ; @.str.1
	.asciz	"?2?"

l_.str.2:                               ; @.str.2
	.asciz	"?3?"

l_.str.3:                               ; @.str.3
	.asciz	"?4?"

l_.str.4:                               ; @.str.4
	.asciz	"?5?"

l_.str.5:                               ; @.str.5
	.asciz	"?6?"

.subsections_via_symbols
