	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_ja_jp_hantozen            ## -- Begin function mbfl_ja_jp_hantozen
	.p2align	4, 0x90
_mbfl_ja_jp_hantozen:                   ## @mbfl_ja_jp_hantozen
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rdi), %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mbfl_memory_device_init
	movq	%r15, %rdi
	callq	_mbfl_string_init
	movl	24(%r13), %eax
	movl	%eax, 24(%r15)
	movq	16(%r13), %rax
	movq	%rax, 16(%r15)
	movq	16(%r13), %rsi
	movq	_mbfl_encoding_wchar@GOTPCREL(%rip), %rdi
	movq	_mbfl_memory_device_output@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_mbfl_convert_filter_new
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %r14
	movl	$4, %edi
	callq	_mbfl_malloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rax, %rbx
	movl	%r12d, (%rax)
	movq	(%r14), %rsi
	movq	16(%r14), %rdx
	movq	_vtbl_tl_jisx0201_jisx0208@GOTPCREL(%rip), %rdi
	movq	%r14, %rcx
	callq	_mbfl_convert_filter_new2
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rax, %r12
	movq	%rbx, 8(%rax)
	movq	16(%r13), %rdi
	movq	(%rax), %rdx
	movq	16(%rax), %rcx
	movq	_mbfl_encoding_wchar@GOTPCREL(%rip), %rsi
	movq	%rax, %r8
	callq	_mbfl_convert_filter_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %r12
	testq	%r12, %r12
	je	LBB0_9
## %bb.5:
	movq	(%r13), %r13
	testq	%r13, %r13
	je	LBB0_9
## %bb.6:
	decq	%r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%r14), %edi
	movq	%rbx, %rsi
	callq	*(%rbx)
	testq	%rax, %rax
	js	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	1(%r14), %rax
	cmpq	%r14, %r13
	movq	%rax, %r14
	jne	LBB0_7
LBB0_9:
	movq	%rbx, %rdi
	callq	_mbfl_convert_filter_flush
	leaq	-80(%rbp), %rdi
	movq	%r15, %rsi
	callq	_mbfl_memory_device_result
	movq	%rax, %r15
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_10:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_mbfl_free
LBB0_12:
	movq	%r12, %rdi
	callq	_mbfl_convert_filter_delete
	movq	%r14, %rdi
	callq	_mbfl_convert_filter_delete
	testq	%rbx, %rbx
	jne	LBB0_16
	jmp	LBB0_17
LBB0_14:
	movq	%rbx, %rdi
	callq	_mbfl_free
LBB0_15:
	movq	%r14, %rbx
LBB0_16:
	movq	%rbx, %rdi
	callq	_mbfl_convert_filter_delete
LBB0_17:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mbfl_encoding_wchar,4,2        ## @mbfl_encoding_wchar
	.comm	_vtbl_tl_jisx0201_jisx0208,4,2  ## @vtbl_tl_jisx0201_jisx0208
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_ja_jp_hantozen            ; -- Begin function mbfl_ja_jp_hantozen
	.p2align	2
_mbfl_ja_jp_hantozen:                   ; @mbfl_ja_jp_hantozen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x1, [x0]
	add	x0, sp, #8
	mov	w2, #0
	bl	_mbfl_memory_device_init
	mov	x0, x19
	bl	_mbfl_string_init
	ldr	w8, [x23, #24]
	str	w8, [x19, #24]
	ldr	x8, [x23, #16]
	str	x8, [x19, #16]
	ldr	x1, [x23, #16]
Lloh0:
	adrp	x0, _mbfl_encoding_wchar@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mbfl_encoding_wchar@GOTPAGEOFF]
Lloh2:
	adrp	x2, _mbfl_memory_device_output@GOTPAGE
Lloh3:
	ldr	x2, [x2, _mbfl_memory_device_output@GOTPAGEOFF]
	add	x4, sp, #8
	mov	x3, #0
	bl	_mbfl_convert_filter_new
	cbz	x0, LBB0_16
; %bb.1:
	mov	x20, x0
	mov	w0, #4
	bl	_mbfl_malloc
	cbz	x0, LBB0_14
; %bb.2:
	mov	x24, x0
	str	w21, [x0]
	ldr	x1, [x20]
	ldr	x2, [x20, #16]
Lloh4:
	adrp	x0, _vtbl_tl_jisx0201_jisx0208@GOTPAGE
Lloh5:
	ldr	x0, [x0, _vtbl_tl_jisx0201_jisx0208@GOTPAGEOFF]
	mov	x3, x20
	bl	_mbfl_convert_filter_new2
	cbz	x0, LBB0_13
; %bb.3:
	mov	x22, x0
	str	x24, [x0, #8]
	ldr	x0, [x23, #16]
	ldr	x2, [x22]
	ldr	x3, [x22, #16]
Lloh6:
	adrp	x1, _mbfl_encoding_wchar@GOTPAGE
Lloh7:
	ldr	x1, [x1, _mbfl_encoding_wchar@GOTPAGEOFF]
	mov	x4, x22
	bl	_mbfl_convert_filter_new
	mov	x21, x0
	cbz	x0, LBB0_10
; %bb.4:
	ldr	x24, [x23, #8]
	cbz	x24, LBB0_9
; %bb.5:
	ldr	x8, [x23]
	cbz	x8, LBB0_9
; %bb.6:
	sub	x8, x8, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x8
	ldr	x8, [x21]
	ldrb	w0, [x24], #1
	mov	x1, x21
	blr	x8
	tbnz	x0, #63, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x8, x23, #1
	cbnz	x23, LBB0_7
LBB0_9:
	mov	x0, x21
	bl	_mbfl_convert_filter_flush
	add	x0, sp, #8
	mov	x1, x19
	bl	_mbfl_memory_device_result
	mov	x19, x0
LBB0_10:
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_mbfl_free
LBB0_12:
	mov	x0, x22
	bl	_mbfl_convert_filter_delete
	mov	x0, x20
	bl	_mbfl_convert_filter_delete
	cbnz	x21, LBB0_15
	b	LBB0_16
LBB0_13:
	mov	x0, x24
	bl	_mbfl_free
LBB0_14:
	mov	x21, x20
LBB0_15:
	mov	x0, x21
	bl	_mbfl_convert_filter_delete
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_mbfl_encoding_wchar,4,2        ; @mbfl_encoding_wchar
	.comm	_vtbl_tl_jisx0201_jisx0208,4,2  ; @vtbl_tl_jisx0201_jisx0208
.subsections_via_symbols
