	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_filt_conv_cp936_wchar     ## -- Begin function mbfl_filt_conv_cp936_wchar
	.p2align	4, 0x90
_mbfl_filt_conv_cp936_wchar:            ## @mbfl_filt_conv_cp936_wchar
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, %r14d
	movl	(%rsi), %eax
	cmpl	$1, %eax
	je	LBB0_9
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_39
## %bb.2:
	cmpl	$127, %r14d
	ja	LBB0_4
LBB0_3:
	movl	8(%r13), %esi
	movl	%r14d, %edi
	jmp	LBB0_35
LBB0_9:
	movl	$0, (%r13)
	movl	4(%r13), %r8d
	leal	-170(%r8), %eax
	leal	-161(%r14), %ecx
	cmpl	$6, %eax
	jae	LBB0_10
## %bb.16:
	cmpl	$93, %ecx
	jbe	LBB0_17
	jmp	LBB0_12
LBB0_39:
	movl	$0, (%r13)
	jmp	LBB0_40
LBB0_4:
	cmpl	$128, %r14d
	jne	LBB0_6
## %bb.5:
	movl	8(%r13), %esi
	movl	$8364, %edi                     ## imm = 0x20AC
	jmp	LBB0_35
LBB0_10:
	cmpl	$93, %ecx
	ja	LBB0_12
## %bb.11:
	leal	-248(%r8), %ecx
	cmpl	$7, %ecx
	jae	LBB0_12
LBB0_17:
	leal	-242(%r8), %ecx
	cmpl	$248, %r8d
	cmovael	%ecx, %eax
	imull	$94, %eax, %eax
	leal	(%r14,%rax), %edi
	addl	$57183, %edi                    ## imm = 0xDF5F
	jmp	LBB0_34
LBB0_12:
	cmpl	$127, %r14d
	je	LBB0_18
## %bb.13:
	leal	-64(%r14), %eax
	cmpl	$96, %eax
	ja	LBB0_18
## %bb.14:
	leal	-161(%r8), %eax
	cmpl	$6, %eax
	ja	LBB0_18
## %bb.15:
	leal	(%r8,%r8,2), %eax
	shll	$5, %eax
	xorl	%ecx, %ecx
	cmpl	$127, %r14d
	seta	%cl
	movl	%r14d, %edx
	subl	%ecx, %edx
	leal	(%rax,%rdx), %edi
	addl	$43046, %edi                    ## imm = 0xA826
	jmp	LBB0_34
LBB0_6:
	cmpl	$254, %r14d
	jg	LBB0_8
## %bb.7:
	movl	$1, (%r13)
	movl	%r14d, 4(%r13)
	jmp	LBB0_40
LBB0_18:
	movl	%r8d, %r15d
	shll	$8, %r15d
	orl	%r14d, %r15d
	leal	-41643(%r15), %eax
	cmpl	$1876, %eax                     ## imm = 0x754
	jb	LBB0_21
## %bb.19:
	leal	-55290(%r15), %eax
	cmpl	$5, %eax
	jb	LBB0_21
## %bb.20:
	leal	-65104(%r15), %eax
	cmpl	$80, %eax
	ja	LBB0_27
LBB0_21:
	movq	_mbfl_cp936_pua_tbl_max@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_27
## %bb.22:
	movq	_mbfl_cp936_pua_tbl@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_27
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rdi
	movl	8(%rdi), %esi
	movl	%r15d, %ebx
	subl	%esi, %ebx
	jl	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	addl	4(%rdi), %esi
	movl	(%rdi), %r12d
	subl	%r12d, %esi
	cmpl	%esi, %r15d
	jg	LBB0_25
## %bb.26:
	movl	8(%r13), %esi
	leal	(%r12,%rbx), %edi
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	*16(%r13)
	movl	%eax, %edi
	callq	_CK
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	addl	%ebx, %r12d
	jg	LBB0_40
LBB0_27:
	cmpl	$127, %r14d
	je	LBB0_36
## %bb.28:
	leal	-58(%r14), %eax
	cmpl	$196, %eax
	ja	LBB0_36
## %bb.29:
	leal	-129(%r8), %eax
	cmpl	$125, %eax
	ja	LBB0_36
## %bb.30:
	leal	(%r8,%r8,2), %eax
	shll	$6, %eax
	leal	(%rax,%r14), %ecx
	cmpl	$24832, %ecx                    ## imm = 0x6100
	jb	LBB0_33
