	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_String_readLine                ## -- Begin function String_readLine
	.p2align	4, 0x90
_String_readLine:                       ## @String_readLine
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$1025, %edi                     ## imm = 0x401
	callq	_xMalloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$1025, %esi                     ## imm = 0x401
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	$1024, %r12d                    ## imm = 0x400
	movq	%rbx, %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strrchr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	1024(%r12), %r13
	leal	1025(%r12), %esi
	movq	%r15, %rdi
	callq	_xRealloc
	movq	%rax, %r15
	movq	%rax, %rbx
	addq	%r12, %rbx
	movq	%rbx, %rdi
	movl	$1025, %esi                     ## imm = 0x401
	movq	%r14, %rdx
	callq	_fgets
	movq	%r13, %r12
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_2
LBB0_1:
	movq	%rbx, %r15
LBB0_2:
	movq	%r15, %rdi
	callq	_free
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_5:
	movb	$0, (%rax)
LBB0_6:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_String_readLine                ; -- Begin function String_readLine
	.p2align	2
_String_readLine:                       ; @String_readLine
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w0, #1025
	bl	_xMalloc
	mov	x21, x0
	mov	w1, #1025
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_5
; %bb.1:
	mov	w22, #1024
	mov	x20, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #10
	bl	_strrchr
	cbnz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_feof
	cbnz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x22, #1024
	add	w1, w22, #1025
	mov	x0, x20
	bl	_xRealloc
	mov	x20, x0
	add	x21, x0, x22
	mov	x0, x21
	mov	w1, #1025
	mov	x2, x19
	bl	_fgets
	mov	x22, x23
	cbnz	x0, LBB0_2
	b	LBB0_6
LBB0_5:
	mov	x20, x21
LBB0_6:
	mov	x0, x20
	bl	_free
	mov	x20, #0
	b	LBB0_8
LBB0_7:
	strb	wzr, [x0]
LBB0_8:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
