	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_filt_conv_wchar_armscii8  ## -- Begin function mbfl_filt_conv_wchar_armscii8
	.p2align	4, 0x90
_mbfl_filt_conv_wchar_armscii8:         ## @mbfl_filt_conv_wchar_armscii8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rax
	movl	%edi, %ebx
	movl	%edi, %ecx
	andl	$-8, %ecx
	cmpl	$40, %ecx
	jne	LBB0_2
## %bb.1:
	movq	_ucs_armscii8_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leal	-40(%rbx), %edx
	movl	(%rcx,%rdx,4), %edi
	jmp	LBB0_7
LBB0_2:
	movq	_armscii8_ucs_table_min@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	cmpl	%ebx, %ecx
	jg	LBB0_7
## %bb.3:
	movq	_armscii8_ucs_table_len@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_armscii8_ucs_table@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, %edx
	jle	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	-1(%rdx), %rdi
	cmpl	%ebx, -4(%rsi,%rdx,4)
	movq	%rdi, %rdx
	jne	LBB0_4
## %bb.10:
	leal	(%rdi,%rcx), %edx
	addq	%rdi, %rcx
	testl	%edx, %edx
	jle	LBB0_6
## %bb.11:
	movl	%ecx, %edi
	jmp	LBB0_12
LBB0_5:
	movl	$-1, %ecx
LBB0_6:
	movq	_MBFL_WCSPLANE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movl	%edi, %edx
	notl	%edx
	andl	%ebx, %edx
	movq	_MBFL_WCSPLANE_ARMSCII8@GOTPCREL(%rip), %rsi
	andl	%ebx, %edi
	cmpl	(%rsi), %edx
	cmovnel	%ecx, %edi
LBB0_7:
	testl	%edi, %edi
	js	LBB0_8
LBB0_12:
	movl	(%rax), %esi
	callq	*8(%rax)
	jmp	LBB0_13
LBB0_8:
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_mbfl_filt_conv_illegal_output
LBB0_13:
	movl	%eax, %edi
	callq	_CK
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ucs_armscii8_table,8,3         ## @ucs_armscii8_table
	.comm	_armscii8_ucs_table_min,4,2     ## @armscii8_ucs_table_min
	.comm	_armscii8_ucs_table_len,4,2     ## @armscii8_ucs_table_len
	.comm	_armscii8_ucs_table,8,3         ## @armscii8_ucs_table
	.comm	_MBFL_WCSPLANE_MASK,4,2         ## @MBFL_WCSPLANE_MASK
	.comm	_MBFL_WCSPLANE_ARMSCII8,4,2     ## @MBFL_WCSPLANE_ARMSCII8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_filt_conv_wchar_armscii8  ; -- Begin function mbfl_filt_conv_wchar_armscii8
	.p2align	2
_mbfl_filt_conv_wchar_armscii8:         ; @mbfl_filt_conv_wchar_armscii8
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	and	w8, w0, #0xfffffff8
	cmp	w8, #40
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ucs_armscii8_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ucs_armscii8_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	w9, w19, #40
	ldr	w0, [x8, w9, uxtw #2]
	b	LBB0_9
LBB0_2:
Lloh3:
	adrp	x8, _armscii8_ucs_table_min@GOTPAGE
Lloh4:
	ldr	x8, [x8, _armscii8_ucs_table_min@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x0, x19
	cmp	w8, w19
	b.gt	LBB0_9
; %bb.3:
Lloh6:
	adrp	x9, _armscii8_ucs_table_len@GOTPAGE
Lloh7:
	ldr	x9, [x9, _armscii8_ucs_table_len@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _armscii8_ucs_table@GOTPAGE
Lloh10:
	ldr	x10, [x10, _armscii8_ucs_table@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	sub	x10, x10, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x11, x9, #1
	ldr	w12, [x10, x9, lsl #2]
	mov	x9, x11
	cmp	w12, w19
	b.ne	LBB0_4
; %bb.6:
	add	w9, w8, w11
	add	x0, x8, x11
	cmp	w9, #0
	b.gt	LBB0_10
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
Lloh12:
	adrp	x8, _MBFL_WCSPLANE_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBFL_WCSPLANE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w9, w19, w8
Lloh15:
	adrp	x10, _MBFL_WCSPLANE_ARMSCII8@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MBFL_WCSPLANE_ARMSCII8@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	and	w8, w8, w19
	cmp	w9, w10
	csel	w0, w8, w0, eq
LBB0_9:
	tbnz	w0, #31, LBB0_11
LBB0_10:
	ldr	x8, [x1, #8]
	ldr	w1, [x1]
                                        ; kill: def $w0 killed $w0 killed $x0
	blr	x8
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_mbfl_filt_conv_illegal_output
LBB0_12:
	bl	_CK
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ucs_armscii8_table,8,3         ; @ucs_armscii8_table
	.comm	_armscii8_ucs_table_min,4,2     ; @armscii8_ucs_table_min
	.comm	_armscii8_ucs_table_len,4,2     ; @armscii8_ucs_table_len
	.comm	_armscii8_ucs_table,8,3         ; @armscii8_ucs_table
	.comm	_MBFL_WCSPLANE_MASK,4,2         ; @MBFL_WCSPLANE_MASK
	.comm	_MBFL_WCSPLANE_ARMSCII8,4,2     ; @MBFL_WCSPLANE_ARMSCII8
.subsections_via_symbols