## %bb.31:
	addl	%r14d, %eax
	addl	$-24832, %eax                   ## imm = 0x9F00
	movq	_cp936_ucs_table_size@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_33
## %bb.32:
	movq	_cp936_ucs_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %edi
	testl	%edi, %edi
	jg	LBB0_34
LBB0_33:
	movq	_MBFL_WCSPLANE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_MBFL_WCSPLANE_WINCP936@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, %edi
LBB0_34:
	movl	8(%r13), %esi
LBB0_35:
	callq	*16(%r13)
	movl	%eax, %edi
	callq	_CK
LBB0_40:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	8(%r13), %esi
	movl	$63733, %edi                    ## imm = 0xF8F5
	jmp	LBB0_35
LBB0_36:
	cmpl	$33, %r14d
	jb	LBB0_3
## %bb.37:
	cmpl	$127, %r14d
	je	LBB0_3
## %bb.38:
	movq	_MBFL_WCSGROUP_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_MBFL_WCSGROUP_THROUGH@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	8(%r13), %esi
	movl	%r15d, %edi
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_mbfl_cp936_pua_tbl_max,4,2     ## @mbfl_cp936_pua_tbl_max
	.comm	_mbfl_cp936_pua_tbl,8,3         ## @mbfl_cp936_pua_tbl
	.comm	_cp936_ucs_table_size,4,2       ## @cp936_ucs_table_size
	.comm	_cp936_ucs_table,8,3            ## @cp936_ucs_table
	.comm	_MBFL_WCSPLANE_MASK,4,2         ## @MBFL_WCSPLANE_MASK
	.comm	_MBFL_WCSPLANE_WINCP936,4,2     ## @MBFL_WCSPLANE_WINCP936
	.comm	_MBFL_WCSGROUP_MASK,4,2         ## @MBFL_WCSGROUP_MASK
	.comm	_MBFL_WCSGROUP_THROUGH,4,2      ## @MBFL_WCSGROUP_THROUGH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_filt_conv_cp936_wchar     ; -- Begin function mbfl_filt_conv_cp936_wchar
	.p2align	2
_mbfl_filt_conv_cp936_wchar:            ; @mbfl_filt_conv_cp936_wchar
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.1:
	cbnz	w8, LBB0_6
; %bb.2:
	cmp	w19, #127
	b.hi	LBB0_7
