	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_filt_conv_jis2004_flush   ## -- Begin function mbfl_filt_conv_jis2004_flush
	.p2align	4, 0x90
_mbfl_filt_conv_jis2004_flush:          ## @mbfl_filt_conv_jis2004_flush
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	movl	4(%rdi), %eax
	movl	$0, (%rdi)
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.1:
	testl	%ecx, %ecx
	js	LBB0_9
## %bb.2:
	movq	_jisx0213_u2_tbl_len@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_9
## %bb.3:
	movq	_jisx0213_u2_fb_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %edx
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	_mbfl_no_encoding_sjis2004@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movzbl	%dh, %edi
	movzbl	%dl, %esi
	movl	%edx, %r14d
	callq	_SJIS_ENCODE
	movl	%r14d, %edx
                                        ## implicit-def: $r14d
	jmp	LBB0_8
LBB0_5:
	movq	_mbfl_no_encoding_eucjp2004@GOTPCREL(%rip), %rcx
	movl	%edx, %r14d
	andl	$127, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	orl	$128, %r14d
	shrl	$8, %edx
	orl	$128, %edx
	movzbl	%dl, %edx
	jmp	LBB0_8
LBB0_7:
	shrl	$8, %edx
	andl	$127, %edx
	movl	16(%rbx), %esi
	movl	$27, %edi
	movl	%edx, %r15d
	callq	*24(%rbx)
	movl	%eax, %edi
	callq	_CK
	movl	16(%rbx), %esi
	movl	$36, %edi
	callq	*24(%rbx)
	movl	%eax, %edi
	callq	_CK
	movl	16(%rbx), %esi
	movl	$40, %edi
	callq	*24(%rbx)
	movl	%eax, %edi
	callq	_CK
	movl	16(%rbx), %esi
	movl	$81, %edi
	callq	*24(%rbx)
	movl	%eax, %edi
	callq	_CK
	movl	%r15d, %edx
	movl	$512, 4(%rbx)                   ## imm = 0x200
LBB0_8:
	movl	16(%rbx), %esi
	movl	%edx, %edi
	callq	*24(%rbx)
	movl	%eax, %edi
	callq	_CK
	movl	16(%rbx), %esi
	movl	%r14d, %edi
	callq	*24(%rbx)
	movl	%eax, %edi
	callq	_CK
	movl	4(%rbx), %eax
LBB0_9:
	testl	$65280, %eax                    ## imm = 0xFF00
	je	LBB0_11
## %bb.10:
	movl	16(%rbx), %esi
	movl	$27, %edi
	callq	*24(%rbx)
	movl	%eax, %edi
	callq	_CK
	movl	16(%rbx), %esi
	movl	$40, %edi
	callq	*24(%rbx)
	movl	%eax, %edi
	callq	_CK
	movl	16(%rbx), %esi
	movl	$66, %edi
	callq	*24(%rbx)
	movl	%eax, %edi
	callq	_CK
LBB0_11:
	movl	$0, 4(%rbx)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movl	16(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jisx0213_u2_tbl_len,4,2        ## @jisx0213_u2_tbl_len
	.comm	_jisx0213_u2_fb_tbl,8,3         ## @jisx0213_u2_fb_tbl
	.comm	_mbfl_no_encoding_sjis2004,8,3  ## @mbfl_no_encoding_sjis2004
	.comm	_mbfl_no_encoding_eucjp2004,8,3 ## @mbfl_no_encoding_eucjp2004
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_filt_conv_jis2004_flush   ; -- Begin function mbfl_filt_conv_jis2004_flush
	.p2align	2
_mbfl_filt_conv_jis2004_flush:          ; @mbfl_filt_conv_jis2004_flush
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldp	w9, w8, [x0]
	str	wzr, [x0]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.1:
	tbnz	w9, #31, LBB0_9
; %bb.2:
Lloh0:
	adrp	x10, _jisx0213_u2_tbl_len@GOTPAGE
Lloh1:
	ldr	x10, [x10, _jisx0213_u2_tbl_len@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.gt	LBB0_9
; %bb.3:
Lloh3:
	adrp	x8, _jisx0213_u2_fb_tbl@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jisx0213_u2_fb_tbl@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w20, [x8, x9, lsl #2]
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _mbfl_no_encoding_sjis2004@GOTPAGE
Lloh7:
	ldr	x9, [x9, _mbfl_no_encoding_sjis2004@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ubfx	w0, w20, #8, #8
	and	w1, w20, #0xff
	mov	x2, x20
	bl	_SJIS_ENCODE
                                        ; implicit-def: $w21
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x9, _mbfl_no_encoding_eucjp2004@GOTPAGE
Lloh10:
	ldr	x9, [x9, _mbfl_no_encoding_eucjp2004@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	and	w21, w20, #0x7f
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	orr	w21, w21, #0x80
	mov	w8, #128
	bfxil	w8, w20, #8, #7
	mov	x20, x8
	b	LBB0_8
LBB0_7:
	ubfx	w20, w20, #8, #7
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #16]
	mov	w0, #27
	blr	x8
	bl	_CK
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #16]
	mov	w0, #36
	blr	x8
	bl	_CK
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #16]
	mov	w0, #40
	blr	x8
	bl	_CK
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #16]
	mov	w0, #81
	blr	x8
	bl	_CK
	mov	w8, #512
	str	w8, [x19, #4]
LBB0_8:
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #16]
	mov	x0, x20
	blr	x8
	bl	_CK
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #16]
	mov	x0, x21
	blr	x8
	bl	_CK
	ldr	w8, [x19, #4]
LBB0_9:
	tst	w8, #0xff00
	b.eq	LBB0_11
; %bb.10:
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #16]
	mov	w0, #27
	blr	x8
	bl	_CK
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #16]
	mov	w0, #40
	blr	x8
	bl	_CK
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #16]
	mov	w0, #66
	blr	x8
	bl	_CK
LBB0_11:
	str	wzr, [x19, #4]
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_13
; %bb.12:
	ldr	w0, [x19, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x1
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_jisx0213_u2_tbl_len,4,2        ; @jisx0213_u2_tbl_len
	.comm	_jisx0213_u2_fb_tbl,8,3         ; @jisx0213_u2_fb_tbl
	.comm	_mbfl_no_encoding_sjis2004,8,3  ; @mbfl_no_encoding_sjis2004
	.comm	_mbfl_no_encoding_eucjp2004,8,3 ; @mbfl_no_encoding_eucjp2004
.subsections_via_symbols
