	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_ccl
_convert_ccl:                           ## @convert_ccl
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_initial_mbs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %esi
	callq	___fgetwc
	movq	%rax, %r15
	movq	_WEOF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	cmpq	%rax, %r15
	je	LBB0_12
## %bb.1:
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_inccl
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_SUPPRESS_PTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	leaq	-48(%rbp), %rdx
	callq	_wcrtomb
	cmpq	$-1, %rax
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%rax, %r14
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	___fgetwc
	movq	%rax, %r15
	movq	_WEOF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incl	%ebx
	cmpq	%rax, %r15
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ebx, %r13d
	jne	LBB0_3
LBB0_10:
	movl	%r13d, %ebx
	cmpq	%rax, %r15
	je	LBB0_12
LBB0_11:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	___ungetwc
LBB0_12:
	movq	_SUPPRESS_PTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_14
## %bb.13:
	movb	$0, (%r14)
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_WEOF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r15
	jne	LBB0_11
	jmp	LBB0_12
LBB0_16:
	movl	$-1, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_initial_mbs,4,2                ## @initial_mbs
	.comm	_WEOF,8,3                       ## @WEOF
	.comm	_SUPPRESS_PTR,8,3               ## @SUPPRESS_PTR
	.no_dead_strip	_convert_ccl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_ccl
_convert_ccl:                           ; @convert_ccl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _initial_mbs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _initial_mbs@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	mov	x1, x4
	bl	___fgetwc
Lloh3:
	adrp	x26, _WEOF@GOTPAGE
Lloh4:
	ldr	x26, [x26, _WEOF@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh5:
	adrp	x25, _SUPPRESS_PTR@GOTPAGE
Lloh6:
	ldr	x25, [x25, _SUPPRESS_PTR@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_14
LBB0_2:
	mov	x24, x0
	cbz	w19, LBB0_10
; %bb.3:
	mov	w27, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_inccl
	cbz	x0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	cmp	x20, x8
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x24
	bl	_wcrtomb
	cmn	x0, #1
	b.eq	LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, x0
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w27, w27, #1
	mov	x0, x22
	mov	x1, x21
	bl	___fgetwc
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	cmp	w19, w27
	b.ne	LBB0_4
LBB0_10:
	cmp	x24, x8
	b.eq	LBB0_14
LBB0_11:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	bl	___ungetwc
	b	LBB0_14
LBB0_12:
	ldr	x8, [x26]
	mov	x19, x27
	cmp	x24, x8
	b.ne	LBB0_11
	b	LBB0_14
LBB0_13:
	mov	x19, x27
LBB0_14:
	ldr	x8, [x25]
	cmp	x20, x8
	b.eq	LBB0_16
; %bb.15:
	strb	wzr, [x20]
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	mov	w19, #-1
	b	LBB0_16
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_initial_mbs,4,2                ; @initial_mbs
	.comm	_WEOF,8,3                       ; @WEOF
	.comm	_SUPPRESS_PTR,8,3               ; @SUPPRESS_PTR
	.no_dead_strip	_convert_ccl
.subsections_via_symbols
