	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __cmd_kmem
___cmd_kmem:                            ## @__cmd_kmem
	.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	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str(%rip), %rax
	movq	%rax, -128(%rbp)
	movq	_perf_evsel__process_alloc_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, -112(%rbp)
	movl	%eax, -104(%rbp)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, -96(%rbp)
	movq	_perf_evsel__process_alloc_node_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	leaq	L_.str.3(%rip), %rcx
	movq	%rcx, -80(%rbp)
	movl	%eax, -72(%rbp)
	leaq	L_.str.4(%rip), %rax
	movq	%rax, -64(%rbp)
	movq	_perf_evsel__process_free_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	L_.str.5(%rip), %rcx
	movq	%rcx, -48(%rbp)
	movl	%eax, -40(%rbp)
	movq	_input_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_perf_kmem@GOTPCREL(%rip), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_perf_session__new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_perf_session__create_kernel_maps
	testq	%rax, %rax
	js	LBB0_8
## %bb.3:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_perf_session__has_traces
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	leaq	-128(%rbp), %rsi
	movq	%r14, %rdi
	callq	_perf_session__set_tracepoints_handlers
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.7(%rip), %rdi
	callq	_pr_err
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %ebx
	jmp	LBB0_9
LBB0_6:
	xorl	%eax, %eax
	callq	_setup_pager
	movq	_perf_kmem@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_perf_session__process_events
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_sort_result
	movq	%r14, %rdi
	callq	_print_result
	xorl	%ebx, %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_perf_session__delete
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kmem:kmalloc"

	.comm	_perf_evsel__process_alloc_event,4,2 ## @perf_evsel__process_alloc_event
L_.str.1:                               ## @.str.1
	.asciz	"kmem:kmem_cache_alloc"

L_.str.2:                               ## @.str.2
	.asciz	"kmem:kmalloc_node"

	.comm	_perf_evsel__process_alloc_node_event,4,2 ## @perf_evsel__process_alloc_node_event
L_.str.3:                               ## @.str.3
	.asciz	"kmem:kmem_cache_alloc_node"

L_.str.4:                               ## @.str.4
	.asciz	"kmem:kfree"

	.comm	_perf_evsel__process_free_event,4,2 ## @perf_evsel__process_free_event
L_.str.5:                               ## @.str.5
	.asciz	"kmem:kmem_cache_free"

	.comm	_input_name,4,2                 ## @input_name
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_perf_kmem,4,2                  ## @perf_kmem
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.6:                               ## @.str.6
	.asciz	"kmem record"

L_.str.7:                               ## @.str.7
	.asciz	"Initializing perf session tracepoint handlers failed\n"

	.no_dead_strip	___cmd_kmem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __cmd_kmem
___cmd_kmem:                            ; @__cmd_kmem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #8]
Lloh8:
	adrp	x8, _perf_evsel__process_alloc_event@GOTPAGE
Lloh9:
	ldr	x8, [x8, _perf_evsel__process_alloc_event@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh11:
	adrp	x9, l_.str.1@PAGE
Lloh12:
	add	x9, x9, l_.str.1@PAGEOFF
	str	x9, [sp, #24]
	str	w8, [sp, #32]
Lloh13:
	adrp	x8, l_.str.2@PAGE
Lloh14:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh15:
	adrp	x9, _perf_evsel__process_alloc_node_event@GOTPAGE
Lloh16:
	ldr	x9, [x9, _perf_evsel__process_alloc_node_event@GOTPAGEOFF]
	str	x8, [sp, #40]
Lloh17:
	ldr	w8, [x9]
	str	w8, [sp, #48]
Lloh18:
	adrp	x9, l_.str.3@PAGE
Lloh19:
	add	x9, x9, l_.str.3@PAGEOFF
	str	x9, [sp, #56]
	str	w8, [sp, #64]
Lloh20:
	adrp	x8, l_.str.4@PAGE
Lloh21:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [sp, #72]
Lloh22:
	adrp	x8, _perf_evsel__process_free_event@GOTPAGE
Lloh23:
	ldr	x8, [x8, _perf_evsel__process_free_event@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [sp, #80]
Lloh25:
	adrp	x9, l_.str.5@PAGE
Lloh26:
	add	x9, x9, l_.str.5@PAGEOFF
	str	x9, [sp, #88]
	str	w8, [sp, #96]
Lloh27:
	adrp	x8, _input_name@GOTPAGE
Lloh28:
	ldr	x8, [x8, _input_name@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x4, _perf_kmem@GOTPAGE
Lloh34:
	ldr	x4, [x4, _perf_kmem@GOTPAGEOFF]
	mov	w2, #0
	mov	w3, #0
	bl	_perf_session__new
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	neg	w20, w20
	bl	_perf_session__create_kernel_maps
	tbnz	x0, #63, LBB0_8
; %bb.2:
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_perf_session__has_traces
	cbz	w0, LBB0_8
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_perf_session__set_tracepoints_handlers
	cbz	x0, LBB0_6
; %bb.4:
Lloh37:
	adrp	x0, l_.str.7@PAGE
Lloh38:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_err
	mov	w20, #-1
	b	LBB0_9
LBB0_5:
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_6:
	bl	_setup_pager
Lloh42:
	adrp	x1, _perf_kmem@GOTPAGE
Lloh43:
	ldr	x1, [x1, _perf_kmem@GOTPAGEOFF]
	mov	x0, x19
	bl	_perf_session__process_events
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.7:
	bl	_sort_result
	mov	x0, x19
	bl	_print_result
LBB0_8:
	mov	x0, x19
	bl	_perf_session__delete
LBB0_9:
	ldur	x8, [x29, #-24]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kmem:kmalloc"

	.comm	_perf_evsel__process_alloc_event,4,2 ; @perf_evsel__process_alloc_event
l_.str.1:                               ; @.str.1
	.asciz	"kmem:kmem_cache_alloc"

l_.str.2:                               ; @.str.2
	.asciz	"kmem:kmalloc_node"

	.comm	_perf_evsel__process_alloc_node_event,4,2 ; @perf_evsel__process_alloc_node_event
l_.str.3:                               ; @.str.3
	.asciz	"kmem:kmem_cache_alloc_node"

l_.str.4:                               ; @.str.4
	.asciz	"kmem:kfree"

	.comm	_perf_evsel__process_free_event,4,2 ; @perf_evsel__process_free_event
l_.str.5:                               ; @.str.5
	.asciz	"kmem:kmem_cache_free"

	.comm	_input_name,4,2                 ; @input_name
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_perf_kmem,4,2                  ; @perf_kmem
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.6:                               ; @.str.6
	.asciz	"kmem record"

l_.str.7:                               ; @.str.7
	.asciz	"Initializing perf session tracepoint handlers failed\n"

	.no_dead_strip	___cmd_kmem
.subsections_via_symbols
