	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_report__setup_sample_type
_perf_report__setup_sample_type:        ## @perf_report__setup_sample_type
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	4(%r15), %edi
	callq	_perf_evlist__sample_type
	movl	%eax, %r14d
	cmpl	$0, (%r15)
	jne	LBB0_7
## %bb.1:
	movq	_PERF_SAMPLE_CALLCHAIN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
LBB0_7:
	cmpl	$0, (%rbx)
	je	LBB0_8
LBB0_12:
	movq	_sort__branch_mode@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	$1, (%rcx)
	jne	LBB0_17
## %bb.13:
	cmpl	$0, (%r15)
	jne	LBB0_17
## %bb.14:
	movq	_PERF_SAMPLE_BRANCH_STACK@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_17
## %bb.15:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_16
LBB0_8:
	movq	_callchain_param@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CHAIN_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.9:
	movq	_symbol_conf@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_12
## %bb.10:
	movl	$1, (%rax)
	movq	_callchain_param@GOTPCREL(%rip), %rdi
	callq	_callchain_register_param
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movq	_sort__has_parent@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
LBB0_4:
	callq	_ui__error
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_5:
	movq	_symbol_conf@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
LBB0_16:
	callq	_ui__error
	movl	$-1, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_SAMPLE_CALLCHAIN,4,2      ## @PERF_SAMPLE_CALLCHAIN
	.comm	_sort__has_parent,8,3           ## @sort__has_parent
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Selected --sort parent, but no callchain data. Did you call 'perf record' without -g?\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_symbol_conf,4,2                ## @symbol_conf
L_.str.1:                               ## @.str.1
	.asciz	"Selected -g but no callchain data. Did you call 'perf record' without -g?\n"

	.comm	_callchain_param,8,3            ## @callchain_param
	.comm	_CHAIN_NONE,8,3                 ## @CHAIN_NONE
L_.str.2:                               ## @.str.2
	.asciz	"Can't register callchain params.\n"

	.comm	_sort__branch_mode,4,2          ## @sort__branch_mode
	.comm	_PERF_SAMPLE_BRANCH_STACK,4,2   ## @PERF_SAMPLE_BRANCH_STACK
L_.str.3:                               ## @.str.3
	.asciz	"Selected -b but no branch data. Did you call perf record without -b?\n"

	.no_dead_strip	_perf_report__setup_sample_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_report__setup_sample_type
_perf_report__setup_sample_type:        ; @perf_report__setup_sample_type
	.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	x20, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x21, #4]
	bl	_perf_evlist__sample_type
	mov	x19, x0
	ldr	w8, [x21]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PERF_SAMPLE_CALLCHAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERF_SAMPLE_CALLCHAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_10
LBB0_2:
	ldr	w8, [x20]
	cbnz	w8, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _callchain_param@GOTPAGE
Lloh4:
	ldr	x8, [x8, _callchain_param@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
Lloh6:
	adrp	x8, _CHAIN_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHAIN_NONE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x8]
Lloh9:
	adrp	x8, _symbol_conf@GOTPAGE
Lloh10:
	ldr	x8, [x8, _symbol_conf@GOTPAGEOFF]
	ldr	w11, [x8]
	cmp	x9, x10
	ccmp	w11, #0, #0, ne
	b.ne	LBB0_5
; %bb.4:
	mov	w9, #1
	str	w9, [x8]
Lloh11:
	adrp	x0, _callchain_param@GOTPAGE
Lloh12:
	ldr	x0, [x0, _callchain_param@GOTPAGEOFF]
	bl	_callchain_register_param
	tbnz	x0, #63, LBB0_12
LBB0_5:
Lloh13:
	adrp	x8, _sort__branch_mode@GOTPAGE
Lloh14:
	ldr	x8, [x8, _sort__branch_mode@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x21]
	cbnz	w8, LBB0_8
; %bb.7:
Lloh16:
	adrp	x8, _PERF_SAMPLE_BRANCH_STACK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PERF_SAMPLE_BRANCH_STACK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_14
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
LBB0_10:
Lloh19:
	adrp	x8, _sort__has_parent@GOTPAGE
Lloh20:
	ldr	x8, [x8, _sort__has_parent@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.11:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_ui__error
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_14:
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_15:
Lloh31:
	adrp	x8, _symbol_conf@GOTPAGE
Lloh32:
	ldr	x8, [x8, _symbol_conf@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.16:
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_17:
	bl	_ui__error
	mov	w0, #-1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_SAMPLE_CALLCHAIN,4,2      ; @PERF_SAMPLE_CALLCHAIN
	.comm	_sort__has_parent,8,3           ; @sort__has_parent
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Selected --sort parent, but no callchain data. Did you call 'perf record' without -g?\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_symbol_conf,4,2                ; @symbol_conf
l_.str.1:                               ; @.str.1
	.asciz	"Selected -g but no callchain data. Did you call 'perf record' without -g?\n"

	.comm	_callchain_param,8,3            ; @callchain_param
	.comm	_CHAIN_NONE,8,3                 ; @CHAIN_NONE
l_.str.2:                               ; @.str.2
	.asciz	"Can't register callchain params.\n"

	.comm	_sort__branch_mode,4,2          ; @sort__branch_mode
	.comm	_PERF_SAMPLE_BRANCH_STACK,4,2   ; @PERF_SAMPLE_BRANCH_STACK
l_.str.3:                               ; @.str.3
	.asciz	"Selected -b but no branch data. Did you call perf record without -b?\n"

	.no_dead_strip	_perf_report__setup_sample_type
.subsections_via_symbols
