	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unsafe_encode_char
_unsafe_encode_char:                    ## @unsafe_encode_char
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	xorl	%eax, %eax
	testl	%edi, %edi
	js	LBB0_14
## %bb.1:
	cmpl	$127, %edi
	ja	LBB0_3
## %bb.2:
	movl	%edi, %eax
	movq	%rax, (%rsi)
LBB0_8:
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_3:
	cmpl	$2047, %edi                     ## imm = 0x7FF
	ja	LBB0_5
## %bb.4:
	movl	%edi, %eax
	shrl	$6, %eax
	addl	$192, %eax
	movq	%rax, (%rsi)
	andl	$63, %edi
	orl	$128, %edi
	movq	%rdi, 8(%rsi)
	movl	$2, %eax
	popq	%rbp
	retq
LBB0_5:
	cmpl	$65534, %edi                    ## imm = 0xFFFE
	je	LBB0_9
## %bb.6:
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	jne	LBB0_10
## %bb.7:
	movq	$255, (%rsi)
	jmp	LBB0_8
LBB0_9:
	movq	$254, (%rsi)
	jmp	LBB0_8
LBB0_10:
	ja	LBB0_12
## %bb.11:
	movl	%edi, %eax
	shrl	$12, %eax
	addl	$224, %eax
	movq	%rax, (%rsi)
	movl	%edi, %eax
	shrl	$6, %eax
	andl	$63, %eax
	orl	$128, %eax
	movq	%rax, 8(%rsi)
	andl	$63, %edi
	orl	$128, %edi
	movq	%rdi, 16(%rsi)
	movl	$3, %eax
	popq	%rbp
	retq
LBB0_12:
	cmpl	$1114111, %edi                  ## imm = 0x10FFFF
	ja	LBB0_14
## %bb.13:
	movl	%edi, %eax
	shrl	$18, %eax
	addl	$240, %eax
	movq	%rax, (%rsi)
	movl	%edi, %eax
	shrl	$12, %eax
	andl	$63, %eax
	orl	$128, %eax
	movq	%rax, 8(%rsi)
	movl	%edi, %eax
	shrl	$6, %eax
	andl	$63, %eax
	orl	$128, %eax
	movq	%rax, 16(%rsi)
	andl	$63, %edi
	orl	$128, %edi
	movq	%rdi, 24(%rsi)
	movl	$4, %eax
LBB0_14:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_unsafe_encode_char
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function unsafe_encode_char
lCPI0_0:
	.long	4294967284                      ; 0xfffffff4
	.long	4294967290                      ; 0xfffffffa
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_unsafe_encode_char:                    ; @unsafe_encode_char
	.cfi_startproc
; %bb.0:
	tbnz	w0, #31, LBB0_14
; %bb.1:
	cmp	w0, #127
	b.hi	LBB0_4
; %bb.2:
	mov	w8, w0
LBB0_3:
	str	x8, [x1]
	mov	w0, #1
	ret
LBB0_4:
	cmp	w0, #2047
	b.hi	LBB0_6
; %bb.5:
	lsr	w8, w0, #6
	add	w8, w8, #192
	mov	w9, #128
	bfxil	w9, w0, #0, #6
	stp	x8, x9, [x1]
	mov	w0, #2
	ret
LBB0_6:
	mov	w8, #65534
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.7:
	mov	w8, #65535
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.8:
	mov	w8, #255
	b	LBB0_3
LBB0_9:
	mov	w8, #254
	b	LBB0_3
LBB0_10:
	lsr	w8, w0, #16
	cbnz	w8, LBB0_12
; %bb.11:
	lsr	w8, w0, #12
	add	w8, w8, #224
	mov	w9, #128
	mov	w10, #128
	bfxil	w10, w0, #6, #6
	stp	x8, x10, [x1]
	bfxil	w9, w0, #0, #6
	str	x9, [x1, #16]
	mov	w0, #3
	ret
LBB0_12:
	cmp	w8, #16
	b.hi	LBB0_14
; %bb.13:
	lsr	w8, w0, #18
	add	w8, w8, #240
	str	x8, [x1]
	dup.2s	v0, w0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi.2s	v1, #63
	and.8b	v0, v0, v1
	orr.2s	v0, #128
	ushll.2d	v0, v0, #0
	stur	q0, [x1, #8]
	mov	w8, #128
	bfxil	w8, w0, #0, #6
	str	x8, [x1, #24]
	mov	w0, #4
	ret
LBB0_14:
	mov	w0, #0
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_unsafe_encode_char
.subsections_via_symbols
