	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_counter                   ## -- Begin function read_counter
	.p2align	4, 0x90
_read_counter:                          ## @read_counter
	.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
	movl	%edi, %r14d
	xorl	%edi, %edi
	movl	$-1, %esi
	callq	_malloc_counter
	movq	%rax, %r13
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_assert
	movq	_index_version@GOTPCREL(%rip), %r12
	cmpl	$4, (%r12)
	jl	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_readin_long
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_readin_int
LBB0_3:
	movq	%rax, 168(%r13)
	xorl	%eax, %eax
	callq	_readin_int
	movq	%rax, 136(%r13)
	xorl	%eax, %eax
	callq	_readin_int
	movq	%rax, %r15
	movl	%r15d, 8(%r13)
	movq	_FORCE_COUNTER_TYPE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	andl	$-65536, %r15d                  ## imm = 0xFFFF0000
	movq	168(%r13), %rdi
	callq	_get_cnt_type
	orl	%r15d, %eax
	movl	%eax, 8(%r13)
LBB0_5:
	xorl	%eax, %eax
	callq	_readin_int
	movq	%rax, 160(%r13)
	xorl	%eax, %eax
	callq	_readin_int
	movq	%rax, 152(%r13)
	xorl	%eax, %eax
	callq	_readin_int
	movq	%rax, 144(%r13)
	xorl	%eax, %eax
	callq	_readin_int
	movq	%rax, 136(%r13)
	xorl	%eax, %eax
	callq	_readin_int
	movq	%rax, 128(%r13)
	movl	(%r12), %eax
	cmpl	$3, %eax
	jl	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_readin_int
	movl	%eax, 12(%r13)
	xorl	%eax, %eax
	callq	_readin_int
	movl	%eax, 16(%r13)
	jmp	LBB0_10
LBB0_7:
	cmpl	$2, %eax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_readin_int
	movl	%eax, 12(%r13)
	xorl	%eax, %eax
	callq	_readin_int
	movl	%eax, 16(%r13)
	movl	$-1, %eax
	jmp	LBB0_11
LBB0_9:
	movq	$-1, 12(%r13)
LBB0_10:
	xorl	%eax, %eax
	callq	_readin_int
LBB0_11:
	movl	%eax, 20(%r13)
	movq	120(%r13), %rdi
	movl	$8, %esi
	callq	_readin
	xorl	%eax, %eax
	callq	_readin_int
	movq	%rax, %r15
	testb	$1, %r15b
	jne	LBB0_12
## %bb.13:
	testb	$2, %r15b
	jne	LBB0_14
LBB0_15:
	testb	$4, %r15b
	jne	LBB0_16
LBB0_17:
	testb	$8, %r15b
	jne	LBB0_18
LBB0_19:
	testb	$16, %r15b
	jne	LBB0_20
LBB0_21:
	testb	$32, %r15b
	jne	LBB0_22
LBB0_23:
	testb	$64, %r15b
	jne	LBB0_24
LBB0_25:
	testb	$-128, %r15b
	jne	LBB0_26
LBB0_27:
	testl	$256, %r15d                     ## imm = 0x100
	jne	LBB0_28
LBB0_29:
	cmpl	$0, (%r12)
	je	LBB0_30
LBB0_33:
	xorl	%eax, %eax
	callq	_readin_long
	movq	%rax, %rdi
	jmp	LBB0_34
LBB0_12:
	movq	_MAX_AGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_read_list
	movq	%rax, 112(%r13)
	testb	$2, %r15b
	je	LBB0_15
LBB0_14:
	movq	_MAX_MSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_read_list
	movq	%rax, 104(%r13)
	testb	$4, %r15b
	je	LBB0_17
LBB0_16:
	movq	_MAX_POLIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_read_list
	movq	%rax, 96(%r13)
	testb	$8, %r15b
	je	LBB0_19
LBB0_18:
	movq	_MAX_SECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_read_list
	movq	%rax, 88(%r13)
	testb	$16, %r15b
	je	LBB0_21
LBB0_20:
	xorl	%eax, %eax
	callq	_read_list2
	movq	%rax, 80(%r13)
	testb	$32, %r15b
	je	LBB0_23
LBB0_22:
	movq	_MAX_SEX_AGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_read_list
	movq	%rax, 72(%r13)
	testb	$64, %r15b
	je	LBB0_25
