	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __perf_evlist__mmap
___perf_evlist__mmap:                   ## @__perf_evlist__mmap
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movslq	%esi, %rsi
	shlq	$3, %rsi
	leaq	(%rsi,%rsi,2), %rbx
	movq	$0, 16(%rax,%rbx)
	movl	%ecx, (%rax,%rbx)
	movl	8(%rdi), %esi
	movq	_MAP_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	xorl	%r9d, %r9d
	callq	_mmap
	movq	(%r12), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movq	_MAP_FAILED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_perf_evlist__add_pollfd
	jmp	LBB0_3
LBB0_1:
	leaq	(%rcx,%rbx), %rax
	addq	$8, %rax
	movq	$0, (%rax)
	movl	$-1, %r15d
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.no_dead_strip	___perf_evlist__mmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __perf_evlist__mmap
___perf_evlist__mmap:                   ; @__perf_evlist__mmap
	.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	x19, x4
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	mov	w22, #24
	smaddl	x8, w1, w22, x8
	str	xzr, [x8, #16]
	str	w3, [x8]
	ldr	w1, [x0, #8]
Lloh0:
	adrp	x8, _MAP_SHARED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAP_SHARED@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, #0
	mov	w5, #0
	bl	_mmap
	ldr	x8, [x20]
	smaddl	x8, w21, w22, x8
	str	x0, [x8, #8]!
Lloh3:
	adrp	x9, _MAP_FAILED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAP_FAILED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x0, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_perf_evlist__add_pollfd
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	str	xzr, [x8]
	mov	w0, #-1
LBB0_3:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.no_dead_strip	___perf_evlist__mmap
.subsections_via_symbols
