	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_utf8_char                ## -- Begin function write_utf8_char
	.p2align	4, 0x90
_write_utf8_char:                       ## @write_utf8_char
	.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, %ecx
	cmpl	$127, %edi
	jg	LBB0_1
## %bb.5:
	movl	%ecx, %edi
	popq	%rbp
	jmp	_write_buff_char                ## TAILCALL
LBB0_1:
	cmpl	$2047, %ecx                     ## imm = 0x7FF
	ja	LBB0_2
## %bb.6:
	movl	%ecx, %edi
	shrl	$6, %edi
	addl	$192, %edi
	andl	$63, %ecx
	orl	$128, %ecx
	movl	%ecx, %esi
	popq	%rbp
	jmp	_write_buff_char_2              ## TAILCALL
LBB0_2:
	cmpl	$65535, %ecx                    ## imm = 0xFFFF
	ja	LBB0_3
## %bb.7:
	movl	%ecx, %edi
	shrl	$12, %edi
	addl	$224, %edi
	movl	%ecx, %esi
	shrl	$6, %esi
	andl	$63, %esi
	orl	$128, %esi
	andl	$63, %ecx
	orl	$128, %ecx
	movl	%ecx, %edx
	popq	%rbp
	jmp	_write_buff_char_3              ## TAILCALL
LBB0_3:
	cmpl	$2097151, %ecx                  ## imm = 0x1FFFFF
	ja	LBB0_4
## %bb.8:
	movl	%ecx, %edi
	shrl	$18, %edi
	addl	$240, %edi
	movl	%ecx, %esi
	shrl	$12, %esi
	andl	$63, %esi
	orl	$128, %esi
	movl	%ecx, %edx
	shrl	$6, %edx
	andl	$63, %edx
	orl	$128, %edx
	andl	$63, %ecx
	orl	$128, %ecx
	popq	%rbp
	jmp	_write_buff_char_4              ## TAILCALL
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_utf8_char                ; -- Begin function write_utf8_char
	.p2align	2
_write_utf8_char:                       ; @write_utf8_char
	.cfi_startproc
; %bb.0:
	cmp	w0, #127
	b.gt	LBB0_2
; %bb.1:
	b	_write_buff_char
LBB0_2:
	cmp	w0, #2047
	b.hi	LBB0_4
; %bb.3:
	lsr	w8, w0, #6
	add	w8, w8, #192
	mov	w1, #128
	bfxil	w1, w0, #0, #6
	mov	x0, x8
	b	_write_buff_char_2
LBB0_4:
	lsr	w8, w0, #16
	cbnz	w8, LBB0_6
; %bb.5:
	lsr	w8, w0, #12
	add	w8, w8, #224
	mov	w2, #128
	mov	w1, #128
	bfxil	w1, w0, #6, #6
	bfxil	w2, w0, #0, #6
	mov	x0, x8
	b	_write_buff_char_3
LBB0_6:
	lsr	w8, w0, #21
	cbnz	w8, LBB0_8
; %bb.7:
	lsr	w8, w0, #18
	add	w8, w8, #240
	mov	w3, #128
	mov	w1, #128
	bfxil	w1, w0, #12, #6
	mov	w2, #128
	bfxil	w2, w0, #6, #6
	bfxil	w3, w0, #0, #6
	mov	x0, x8
	b	_write_buff_char_4
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
