	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tgetc
_tgetc:                                 ## @tgetc
	.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	_pbchar@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.6:
	movl	$-1, (%rcx)
	jmp	LBB0_7
LBB0_1:
	movq	_input@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_EOF@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %edi
	callq	_getc
	cmpl	(%rbx), %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_input_close
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pbchar,4,2                     ## @pbchar
	.comm	_input,8,3                      ## @input
	.comm	_EOF,4,2                        ## @EOF
	.no_dead_strip	_tgetc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tgetc
_tgetc:                                 ; @tgetc
	.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
Lloh0:
	adrp	x8, _pbchar@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pbchar@GOTPAGEOFF]
	ldr	w0, [x8]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	w9, #-1
	str	w9, [x8]
	b	LBB0_7
LBB0_2:
Lloh2:
	adrp	x19, _input@GOTPAGE
Lloh3:
	ldr	x19, [x19, _input@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.3:
Lloh4:
	adrp	x20, _EOF@GOTPAGE
Lloh5:
	ldr	x20, [x20, _EOF@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8]
	bl	_getc
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_input_close
	ldr	x8, [x19]
	cbnz	x8, LBB0_4
LBB0_6:
Lloh6:
	adrp	x8, _EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_pbchar,4,2                     ; @pbchar
	.comm	_input,8,3                      ; @input
	.comm	_EOF,4,2                        ; @EOF
	.no_dead_strip	_tgetc
.subsections_via_symbols
