	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function intel_pmu_lbr_read_32
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_intel_pmu_lbr_read_32:                 ## @intel_pmu_lbr_read_32
	.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
	movq	%rdi, %r15
	movq	_x86_pmu@GOTPCREL(%rip), %r12
	movslq	(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_intel_pmu_lbr_tos
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	decq	-48(%rbp)                       ## 8-byte Folded Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rbx
	movq	%rbx, %rdi
	andq	-48(%rbp), %rdi                 ## 8-byte Folded Reload
	addq	8(%r12), %rdi
	callq	_rdmsrl
	movq	8(%r15), %rax
	incq	%r13
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax,%r14)
	movq	$0, 16(%rax,%r14)
	movslq	(%r12), %rax
	decl	%ebx
	addq	$32, %r14
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_3:
	movl	%r13d, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_x86_pmu,16,3                   ## @x86_pmu
	.no_dead_strip	_intel_pmu_lbr_read_32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_pmu_lbr_read_32
_intel_pmu_lbr_read_32:                 ; @intel_pmu_lbr_read_32
	.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	x19, x0
Lloh0:
	adrp	x21, _x86_pmu@GOTPAGE
Lloh1:
	ldr	x21, [x21, _x86_pmu@GOTPAGEOFF]
	ldrsw	x24, [x21]
	bl	_intel_pmu_lbr_tos
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x23, #0
	mov	x22, #0
	sub	x24, x24, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x8, w20
	and	x8, x8, x24
	ldr	x9, [x21, #8]
	add	x0, x9, x8
	bl	_rdmsrl
	ldr	x8, [x19, #8]
	add	x22, x22, #1
	add	x8, x8, x23
	stp	xzr, xzr, [x8, #8]
	str	xzr, [x8]
	ldrsw	x8, [x21]
	sub	w20, w20, #1
	add	x23, x23, #32
	cmp	x22, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
	str	w22, [x19]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_x86_pmu,16,3                   ; @x86_pmu
	.no_dead_strip	_intel_pmu_lbr_read_32
.subsections_via_symbols
