	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_filt_conv_wchar_cp1254    ## -- Begin function mbfl_filt_conv_wchar_cp1254
	.p2align	4, 0x90
_mbfl_filt_conv_wchar_cp1254:           ## @mbfl_filt_conv_wchar_cp1254
	.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
	cmpl	$128, %edi
	jl	LBB0_5
## %bb.1:
	movq	_cp1254_ucs_table_len@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_cp1254_ucs_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rsi
	testl	%esi, %esi
	jle	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-1(%rsi), %rdx
	cmpl	$65534, %ebx                    ## imm = 0xFFFE
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ebx, -4(%rcx,%rsi,4)
	jne	LBB0_2
## %bb.9:
	movq	_cp1254_ucs_table_min@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addq	%rdx, %rcx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.10:
	movl	%ecx, %edi
	jmp	LBB0_11
LBB0_3:
	movl	$-1, %ecx
LBB0_4:
	movq	_MBFL_WCSPLANE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movl	%edi, %edx
	notl	%edx
	andl	%ebx, %edx
	movq	_MBFL_WCSPLANE_CP1254@GOTPCREL(%rip), %rsi
	andl	%ebx, %edi
	cmpl	(%rsi), %edx
	cmovnel	%ecx, %edi
LBB0_5:
	testl	%edi, %edi
	js	LBB0_6
LBB0_11:
	movl	(%rax), %esi
	callq	*8(%rax)
	jmp	LBB0_12
LBB0_6:
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_mbfl_filt_conv_illegal_output
LBB0_12:
	movl	%eax, %edi
	callq	_CK
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cp1254_ucs_table_len,4,2       ## @cp1254_ucs_table_len
	.comm	_cp1254_ucs_table,8,3           ## @cp1254_ucs_table
	.comm	_cp1254_ucs_table_min,4,2       ## @cp1254_ucs_table_min
	.comm	_MBFL_WCSPLANE_MASK,4,2         ## @MBFL_WCSPLANE_MASK
	.comm	_MBFL_WCSPLANE_CP1254,4,2       ## @MBFL_WCSPLANE_CP1254
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_filt_conv_wchar_cp1254    ; -- Begin function mbfl_filt_conv_wchar_cp1254
	.p2align	2
_mbfl_filt_conv_wchar_cp1254:           ; @mbfl_filt_conv_wchar_cp1254
	.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
	cmp	w0, #128
	b.lt	LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _cp1254_ucs_table_len@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cp1254_ucs_table_len@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _cp1254_ucs_table@GOTPAGE
Lloh4:
	ldr	x9, [x9, _cp1254_ucs_table@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sub	x9, x9, #4
	mov	w10, #65534
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x11, x8
	cmp	w11, #1
	b.lt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x8, x11, #1
	cmp	w19, w10
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w11, [x9, x11, lsl #2]
	cmp	w11, w19
	b.ne	LBB0_2
; %bb.5:
Lloh6:
	adrp	x9, _cp1254_ucs_table_min@GOTPAGE
Lloh7:
	ldr	x9, [x9, _cp1254_ucs_table_min@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	x0, x9, x8
	cmp	w0, #0
	b.gt	LBB0_9
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
Lloh9:
	adrp	x8, _MBFL_WCSPLANE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MBFL_WCSPLANE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w9, w19, w8
Lloh12:
	adrp	x10, _MBFL_WCSPLANE_CP1254@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MBFL_WCSPLANE_CP1254@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	and	w8, w8, w19
	cmp	w9, w10
	csel	w0, w8, w0, eq
LBB0_8:
	tbnz	w0, #31, LBB0_10
LBB0_9:
	ldr	x8, [x1, #8]
	ldr	w1, [x1]
                                        ; kill: def $w0 killed $w0 killed $x0
	blr	x8
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_mbfl_filt_conv_illegal_output
LBB0_11:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_cp1254_ucs_table_len,4,2       ; @cp1254_ucs_table_len
	.comm	_cp1254_ucs_table,8,3           ; @cp1254_ucs_table
	.comm	_cp1254_ucs_table_min,4,2       ; @cp1254_ucs_table_min
	.comm	_MBFL_WCSPLANE_MASK,4,2         ; @MBFL_WCSPLANE_MASK
	.comm	_MBFL_WCSPLANE_CP1254,4,2       ; @MBFL_WCSPLANE_CP1254
.subsections_via_symbols
