	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbtowc                         ## -- Begin function mbtowc
	.p2align	4, 0x90
_mbtowc:                                ## @mbtowc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movb	(%rsi), %cl
	testb	%cl, %cl
	je	LBB0_7
## %bb.2:
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	testb	%cl, %cl
	js	LBB0_4
## %bb.5:
	movl	$1, %eax
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	movb	%cl, (%rdi)
LBB0_7:
	popq	%rbp
	retq
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbtowc                         ; -- Begin function mbtowc
	.p2align	2
_mbtowc:                                ; @mbtowc
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_7
; %bb.1:
	ldrsb	w8, [x1]
	cbz	w8, LBB0_7
; %bb.2:
	cbz	x2, LBB0_8
; %bb.3:
	tbnz	w8, #31, LBB0_8
; %bb.4:
	cbz	x0, LBB0_6
; %bb.5:
	strb	w8, [x0]
LBB0_6:
	mov	w0, #1
	ret
LBB0_7:
	mov	w0, #0
	ret
LBB0_8:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	mov	w0, #-1
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
