	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p4_fill_in_addresses
_p4_fill_in_addresses:                  ## @p4_fill_in_addresses
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_setup_num_counters
	xorl	%eax, %eax
	callq	_get_stagger
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_num_counters@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	_p4_counters@GOTPCREL(%rip), %r15
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movq	_num_counters@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r13
	jae	LBB0_5
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %r14
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_VIRT_CTR
	movl	(%r14,%rax,8), %r14d
	movq	(%r15), %r12
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_VIRT_CTR
	movl	4(%r12,%rax,8), %r12d
	movl	%r14d, %edi
	callq	_reserve_perfctr_nmi
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movl	%r14d, (%rax,%r13,4)
	movq	(%rcx), %rax
	movl	%r12d, (%rax,%r13,4)
	jmp	LBB0_2
LBB0_5:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_6:
	movq	_MSR_P4_BSU_ESCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	_MSR_P4_IQ_ESCR0@GOTPCREL(%rip), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incl	%r13d
	xorl	%eax, %eax
	callq	_addr_increment
	addl	%eax, %ebx
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %r12d
	cmpl	%r12d, %ebx
	jae	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %edi
	callq	_reserve_evntsel_nmi
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r14), %rax
	movl	%r13d, %ecx
	movl	%ebx, (%rax,%rcx,4)
	jmp	LBB0_7
LBB0_11:
	movq	_boot_cpu_data@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_17
## %bb.12:
	movq	_MSR_P4_BSU_ESCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	_MSR_P4_BSU_ESCR1@GOTPCREL(%rip), %r15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%r13d
	xorl	%eax, %eax
	callq	_addr_increment
	addl	%eax, %ebx
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%r15), %ebx
	ja	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%ebx, %edi
	callq	_reserve_evntsel_nmi
	testq	%rax, %rax
	je	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r14), %rax
	movl	%r13d, %ecx
	movl	%ebx, (%rax,%rcx,4)
	jmp	LBB0_13
LBB0_17:
	addl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	movq	_MSR_P4_IQ_ESCR1@GOTPCREL(%rip), %rbx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	incl	%r13d
	xorl	%eax, %eax
	callq	_addr_increment
	addl	%eax, %r12d
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%rbx), %r12d
	ja	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%r12d, %edi
	callq	_reserve_evntsel_nmi
	testq	%rax, %rax
	je	LBB0_18
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%r14), %rax
	movl	%r13d, %ecx
	movl	%r12d, (%rax,%rcx,4)
	jmp	LBB0_18
LBB0_22:
	movq	_MSR_P4_RAT_ESCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	_MSR_P4_SSU_ESCR0@GOTPCREL(%rip), %r15
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=1
	incl	%r13d
	xorl	%eax, %eax
	callq	_addr_increment
	addl	%eax, %ebx
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%r15), %ebx
	ja	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	%ebx, %edi
	callq	_reserve_evntsel_nmi
	testq	%rax, %rax
	je	LBB0_23
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	(%r14), %rax
	movl	%r13d, %ecx
	movl	%ebx, (%rax,%rcx,4)
	jmp	LBB0_23
LBB0_27:
	movq	_MSR_P4_MS_ESCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	_MSR_P4_TC_ESCR1@GOTPCREL(%rip), %r15
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	incl	%r13d
	xorl	%eax, %eax
	callq	_addr_increment
	addl	%eax, %ebx
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%r15), %ebx
	ja	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movl	%ebx, %edi
	callq	_reserve_evntsel_nmi
	testq	%rax, %rax
	je	LBB0_28
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	(%r14), %rax
	movl	%r13d, %ecx
	movl	%ebx, (%rax,%rcx,4)
	jmp	LBB0_28
LBB0_32:
	movq	_MSR_P4_IX_ESCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	_MSR_P4_CRU_ESCR3@GOTPCREL(%rip), %r15
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_34 Depth=1
	incl	%r13d
	xorl	%eax, %eax
	callq	_addr_increment
	addl	%eax, %ebx
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%r15), %ebx
	ja	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	movl	%ebx, %edi
	callq	_reserve_evntsel_nmi
	testq	%rax, %rax
	je	LBB0_33
## %bb.36:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	(%r14), %rax
	movl	%r13d, %ecx
	movl	%ebx, (%rax,%rcx,4)
	jmp	LBB0_33
LBB0_37:
	movq	_num_counters@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NUM_COUNTERS_NON_HT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_41
## %bb.38:
	movq	_MSR_P4_CRU_ESCR5@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_reserve_evntsel_nmi
	testq	%rax, %rax
	je	LBB0_44
