	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unicode_to_utf8word
_unicode_to_utf8word:                   ## @unicode_to_utf8word
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	cmpl	$128, %edi
	jl	LBB0_6
## %bb.1:
	cmpl	$2047, %eax                     ## imm = 0x7FF
	ja	LBB0_3
## %bb.2:
	movl	%eax, %ecx
	andl	$1984, %ecx                     ## imm = 0x7C0
	andl	$63, %eax
	leal	(%rax,%rcx,4), %eax
	addl	$49280, %eax                    ## imm = 0xC080
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_3:
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	ja	LBB0_5
## %bb.4:
	movl	%eax, %ecx
	shll	$4, %ecx
	andl	$983040, %ecx                   ## imm = 0xF0000
	movl	%eax, %edx
	andl	$4032, %edx                     ## imm = 0xFC0
	andl	$63, %eax
	leal	(%rax,%rdx,4), %eax
	addl	%ecx, %eax
	addl	$14712960, %eax                 ## imm = 0xE08080
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, %ecx
	shll	$6, %ecx
	andl	$117440512, %ecx                ## imm = 0x7000000
	movl	%eax, %edx
	shll	$4, %edx
	andl	$4128768, %edx                  ## imm = 0x3F0000
	movl	%eax, %esi
	andl	$4032, %esi                     ## imm = 0xFC0
	andl	$63, %eax
	orl	%edx, %eax
	orl	%ecx, %eax
	leal	(%rax,%rsi,4), %eax
	addl	$-260013952, %eax               ## imm = 0xF0808080
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_unicode_to_utf8word
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unicode_to_utf8word
_unicode_to_utf8word:                   ; @unicode_to_utf8word
	.cfi_startproc
; %bb.0:
	cmp	w0, #128
	b.lt	LBB0_2
; %bb.1:
	lsr	w8, w0, #16
	lsr	w9, w0, #6
	lsr	w10, w0, #18
	lsl	w11, w0, #4
	and	w11, w11, #0x3f0000
	bfxil	w11, w0, #0, #6
	bfi	w11, w10, #24, #3
	bfi	w11, w9, #8, #6
	mov	w9, #32896
	movk	w9, #61568, lsl #16
	orr	w9, w11, w9
	lsr	w10, w0, #12
	lsl	w11, w0, #2
	and	w12, w11, #0x3f00
	bfxil	w12, w0, #0, #6
	bfi	w12, w10, #16, #4
	mov	w10, #32896
	movk	w10, #224, lsl #16
	orr	w10, w12, w10
	cmp	w8, #0
	csel	w8, w9, w10, ne
	and	w9, w11, #0x1f00
	bfxil	w9, w0, #0, #6
	mov	w10, #49280
	orr	w9, w9, w10
	cmp	w0, #2047
	csel	w0, w8, w9, hi
LBB0_2:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_unicode_to_utf8word
.subsections_via_symbols
