	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wind_utf8ucs4                  ## -- Begin function wind_utf8ucs4
	.p2align	4, 0x90
_wind_utf8ucs4:                         ## @wind_utf8ucs4
	.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
	movq	%rdx, %r15
	movq	%rdi, -48(%rbp)
	cmpb	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r12
	leaq	-52(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -48(%rbp)
	cmpb	$0, 1(%rax)
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_utf8toutf32
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%r15), %r14
	jae	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %eax
	movl	%eax, (%rbx,%r14,4)
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
LBB0_10:
	movq	%r14, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_4:
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_11
LBB0_7:
	movq	_WIND_ERR_OVERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIND_ERR_OVERRUN,4,2           ## @WIND_ERR_OVERRUN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wind_utf8ucs4                  ; -- Begin function wind_utf8ucs4
	.p2align	2
_wind_utf8ucs4:                         ; @wind_utf8ucs4
	.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, x2
	str	x0, [sp, #8]
	ldrb	w8, [x0]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	ldrb	w8, [x8, #1]
	cbz	w8, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_utf8toutf32
	cbnz	w0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x20, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	cmp	x21, x8
	b.hs	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #4]
	str	w8, [x20, x21, lsl #2]
	b	LBB0_2
LBB0_7:
	mov	x21, #0
LBB0_8:
	mov	w0, #0
	str	x21, [x19]
	b	LBB0_10
LBB0_9:
Lloh0:
	adrp	x8, _WIND_ERR_OVERRUN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WIND_ERR_OVERRUN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WIND_ERR_OVERRUN,4,2           ; @WIND_ERR_OVERRUN
.subsections_via_symbols
