	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_input_peekc
_mpc_input_peekc:                       ## @mpc_input_peekc
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$130, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.3:
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	movb	(%rax,%rcx), %r14b
	jmp	LBB0_13
LBB0_4:
	movl	16(%rbx), %edi
	callq	_fgetc
	movl	%eax, %r14d
	movl	16(%rbx), %edi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movl	16(%rbx), %edi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %esi
	callq	_fseek
	jmp	LBB0_13
LBB0_6:
	cmpl	$0, 20(%rbx)
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_mpc_input_buffer_in_range
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mpc_input_buffer_get           ## TAILCALL
LBB0_9:
	movl	16(%rbx), %edi
	callq	_getc
	movl	%eax, %r14d
	movl	16(%rbx), %edi
	callq	_feof
	testl	%eax, %eax
	je	LBB0_10
LBB0_12:
	xorl	%r14d, %r14d
LBB0_13:
	movsbl	%r14b, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movl	16(%rbx), %esi
	movsbl	%r14b, %edi
	callq	_ungetc
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.no_dead_strip	_mpc_input_peekc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc_input_peekc
_mpc_input_peekc:                       ; @mpc_input_peekc
	.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
	ldr	w8, [x0]
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	ldrb	w20, [x8, x9]
	b	LBB0_11
LBB0_4:
	ldr	w0, [x19, #16]
	bl	_fgetc
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_feof
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #-1
	bl	_fseek
	b	LBB0_11
LBB0_6:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_mpc_input_buffer_in_range
	cbz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mpc_input_buffer_get
LBB0_9:
	ldr	w0, [x19, #16]
	bl	_getc
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_feof
	cbz	w0, LBB0_12
LBB0_10:
	mov	w20, #0
LBB0_11:
	sxtb	w0, w20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_ungetc
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.no_dead_strip	_mpc_input_peekc
.subsections_via_symbols