## %bb.39:
	movl	(%rbx), %eax
	movq	(%r14), %rcx
	movl	%r13d, %edx
	incl	%r13d
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_44
LBB0_41:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_44
## %bb.42:
	movq	_MSR_P4_CRU_ESCR5@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_reserve_evntsel_nmi
	testq	%rax, %rax
	je	LBB0_47
## %bb.43:
	movl	(%rbx), %ecx
	movq	(%r14), %rax
	movl	%r13d, %edx
	incl	%r13d
	movl	%ecx, (%rax,%rdx,4)
	jmp	LBB0_46
LBB0_44:
	movq	_MSR_P4_CRU_ESCR4@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_reserve_evntsel_nmi
	testq	%rax, %rax
	je	LBB0_47
## %bb.45:
	movq	(%r14), %rax
LBB0_46:
	movl	(%rbx), %ecx
	movl	%r13d, %edx
	movl	%ecx, (%rax,%rdx,4)
LBB0_47:
	movq	_num_counters@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_53
## %bb.48:
	movq	_counter_config@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	jmp	LBB0_50
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_50 Depth=1
	incq	%rdi
	cmpq	%rdi, %rax
	je	LBB0_53
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rcx,%rdi,4)
	je	LBB0_49
## %bb.51:                              ##   in Loop: Header=BB0_50 Depth=1
	movq	(%r14), %rdx
	cmpl	$0, (%rdx,%rdi,4)
	jne	LBB0_49
## %bb.52:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_op_x86_warn_reserved
	movq	%r14, %rdi
	callq	_p4_shutdown
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_54
LBB0_53:
	xorl	%eax, %eax
LBB0_54:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_counters,4,2               ## @num_counters
	.comm	_p4_counters,8,3                ## @p4_counters
	.comm	_MSR_P4_BSU_ESCR0,4,2           ## @MSR_P4_BSU_ESCR0
	.comm	_MSR_P4_IQ_ESCR0,4,2            ## @MSR_P4_IQ_ESCR0
	.comm	_boot_cpu_data,4,2              ## @boot_cpu_data
	.comm	_MSR_P4_BSU_ESCR1,4,2           ## @MSR_P4_BSU_ESCR1
	.comm	_MSR_P4_IQ_ESCR1,4,2            ## @MSR_P4_IQ_ESCR1
	.comm	_MSR_P4_RAT_ESCR0,4,2           ## @MSR_P4_RAT_ESCR0
	.comm	_MSR_P4_SSU_ESCR0,4,2           ## @MSR_P4_SSU_ESCR0
	.comm	_MSR_P4_MS_ESCR0,4,2            ## @MSR_P4_MS_ESCR0
	.comm	_MSR_P4_TC_ESCR1,4,2            ## @MSR_P4_TC_ESCR1
	.comm	_MSR_P4_IX_ESCR0,4,2            ## @MSR_P4_IX_ESCR0
	.comm	_MSR_P4_CRU_ESCR3,4,2           ## @MSR_P4_CRU_ESCR3
	.comm	_NUM_COUNTERS_NON_HT,4,2        ## @NUM_COUNTERS_NON_HT
	.comm	_MSR_P4_CRU_ESCR5,4,2           ## @MSR_P4_CRU_ESCR5
	.comm	_MSR_P4_CRU_ESCR4,4,2           ## @MSR_P4_CRU_ESCR4
	.comm	_counter_config,8,3             ## @counter_config
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_p4_fill_in_addresses
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p4_fill_in_addresses
_p4_fill_in_addresses:                  ; @p4_fill_in_addresses
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_setup_num_counters
	bl	_get_stagger
	mov	x21, x0
Lloh0:
	adrp	x23, _num_counters@GOTPAGE
