	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_evsel__add_sample
_perf_evsel__add_sample:                ## @perf_evsel__add_sample
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	8(%r13), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movl	4(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.4:
	movq	16(%r13), %rax
	movq	(%rax), %rsi
	movq	8(%rax), %rax
	shlq	$2, %rsi
	addq	(%rax), %rsi
	callq	_rb_erase
	movq	8(%r13), %rdi
	callq	_symbol__delete
	jmp	LBB0_12
LBB0_5:
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	___hists__add_entry
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.8:
	callq	_symbol__annotation
	cmpq	$0, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	(%rbx), %rdi
	callq	_symbol__alloc_hist
	testq	%rax, %rax
	js	LBB0_6
LBB0_10:
	movl	4(%r15), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_hist_entry__inc_addr_samples
	movl	%eax, %r14d
LBB0_11:
	movl	(%r12), %eax
	addl	%eax, (%r15)
	movq	_PERF_RECORD_SAMPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_hists__inc_nr_events
	jmp	LBB0_12
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PERF_RECORD_SAMPLE,4,2         ## @PERF_RECORD_SAMPLE
	.no_dead_strip	_perf_evsel__add_sample
.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_sample
_perf_evsel__add_sample:                ; @perf_evsel__add_sample
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x3]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w1, [x8, #4]
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x21, #16]
	ldp	x8, x9, [x8]
	ldr	x9, [x9]
	add	x1, x9, x8, lsl #2
	bl	_rb_erase
	ldr	x0, [x21, #8]
	bl	_symbol__delete
LBB0_5:
	mov	w21, #0
	b	LBB0_14
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	w3, #1
	bl	___hists__add_entry
	cbz	x0, LBB0_11
; %bb.7:
	mov	x22, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_12
; %bb.8:
	bl	_symbol__annotation
	ldr	x8, [x0]
	cbnz	x8, LBB0_10
; %bb.9:
	ldr	x0, [x22]
	bl	_symbol__alloc_hist
	tbnz	x0, #63, LBB0_11
LBB0_10:
	ldr	w1, [x19, #4]
	ldr	w2, [x21]
	mov	x0, x22
	bl	_hist_entry__inc_addr_samples
	mov	x21, x0
	b	LBB0_13
LBB0_11:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_12:
	mov	w21, #0
LBB0_13:
	ldr	w8, [x20]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
Lloh3:
	adrp	x8, _PERF_RECORD_SAMPLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PERF_RECORD_SAMPLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hists__inc_nr_events
LBB0_14:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PERF_RECORD_SAMPLE,4,2         ; @PERF_RECORD_SAMPLE
	.no_dead_strip	_perf_evsel__add_sample
.subsections_via_symbols
