	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_lineW
_get_lineW:                             ## @get_lineW
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_get_lineW.size(%rip), %rax
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.1:
	movq	%rdi, %r15
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_get_lineW.next(%rip), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_17
LBB0_16:
	testq	%rax, %rax
	je	LBB0_18
LBB0_17:
	movq	_get_lineW.buf(%rip), %rdi
	callq	_heap_free
LBB0_18:
	movq	$0, _get_lineW.size(%rip)
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_2:
	movq	_REG_VAL_BUF_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, _get_lineW.size(%rip)
	callq	_heap_xalloc
	movq	%rax, %rbx
	movq	%rax, _get_lineW.buf(%rip)
	movb	$0, (%rax)
	movq	%rax, _get_lineW.next(%rip)
LBB0_4:
	leaq	_get_lineW.line_endings(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strpbrkW
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:
	leaq	_get_lineW.line_endings(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_get_lineW.next(%rip), %rdi
	callq	_strlenW
	movq	%rax, %r12
	movq	_get_lineW.buf(%rip), %rdi
	movq	_get_lineW.next(%rip), %rsi
	leaq	1(%rax), %rdx
	callq	_memmove
	movq	_get_lineW.size(%rip), %rsi
	movq	%rsi, %rax
	subq	%r12, %rax
	cmpq	$3, %rax
	jae	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	%rsi, %rsi
	movq	%rsi, _get_lineW.size(%rip)
	movq	_get_lineW.buf(%rip), %rdi
	callq	_heap_xrealloc
	movq	%rax, %rdi
	movq	%rax, _get_lineW.buf(%rip)
	movq	_get_lineW.size(%rip), %rsi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_get_lineW.buf(%rip), %rdi
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	%r12, %rdi
	movq	%r12, %rdx
	notq	%rdx
	addq	%rsi, %rdx
	movl	$1, %esi
	movq	%r15, %rcx
	callq	_fread
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_get_lineW.buf(%rip), %rbx
	addq	%r12, %rax
	movb	$0, (%rbx,%rax)
	movq	%rbx, _get_lineW.next(%rip)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strpbrkW
	testq	%rax, %rax
	je	LBB0_7
LBB0_12:
	leaq	1(%rax), %rcx
	movq	%rcx, _get_lineW.next(%rip)
	cmpb	$13, (%rax)
	jne	LBB0_15
## %bb.13:
	cmpb	$10, (%rcx)
	jne	LBB0_15
## %bb.14:
	leaq	2(%rax), %rcx
	movq	%rcx, _get_lineW.next(%rip)
LBB0_15:
	movb	$0, (%rax)
LBB0_19:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	$0, _get_lineW.next(%rip)
	movq	_get_lineW.buf(%rip), %rbx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_lineW.size,8,3 ## @get_lineW.size
.zerofill __DATA,__bss,_get_lineW.buf,8,3 ## @get_lineW.buf
.zerofill __DATA,__bss,_get_lineW.next,8,3 ## @get_lineW.next
	.comm	_REG_VAL_BUF_SIZE,8,3           ## @REG_VAL_BUF_SIZE
	.section	__TEXT,__const
_get_lineW.line_endings:                ## @get_lineW.line_endings
	.asciz	"\r\n"

	.no_dead_strip	_get_lineW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_lineW
_get_lineW:                             ; @get_lineW
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	adrp	x24, _get_lineW.size@PAGE
	ldr	x8, [x24, _get_lineW.size@PAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	adrp	x23, _get_lineW.next@PAGE
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x20, [x23, _get_lineW.next@PAGEOFF]
	cbnz	x20, LBB0_7
	b	LBB0_4
LBB0_3:
	cbz	x8, LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _get_lineW.buf@PAGE
Lloh1:
	ldr	x0, [x8, _get_lineW.buf@PAGEOFF]
	bl	_heap_free
LBB0_5:
	mov	x20, #0
	str	xzr, [x24, _get_lineW.size@PAGEOFF]
	b	LBB0_18
LBB0_6:
Lloh2:
	adrp	x8, _REG_VAL_BUF_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_VAL_BUF_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	str	x0, [x24, _get_lineW.size@PAGEOFF]
	bl	_heap_xalloc
	mov	x20, x0
	adrp	x8, _get_lineW.buf@PAGE
	str	x0, [x8, _get_lineW.buf@PAGEOFF]
	strb	wzr, [x0]
	str	x0, [x23, _get_lineW.next@PAGEOFF]
LBB0_7:
Lloh5:
	adrp	x1, _get_lineW.line_endings@PAGE
Lloh6:
	add	x1, x1, _get_lineW.line_endings@PAGEOFF
	mov	x0, x20
	bl	_strpbrkW
	cbnz	x0, LBB0_14
; %bb.8:
	adrp	x25, _get_lineW.buf@PAGE
Lloh7:
	adrp	x21, _get_lineW.line_endings@PAGE
Lloh8:
	add	x21, x21, _get_lineW.line_endings@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23, _get_lineW.next@PAGEOFF]
	bl	_strlenW
	mov	x22, x0
	ldr	x0, [x25, _get_lineW.buf@PAGEOFF]
	ldr	x1, [x23, _get_lineW.next@PAGEOFF]
	add	x2, x22, #1
	bl	_memmove
	ldr	x8, [x24, _get_lineW.size@PAGEOFF]
	sub	x9, x8, x22
	cmp	x9, #3
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	lsl	x1, x8, #1
	str	x1, [x24, _get_lineW.size@PAGEOFF]
	ldr	x0, [x25, _get_lineW.buf@PAGEOFF]
	bl	_heap_xrealloc
	str	x0, [x25, _get_lineW.buf@PAGEOFF]
	ldr	x8, [x24, _get_lineW.size@PAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x25, _get_lineW.buf@PAGEOFF]
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x0, x0, x22
	mvn	x9, x22
	add	x2, x8, x9
	mov	w1, #1
	mov	x3, x19
	bl	_fread
	cbz	x0, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x20, [x25, _get_lineW.buf@PAGEOFF]
	add	x8, x0, x22
	strb	wzr, [x20, x8]
	str	x20, [x23, _get_lineW.next@PAGEOFF]
	mov	x0, x20
	mov	x1, x21
	bl	_strpbrkW
	cbz	x0, LBB0_9
LBB0_14:
	add	x8, x0, #1
	str	x8, [x23, _get_lineW.next@PAGEOFF]
	ldrb	w9, [x0]
	cmp	w9, #13
	b.ne	LBB0_17
; %bb.15:
	ldrb	w8, [x8]
	cmp	w8, #10
	b.ne	LBB0_17
; %bb.16:
	add	x8, x0, #2
	str	x8, [x23, _get_lineW.next@PAGEOFF]
LBB0_17:
	strb	wzr, [x0]
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_19:
	str	xzr, [x23, _get_lineW.next@PAGEOFF]
	ldr	x20, [x25, _get_lineW.buf@PAGEOFF]
	b	LBB0_18
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_lineW.size,8,3 ; @get_lineW.size
.zerofill __DATA,__bss,_get_lineW.buf,8,3 ; @get_lineW.buf
.zerofill __DATA,__bss,_get_lineW.next,8,3 ; @get_lineW.next
	.comm	_REG_VAL_BUF_SIZE,8,3           ; @REG_VAL_BUF_SIZE
	.section	__TEXT,__const
_get_lineW.line_endings:                ; @get_lineW.line_endings
	.asciz	"\r\n"

	.no_dead_strip	_get_lineW
.subsections_via_symbols
