	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_line                       ## -- Begin function get_line
	.p2align	4, 0x90
_get_line:                              ## @get_line
	.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
	leaq	-32(%rbp), %rsi
	callq	_fgetln
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r14
	movq	-32(%rbp), %rbx
	cmpb	$10, -1(%rbx,%rax)
	je	LBB0_6
## %bb.5:
	incq	%rbx
	movq	%rbx, -32(%rbp)
LBB0_6:
	movq	%rbx, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	decq	%rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	-32(%rbp), %rax
	movb	$0, -1(%rax,%r15)
	jmp	LBB0_9
LBB0_1:
	movq	%rbx, %rdi
	callq	_ferror
	xorl	%r15d, %r15d
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_GETLINE_FILE_CORRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_3:
	movq	_get_line_error@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	jmp	LBB0_9
LBB0_7:
	movq	_GETLINE_OUT_OF_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_get_line_error@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%r15d, %r15d
LBB0_9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GETLINE_FILE_CORRUPT,4,2       ## @GETLINE_FILE_CORRUPT
	.comm	_get_line_error,4,2             ## @get_line_error
	.comm	_GETLINE_OUT_OF_MEM,4,2         ## @GETLINE_OUT_OF_MEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_line                       ; -- Begin function get_line
	.p2align	2
_get_line:                              ; @get_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	add	x1, sp, #8
	bl	_fgetln
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x21, [sp, #8]
	add	x8, x21, x0
	ldurb	w8, [x8, #-1]
	cmp	w8, #10
	b.eq	LBB0_3
; %bb.2:
	add	x21, x21, #1
	str	x21, [sp, #8]
LBB0_3:
	mov	x0, x21
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.4:
	sub	x2, x21, #1
	mov	x0, x19
	mov	x1, x20
	bl	_memcpy
	ldr	x8, [sp, #8]
	add	x8, x8, x19
	sturb	wzr, [x8, #-1]
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_ferror
	mov	x19, #0
Lloh0:
	adrp	x8, _GETLINE_FILE_CORRUPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GETLINE_FILE_CORRUPT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _GETLINE_OUT_OF_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GETLINE_OUT_OF_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
LBB0_7:
Lloh6:
	adrp	x9, _get_line_error@GOTPAGE
Lloh7:
	ldr	x9, [x9, _get_line_error@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GETLINE_FILE_CORRUPT,4,2       ; @GETLINE_FILE_CORRUPT
	.comm	_get_line_error,4,2             ; @get_line_error
	.comm	_GETLINE_OUT_OF_MEM,4,2         ; @GETLINE_OUT_OF_MEM
.subsections_via_symbols
