	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_conv_uni_to_8bit               ## -- Begin function conv_uni_to_8bit
	.p2align	4, 0x90
_conv_uni_to_8bit:                      ## @conv_uni_to_8bit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_translations@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_USER_MAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r9
	movl	%edi, %r8d
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	movq	%rsi, %rax
	cmpq	$256, %rsi                      ## imm = 0x100
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rax,4), %edx
	cmpl	%edi, %edx
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r8, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %esi
	orl	$61440, %esi                    ## imm = 0xF000
	cmpl	%esi, %edx
	je	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r9,%rax,4), %edx
	cmpl	%edi, %edx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rax), %rsi
	cmpq	%r8, %rsi
	jne	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %ecx
	orl	$61440, %ecx                    ## imm = 0xF000
	cmpl	%ecx, %edx
	jne	LBB0_1
LBB0_8:
	incl	%eax
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_10:
	movl	$-1, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_translations,8,3               ## @translations
	.comm	_USER_MAP,8,3                   ## @USER_MAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_conv_uni_to_8bit               ; -- Begin function conv_uni_to_8bit
	.p2align	2
_conv_uni_to_8bit:                      ; @conv_uni_to_8bit
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	x0, #0
Lloh0:
	adrp	x9, _translations@GOTPAGE
Lloh1:
	ldr	x9, [x9, _translations@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _USER_MAP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _USER_MAP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
	mov	w8, w8
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #1
	cmp	x0, #256
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x0, lsl #2]
	cmp	w10, w8
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x8, x0
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	orr	w11, w0, #0xf000
	cmp	w10, w11
	b.ne	LBB0_1
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_6:
	mov	w0, #-1
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_translations,8,3               ; @translations
	.comm	_USER_MAP,8,3                   ; @USER_MAP
.subsections_via_symbols
