	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_wccl
_convert_wccl:                          ## @convert_wccl
	.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
	movl	%r8d, %r12d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	_initial_mbs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_SUPPRESS_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%r8d, %ecx
	callq	___fgetwc_mbs
	movq	%rax, %rbx
	movq	_WEOF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r13, %r15
	je	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	cmpq	%rax, %rbx
	je	LBB0_21
## %bb.2:
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	je	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_wctob
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpb	$0, (%rcx,%rax)
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, (%r13)
	addl	-44(%rbp), %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movl	%r12d, %ecx
	callq	___fgetwc_mbs
	movq	%rax, %rbx
	movq	_WEOF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$8, %r13
	cmpq	%rax, %rbx
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	decl	%r14d
	jne	LBB0_14
LBB0_16:
	cmpq	%rax, %rbx
	je	LBB0_18
LBB0_17:
	xorl	%eax, %eax
	callq	___get_locale
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	___ungetwc
LBB0_18:
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.20:
	movq	$0, (%r13)
	jmp	LBB0_21
LBB0_3:
	xorl	%r15d, %r15d
	cmpq	%rax, %rbx
	je	LBB0_21
## %bb.4:
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.5:
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_wctob
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpb	$0, (%rcx,%rax)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_8 Depth=1
	addl	-44(%rbp), %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	callq	___fgetwc_mbs
	movq	%rax, %rbx
	movq	_WEOF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	je	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	decl	%r14d
	jne	LBB0_8
	jmp	LBB0_10
LBB0_19:
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_15:
	movq	_WEOF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	jne	LBB0_17
	jmp	LBB0_18
LBB0_9:
	movq	_WEOF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_10:
	cmpq	%rax, %rbx
	je	LBB0_21
## %bb.11:
	xorl	%eax, %eax
	callq	___get_locale
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	___ungetwc
LBB0_21:
	movl	%r15d, %eax
	addq	$24, %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	_SUPPRESS_PTR,8,3               ## @SUPPRESS_PTR
	.comm	_WEOF,8,3                       ## @WEOF
	.no_dead_strip	_convert_wccl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_wccl
_convert_wccl:                          ; @convert_wccl
	.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	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _initial_mbs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _initial_mbs@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh3:
	adrp	x8, _SUPPRESS_PTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUPPRESS_PTR@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x3, x4
	bl	___fgetwc_mbs
	mov	x21, x0
Lloh6:
	adrp	x26, _WEOF@GOTPAGE
Lloh7:
	ldr	x26, [x26, _WEOF@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x20, x25
	b.eq	LBB0_11
; %bb.1:
	cmp	x21, x8
	b.eq	LBB0_12
; %bb.2:
	mov	w20, #0
	cbz	w24, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_wctob
	ldrb	w8, [x23, x0]
	cbz	w8, LBB0_18
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x25
	str	x21, [x27], #8
	ldr	w8, [sp, #8]
	add	w20, w8, w20
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, x22
	bl	___fgetwc_mbs
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
	mov	x25, x27
	subs	w24, w24, #1
	b.ne	LBB0_3
; %bb.6:
	mov	x25, x27
LBB0_7:
	cmp	x21, x8
	b.eq	LBB0_9
LBB0_8:
	bl	___get_locale
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	___ungetwc
LBB0_9:
	cbz	w20, LBB0_13
LBB0_10:
	str	xzr, [x25]
	b	LBB0_13
LBB0_11:
	cmp	x21, x8
	b.ne	LBB0_14
LBB0_12:
	mov	w20, #0
LBB0_13:
	mov	x0, x20
	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_14:
	mov	w20, #0
	cbz	w24, LBB0_21
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_wctob
	ldrb	w8, [x23, x0]
	cbz	w8, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [sp, #8]
	add	w20, w8, w20
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, x22
	bl	___fgetwc_mbs
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x21, x0
	subs	w24, w24, #1
	b.ne	LBB0_15
	b	LBB0_21
LBB0_18:
	ldr	x8, [x26]
	cmp	x21, x8
	b.eq	LBB0_9
	b	LBB0_8
LBB0_19:
	add	x25, x25, #8
	cbnz	w20, LBB0_10
	b	LBB0_13
LBB0_20:
	ldr	x8, [x26]
LBB0_21:
	cmp	x21, x8
	b.eq	LBB0_13
; %bb.22:
	bl	___get_locale
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	___ungetwc
	b	LBB0_13
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_initial_mbs,4,2                ; @initial_mbs
	.comm	_SUPPRESS_PTR,8,3               ; @SUPPRESS_PTR
	.comm	_WEOF,8,3                       ; @WEOF
	.no_dead_strip	_convert_wccl
.subsections_via_symbols
