	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_ucn
_convert_ucn:                           ## @convert_ucn
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	testl	%r8d, %r8d
	setne	%al
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -32(%rbp)
	leaq	-64(%rbp), %rcx
	movq	%rcx, -96(%rbp)
	movq	$6, -80(%rbp)
	movl	(%rdi,%rax,4), %r15d
	movq	_INITIAL_NORMALIZE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	addq	$4, %rsi
	movq	%rsi, -88(%rbp)
	leaq	-88(%rbp), %rsi
	leaq	-72(%rbp), %r8
	xorl	%ecx, %ecx
	callq	__cpp_valid_ucn
	leaq	-96(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	movl	%eax, %edi
	callq	_one_cppchar_to_utf8
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str(%rip), %rdx
LBB0_4:
	movq	_CPP_DL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cpp_errno
	jmp	LBB0_5
LBB0_2:
	movl	$6, %edx
	subl	-80(%rbp), %edx
	leaq	-64(%rbp), %rsi
	movl	%r15d, %edi
	movq	%r14, %rcx
	callq	_APPLY_CONVERSION
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	movq	-88(%rbp), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_4
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INITIAL_NORMALIZE_STATE,4,2    ## @INITIAL_NORMALIZE_STATE
	.comm	_errno,4,2                      ## @errno
	.comm	_CPP_DL_ERROR,4,2               ## @CPP_DL_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"converting UCN to source character set"

L_.str.1:                               ## @.str.1
	.asciz	"converting UCN to execution character set"

	.no_dead_strip	_convert_ucn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_ucn
_convert_ucn:                           ; @convert_ucn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x3
	mov	x19, x0
	cmp	w4, #0
	cset	w8, ne
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-40]
	add	x9, sp, #32
	mov	w22, #6
	stp	x22, x9, [sp, #8]
	ldr	w21, [x0, w8, uxtw #2]
Lloh3:
	adrp	x8, _INITIAL_NORMALIZE_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INITIAL_NORMALIZE_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp]
	add	x8, x1, #4
	str	x8, [sp, #24]
	add	x1, sp, #24
	mov	x4, sp
	mov	w3, #0
	bl	__cpp_valid_ucn
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_one_cppchar_to_utf8
	cbz	w0, LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	str	w0, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
Lloh11:
	adrp	x8, _CPP_DL_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CPP_DL_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cpp_errno
	b	LBB0_4
LBB0_3:
	ldr	w8, [sp, #8]
	sub	w2, w22, w8
	add	x1, sp, #32
	mov	x0, x21
	mov	x3, x20
	bl	_APPLY_CONVERSION
	cbz	w0, LBB0_6
LBB0_4:
	ldr	x0, [sp, #24]
	ldur	x8, [x29, #-40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	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
	add	sp, sp, #112
	ret
LBB0_6:
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_INITIAL_NORMALIZE_STATE,4,2    ; @INITIAL_NORMALIZE_STATE
	.comm	_errno,4,2                      ; @errno
	.comm	_CPP_DL_ERROR,4,2               ; @CPP_DL_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"converting UCN to source character set"

l_.str.1:                               ; @.str.1
	.asciz	"converting UCN to execution character set"

	.no_dead_strip	_convert_ucn
.subsections_via_symbols
