	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fgetline                       ## -- Begin function fgetline
	.p2align	4, 0x90
_fgetline:                              ## @fgetline
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpb	$13, (%r14)
	jne	LBB0_4
## %bb.3:
	leaq	1(%r14), %rsi
	decl	%ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_memcpy
LBB0_4:
	movq	%r14, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movslq	%eax, %rcx
	addq	%r14, %rcx
	decq	%rcx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	decq	%rcx
	decl	%eax
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx), %edx
	cmpb	$13, %dl
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$10, %dl
	je	LBB0_8
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	movslq	%eax, %rcx
	movb	$0, (%r14,%rcx)
	movq	_g_line_number@GOTPCREL(%rip), %rcx
	incl	(%rcx)
	jmp	LBB0_11
LBB0_1:
	movl	$-1, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_line_number,4,2              ## @g_line_number
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fgetline                       ; -- Begin function fgetline
	.p2align	2
_fgetline:                              ; @fgetline
	.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	x20, x1
	mov	x19, x0
	bl	_fgets
	cbz	x0, LBB0_8
; %bb.1:
	ldrb	w8, [x19]
	cmp	w8, #13
	b.ne	LBB0_3
; %bb.2:
	add	x1, x19, #1
	sub	w2, w20, #1
	mov	x0, x19
	bl	_memcpy
LBB0_3:
	mov	x0, x19
	bl	_strlen
	cbz	w0, LBB0_7
; %bb.4:
	add	x8, x19, w0, sxtw
	sub	x8, x8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8]
	cmp	w9, #13
	ccmp	w9, #10, #4, ne
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x8, x8, #1
	sub	w0, w0, #1
	cbnz	w0, LBB0_5
LBB0_7:
	strb	wzr, [x19, w0, sxtw]
Lloh0:
	adrp	x8, _g_line_number@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_line_number@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_g_line_number,4,2              ; @g_line_number
.subsections_via_symbols
