	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_top__mmap_read_idx
_perf_top__mmap_read_idx:               ## @perf_top__mmap_read_idx
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	40(%rdi), %r12
	movl	32(%rdi), %edi
	callq	_perf_evlist__mmap_read
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%rbx), %edi
	movl	%r14d, %esi
	callq	_perf_evlist__mmap_read
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%rbx), %edi
	movq	%r13, %rsi
	leaq	-48(%rbp), %rdx
	callq	_perf_evlist__parse_sample
	testl	%eax, %eax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12), %edi
	movl	-48(%rbp), %esi
	callq	_perf_evlist__id2evsel
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_PERF_RECORD_MISC_CPUMODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r13), %eax
	movq	8(%r13), %rcx
	movq	_PERF_RECORD_SAMPLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	28(%rbx)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	24(%rbx)
	cmpl	$0, 20(%rbx)
	jne	LBB0_4
	jmp	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%rbx)
	cmpl	$0, 12(%rbx)
	jne	LBB0_4
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_perf_session__find_host_machine
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	4(%rbx)
	jmp	LBB0_4
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	8(%rbx)
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_perf_session__find_machine
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	8(%r13), %rsi
	movq	_PERF_RECORD_SAMPLE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	leaq	-48(%rbp), %rcx
	movq	%r12, %r8
	callq	_perf_event__process_sample
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PERF_RECORD_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_hists__inc_nr_events
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_machine__process_event
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	incl	(%r12)
	jmp	LBB0_4
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't parse sample, err = %d\n"

	.comm	_PERF_RECORD_MISC_CPUMODE_MASK,4,2 ## @PERF_RECORD_MISC_CPUMODE_MASK
	.comm	_PERF_RECORD_SAMPLE,8,3         ## @PERF_RECORD_SAMPLE
	.comm	_PERF_RECORD_MAX,8,3            ## @PERF_RECORD_MAX
	.no_dead_strip	_perf_top__mmap_read_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_top__mmap_read_idx
_perf_top__mmap_read_idx:               ; @perf_top__mmap_read_idx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #40]
	ldr	w0, [x0, #32]
	bl	_perf_evlist__mmap_read
	cbz	x0, LBB0_19
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x26, _PERF_RECORD_MISC_CPUMODE_MASK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _PERF_RECORD_MISC_CPUMODE_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x27, _PERF_RECORD_SAMPLE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _PERF_RECORD_SAMPLE@GOTPAGEOFF]
Lloh4:
	adrp	x28, lJTI0_0@PAGE
Lloh5:
	add	x28, x28, lJTI0_0@PAGEOFF
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	mov	x0, x22
	bl	_pr_err
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #32]
	mov	x1, x19
	bl	_perf_evlist__mmap_read
	mov	x23, x0
	cbz	x0, LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #32]
	add	x2, sp, #8
	mov	x1, x23
	bl	_perf_evlist__parse_sample
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21, #4]
	ldr	w1, [sp, #8]
	bl	_perf_evlist__id2evsel
	mov	x24, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	w8, [x23]
	ldr	x9, [x23, #8]
	ldr	x10, [x27]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x20, #28]
	add	w9, w9, #1
	str	w9, [x20, #28]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x26]
	and	w8, w9, w8
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_9
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	w9, w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #24]
	cbnz	w9, LBB0_3
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w9, w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #16]
	cbnz	w9, LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_perf_session__find_host_machine
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_perf_session__find_machine
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	ldr	x1, [x23, #8]
	ldr	x8, [x27]
	cmp	x1, x8
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	mov	x4, x25
	bl	_perf_event__process_sample
	b	LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x8, _PERF_RECORD_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PERF_RECORD_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ge	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_hists__inc_nr_events
	mov	x0, x25
	mov	x1, x23
	bl	_machine__process_event
	b	LBB0_3
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	b	LBB0_3
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_13-LBB0_9)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't parse sample, err = %d\n"

	.comm	_PERF_RECORD_MISC_CPUMODE_MASK,4,2 ; @PERF_RECORD_MISC_CPUMODE_MASK
	.comm	_PERF_RECORD_SAMPLE,8,3         ; @PERF_RECORD_SAMPLE
	.comm	_PERF_RECORD_MAX,8,3            ; @PERF_RECORD_MAX
	.no_dead_strip	_perf_top__mmap_read_idx
.subsections_via_symbols
