	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_evsel__add_hist_entry
_perf_evsel__add_hist_entry:            ## @perf_evsel__add_hist_entry
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	_sort__has_parent@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_symbol_conf@GOTPCREL(%rip), %r15
	orq	(%r15), %rax
	je	LBB0_5
## %bb.1:
	cmpq	$0, 8(%r12)
	je	LBB0_5
## %bb.2:
	movq	%rbx, %r13
	movl	4(%rbx), %edx
	leaq	-48(%rbp), %r8
	movq	%rcx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rcx
	callq	_machine__resolve_callchain
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.3:
	movq	-48(%rbp), %rdx
	movq	%r13, %rbx
	jmp	LBB0_6
LBB0_5:
	xorl	%edx, %edx
LBB0_6:
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___hists__add_entry
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%r15)
	je	LBB0_9
## %bb.8:
	movl	8(%r13), %edi
	movl	(%r12), %edx
	movq	_callchain_cursor@GOTPCREL(%rip), %rsi
	callq	_callchain_append
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
LBB0_9:
	movq	(%r13), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.10:
	movq	_use_browser@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_15
## %bb.11:
	movq	_sort__has_sym@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.12:
	callq	_symbol__annotation
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	cmpq	$0, (%rbx)
	jne	LBB0_14
## %bb.13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	(%r13), %rdi
	callq	_symbol__alloc_hist
	testq	%rax, %rax
	js	LBB0_17
LBB0_14:
	movl	4(%r14), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_hist_entry__inc_addr_samples
	movl	%eax, %ebx
LBB0_15:
	movl	(%r12), %eax
	addl	%eax, (%r14)
	movq	_PERF_RECORD_SAMPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hists__inc_nr_events
	jmp	LBB0_17
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sort__has_parent,8,3           ## @sort__has_parent
	.comm	_symbol_conf,8,3                ## @symbol_conf
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_callchain_cursor,4,2           ## @callchain_cursor
	.comm	_use_browser,4,2                ## @use_browser
	.comm	_sort__has_sym,8,3              ## @sort__has_sym
	.comm	_PERF_RECORD_SAMPLE,4,2         ## @PERF_RECORD_SAMPLE
	.no_dead_strip	_perf_evsel__add_hist_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_evsel__add_hist_entry
_perf_evsel__add_hist_entry:            ; @perf_evsel__add_hist_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x2, #0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _sort__has_parent@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sort__has_parent@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x24, _symbol_conf@GOTPAGE
Lloh4:
	ldr	x24, [x24, _symbol_conf@GOTPAGEOFF]
	ldr	x9, [x24]
	orr	x8, x8, x9
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w2, [x21, #4]
	add	x4, sp, #8
	mov	x0, x3
	mov	x1, x19
	mov	x3, x20
	bl	_machine__resolve_callchain
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.3:
	ldr	x2, [sp, #8]
	b	LBB0_5
LBB0_4:
	mov	x2, #0
LBB0_5:
	ldr	w3, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	___hists__add_entry
	cbz	x0, LBB0_10
; %bb.6:
	mov	x22, x0
	ldr	x8, [x24]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x22, #8]
	ldr	w2, [x20]
Lloh5:
	adrp	x1, _callchain_cursor@GOTPAGE
Lloh6:
	ldr	x1, [x1, _callchain_cursor@GOTPAGEOFF]
	bl	_callchain_append
	mov	x23, x0
	cbnz	w0, LBB0_15
LBB0_8:
	ldr	x0, [x22]
Lloh7:
	adrp	x8, _use_browser@GOTPAGE
Lloh8:
	ldr	x8, [x8, _use_browser@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _sort__has_sym@GOTPAGE
Lloh11:
	ldr	x9, [x9, _sort__has_sym@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x0, #0
	ccmp	w8, #1, #0, ne
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_11
; %bb.9:
	mov	w23, #0
	b	LBB0_14
LBB0_10:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_11:
	bl	_symbol__annotation
	mov	x23, x0
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x23]
	cbnz	x8, LBB0_13
; %bb.12:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w23, [x8]
	ldr	x0, [x22]
	bl	_symbol__alloc_hist
	tbnz	x0, #63, LBB0_16
LBB0_13:
	ldr	w1, [x19, #4]
	ldr	w2, [x21]
	mov	x0, x22
	bl	_hist_entry__inc_addr_samples
	mov	x23, x0
LBB0_14:
	ldr	w8, [x20]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
Lloh19:
	adrp	x8, _PERF_RECORD_SAMPLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PERF_RECORD_SAMPLE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hists__inc_nr_events
LBB0_15:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
LBB0_16:
	neg	w23, w23
	b	LBB0_15
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_sort__has_parent,8,3           ; @sort__has_parent
	.comm	_symbol_conf,8,3                ; @symbol_conf
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_callchain_cursor,4,2           ; @callchain_cursor
	.comm	_use_browser,4,2                ; @use_browser
	.comm	_sort__has_sym,8,3              ; @sort__has_sym
	.comm	_PERF_RECORD_SAMPLE,4,2         ; @PERF_RECORD_SAMPLE
	.no_dead_strip	_perf_evsel__add_hist_entry
.subsections_via_symbols
