	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_line
_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	leaq	_get_line.linebuf(%rip), %rbx
	xorl	%r15d, %r15d
	leaq	_get_line.linebuf+509(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_read
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$10, (%rbx)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	decq	%r15
	incq	%rbx
	cmpq	$-509, %r15                     ## imm = 0xFE03
	jne	LBB0_1
	jmp	LBB0_5
LBB0_7:
	movb	$0, (%rbx)
	testq	%r15, %r15
	leaq	_get_line.linebuf(%rip), %rax
	cmoveq	%r15, %rax
	jmp	LBB0_6
LBB0_3:
	movw	$2573, (%rbx)                   ## imm = 0xA0D
	leaq	_get_line.linebuf(%rip), %r12
	subq	%r15, %r12
	addq	$2, %r12
LBB0_5:
	movb	$0, (%r12)
	leaq	_get_line.linebuf(%rip), %rax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_line.linebuf,512,4 ## @get_line.linebuf
	.no_dead_strip	_get_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_line
_get_line:                              ; @get_line
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, #0
Lloh0:
	adrp	x22, _get_line.linebuf@PAGE
Lloh1:
	add	x22, x22, _get_line.linebuf@PAGEOFF
Lloh2:
	adrp	x20, _get_line.linebuf@PAGE+509
Lloh3:
	add	x20, x20, _get_line.linebuf@PAGEOFF+509
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x22, x21
	mov	x0, x19
	mov	w2, #1
	bl	_read
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w8, [x22, x21]
	cmp	w8, #10
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x21, x21, #1
	cmp	x21, #509
	b.ne	LBB0_1
	b	LBB0_6
LBB0_4:
	strb	wzr, [x22, x21]
	cmp	x21, #0
	csel	x0, xzr, x22, eq
	b	LBB0_7
LBB0_5:
	add	x20, x22, x21
	mov	w8, #2573
	strh	w8, [x20], #2
LBB0_6:
	strb	wzr, [x20]
Lloh4:
	adrp	x0, _get_line.linebuf@PAGE
Lloh5:
	add	x0, x0, _get_line.linebuf@PAGEOFF
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_line.linebuf,512,0 ; @get_line.linebuf
	.no_dead_strip	_get_line
.subsections_via_symbols
