	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __cmd_top
___cmd_top:                             ## @__cmd_top
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_perf_session__new
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_perf_top__setup_sample_type
	testl	%eax, %eax
	je	LBB0_3
## %bb.17:
	movq	8(%r15), %rdi
	callq	_perf_session__delete
	movq	$0, 8(%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	36(%r15), %rdi
	callq	_perf_target__has_task
	leaq	32(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%r15), %rcx
	movq	16(%r15), %rax
	movl	8(%rax), %esi
	movq	_perf_event__process@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$8, %rcx
	callq	_perf_event__synthesize_thread_map
	jmp	LBB0_6
LBB0_5:
	movq	_perf_event__process@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	addq	$8, %rdx
	callq	_perf_event__synthesize_threads
LBB0_6:
	movq	%r15, %rdi
	callq	_perf_top__start_counters
	movq	8(%r15), %rdi
	movq	16(%r15), %rax
	movq	%rax, (%rdi)
	callq	_perf_session__set_id_hdr_size
	movq	16(%r15), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movl	$100, %edx
	callq	_poll
	movq	%r15, %rdi
	callq	_perf_top__mmap_read
	movq	_use_browser@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_7
## %bb.8:
	movq	_display_thread_tui@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_display_thread@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edx
	leaq	-36(%rbp), %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_pthread_create
	testq	%rax, %rax
	jne	LBB0_10
## %bb.12:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	%rax, -32(%rbp)
	movq	_SCHED_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	xorl	%edi, %edi
	callq	_sched_setscheduler
	testq	%rax, %rax
	jne	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rbx
	movq	%r15, %rdi
	callq	_perf_top__mmap_read
	cmpq	(%r15), %rbx
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	16(%r15), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movl	$100, %edx
	callq	_poll
	jmp	LBB0_15
LBB0_10:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_14:
	leaq	L_.str.1(%rip), %rdi
LBB0_11:
	callq	_ui__error
	movl	$-1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_perf_event__process,4,2        ## @perf_event__process
	.comm	_use_browser,8,3                ## @use_browser
	.comm	_display_thread_tui,4,2         ## @display_thread_tui
	.comm	_display_thread,4,2             ## @display_thread
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not create display thread.\n"

	.comm	_SCHED_FIFO,4,2                 ## @SCHED_FIFO
L_.str.1:                               ## @.str.1
	.asciz	"Could not set realtime priority.\n"

	.no_dead_strip	___cmd_top
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __cmd_top
___cmd_top:                             ; @__cmd_top
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, #0
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_perf_session__new
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_perf_top__setup_sample_type
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_perf_session__delete
	mov	w0, #0
	str	xzr, [x19, #8]
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	add	x0, x19, #36
	bl	_perf_target__has_task
	mov	x8, x0
	add	x0, x19, #32
	cbz	x8, LBB0_7
; %bb.6:
	ldp	x9, x8, [x19, #8]
	ldr	w1, [x8, #8]
Lloh6:
	adrp	x8, _perf_event__process@GOTPAGE
Lloh7:
	ldr	x8, [x8, _perf_event__process@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, x9, #8
	bl	_perf_event__synthesize_thread_map
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _perf_event__process@GOTPAGE
Lloh10:
	ldr	x8, [x8, _perf_event__process@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	add	x2, x8, #8
	bl	_perf_event__synthesize_threads
LBB0_8:
	mov	x0, x19
	bl	_perf_top__start_counters
	ldp	x0, x8, [x19, #8]
	str	x8, [x0]
	bl	_perf_session__set_id_hdr_size
	ldr	x8, [x19, #16]
	ldp	w1, w0, [x8]
	mov	w2, #100
	bl	_poll
	mov	x0, x19
	bl	_perf_top__mmap_read
Lloh12:
	adrp	x8, _use_browser@GOTPAGE
Lloh13:
	ldr	x8, [x8, _use_browser@GOTPAGEOFF]
Lloh14:
	adrp	x9, _display_thread_tui@GOTPAGE
Lloh15:
	ldr	x9, [x9, _display_thread_tui@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x10, _display_thread@GOTPAGE
Lloh18:
	ldr	x10, [x10, _display_thread@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, gt
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	x1, #0
	mov	x3, x19
	bl	_pthread_create
	cbnz	x0, LBB0_13
; %bb.9:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_11
; %bb.10:
	str	x8, [sp]
Lloh19:
	adrp	x8, _SCHED_FIFO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SCHED_FIFO@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x2, sp
	mov	w0, #0
	bl	_sched_setscheduler
	cbnz	x0, LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x19]
	mov	x0, x19
	bl	_perf_top__mmap_read
	ldr	x8, [x19]
	cmp	x20, x8
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #16]
	ldp	w1, w0, [x8]
	mov	w2, #100
	bl	_poll
	b	LBB0_11
LBB0_13:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_15:
	bl	_ui__error
	mov	w0, #-1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_perf_event__process,4,2        ; @perf_event__process
	.comm	_use_browser,8,3                ; @use_browser
	.comm	_display_thread_tui,4,2         ; @display_thread_tui
	.comm	_display_thread,4,2             ; @display_thread
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not create display thread.\n"

	.comm	_SCHED_FIFO,4,2                 ; @SCHED_FIFO
l_.str.1:                               ; @.str.1
	.asciz	"Could not set realtime priority.\n"

	.no_dead_strip	___cmd_top
.subsections_via_symbols
