	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_counters_from_header
_build_counters_from_header:            ## @build_counters_from_header
	.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), %rdi
	movl	$8192, %esi                     ## imm = 0x2000
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	-8240(%rbp), %rdi
	callq	_strlen
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movl	%r12d, %r13d
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	%r12d, %ebx
	jge	LBB0_12
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movslq	%ebx, %r14
	leaq	(%r14,%rbp), %rdi
	addq	$-8240, %rdi                    ## imm = 0xDFD0
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%r15d
	cmpl	%r12d, %ebx
	jge	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$32, -8240(%rbp,%r14)
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %ebx
	jmp	LBB0_11
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_27
LBB0_3:
	xorl	%r15d, %r15d
LBB0_12:
	movslq	%r15d, %rbx
	leaq	(,%rbx,4), %r15
	movq	%r15, %rdi
	callq	_malloc
	movq	_cnts@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_ncnts@GOTPCREL(%rip), %rcx
	movl	%ebx, (%rcx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_memset
	testl	%r12d, %r12d
	jle	LBB0_25
## %bb.15:
	movslq	%r12d, %rax
	movq	%rax, -8248(%rbp)               ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	addl	%eax, %r13d
	movb	$0, (%rax,%rbx)
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_process_header
	incl	%r14d
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	incl	%r13d
	cmpl	%r12d, %r13d
	jge	LBB0_25
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movslq	%r13d, %r15
	leaq	(%r15,%rbp), %rbx
	addq	$-8240, %rbx                    ## imm = 0xDFD0
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	%r12d, %r13d
	jge	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-8248(%rbp), %rcx               ## 8-byte Reload
	subq	%r15, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$32, (%rbx,%rax)
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=2
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_19
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%r12d, %r13d
	jmp	LBB0_23
LBB0_25:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_28
## %bb.26:
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	jmp	LBB0_27
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
LBB0_27:
	callq	_printf
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	addq	$8216, %rsp                     ## imm = 0x2018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"First line can't be read from file err:%d\n"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"s/"

	.comm	_cnts,8,3                       ## @cnts
	.comm	_ncnts,4,2                      ## @ncnts
L_.str.2:                               ## @.str.2
	.asciz	"No memory err:%d\n"

	.comm	_verbose,8,3                    ## @verbose
L_.str.3:                               ## @.str.3
	.asciz	"We have %d entries\n"

	.no_dead_strip	_build_counters_from_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_counters_from_header
_build_counters_from_header:            ; @build_counters_from_header
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	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, #-88]
	add	x0, sp, #8
	mov	w1, #8192
	bl	_fgets
	cbz	x0, LBB0_10
; %bb.1:
	add	x22, sp, #8
	add	x0, sp, #8
	bl	_strlen
	mov	x19, x0
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.2:
	mov	w24, #0
	mov	w21, #0
	mov	w23, w19
Lloh5:
	adrp	x20, l_.str.1@PAGE
Lloh6:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x25
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, #1
	cmp	w24, w19
	b.ge	LBB0_12
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	sxtw	x25, w24
	add	x0, x22, x25
	mov	x1, x20
	mov	w2, #2
	bl	_strncmp
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	cmp	w24, w19
	b.ge	LBB0_4
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x22, x25]
	cmp	w8, #32
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x25, x25, #1
	cmp	x23, x25
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x23
	b	LBB0_4
LBB0_10:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_28
LBB0_11:
	mov	w21, #0
LBB0_12:
	sbfiz	x20, x21, #2, #32
	mov	x0, x20
	bl	_malloc
Lloh12:
	adrp	x8, _cnts@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cnts@GOTPAGEOFF]
Lloh14:
	str	x0, [x8]
Lloh15:
	adrp	x8, _ncnts@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ncnts@GOTPAGEOFF]
Lloh17:
	str	w21, [x8]
	cbz	x0, LBB0_24
; %bb.13:
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	cmp	w19, #1
	b.lt	LBB0_25
; %bb.14:
	mov	w23, #0
	mov	w20, #0
	sxtw	x24, w19
	add	x25, sp, #8
Lloh18:
	adrp	x21, l_.str.1@PAGE
Lloh19:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=1
	strb	wzr, [x8]
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_process_header
	add	w20, w20, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w23, w23, #1
	cmp	w23, w19
	b.ge	LBB0_26
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	sxtw	x26, w23
	add	x22, x25, x26
	mov	x0, x22
	mov	x1, x21
	mov	w2, #2
	bl	_strncmp
	cbnz	x0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	w23, w19
	b.ge	LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x8, x25, x26
	sub	x9, x24, x26
LBB0_21:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w10, [x8]
	cmp	w10, #32
	b.eq	LBB0_15
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	add	w23, w23, #1
	add	x8, x8, #1
	subs	x9, x9, #1
	b.ne	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x23, x19
	b	LBB0_16
LBB0_24:
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_28
LBB0_25:
	mov	w20, #0
LBB0_26:
Lloh25:
	adrp	x8, _verbose@GOTPAGE
Lloh26:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cbz	x8, LBB0_29
; %bb.27:
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
LBB0_28:
	bl	_printf
LBB0_29:
	ldur	x8, [x29, #-88]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.30:
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #16
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"First line can't be read from file err:%d\n"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"s/"

	.comm	_cnts,8,3                       ; @cnts
	.comm	_ncnts,4,2                      ; @ncnts
l_.str.2:                               ; @.str.2
	.asciz	"No memory err:%d\n"

	.comm	_verbose,8,3                    ; @verbose
l_.str.3:                               ; @.str.3
	.asciz	"We have %d entries\n"

	.no_dead_strip	_build_counters_from_header
.subsections_via_symbols
