	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbrtoc16_l                     ## -- Begin function mbrtoc16_l
	.p2align	4, 0x90
_mbrtoc16_l:                            ## @mbrtoc16_l
	.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
	movl	%r8d, %r15d
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	%r8d, %edi
	callq	_FIX_LOCALE
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	testq	%r14, %r14
	jne	LBB0_3
	jmp	LBB0_11
LBB0_1:
	movl	%r15d, %edi
	callq	_XLOCALE_CTYPE
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_11
LBB0_3:
	testq	%r13, %r13
	je	LBB0_11
## %bb.4:
	movl	(%rbx), %eax
	movl	%eax, %ecx
	andl	$-1024, %ecx                    ## imm = 0xFC00
	cmpl	$56320, %ecx                    ## imm = 0xDC00
	jne	LBB0_6
## %bb.5:
	movl	%eax, (%r14)
	movl	$0, (%rbx)
	movq	$-3, %rax
	jmp	LBB0_10
LBB0_11:
	movl	$0, (%rbx)
	addq	$4, %rbx
	xorl	%edi, %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	movl	%r15d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mbrtoc32_l                     ## TAILCALL
LBB0_6:
	leaq	4(%rbx), %rcx
	leaq	-44(%rbp), %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movl	%r15d, %r8d
	callq	_mbrtoc32_l
	testq	%rax, %rax
	js	LBB0_10
## %bb.7:
	movl	-44(%rbp), %ecx
	cmpl	$65535, %ecx                    ## imm = 0xFFFF
	jg	LBB0_9
## %bb.8:
	movl	%ecx, (%r14)
	jmp	LBB0_10
LBB0_9:
	leal	-65536(%rcx), %edx
	shrl	$10, %edx
	orl	$55296, %edx                    ## imm = 0xD800
	movl	%edx, (%r14)
	andl	$1023, %ecx                     ## imm = 0x3FF
	orl	$56320, %ecx                    ## imm = 0xDC00
	movl	%ecx, (%rbx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbrtoc16_l                     ; -- Begin function mbrtoc16_l
	.p2align	2
_mbrtoc16_l:                            ; @mbrtoc16_l
	.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
	mov	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	mov	x0, x4
	bl	_FIX_LOCALE
	cbz	x19, LBB0_2
; %bb.1:
	cbnz	x20, LBB0_3
	b	LBB0_6
LBB0_2:
	mov	x0, x21
	bl	_XLOCALE_CTYPE
	mov	x19, x0
	cbz	x20, LBB0_6
LBB0_3:
	cbz	x23, LBB0_6
; %bb.4:
	ldr	w8, [x19]
	lsr	w9, w8, #10
	cmp	w9, #55
	b.ne	LBB0_7
; %bb.5:
	str	w8, [x20]
	str	wzr, [x19]
	mov	x0, #-3
	b	LBB0_11
LBB0_6:
	str	wzr, [x19], #4
	mov	x0, #0
	mov	x1, x23
	mov	x2, x22
	mov	x3, x19
	mov	x4, 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
	b	_mbrtoc32_l
LBB0_7:
	add	x3, x19, #4
	add	x0, sp, #12
	mov	x1, x23
	mov	x2, x22
	mov	x4, x21
	bl	_mbrtoc32_l
	tbnz	x0, #63, LBB0_11
; %bb.8:
	ldr	w8, [sp, #12]
	subs	w9, w8, #16, lsl #12            ; =65536
	b.ge	LBB0_10
; %bb.9:
	str	w8, [x20]
	b	LBB0_11
LBB0_10:
	mov	w10, #55296
	orr	w9, w10, w9, lsr #10
	str	w9, [x20]
	mov	w9, #56320
	bfxil	w9, w8, #0, #10
	str	w9, [x19]
LBB0_11:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