Lloh1:
	ldr	x23, [x23, _num_counters@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, #0
Lloh2:
	adrp	x24, _p4_counters@GOTPAGE
Lloh3:
	ldr	x24, [x24, _p4_counters@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldr	w8, [x23]
	cmp	x20, x8
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x24]
	mov	x0, x21
	mov	x1, x20
	bl	_VIRT_CTR
	lsl	x8, x0, #3
	ldr	w22, [x22, x8]
	ldr	x25, [x24]
	mov	x0, x21
	mov	x1, x20
	bl	_VIRT_CTR
	add	x8, x25, x0, lsl #3
	ldr	w25, [x8, #4]
	mov	x0, x22
	bl	_reserve_perfctr_nmi
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x8, x20, #2
	ldp	x10, x9, [x19]
	str	w22, [x9, x8]
	str	w25, [x10, x8]
	b	LBB0_2
LBB0_5:
	mov	w20, #0
LBB0_6:
Lloh4:
	adrp	x24, _MSR_P4_BSU_ESCR0@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MSR_P4_BSU_ESCR0@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh6:
	adrp	x25, _MSR_P4_IQ_ESCR0@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MSR_P4_IQ_ESCR0@GOTPAGEOFF]
	ldr	w8, [x25]
	add	w22, w9, w21
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w20, w20, #1
	bl	_addr_increment
	ldr	w8, [x25]
	add	w22, w22, w0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, w8
	b.hs	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	bl	_reserve_evntsel_nmi
	cbz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	str	w22, [x8, w20, uxtw #2]
	b	LBB0_7
LBB0_11:
Lloh8:
	adrp	x9, _boot_cpu_data@GOTPAGE
Lloh9:
	ldr	x9, [x9, _boot_cpu_data@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w9, #3
	b.lt	LBB0_16
; %bb.12:
	ldr	w8, [x24]
Lloh11:
	adrp	x24, _MSR_P4_BSU_ESCR1@GOTPAGE
Lloh12:
	ldr	x24, [x24, _MSR_P4_BSU_ESCR1@GOTPAGEOFF]
	ldr	w9, [x24]
	add	w22, w8, w21
	cmp	w22, w9
	b.ls	LBB0_14
	b	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w20, w20, #1
	bl	_addr_increment
	ldr	w8, [x24]
	add	w22, w22, w0
	cmp	w22, w8
	b.hi	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_reserve_evntsel_nmi
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19]
	str	w22, [x8, w20, uxtw #2]
	b	LBB0_13
LBB0_16:
Lloh13:
	adrp	x24, _MSR_P4_IQ_ESCR1@GOTPAGE
Lloh14:
	ldr	x24, [x24, _MSR_P4_IQ_ESCR1@GOTPAGEOFF]
	ldr	w9, [x24]
	add	w22, w8, w21
	cmp	w22, w9
	b.ls	LBB0_33
LBB0_17:
Lloh15:
	adrp	x8, _MSR_P4_RAT_ESCR0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSR_P4_RAT_ESCR0@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x24, _MSR_P4_SSU_ESCR0@GOTPAGE
Lloh19:
	ldr	x24, [x24, _MSR_P4_SSU_ESCR0@GOTPAGEOFF]
	ldr	w9, [x24]
	add	w22, w8, w21
	cmp	w22, w9
	b.ls	LBB0_24
LBB0_18:
Lloh20:
	adrp	x8, _MSR_P4_MS_ESCR0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSR_P4_MS_ESCR0@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x24, _MSR_P4_TC_ESCR1@GOTPAGE
Lloh24:
	ldr	x24, [x24, _MSR_P4_TC_ESCR1@GOTPAGEOFF]
	ldr	w9, [x24]
	add	w22, w8, w21
	cmp	w22, w9
	b.ls	LBB0_27
LBB0_19:
Lloh25:
	adrp	x8, _MSR_P4_IX_ESCR0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MSR_P4_IX_ESCR0@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x24, _MSR_P4_CRU_ESCR3@GOTPAGE
Lloh29:
	ldr	x24, [x24, _MSR_P4_CRU_ESCR3@GOTPAGEOFF]
	ldr	w9, [x24]
	add	w22, w8, w21
	cmp	w22, w9
	b.ls	LBB0_30
LBB0_20:
	ldr	w8, [x23]
Lloh30:
	adrp	x9, _NUM_COUNTERS_NON_HT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _NUM_COUNTERS_NON_HT@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_35
; %bb.21:
Lloh33:
	adrp	x21, _MSR_P4_CRU_ESCR5@GOTPAGE
Lloh34:
	ldr	x21, [x21, _MSR_P4_CRU_ESCR5@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_reserve_evntsel_nmi
	cbz	x0, LBB0_38
; %bb.22:
	ldr	w8, [x21]
	ldr	x9, [x19]
	str	w8, [x9, w20, uxtw #2]
	add	w8, w20, #1
	mov	x20, x8
	b	LBB0_38
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	w20, w20, #1
	bl	_addr_increment
	ldr	w8, [x24]
	add	w22, w22, w0
	cmp	w22, w8
	b.hi	LBB0_18
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_reserve_evntsel_nmi
	cbz	x0, LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x19]
	str	w22, [x8, w20, uxtw #2]
	b	LBB0_23
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	w20, w20, #1
	bl	_addr_increment
	ldr	w8, [x24]
	add	w22, w22, w0
	cmp	w22, w8
	b.hi	LBB0_19
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_reserve_evntsel_nmi
	cbz	x0, LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x8, [x19]
	str	w22, [x8, w20, uxtw #2]
	b	LBB0_26
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	add	w20, w20, #1
	bl	_addr_increment
	ldr	w8, [x24]
	add	w22, w22, w0
	cmp	w22, w8
	b.hi	LBB0_20
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_reserve_evntsel_nmi
	cbz	x0, LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	x8, [x19]
	str	w22, [x8, w20, uxtw #2]
	b	LBB0_29
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	add	w20, w20, #1
	bl	_addr_increment
	ldr	w8, [x24]
	add	w22, w22, w0
	cmp	w22, w8
	b.hi	LBB0_17
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_reserve_evntsel_nmi
	cbz	x0, LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	x8, [x19]
	str	w22, [x8, w20, uxtw #2]
	b	LBB0_32
LBB0_35:
	cbz	w21, LBB0_38
; %bb.36:
Lloh35:
	adrp	x21, _MSR_P4_CRU_ESCR5@GOTPAGE
Lloh36:
	ldr	x21, [x21, _MSR_P4_CRU_ESCR5@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_reserve_evntsel_nmi
	cbz	x0, LBB0_41
; %bb.37:
	ldr	w9, [x21]
	ldr	x8, [x19]
	str	w9, [x8, w20, uxtw #2]
	add	w9, w20, #1
	mov	x20, x9
	b	LBB0_40
LBB0_38:
Lloh37:
	adrp	x8, _MSR_P4_CRU_ESCR4@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MSR_P4_CRU_ESCR4@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_reserve_evntsel_nmi
	cbz	x0, LBB0_41
; %bb.39:
	ldr	x8, [x19]
Lloh40:
	adrp	x21, _MSR_P4_CRU_ESCR4@GOTPAGE
Lloh41:
	ldr	x21, [x21, _MSR_P4_CRU_ESCR4@GOTPAGEOFF]
LBB0_40:
	ldr	w9, [x21]
	str	w9, [x8, w20, uxtw #2]
LBB0_41:
	ldr	w8, [x23]
	cbz	w8, LBB0_47
; %bb.42:
	mov	x0, #0
Lloh42:
	adrp	x9, _counter_config@GOTPAGE
Lloh43:
	ldr	x9, [x9, _counter_config@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	b	LBB0_44
LBB0_43:                                ;   in Loop: Header=BB0_44 Depth=1
	add	x0, x0, #1
	cmp	x8, x0
	b.eq	LBB0_47
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x0, lsl #2]
	cbz	w10, LBB0_43
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	ldr	x10, [x19]
	ldr	w10, [x10, x0, lsl #2]
	cbnz	w10, LBB0_43
; %bb.46:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_op_x86_warn_reserved
	mov	x0, x19
	bl	_p4_shutdown
Lloh45:
	adrp	x8, _EBUSY@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_48
LBB0_47:
	mov	w0, #0
LBB0_48:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_num_counters,4,2               ; @num_counters
	.comm	_p4_counters,8,3                ; @p4_counters
	.comm	_MSR_P4_BSU_ESCR0,4,2           ; @MSR_P4_BSU_ESCR0
	.comm	_MSR_P4_IQ_ESCR0,4,2            ; @MSR_P4_IQ_ESCR0
	.comm	_boot_cpu_data,4,2              ; @boot_cpu_data
	.comm	_MSR_P4_BSU_ESCR1,4,2           ; @MSR_P4_BSU_ESCR1
	.comm	_MSR_P4_IQ_ESCR1,4,2            ; @MSR_P4_IQ_ESCR1
	.comm	_MSR_P4_RAT_ESCR0,4,2           ; @MSR_P4_RAT_ESCR0
	.comm	_MSR_P4_SSU_ESCR0,4,2           ; @MSR_P4_SSU_ESCR0
	.comm	_MSR_P4_MS_ESCR0,4,2            ; @MSR_P4_MS_ESCR0
	.comm	_MSR_P4_TC_ESCR1,4,2            ; @MSR_P4_TC_ESCR1
	.comm	_MSR_P4_IX_ESCR0,4,2            ; @MSR_P4_IX_ESCR0
	.comm	_MSR_P4_CRU_ESCR3,4,2           ; @MSR_P4_CRU_ESCR3
	.comm	_NUM_COUNTERS_NON_HT,4,2        ; @NUM_COUNTERS_NON_HT
	.comm	_MSR_P4_CRU_ESCR5,4,2           ; @MSR_P4_CRU_ESCR5
	.comm	_MSR_P4_CRU_ESCR4,4,2           ; @MSR_P4_CRU_ESCR4
	.comm	_counter_config,8,3             ; @counter_config
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_p4_fill_in_addresses
.subsections_via_symbols
