	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%rsi, %r15
	cmpl	$1, %edi
	jne	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %ebx
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
	callq	_clock
	movq	%rax, %r14
	movq	_BUF_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_malloc
	movq	%rax, %r12
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_fgets
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_fclose
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_clock
	subq	%r14, %rax
	cvtsi2ss	%rax, %xmm0
	movq	_CLOCKS_PER_SEC@GOTPCREL(%rip), %rax
	divss	(%rax), %xmm0
	cvtss2sd	%xmm0, %xmm0
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movb	$1, %al
	callq	_fprintf
	xorl	%eax, %eax
	callq	_clock
	movq	%rax, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	8(%r15), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ks_init
	movq	%rax, %rbx
	leaq	-80(%rbp), %r12
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$10, %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_ks_getuntil
	testq	%rax, %rax
	jns	LBB0_5
## %bb.6:
	movq	-80(%rbp), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_ks_destroy
	movl	%r15d, %edi
	callq	_close
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_clock
	subq	%r14, %rax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movq	_CLOCKS_PER_SEC@GOTPCREL(%rip), %rax
	divss	(%rax), %xmm0
	cvtss2sd	%xmm0, %xmm0
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edi
	movb	$1, %al
	callq	_fprintf
LBB0_7:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: %s <in.txt>\n"

	.comm	_BUF_SIZE,4,2                   ## @BUF_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"[fgets] %.2f sec\n"

	.comm	_CLOCKS_PER_SEC,4,2             ## @CLOCKS_PER_SEC
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.3:                               ## @.str.3
	.asciz	"[kstream] %.2f sec\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	b	LBB0_7
LBB0_2:
	bl	_clock
	mov	x20, x0
Lloh5:
	adrp	x23, _BUF_SIZE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _BUF_SIZE@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_malloc
	mov	x21, x0
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	mov	x22, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x21
	mov	x2, x22
	bl	_fgets
	cbnz	x0, LBB0_3
; %bb.4:
	mov	x0, x22
	bl	_fclose
Lloh9:
	adrp	x22, _stderr@GOTPAGE
Lloh10:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	ldr	w21, [x22]
	bl	_clock
	sub	x8, x0, x20
	scvtf	s0, x8
Lloh11:
	adrp	x23, _CLOCKS_PER_SEC@GOTPAGE
Lloh12:
	ldr	x23, [x23, _CLOCKS_PER_SEC@GOTPAGEOFF]
	ldr	s1, [x23]
	fdiv	s0, s0, s1
	fcvt	d0, s0
	str	d0, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_fprintf
	bl	_clock
	mov	x20, x0
	stp	xzr, xzr, [sp, #24]
	str	xzr, [sp, #16]
	ldr	x0, [x19, #8]
Lloh15:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_open
	mov	x19, x0
	bl	_ks_init
	mov	x21, x0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #16
	add	x3, sp, #44
	mov	x0, x21
	mov	w1, #10
	bl	_ks_getuntil
	tbz	x0, #63, LBB0_5
; %bb.6:
	ldr	x0, [sp, #16]
	bl	_free
	mov	x0, x21
	bl	_ks_destroy
	mov	x0, x19
	bl	_close
	ldr	w19, [x22]
	bl	_clock
	sub	x8, x0, x20
	scvtf	s0, x8
	ldr	s1, [x23]
	fdiv	s0, s0, s1
	fcvt	d0, s0
	str	d0, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: %s <in.txt>\n"

	.comm	_BUF_SIZE,4,2                   ; @BUF_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"[fgets] %.2f sec\n"

	.comm	_CLOCKS_PER_SEC,4,2             ; @CLOCKS_PER_SEC
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.3:                               ; @.str.3
	.asciz	"[kstream] %.2f sec\n"

.subsections_via_symbols
