	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mbsconv
___mbsconv:                             ## @__mbsconv
	.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
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	%rdi, %r14
	testl	%esi, %esi
	js	LBB0_8
## %bb.2:
	movq	_initial_mbs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	je	LBB0_3
## %bb.4:
	movl	%esi, %r12d
	xorl	%r13d, %r13d
	leaq	-44(%rbp), %r15
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_mbrlen
	leaq	2(%rax), %rcx
	cmpq	$3, %rcx
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%rax, %rbx
	addq	%rax, %r13
	decq	%r12
	jne	LBB0_5
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %r13
	jmp	LBB0_9
LBB0_3:
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_7:
	cmpq	$-3, %rax
	ja	LBB0_17
LBB0_9:
	leaq	4(,%r13,4), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	%rax, %r15
	movq	_initial_mbs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	%r15, %r12
	testq	%r13, %r13
	je	LBB0_14
## %bb.11:
	leaq	-44(%rbp), %rbx
	movq	%r15, %r12
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_mbrtowc
	leaq	2(%rax), %rcx
	cmpq	$3, %rcx
	jb	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	$4, %r12
	addq	%rax, %r14
	subq	%rax, %r13
	jne	LBB0_12
	jmp	LBB0_14
LBB0_15:
	cmpq	$-2, %rax
	jb	LBB0_14
## %bb.16:
	movq	%r15, %rdi
	callq	_free
LBB0_17:
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_14:
	movl	$0, (%r12)
LBB0_18:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_initial_mbs,4,2                ## @initial_mbs
	.comm	_MB_CUR_MAX,4,2                 ## @MB_CUR_MAX
	.no_dead_strip	___mbsconv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mbsconv
___mbsconv:                             ; @__mbsconv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_15
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _initial_mbs@GOTPAGE
Lloh1:
	ldr	x22, [x22, _initial_mbs@GOTPAGEOFF]
	tbnz	w1, #31, LBB0_6
; %bb.2:
	ldr	w8, [x22]
	str	w8, [sp, #12]
	mov	x20, #0
	cbz	w1, LBB0_8
; %bb.3:
Lloh2:
	adrp	x23, _MB_CUR_MAX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MB_CUR_MAX@GOTPAGEOFF]
	mov	x21, x19
	mov	w24, w1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x21
	bl	_mbrlen
	add	x8, x0, #2
	cmp	x8, #3
	b.lo	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, x0
	add	x20, x0, x20
	subs	x24, x24, #1
	b.ne	LBB0_4
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_strlen
	mov	x20, x0
	b	LBB0_8
LBB0_7:
	cmn	x0, #3
	b.hi	LBB0_15
LBB0_8:
	lsl	x8, x20, #2
	add	x0, x8, #4
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_17
; %bb.9:
	ldr	w8, [x22]
	str	w8, [sp, #12]
	mov	x22, x21
	cbz	x20, LBB0_16
; %bb.10:
	mov	x22, x21
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #12
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_mbrtowc
	add	x8, x0, #2
	cmp	x8, #3
	b.lo	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #4
	add	x19, x19, x0
	subs	x20, x20, x0
	b.ne	LBB0_11
	b	LBB0_16
LBB0_13:
	cmn	x0, #2
	b.lo	LBB0_16
; %bb.14:
	mov	x0, x21
	bl	_free
LBB0_15:
	mov	x21, #0
	b	LBB0_17
LBB0_16:
	str	wzr, [x22]
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_initial_mbs,4,2                ; @initial_mbs
	.comm	_MB_CUR_MAX,4,2                 ; @MB_CUR_MAX
	.no_dead_strip	___mbsconv
.subsections_via_symbols
