	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_a_line
_read_a_line:                           ## @read_a_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	movl	$8216, %eax                     ## imm = 0x2018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rdx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-8240(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$8192, %esi                     ## imm = 0x2000
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_ncnts@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpl	$0, (%rdx)
	jle	LBB0_6
## %bb.3:
	movq	_cnts@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%r14d, %r14d
	leaq	-8248(%rbp), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rcx,%r14), %r13
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rdx, %rbx
	xorl	%edx, %edx
	callq	_strtol
	movq	_cnts@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx,%r14), %rdx
	movq	%rax, (%rdx,%r13,8)
	movq	%rbx, %rdx
	incl	(%rcx,%r14)
	addl	%eax, 16(%rcx,%r14)
	movq	-8248(%rbp), %rbx
	incq	%r12
	movslq	(%rdx), %rax
	addq	$24, %r14
	cmpq	%rax, %r12
	jl	LBB0_4
## %bb.5:
	movl	$1, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$8216, %rsp                     ## imm = 0x2018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ncnts,4,2                      ## @ncnts
	.comm	_cnts,8,3                       ## @cnts
	.no_dead_strip	_read_a_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_a_line
_read_a_line:                           ; @read_a_line
	.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	w9, #8208
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #16
	mov	x2, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x0, sp, #8
	mov	w1, #8192
	bl	_fgets
	cbz	x0, LBB0_5
; %bb.1:
Lloh5:
	adrp	x19, _ncnts@GOTPAGE
Lloh6:
	ldr	x19, [x19, _ncnts@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x20, #0
	mov	x21, #0
	add	x0, sp, #8
Lloh7:
	adrp	x22, _cnts@GOTPAGE
Lloh8:
	ldr	x22, [x22, _cnts@GOTPAGEOFF]
	ldr	x8, [x22]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x23, [x8, x20]
	mov	x1, sp
	mov	w2, #0
	bl	_strtol
	ldr	x8, [x22]
	add	x9, x8, x20
	ldr	x10, [x9, #8]
	str	x0, [x10, x23, lsl #3]
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
	ldr	w10, [x9, #16]
	add	w10, w10, w0
	str	w10, [x9, #16]
	ldr	x0, [sp]
	add	x21, x21, #1
	ldrsw	x9, [x19]
	add	x20, x20, #24
	cmp	x21, x9
	b.lt	LBB0_3
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #16
	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
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ncnts,4,2                      ; @ncnts
	.comm	_cnts,8,3                       ; @cnts
	.no_dead_strip	_read_a_line
.subsections_via_symbols
