	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_buffer_converter_new      ## -- Begin function mbfl_buffer_converter_new
	.p2align	4, 0x90
_mbfl_buffer_converter_new:             ## @mbfl_buffer_converter_new
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	$48, %edi
	callq	_mbfl_malloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movq	%r12, 32(%rax)
	movq	%r15, 40(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mbfl_convert_filter_get_vtbl
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	32(%rbx), %rdi
	movq	40(%rbx), %rsi
	movq	_mbfl_memory_device_output@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_mbfl_convert_filter_new
	movq	%rax, 16(%rbx)
	jmp	LBB0_8
LBB0_4:
	movq	40(%rbx), %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
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	32(%rbx), %rdi
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
	movq	_mbfl_encoding_wchar@GOTPCREL(%rip), %rsi
	movq	%rax, %r8
	callq	_mbfl_convert_filter_new
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	24(%rbx), %rdi
	callq	_mbfl_convert_filter_delete
LBB0_7:
	movq	%rbx, %rax
	addq	$16, %rax
	movq	(%rax), %rax
LBB0_8:
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdx
	shrq	$2, %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mbfl_memory_device_init
	jmp	LBB0_12
LBB0_10:
	movq	%rbx, %rdi
	callq	_mbfl_free
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mbfl_encoding_wchar,4,2        ## @mbfl_encoding_wchar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_buffer_converter_new      ; -- Begin function mbfl_buffer_converter_new
	.p2align	2
_mbfl_buffer_converter_new:             ; @mbfl_buffer_converter_new
	.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, x2
	mov	x21, x1
	mov	x22, x0
	mov	w0, #48
	bl	_mbfl_malloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	mov	x23, x19
	str	xzr, [x23, #16]!
	stp	x22, x21, [x23, #16]
	str	xzr, [x23, #8]
	mov	x0, x22
	mov	x1, x21
	bl	_mbfl_convert_filter_get_vtbl
	cbz	x0, LBB0_3
; %bb.2:
	ldp	x0, x1, [x19, #32]
Lloh0:
	adrp	x2, _mbfl_memory_device_output@GOTPAGE
Lloh1:
	ldr	x2, [x2, _mbfl_memory_device_output@GOTPAGEOFF]
	mov	x3, #0
	mov	x4, x19
	bl	_mbfl_convert_filter_new
	str	x0, [x19, #16]
	b	LBB0_7
LBB0_3:
	ldr	x1, [x19, #40]
Lloh2:
	adrp	x0, _mbfl_encoding_wchar@GOTPAGE
Lloh3:
	ldr	x0, [x0, _mbfl_encoding_wchar@GOTPAGEOFF]
Lloh4:
	adrp	x2, _mbfl_memory_device_output@GOTPAGE
Lloh5:
	ldr	x2, [x2, _mbfl_memory_device_output@GOTPAGEOFF]
	mov	x3, #0
	mov	x4, x19
	bl	_mbfl_convert_filter_new
	str	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.4:
	mov	x4, x0
	ldr	x0, [x19, #32]
	ldp	x3, x2, [x4]
Lloh6:
	adrp	x1, _mbfl_encoding_wchar@GOTPAGE
Lloh7:
	ldr	x1, [x1, _mbfl_encoding_wchar@GOTPAGEOFF]
	bl	_mbfl_convert_filter_new
	str	x0, [x19, #16]
	cbnz	x0, LBB0_7
; %bb.5:
	ldr	x0, [x19, #24]
	bl	_mbfl_convert_filter_delete
LBB0_6:
	ldr	x0, [x23]
LBB0_7:
	cbz	x0, LBB0_9
; %bb.8:
	lsr	x2, x20, #2
	mov	x0, x19
	mov	x1, x20
	bl	_mbfl_memory_device_init
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_mbfl_free
	mov	x19, #0
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_mbfl_encoding_wchar,4,2        ; @mbfl_encoding_wchar
.subsections_via_symbols
