	.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
	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	%edi, %r15d
	movq	_EOF@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	cmpl	%edi, %ebx
	jne	LBB0_2
## %bb.1:
	movl	%r15d, %ebx
	jmp	LBB0_17
LBB0_2:
	movq	%rsi, %r14
	movl	(%rsi), %eax
	movq	___SRD@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	testl	%eax, %ecx
	je	LBB0_7
LBB0_3:
	movzbl	%r15b, %ebx
	movq	%r14, %rdi
	callq	_HASUB
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movl	4(%r14), %eax
	cmpl	40(%r14), %eax
	jl	LBB0_11
## %bb.5:
	movq	%r14, %rdi
	callq	___submore
	testq	%rax, %rax
	jne	LBB0_10
LBB0_11:
	movq	8(%r14), %rax
	leaq	-4(%rax), %rcx
	movq	%rcx, 8(%r14)
	movl	%ebx, -4(%rax)
	incl	4(%r14)
	jmp	LBB0_17
LBB0_7:
	movq	___SRW@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_17
## %bb.8:
	movq	___SWR@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_19
## %bb.9:
	movq	%r14, %rdi
	callq	___sflush
	testq	%rax, %rax
	je	LBB0_18
LBB0_10:
	movl	(%r12), %ebx
	jmp	LBB0_17
LBB0_12:
	movq	___SEOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	movq	8(%r14), %rax
	movq	56(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.13:
	cmpq	%rcx, %rax
	jbe	LBB0_16
## %bb.14:
	cmpl	%ebx, -4(%rax)
	jne	LBB0_16
## %bb.15:
	addq	$-4, %rax
	movq	%rax, 8(%r14)
	incl	4(%r14)
	jmp	LBB0_17
LBB0_16:
	movl	4(%r14), %ecx
	movl	%ecx, 16(%r14)
	movq	%rax, 24(%r14)
	movq	32(%r14), %rax
	movq	%rax, 48(%r14)
	movl	$8, 40(%r14)
	movl	%ebx, 28(%rax)
	addq	$28, %rax
	movq	%rax, 8(%r14)
	movl	$1, 4(%r14)
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	(%rbx), %eax
	notl	%eax
	andl	(%r14), %eax
	movl	%eax, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r14)
	movl	(%r13), %ecx
LBB0_19:
	orl	%ecx, %eax
	movl	%eax, (%r14)
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
	.comm	___SRD,4,2                      ## @__SRD
	.comm	___SRW,4,2                      ## @__SRW
	.comm	___SWR,4,2                      ## @__SWR
	.comm	___SEOF,4,2                     ## @__SEOF
.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x21, _EOF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EOF@GOTPAGEOFF]
	ldr	w10, [x21]
	cmp	w10, w0
	b.eq	LBB0_17
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1]
Lloh2:
	adrp	x22, ___SRD@GOTPAGE
Lloh3:
	ldr	x22, [x22, ___SRD@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_2:
	and	w19, w19, #0xff
	mov	x0, x20
	bl	_HASUB
	cbz	x0, LBB0_11
; %bb.3:
	ldr	w8, [x20, #4]
	ldr	w9, [x20, #40]
	cmp	w8, w9
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	___submore
	cbnz	x0, LBB0_10
LBB0_5:
	ldr	x8, [x20, #8]
	str	w19, [x8, #-4]!
	str	x8, [x20, #8]
LBB0_6:
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	b	LBB0_16
LBB0_7:
Lloh4:
	adrp	x11, ___SRW@GOTPAGE
Lloh5:
	ldr	x11, [x11, ___SRW@GOTPAGEOFF]
Lloh6:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_18
; %bb.8:
Lloh7:
	adrp	x23, ___SWR@GOTPAGE
Lloh8:
	ldr	x23, [x23, ___SWR@GOTPAGEOFF]
	ldr	w10, [x23]
	tst	w10, w8
	b.eq	LBB0_20
; %bb.9:
	mov	x0, x20
	bl	___sflush
	cbz	x0, LBB0_19
LBB0_10:
	ldr	w19, [x21]
	b	LBB0_17
LBB0_11:
Lloh9:
	adrp	x8, ___SEOF@GOTPAGE
Lloh10:
	ldr	x8, [x8, ___SEOF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	ldr	x9, [x20, #56]
	ldr	x8, [x20, #8]
	cbz	x9, LBB0_15
; %bb.12:
	cmp	x8, x9
	b.ls	LBB0_15
; %bb.13:
	mov	x9, x8
	ldr	w10, [x9, #-4]!
	cmp	w10, w19
	b.ne	LBB0_15
; %bb.14:
	str	x9, [x20, #8]
	b	LBB0_6
LBB0_15:
	ldr	w9, [x20, #4]
	str	w9, [x20, #16]
	str	x8, [x20, #24]
	ldr	x8, [x20, #32]
	str	x8, [x20, #48]
	mov	w9, #8
	str	w9, [x20, #40]
	str	w19, [x8, #28]!
	str	x8, [x20, #8]
	mov	w8, #1
LBB0_16:
	str	w8, [x20, #4]
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	x19, x10
	b	LBB0_17
LBB0_19:
	ldr	w8, [x23]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	stp	xzr, xzr, [x20, #64]
	ldr	w9, [x22]
LBB0_20:
	orr	w8, w8, w9
	str	w8, [x20]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
	.comm	___SRD,4,2                      ; @__SRD
	.comm	___SRW,4,2                      ; @__SRW
	.comm	___SWR,4,2                      ; @__SWR
	.comm	___SEOF,4,2                     ; @__SEOF
.subsections_via_symbols