LBB0_3:
	ldr	x8, [x20, #16]
	ldr	w1, [x20, #8]
	mov	x0, x19
	b	LBB0_38
LBB0_4:
	str	wzr, [x20]
	ldr	w22, [x20, #4]
	sub	w8, w22, #170
	cmp	w8, #6
	b.hs	LBB0_9
; %bb.5:
	sub	w8, w19, #161
	cmp	w8, #93
	b.ls	LBB0_11
	b	LBB0_12
LBB0_6:
	str	wzr, [x20]
	b	LBB0_39
LBB0_7:
	cmp	w19, #128
	b.ne	LBB0_16
; %bb.8:
	ldr	x8, [x20, #16]
	ldr	w1, [x20, #8]
	mov	w0, #8364
	b	LBB0_38
LBB0_9:
	sub	w8, w19, #161
	cmp	w8, #93
	b.hi	LBB0_12
; %bb.10:
	sub	w8, w22, #248
	cmp	w8, #7
	b.hs	LBB0_12
LBB0_11:
	mov	w8, #-170
	mov	w9, #-242
	cmp	w22, #247
	csel	w8, w9, w8, hi
	add	w8, w8, w22
	mov	w9, #94
	madd	w8, w8, w9, w19
	mov	w9, #57183
	add	w0, w8, w9
	b	LBB0_37
LBB0_12:
	cmp	w19, #127
	b.eq	LBB0_18
; %bb.13:
	sub	w8, w19, #64
	cmp	w8, #96
	b.hi	LBB0_18
; %bb.14:
	sub	w8, w22, #161
	cmp	w8, #6
	b.hi	LBB0_18
; %bb.15:
	mov	w8, #96
	cmp	w19, #127
	mov	w9, #-65
	cinc	w9, w9, ls
	add	w9, w19, w9
	madd	w8, w22, w8, w9
	mov	w9, #43110
	add	w0, w8, w9
	b	LBB0_37
LBB0_16:
	cmp	w19, #254
	b.gt	LBB0_32
; %bb.17:
	mov	w8, #1
	stp	w8, w19, [x20]
	b	LBB0_39
LBB0_18:
	orr	w23, w19, w22, lsl #8
	mov	w8, #-41643
	add	w8, w23, w8
	mov	w9, #-55290
	add	w9, w23, w9
	cmp	w8, #1876
	ccmp	w9, #5, #0, hs
	b.lo	LBB0_20
; %bb.19:
	mov	w8, #-65104
	add	w8, w23, w8
	cmp	w8, #80
	b.hi	LBB0_26
LBB0_20:
Lloh0:
	adrp	x8, _mbfl_cp936_pua_tbl_max@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mbfl_cp936_pua_tbl_max@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.21:
Lloh3:
	adrp	x9, _mbfl_cp936_pua_tbl@GOTPAGE
Lloh4:
	ldr	x9, [x9, _mbfl_cp936_pua_tbl@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_26
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	ldr	w12, [x11, #8]
	subs	w10, w23, w12
	b.lt	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldp	w11, w13, [x11]
	add	w12, w13, w12
	sub	w12, w12, w11
	cmp	w23, w12
	b.gt	LBB0_22
; %bb.25:
	add	w21, w11, w10
	ldr	x8, [x20, #16]
	ldr	w1, [x20, #8]
	mov	x0, x21
	blr	x8
	bl	_CK
	cmp	w21, #0
	b.gt	LBB0_39
LBB0_26:
	cmp	w19, #127
	b.eq	LBB0_33
; %bb.27:
	sub	w8, w19, #58
	cmp	w8, #196
	b.hi	LBB0_33
; %bb.28:
	sub	w8, w22, #129
	cmp	w8, #125
	b.hi	LBB0_33
; %bb.29:
	mov	w8, #192
	madd	w9, w22, w8, w19
	mov	w8, #-24832
	add	w8, w9, w8
Lloh6:
	adrp	x10, _cp936_ucs_table_size@GOTPAGE
Lloh7:
	ldr	x10, [x10, _cp936_ucs_table_size@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsr	w9, w9, #8
	cmp	w9, #97
	ccmp	w8, w10, #0, hs
	b.ge	LBB0_31
; %bb.30:
Lloh9:
	adrp	x9, _cp936_ucs_table@GOTPAGE
Lloh10:
	ldr	x9, [x9, _cp936_ucs_table@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w0, [x9, w8, uxtw #2]
	cmp	w0, #0
	b.gt	LBB0_37
LBB0_31:
Lloh12:
	adrp	x8, _MBFL_WCSPLANE_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBFL_WCSPLANE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w23
Lloh15:
	adrp	x9, _MBFL_WCSPLANE_WINCP936@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MBFL_WCSPLANE_WINCP936@GOTPAGEOFF]
	b	LBB0_36
LBB0_32:
	ldr	x8, [x20, #16]
	ldr	w1, [x20, #8]
	mov	w0, #63733
	b	LBB0_38
LBB0_33:
	cmp	w19, #33
	b.lo	LBB0_3
; %bb.34:
	cmp	w19, #127
	b.eq	LBB0_3
; %bb.35:
Lloh17:
	adrp	x8, _MBFL_WCSGROUP_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MBFL_WCSGROUP_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	and	w8, w8, w23
Lloh20:
	adrp	x9, _MBFL_WCSGROUP_THROUGH@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MBFL_WCSGROUP_THROUGH@GOTPAGEOFF]
LBB0_36:
	ldr	w9, [x9]
	orr	w0, w8, w9
LBB0_37:
	ldr	x8, [x20, #16]
	ldr	w1, [x20, #8]
LBB0_38:
	blr	x8
	bl	_CK
LBB0_39:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_mbfl_cp936_pua_tbl_max,4,2     ; @mbfl_cp936_pua_tbl_max
	.comm	_mbfl_cp936_pua_tbl,8,3         ; @mbfl_cp936_pua_tbl
	.comm	_cp936_ucs_table_size,4,2       ; @cp936_ucs_table_size
	.comm	_cp936_ucs_table,8,3            ; @cp936_ucs_table
	.comm	_MBFL_WCSPLANE_MASK,4,2         ; @MBFL_WCSPLANE_MASK
	.comm	_MBFL_WCSPLANE_WINCP936,4,2     ; @MBFL_WCSPLANE_WINCP936
	.comm	_MBFL_WCSGROUP_MASK,4,2         ; @MBFL_WCSGROUP_MASK
	.comm	_MBFL_WCSGROUP_THROUGH,4,2      ; @MBFL_WCSGROUP_THROUGH
.subsections_via_symbols
