	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_char
_read_char:                             ## @read_char
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_readc
	movl	%eax, %ebx
	cmpl	$92, %eax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_read_escaped_char
	movl	%eax, %ebx
LBB0_2:
	xorl	%eax, %eax
	callq	_readc
	cmpl	$39, %eax
	je	LBB0_4
## %bb.3:
	movq	_pos@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_errorp
LBB0_4:
	movq	_ENC_NONE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	movsbl	%bl, %edi
	cmovnel	%ebx, %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_make_char                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pos,4,2                        ## @pos
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unterminated char"

	.comm	_ENC_NONE,4,2                   ## @ENC_NONE
	.no_dead_strip	_read_char
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_char
_read_char:                             ; @read_char
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_readc
	mov	x20, x0
	cmp	w0, #92
	b.ne	LBB0_2
; %bb.1:
	bl	_read_escaped_char
	mov	x20, x0
LBB0_2:
	bl	_readc
	cmp	w0, #39
	b.eq	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _pos@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pos@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errorp
LBB0_4:
Lloh5:
	adrp	x8, _ENC_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENC_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	sxtb	w9, w20
	cmp	w8, w19
	csel	w0, w9, w20, eq
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_make_char
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_pos,4,2                        ; @pos
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unterminated char"

	.comm	_ENC_NONE,4,2                   ; @ENC_NONE
	.no_dead_strip	_read_char
.subsections_via_symbols
