	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_event__synthesize_kernel_mmap ## -- Begin function perf_event__synthesize_kernel_mmap
	.p2align	4, 0x90
_perf_event__synthesize_kernel_mmap:    ## @perf_event__synthesize_kernel_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)
	movl	$0, -88(%rbp)
	movl	(%r12), %edi
	addl	$40, %edi
	callq	_zalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_machine__mmap_name
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_machine__is_host
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_PERF_RECORD_MISC_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	leaq	L_.str.1(%rip), %rbx
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movl	$-1, %ebx
	jmp	LBB0_10
LBB0_4:
	movq	_PERF_RECORD_MISC_GUEST_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r12, %rdi
	callq	_machine__is_default_guest
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_symbol_conf@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_7
LBB0_6:
	movq	8(%r12), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_sprintf
LBB0_7:
	movq	_find_symbol_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_kallsyms__parse
	testq	%rax, %rax
	jle	LBB0_8
## %bb.9:
	movq	24(%r12), %rax
	movq	_MAP__FUNCTION@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	movl	36(%r15), %edi
	leaq	L_.str.3(%rip), %rdx
	movl	$4, %esi
	movq	%r13, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_snprintf
	incl	%eax
	movslq	%eax, %rdi
	movl	$4, %esi
	callq	_PERF_ALIGN
	movq	_PERF_RECORD_MMAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r15)
	movl	(%r12), %ecx
	leal	36(%rax,%rcx), %eax
	movl	%eax, 28(%r15)
	movl	-88(%rbp), %eax
	movl	%eax, 24(%r15)
	movq	8(%rbx), %rax
	movq	%rax, 8(%r15)
	movq	(%rbx), %rcx
	subq	%rax, %rcx
	movq	%rcx, 16(%r15)
	movl	16(%r12), %eax
	movl	%eax, (%r15)
	movq	_synth_sample@GOTPCREL(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rcx
	callq	*-80(%rbp)                      ## 8-byte Folded Reload
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_10
LBB0_8:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough memory synthesizing mmap event for kernel modules\n"

	.comm	_PERF_RECORD_MISC_KERNEL,4,2    ## @PERF_RECORD_MISC_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"/proc/kallsyms"

	.comm	_PERF_RECORD_MISC_GUEST_KERNEL,4,2 ## @PERF_RECORD_MISC_GUEST_KERNEL
	.comm	_symbol_conf,8,3                ## @symbol_conf
L_.str.2:                               ## @.str.2
	.asciz	"%s/proc/kallsyms"

	.comm	_find_symbol_cb,4,2             ## @find_symbol_cb
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_MAP__FUNCTION,8,3              ## @MAP__FUNCTION
L_.str.3:                               ## @.str.3
	.asciz	"%s%s"

	.comm	_PERF_RECORD_MMAP,4,2           ## @PERF_RECORD_MMAP
	.comm	_synth_sample,4,2               ## @synth_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_event__synthesize_kernel_mmap ; -- Begin function perf_event__synthesize_kernel_mmap
	.p2align	2
_perf_event__synthesize_kernel_mmap:    ; @perf_event__synthesize_kernel_mmap
	.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
	sub	sp, sp, #32
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	mov	x9, x25
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x12, x9, #0x1fffffff0
	sub	x24, x8, x12
	mov	sp, x24
	mov	x9, x25
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x26, x8, x12
	mov	sp, x26
	stur	x3, [x29, #-88]
	stur	wzr, [x29, #-80]
	ldr	w8, [x2]
	add	w0, w8, #40
	bl	_zalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	bl	_machine__mmap_name
	mov	x25, x0
	mov	x0, x20
	bl	_machine__is_host
	cbz	x0, LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _PERF_RECORD_MISC_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PERF_RECORD_MISC_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x22]
Lloh13:
	adrp	x24, l_.str.1@PAGE
Lloh14:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_3:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	w19, #-1
	b	LBB0_10
LBB0_4:
Lloh17:
	adrp	x8, _PERF_RECORD_MISC_GUEST_KERNEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PERF_RECORD_MISC_GUEST_KERNEL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x22]
	mov	x0, x20
	bl	_machine__is_default_guest
	cbz	x0, LBB0_6
; %bb.5:
Lloh20:
	adrp	x8, _symbol_conf@GOTPAGE
Lloh21:
	ldr	x8, [x8, _symbol_conf@GOTPAGEOFF]
Lloh22:
	ldr	x24, [x8]
	b	LBB0_7
LBB0_6:
	ldr	x2, [x20, #8]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_sprintf
LBB0_7:
Lloh25:
	adrp	x8, _find_symbol_cb@GOTPAGE
Lloh26:
	ldr	x8, [x8, _find_symbol_cb@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	sub	x1, x29, #88
	mov	x0, x24
	bl	_kallsyms__parse
	cmp	x0, #0
	b.le	LBB0_9
; %bb.8:
	ldr	x8, [x20, #24]
Lloh28:
	adrp	x9, _MAP__FUNCTION@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MAP__FUNCTION@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	ldr	x24, [x8, x9, lsl #3]
	ldr	w0, [x22, #36]
Lloh31:
	adrp	x2, l_.str.3@PAGE
Lloh32:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #4
	mov	x3, x25
	mov	x4, x23
	bl	_snprintf
	add	w8, w0, #1
	sxtw	x0, w8
	mov	w1, #4
	bl	_PERF_ALIGN
Lloh33:
	adrp	x8, _PERF_RECORD_MMAP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PERF_RECORD_MMAP@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x22, #32]
	ldr	w8, [x20]
	add	w8, w0, w8
	add	w8, w8, #36
	ldur	w9, [x29, #-80]
	stp	w9, w8, [x22, #24]
	ldr	x8, [x24, #8]
	str	x8, [x22, #8]
	ldr	x9, [x24]
	sub	x8, x9, x8
	str	x8, [x22, #16]
	ldr	w8, [x20, #16]
	str	w8, [x22]
Lloh36:
	adrp	x2, _synth_sample@GOTPAGE
Lloh37:
	ldr	x2, [x2, _synth_sample@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	mov	x3, x20
	blr	x19
	mov	x19, x0
	mov	x0, x22
	bl	_free
	b	LBB0_10
LBB0_9:
Lloh38:
	adrp	x8, _ENOENT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	sub	sp, x29, #64
	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
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough memory synthesizing mmap event for kernel modules\n"

	.comm	_PERF_RECORD_MISC_KERNEL,4,2    ; @PERF_RECORD_MISC_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"/proc/kallsyms"

	.comm	_PERF_RECORD_MISC_GUEST_KERNEL,4,2 ; @PERF_RECORD_MISC_GUEST_KERNEL
	.comm	_symbol_conf,8,3                ; @symbol_conf
l_.str.2:                               ; @.str.2
	.asciz	"%s/proc/kallsyms"

	.comm	_find_symbol_cb,4,2             ; @find_symbol_cb
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_MAP__FUNCTION,8,3              ; @MAP__FUNCTION
l_.str.3:                               ; @.str.3
	.asciz	"%s%s"

	.comm	_PERF_RECORD_MMAP,4,2           ; @PERF_RECORD_MMAP
	.comm	_synth_sample,4,2               ; @synth_sample
.subsections_via_symbols
