	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_evlist__mmap_read         ## -- Begin function perf_evlist__mmap_read
	.p2align	4, 0x90
_perf_evlist__mmap_read:                ## @perf_evlist__mmap_read
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %r14
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rbx
	leaq	(%r14,%rbx,8), %r15
	movq	%r15, %rdi
	callq	_perf_mmap__read_head
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r14,%rbx,8), %r13d
	movq	_page_size@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	8(%r14,%rbx,8), %rcx
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.1:
	movl	%eax, %esi
	subl	%r13d, %esi
	js	LBB0_3
## %bb.2:
	movl	16(%r14,%rbx,8), %edi
	movl	%edi, %edx
	shrl	$31, %edx
	addl	%edi, %edx
	sarl	%edx
	cmpl	%edx, %esi
	jg	LBB0_3
LBB0_4:
	cmpl	%r13d, %eax
	jne	LBB0_6
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_6:
	movslq	16(%r14,%rbx,8), %rdx
	movl	%r13d, %edi
	andl	%edx, %edi
	movq	(%rcx,%rdi), %rsi
	leaq	(%rsi,%rdi), %r8
	leaq	(%rsi,%r13), %rax
	andq	%rax, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_8
## %bb.7:
	addq	%rdi, %rcx
	movq	%rcx, %rbx
	jmp	LBB0_11
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rbx
	callq	_fprintf
	movq	%rbx, %rax
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_8:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rbx,8), %r15
	addq	$16, %r15
	movl	$8, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	callq	_min
	movl	%eax, %ebx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	addq	$8, %r12
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	notl	%edi
	andl	(%r15), %edi
	incl	%edi
	movl	%ebx, %esi
	callq	_min
	movl	%eax, %r14d
	movl	(%r15), %esi
	andl	%r13d, %esi
	addq	-80(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_memcpy
	addl	%r14d, %r13d
	movl	%r14d, %eax
	addq	%rax, %r12
	subl	%r14d, %ebx
	jne	LBB0_9
## %bb.10:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	movl	%eax, (%r15)
	cmpq	$0, (%r12)
	jne	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_perf_mmap__write_tail
LBB0_13:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_page_size,4,2                  ## @page_size
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: failed to keep up with mmap data.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_evlist__mmap_read         ; -- Begin function perf_evlist__mmap_read
	.p2align	2
_perf_evlist__mmap_read:                ; @perf_evlist__mmap_read
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x20, x0
	ldr	x22, [x0, #16]
	sxtw	x23, w1
	mov	w8, #24
	smaddl	x19, w1, w8, x22
	mov	x0, x19
	bl	_perf_mmap__read_head
	mov	x21, x0
	ldr	w26, [x19]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _page_size@GOTPAGE
Lloh1:
	ldr	x9, [x9, _page_size@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	ldr	x10, [x20]
	cbz	x10, LBB0_3
; %bb.1:
	sub	w10, w21, w26
	mov	w11, #24
	madd	x11, x23, x11, x22
	ldr	w11, [x11, #16]
	cmp	w11, #0
	cinc	w11, w11, lt
	tbnz	w10, #31, LBB0_7
; %bb.2:
	asr	w11, w11, #1
	cmp	w10, w11
	b.gt	LBB0_7
LBB0_3:
	cmp	w21, w26
	b.eq	LBB0_8
; %bb.4:
	mov	w10, #24
	madd	x27, x23, x10, x22
	ldrsw	x10, [x27, #16]!
	and	x11, x10, x26
	add	x28, x8, x9
	add	x22, x28, x11
	ldr	x1, [x22]
	add	x21, x1, x26
	and	x8, x21, x10
	add	x9, x1, x11
	cmp	x9, x8
	b.eq	LBB0_9
; %bb.5:
	mov	w0, #8
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_min
	mov	x23, x0
	add	x22, x20, #8
	mov	x24, x22
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	bic	w8, w8, w26
	add	w0, w8, #1
	mov	x1, x23
	bl	_min
	mov	x25, x0
	ldr	w8, [x27]
	mov	w9, w26
	and	x8, x8, x9
	add	x1, x28, x8
	mov	x0, x24
	mov	x2, x25
	bl	_memcpy
	add	w26, w25, w26
	add	x24, x24, w25, uxtw
	subs	w23, w23, w25
	b.ne	LBB0_6
	b	LBB0_9
LBB0_7:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_8:
	mov	x22, #0
LBB0_9:
	str	w21, [x19]
	ldr	x8, [x20]
	cbnz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x21
	bl	_perf_mmap__write_tail
LBB0_11:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_page_size,4,2                  ; @page_size
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: failed to keep up with mmap data.\n"

.subsections_via_symbols
