	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function afgets
_afgets:                                ## @afgets
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_getc
	cmpl	$10, %eax
	je	LBB0_5
## %bb.1:
	movq	_EOF@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	je	LBB0_5
## %bb.2:
	movq	_temporary_obstack@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_obstack_1grow
	movq	%rbx, %rdi
	callq	_getc
	cmpl	$10, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	(%r15), %eax
	jne	LBB0_3
LBB0_5:
	movq	_temporary_obstack@GOTPCREL(%rip), %rdi
	callq	_obstack_object_size
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_temporary_obstack@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_obstack_1grow
	movq	%rbx, %rdi
	callq	_obstack_finish
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
	.comm	_temporary_obstack,4,2          ## @temporary_obstack
	.no_dead_strip	_afgets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function afgets
_afgets:                                ; @afgets
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_getc
	cmp	w0, #10
	b.eq	LBB0_5
; %bb.1:
Lloh0:
	adrp	x21, _EOF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EOF@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.2:
Lloh2:
	adrp	x20, _temporary_obstack@GOTPAGE
Lloh3:
	ldr	x20, [x20, _temporary_obstack@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w1, w0
	mov	x0, x20
	bl	_obstack_1grow
	mov	x0, x19
	bl	_getc
	cmp	w0, #10
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_3
LBB0_5:
Lloh4:
	adrp	x0, _temporary_obstack@GOTPAGE
Lloh5:
	ldr	x0, [x0, _temporary_obstack@GOTPAGEOFF]
	bl	_obstack_object_size
	cbz	x0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x19, _temporary_obstack@GOTPAGE
Lloh7:
	ldr	x19, [x19, _temporary_obstack@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #0
	bl	_obstack_1grow
	mov	x0, x19
	bl	_obstack_finish
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
	.comm	_temporary_obstack,4,2          ; @temporary_obstack
	.no_dead_strip	_afgets
.subsections_via_symbols
