	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simple_read_line
_simple_read_line:                      ## @simple_read_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rsi
	movl	$7, %edx
	callq	_PEEK_BYTES
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %esi
	movq	(%rbx), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %edx
	cmpb	$10, (%rax,%rdx)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	cmpl	%ecx, %esi
	jne	LBB0_3
## %bb.5:
	cmpl	$7, %esi
	je	LBB0_7
	jmp	LBB0_11
LBB0_1:
	movq	_VC_CONTAINER_ERROR_EOS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	cmpl	$7, %ecx
	jne	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_CORRUPTED@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movl	%ecx, %edi
	leaq	1(%rcx), %rdx
	movb	$0, (%rax,%rdi)
	movq	(%rbx), %rax
	cmpl	%esi, %edx
	jae	LBB0_10
## %bb.9:
	leal	2(%rcx), %esi
	cmpb	$13, 1(%rax,%rcx)
	cmovel	%esi, %edx
LBB0_10:
	movl	%edx, %esi
LBB0_11:
	movl	%esi, %ecx
	movb	$0, (%rax,%rcx)
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_SKIP_BYTES
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_EOS,4,2     ## @VC_CONTAINER_ERROR_EOS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"line too big"

	.comm	_VC_CONTAINER_ERROR_CORRUPTED,4,2 ## @VC_CONTAINER_ERROR_CORRUPTED
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.no_dead_strip	_simple_read_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simple_read_line
_simple_read_line:                      ; @simple_read_line
	.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	x19, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	x1, [x20]
	mov	w2, #7
	bl	_PEEK_BYTES
	cbz	w0, LBB0_5
; %bb.1:
	mov	x1, x0
	ldr	x8, [x20]
	neg	w10, w0
	mov	w9, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w11, w9, #1
	ldrb	w11, [x8, w11, uxtw]
	cmp	w11, #10
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	add	w11, w10, w9
	cmp	w11, #1
	b.ne	LBB0_2
; %bb.4:
	cmp	w1, #7
	b.eq	LBB0_7
	b	LBB0_11
LBB0_5:
Lloh0:
	adrp	x8, _VC_CONTAINER_ERROR_EOS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_EOS@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
	cmp	w9, #8
	b.ne	LBB0_8
LBB0_7:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_LOG_ERROR
Lloh4:
	adrp	x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	sub	w10, w9, #1
	strb	wzr, [x8, x10]
	ldr	x8, [x20]
	cmp	w9, w1
	b.hs	LBB0_10
; %bb.9:
	ldrb	w10, [x8, x9]
	cmp	w10, #13
	cinc	w1, w9, eq
	b	LBB0_11
LBB0_10:
	mov	x1, x9
LBB0_11:
	strb	wzr, [x8, w1, uxtw]
	mov	x0, x19
	bl	_SKIP_BYTES
Lloh6:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_EOS,4,2     ; @VC_CONTAINER_ERROR_EOS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"line too big"

	.comm	_VC_CONTAINER_ERROR_CORRUPTED,4,2 ; @VC_CONTAINER_ERROR_CORRUPTED
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.no_dead_strip	_simple_read_line
.subsections_via_symbols
