	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ungetc                         ## -- Begin function ungetc
	.p2align	4, 0x90
_ungetc:                                ## @ungetc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$255, %edi
	ja	LBB0_2
## %bb.1:
	cmpl	$0, (%rsi)
	jne	LBB0_2
## %bb.3:
	movl	%edi, %eax
	movl	$1, (%rsi)
	movb	%al, 4(%rsi)
	movq	___FILE_EOF@GOTPCREL(%rip), %rcx
	movq	___FILE_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, 8(%rsi)
	popq	%rbp
	retq
LBB0_2:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
	.comm	___FILE_EOF,4,2                 ## @__FILE_EOF
	.comm	___FILE_ERROR,4,2               ## @__FILE_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ungetc                         ; -- Begin function ungetc
	.p2align	2
_ungetc:                                ; @ungetc
	.cfi_startproc
; %bb.0:
	cmp	w0, #255
	b.hi	LBB0_3
; %bb.1:
	ldr	w8, [x1]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x1]
	strb	w0, [x1, #4]
Lloh0:
	adrp	x8, ___FILE_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___FILE_EOF@GOTPAGEOFF]
Lloh2:
	adrp	x9, ___FILE_ERROR@GOTPAGE
Lloh3:
	ldr	x9, [x9, ___FILE_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x1, #8]
	bic	w8, w9, w8
	str	w8, [x1, #8]
	ret
LBB0_3:
Lloh6:
	adrp	x8, _EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
	.comm	___FILE_EOF,4,2                 ; @__FILE_EOF
	.comm	___FILE_ERROR,4,2               ; @__FILE_ERROR
.subsections_via_symbols
