	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function __fgetwc_mbs
LCPI0_0:
	.quad	-1                              ## 0xffffffffffffffff
	.quad	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	___fgetwc_mbs
	.p2align	4, 0x90
___fgetwc_mbs:                          ## @__fgetwc_mbs
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	%ecx, %edi
	callq	_XLOCALE_CTYPE
	movq	%rax, %r12
	movl	$0, (%r14)
	cmpq	$0, (%rbx)
	je	LBB0_1
LBB0_2:
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdx
	movq	8(%rbx), %rsi
	movq	%r13, %rdi
	movq	%r15, %rcx
	callq	*(%r12)
	cmpq	$-2, %rax
	jne	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	___srefill
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	movq	%rbx, %rdi
	callq	___sfeof
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	___SERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_12
LBB0_4:
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	cmpq	$-1, %rax
	jne	LBB0_8
## %bb.6:
	movq	___SERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	jmp	LBB0_12
LBB0_1:
	movq	%rbx, %rdi
	callq	___srefill
	testq	%rax, %rax
	je	LBB0_2
LBB0_12:
	movq	_WEOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_7:
	movdqu	(%rbx), %xmm0
	paddq	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, (%rbx)
	incl	(%r14)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_8:
	addq	%rax, 8(%rbx)
	subq	%rax, (%rbx)
	addl	%eax, (%r14)
	movl	-44(%rbp), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WEOF,4,2                       ## @WEOF
	.comm	___SERR,4,2                     ## @__SERR
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function __fgetwc_mbs
lCPI0_0:
	.quad	-1                              ; 0xffffffffffffffff
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	___fgetwc_mbs
	.p2align	2
___fgetwc_mbs:                          ; @__fgetwc_mbs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x3
	bl	_XLOCALE_CTYPE
	mov	x22, x0
	str	wzr, [x20]
	ldr	x8, [x19]
	cbz	x8, LBB0_8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldp	x2, x1, [x19]
	add	x0, sp, #12
	mov	x3, x21
	blr	x8
	cmn	x0, #2
	b.ne	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	___srefill
	cbz	x0, LBB0_1
; %bb.3:
	mov	x0, x19
	bl	___sfeof
	cbz	x0, LBB0_9
; %bb.4:
Lloh0:
	adrp	x8, ___SERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___SERR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
Lloh3:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	b	LBB0_9
LBB0_5:
	cbz	x0, LBB0_10
; %bb.6:
	cmn	x0, #1
	b.ne	LBB0_11
; %bb.7:
Lloh9:
	adrp	x8, ___SERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, ___SERR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	___srefill
	cbz	x0, LBB0_1
LBB0_9:
Lloh12:
	adrp	x8, _WEOF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WEOF@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_10:
	ldr	q0, [x19]
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	add.2d	v0, v0, v1
	str	q0, [x19]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_12
LBB0_11:
	ldp	x9, x8, [x19]
	add	x8, x8, x0
	sub	x9, x9, x0
	stp	x9, x8, [x19]
	ldr	w8, [x20]
	add	w8, w8, w0
	str	w8, [x20]
	ldr	w0, [sp, #12]
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdr	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_WEOF,4,2                       ; @WEOF
	.comm	___SERR,4,2                     ; @__SERR
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
