	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getLine
_getLine:                               ## @getLine
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	_GetLine_ok@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	cmpl	$0, (%r15)
	jg	LBB0_5
LBB0_2:
	callq	_free
	movl	$0, (%r15)
	movq	_DEFAULT_LINE_LENGTH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_malloc
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %eax
	movl	%eax, (%r15)
LBB0_5:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_fgetc
	movl	%eax, %ebx
	movq	_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_6
LBB0_12:
	movq	_GetLine_eof@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_6:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	%r12, %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%r15), %r13
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpl	%r13d, %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jg	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	%ecx, %eax
	incl	%eax
	movq	_MAX_LINE_LENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	cmpl	%r14d, %eax
	cmovll	%eax, %r14d
	cmpl	%r13d, %r14d
	jle	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rdx, %r12
	movq	(%rdx), %rdi
	movl	%r14d, %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, (%r12)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, %rdx
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$10, %ebx
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rdx), %rax
	movb	%bl, (%rax,%r15)
	movq	%r14, %rdi
	callq	_fgetc
	movl	%eax, %ebx
	movq	%r13, %r15
	movq	_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_7
## %bb.11:
	testl	%r13d, %r13d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_17
	jmp	LBB0_12
LBB0_3:
	movq	_GetLine_outOfMemory@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_16:
	movq	%r15, %r13
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_17:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdx
	movl	%r13d, %ecx
	movb	$0, (%rdx,%rcx)
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_GetLine_exceedMaxLineLength@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_GetLine_ok,4,2                 ## @GetLine_ok
	.comm	_DEFAULT_LINE_LENGTH,4,2        ## @DEFAULT_LINE_LENGTH
	.comm	_GetLine_outOfMemory,4,2        ## @GetLine_outOfMemory
	.comm	_EOF,4,2                        ## @EOF
	.comm	_GetLine_eof,4,2                ## @GetLine_eof
	.comm	_MAX_LINE_LENGTH,4,2            ## @MAX_LINE_LENGTH
	.comm	_GetLine_exceedMaxLineLength,4,2 ## @GetLine_exceedMaxLineLength
	.no_dead_strip	_getLine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getLine
_getLine:                               ; @getLine
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GetLine_ok@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GetLine_ok@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	x0, [x0]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x22]
	cmp	w8, #0
	b.gt	LBB0_4
LBB0_2:
	bl	_free
	str	wzr, [x22]
Lloh3:
	adrp	x23, _DEFAULT_LINE_LENGTH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _DEFAULT_LINE_LENGTH@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_malloc
	str	x0, [x20]
	cbz	x0, LBB0_14
; %bb.3:
	ldr	w8, [x23]
	str	w8, [x22]
LBB0_4:
	mov	x0, x21
	bl	_fgetc
Lloh5:
	adrp	x26, _EOF@GOTPAGE
Lloh6:
	ldr	x26, [x26, _EOF@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_6
LBB0_5:
	mov	x25, #0
Lloh7:
	adrp	x8, _GetLine_eof@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GetLine_eof@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
	b	LBB0_16
LBB0_6:
	mov	x23, x0
	mov	x28, #0
Lloh10:
	adrp	x27, _MAX_LINE_LENGTH@GOTPAGE
Lloh11:
	ldr	x27, [x27, _MAX_LINE_LENGTH@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x28, #1
	ldr	w8, [x22]
	cmp	w8, w25
	b.gt	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #0
	cinc	w9, w8, lt
	add	w8, w8, w9, asr #1
	add	w9, w8, #1
	ldr	w10, [x27]
	cmp	w9, w10
	csinc	w24, w10, w8, ge
	cmp	w24, w25
	b.le	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x20]
	mov	x1, x24
	bl	_realloc
	cbz	x0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	str	x0, [x20]
	str	w24, [x22]
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w23, #10
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	strb	w23, [x8, x28]
	mov	x0, x21
	bl	_fgetc
	mov	x23, x0
	ldr	w8, [x26]
	mov	x28, x25
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.13:
	cbnz	w25, LBB0_16
	b	LBB0_5
LBB0_14:
Lloh12:
	adrp	x8, _GetLine_outOfMemory@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GetLine_outOfMemory@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
	b	LBB0_17
LBB0_15:
	mov	x25, x28
LBB0_16:
	ldr	x8, [x20]
	strb	wzr, [x8, w25, uxtw]
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh15:
	adrp	x8, _GetLine_exceedMaxLineLength@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GetLine_exceedMaxLineLength@GOTPAGEOFF]
Lloh17:
	ldr	w19, [x8]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GetLine_ok,4,2                 ; @GetLine_ok
	.comm	_DEFAULT_LINE_LENGTH,4,2        ; @DEFAULT_LINE_LENGTH
	.comm	_GetLine_outOfMemory,4,2        ; @GetLine_outOfMemory
	.comm	_EOF,4,2                        ; @EOF
	.comm	_GetLine_eof,4,2                ; @GetLine_eof
	.comm	_MAX_LINE_LENGTH,4,2            ; @MAX_LINE_LENGTH
	.comm	_GetLine_exceedMaxLineLength,4,2 ; @GetLine_exceedMaxLineLength
	.no_dead_strip	_getLine
.subsections_via_symbols