LBB0_24:
	xorl	%eax, %eax
	callq	_read_list2
	movq	%rax, 64(%r13)
	testb	$-128, %r15b
	je	LBB0_27
LBB0_26:
	xorl	%eax, %eax
	callq	_read_list2
	movq	%rax, 56(%r13)
	testl	$256, %r15d                     ## imm = 0x100
	je	LBB0_29
LBB0_28:
	movq	_MAX_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_read_list
	movq	%rax, 48(%r13)
	cmpl	$0, (%r12)
	jne	LBB0_33
LBB0_30:
	xorl	%eax, %eax
	callq	_readin_int
	movq	%rax, %r15
	testl	%r15d, %r15d
	jle	LBB0_32
## %bb.31:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_32:
	shll	$2, %r15d
	movl	%r15d, %edi
	callq	_readin_skip
	xorl	%edi, %edi
LBB0_34:
	movq	%rdi, 40(%r13)
	callq	_ipopcount
	testl	%eax, %eax
	jle	LBB0_37
## %bb.35:
	movl	%eax, %r15d
	leal	(,%r15,4), %edi
	callq	_zzmalloc
	movq	%rax, 32(%r13)
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_readin_int
	movq	32(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_36
LBB0_37:
	xorl	%eax, %eax
	callq	_readin_char
	movl	%eax, 28(%r13)
	xorl	%eax, %eax
	testl	%r14d, %r14d
	je	LBB0_39
## %bb.38:
	callq	_read_tree
	movl	%eax, 24(%r13)
	jmp	LBB0_40
LBB0_39:
	callq	_skip_tree
LBB0_40:
	xorl	%edi, %edi
	cmpq	$0, (%r13)
	sete	%dil
	callq	_assert
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_index_version,4,2              ## @index_version
	.comm	_FORCE_COUNTER_TYPE,8,3         ## @FORCE_COUNTER_TYPE
	.comm	_MAX_AGE,4,2                    ## @MAX_AGE
	.comm	_MAX_MSTATUS,4,2                ## @MAX_MSTATUS
	.comm	_MAX_POLIT,4,2                  ## @MAX_POLIT
	.comm	_MAX_SECTION,4,2                ## @MAX_SECTION
	.comm	_MAX_SEX_AGE,4,2                ## @MAX_SEX_AGE
	.comm	_MAX_SOURCE,4,2                 ## @MAX_SOURCE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dropping old data about subcounters.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_counter                   ; -- Begin function read_counter
	.p2align	2
_read_counter:                          ; @read_counter
	.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	x20, x0
	mov	w0, #0
	mov	w1, #-1
	bl	_malloc_counter
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
Lloh0:
	adrp	x22, _index_version@GOTPAGE
Lloh1:
	ldr	x22, [x22, _index_version@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #4
	b.lt	LBB0_2
; %bb.1:
	bl	_readin_long
	b	LBB0_3
LBB0_2:
	bl	_readin_int
LBB0_3:
	str	x0, [x19, #168]
	bl	_readin_int
	str	x0, [x19, #136]
	bl	_readin_int
	str	w0, [x19, #8]
Lloh2:
	adrp	x8, _FORCE_COUNTER_TYPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FORCE_COUNTER_TYPE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	and	w21, w0, #0xffff0000
	ldr	x0, [x19, #168]
	bl	_get_cnt_type
	orr	w8, w0, w21
	str	w8, [x19, #8]
LBB0_5:
	bl	_readin_int
	str	x0, [x19, #160]
	bl	_readin_int
	str	x0, [x19, #152]
	bl	_readin_int
	str	x0, [x19, #144]
	bl	_readin_int
	str	x0, [x19, #136]
	bl	_readin_int
	str	x0, [x19, #128]
	ldr	w8, [x22]
	cmp	w8, #3
	b.lt	LBB0_7
; %bb.6:
	bl	_readin_int
	str	w0, [x19, #12]
	bl	_readin_int
	str	w0, [x19, #16]
	bl	_readin_int
	b	LBB0_10
LBB0_7:
	cmp	w8, #2
	b.ne	LBB0_9
; %bb.8:
	bl	_readin_int
	str	w0, [x19, #12]
	bl	_readin_int
	str	w0, [x19, #16]
	mov	w0, #-1
	b	LBB0_10
LBB0_9:
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [x19, #12]
	bl	_readin_int
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_10:
	str	w0, [x19, #20]
	ldr	x0, [x19, #120]
	mov	w1, #8
	bl	_readin
	bl	_readin_int
	mov	x21, x0
	tbnz	w21, #0, LBB0_21
; %bb.11:
	tbnz	w21, #1, LBB0_22
LBB0_12:
	tbnz	w21, #2, LBB0_23
LBB0_13:
	tbnz	w21, #3, LBB0_24
LBB0_14:
	tbnz	w21, #4, LBB0_25
LBB0_15:
	tbnz	w21, #5, LBB0_26
LBB0_16:
	tbnz	w21, #6, LBB0_27
LBB0_17:
	tbnz	w21, #7, LBB0_28
LBB0_18:
	tbnz	w21, #8, LBB0_29
LBB0_19:
	ldr	w8, [x22]
	cbz	w8, LBB0_30
LBB0_20:
	bl	_readin_long
	b	LBB0_33
LBB0_21:
Lloh5:
	adrp	x8, _MAX_AGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_AGE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_read_list
	str	x0, [x19, #112]
	tbz	w21, #1, LBB0_12
LBB0_22:
Lloh8:
	adrp	x8, _MAX_MSTATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_MSTATUS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_read_list
	str	x0, [x19, #104]
	tbz	w21, #2, LBB0_13
LBB0_23:
Lloh11:
	adrp	x8, _MAX_POLIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_POLIT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_read_list
	str	x0, [x19, #96]
	tbz	w21, #3, LBB0_14
LBB0_24:
Lloh14:
	adrp	x8, _MAX_SECTION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAX_SECTION@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_read_list
	str	x0, [x19, #88]
	tbz	w21, #4, LBB0_15
LBB0_25:
	bl	_read_list2
	str	x0, [x19, #80]
	tbz	w21, #5, LBB0_16
LBB0_26:
Lloh17:
	adrp	x8, _MAX_SEX_AGE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAX_SEX_AGE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_read_list
	str	x0, [x19, #72]
	tbz	w21, #6, LBB0_17
LBB0_27:
	bl	_read_list2
	str	x0, [x19, #64]
	tbz	w21, #7, LBB0_18
LBB0_28:
	bl	_read_list2
	str	x0, [x19, #56]
	tbz	w21, #8, LBB0_19
LBB0_29:
Lloh20:
	adrp	x8, _MAX_SOURCE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MAX_SOURCE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_read_list
	str	x0, [x19, #48]
	ldr	w8, [x22]
	cbnz	w8, LBB0_20
LBB0_30:
	bl	_readin_int
	mov	x21, x0
	cmp	w21, #1
	b.lt	LBB0_32
; %bb.31:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_32:
	lsl	w0, w21, #2
	bl	_readin_skip
	mov	x0, #0
LBB0_33:
	str	x0, [x19, #40]
	bl	_ipopcount
	cmp	w0, #1
	b.lt	LBB0_36
; %bb.34:
	mov	x21, x0
	lsl	w0, w0, #2
	bl	_zzmalloc
	mov	x22, #0
	str	x0, [x19, #32]
	mov	w8, w21
	lsl	x21, x8, #3
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	bl	_readin_int
	ldr	x8, [x19, #32]
	str	x0, [x8, x22]
	add	x22, x22, #8
	cmp	x21, x22
	b.ne	LBB0_35
LBB0_36:
	bl	_readin_char
	str	w0, [x19, #28]
	cbz	w20, LBB0_38
; %bb.37:
	bl	_read_tree
	str	w0, [x19, #24]
	b	LBB0_39
LBB0_38:
	bl	_skip_tree
LBB0_39:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_index_version,4,2              ; @index_version
	.comm	_FORCE_COUNTER_TYPE,8,3         ; @FORCE_COUNTER_TYPE
	.comm	_MAX_AGE,4,2                    ; @MAX_AGE
	.comm	_MAX_MSTATUS,4,2                ; @MAX_MSTATUS
	.comm	_MAX_POLIT,4,2                  ; @MAX_POLIT
	.comm	_MAX_SECTION,4,2                ; @MAX_SECTION
	.comm	_MAX_SEX_AGE,4,2                ; @MAX_SEX_AGE
	.comm	_MAX_SOURCE,4,2                 ; @MAX_SOURCE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dropping old data about subcounters.\n"

.subsections_via_symbols
