	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wind_ucs4utf8                  ## -- Begin function wind_ucs4utf8
	.p2align	4, 0x90
_wind_ucs4utf8:                         ## @wind_ucs4utf8
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%r10d, %r10d
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.1:
	leaq	LJTI0_0(%rip), %r8
	movq	_first_char@GOTPCREL(%rip), %r9
	xorl	%eax, %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%r11d, %ebx
	andb	$63, %bl
	orb	$-128, %bl
	movb	%bl, 2(%rdx)
	sarl	$6, %r11d
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%r11d, %ebx
	andb	$63, %bl
	orb	$-128, %bl
	movb	%bl, 1(%rdx)
	sarl	$6, %r11d
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r9), %rbx
	orl	-4(%rbx,%r14,4), %r11d
	movb	%r11b, (%rdx)
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	%r14, %rdx
	incq	%rax
	cmpq	%rax, %rsi
	je	LBB0_16
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rax,4), %r11d
	movl	$1, %r14d
	cmpl	$128, %r11d
	jl	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$2, %r14d
	cmpl	$2048, %r11d                    ## imm = 0x800
	jb	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$3, %r14d
	cmpl	$65536, %r11d                   ## imm = 0x10000
	jb	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$4, %r14d
	cmpl	$1114112, %r11d                 ## imm = 0x110000
	jae	LBB0_22
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	%r14, %r10
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	(%rcx), %r10
	jae	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	-1(%r14), %rbx
	cmpq	$3, %rbx
	ja	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%r8,%rbx,4), %rbx
	addq	%r8, %rbx
	jmpq	*%rbx
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r11d, %ebx
	andb	$63, %bl
	orb	$-128, %bl
	movb	%bl, 3(%rdx)
	sarl	$6, %r11d
	jmp	LBB0_2
LBB0_15:
	testq	%rdx, %rdx
	je	LBB0_18
LBB0_16:
	leaq	1(%r10), %rax
	cmpq	(%rcx), %rax
	jae	LBB0_19
## %bb.17:
	movb	$0, (%rdx)
LBB0_18:
	movq	%r10, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_19:
	movq	_WIND_ERR_OVERRUN@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
LBB0_21:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_22:
	movq	_WIND_ERR_INVALID_UTF32@GOTPCREL(%rip), %rax
	jmp	LBB0_20
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_WIND_ERR_INVALID_UTF32,4,2     ## @WIND_ERR_INVALID_UTF32
	.comm	_WIND_ERR_OVERRUN,4,2           ## @WIND_ERR_OVERRUN
	.comm	_first_char,8,3                 ## @first_char
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wind_ucs4utf8                  ; -- Begin function wind_ucs4utf8
	.p2align	2
_wind_ucs4utf8:                         ; @wind_ucs4utf8
	.cfi_startproc
; %bb.0:
	mov	x8, #0
	cbz	x1, LBB0_18
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
Lloh2:
	adrp	x10, _first_char@GOTPAGE
Lloh3:
	ldr	x10, [x10, _first_char@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w13, #128
	bfxil	w13, w11, #0, #6
	strb	w13, [x2, #2]
	asr	w11, w11, #6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w13, #128
	bfxil	w13, w11, #0, #6
	strb	w13, [x2, #1]
	asr	w11, w11, #6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x13, [x10]
	add	x13, x13, x12, lsl #2
	ldur	w13, [x13, #-4]
	orr	w11, w13, w11
	strb	w11, [x2]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x2, x2, x12
	add	x0, x0, #4
	subs	x1, x1, #1
	b.eq	LBB0_19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x0]
	cmp	w11, #128
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w12, #1
	add	x8, x12, x8
	cbnz	x2, LBB0_14
	b	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w11, #2048
	b.hs	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w12, #2
	add	x8, x12, x8
	cbnz	x2, LBB0_14
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w11, #16, lsl #12               ; =65536
	b.hs	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w12, #3
	add	x8, x12, x8
	cbnz	x2, LBB0_14
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w11, #272, lsl #12              ; =1114112
	b.hs	LBB0_23
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w12, #4
	add	x8, x12, x8
	cbz	x2, LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x13, [x3]
	cmp	x8, x13
	b.hs	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	x13, x12, #1
	cmp	x13, #3
	b.hi	LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	adr	x14, LBB0_2
	ldrb	w15, [x9, x13]
	add	x14, x14, x15, lsl #2
	br	x14
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w13, #128
	bfxil	w13, w11, #0, #6
	strb	w13, [x2, #3]
	asr	w11, w11, #6
	b	LBB0_2
LBB0_18:
	cbz	x2, LBB0_21
LBB0_19:
	add	x9, x8, #1
	ldr	x10, [x3]
	cmp	x9, x10
	b.hs	LBB0_22
; %bb.20:
	strb	wzr, [x2]
LBB0_21:
	mov	w0, #0
	str	x8, [x3]
	ret
LBB0_22:
Lloh4:
	adrp	x8, _WIND_ERR_OVERRUN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WIND_ERR_OVERRUN@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ret
LBB0_23:
Lloh7:
	adrp	x8, _WIND_ERR_INVALID_UTF32@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WIND_ERR_INVALID_UTF32@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
                                        ; -- End function
	.comm	_WIND_ERR_INVALID_UTF32,4,2     ; @WIND_ERR_INVALID_UTF32
	.comm	_WIND_ERR_OVERRUN,4,2           ; @WIND_ERR_OVERRUN
	.comm	_first_char,8,3                 ; @first_char
.subsections_via_symbols
