	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_sample
_add_sample:                            ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
LBB0_10:
	callq	_add_sample_entry
	movl	$1, %eax
	jmp	LBB0_11
LBB0_2:
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	movl	4(%rbx), %esi
	leaq	-28(%rbp), %rdx
	callq	_lookup_dcookie
	movq	%rax, %r14
	movq	_INVALID_COOKIE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_7
## %bb.5:
	movq	_oprofile_stats@GOTPCREL(%rip), %rdi
	jmp	LBB0_6
LBB0_3:
	movq	_oprofile_stats@GOTPCREL(%rip), %rdi
	addq	$4, %rdi
LBB0_6:
	callq	_atomic_inc
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_last_cookie@GOTPCREL(%rip), %r15
	cmpq	(%r15), %r14
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_add_cookie_switch
	movq	%r14, (%r15)
LBB0_9:
	movl	-28(%rbp), %edi
	movl	(%rbx), %esi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_oprofile_stats,8,2             ## @oprofile_stats
	.comm	_INVALID_COOKIE,8,3             ## @INVALID_COOKIE
	.comm	_last_cookie,8,3                ## @last_cookie
	.no_dead_strip	_add_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_sample
_add_sample:                            ; @add_sample
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	cbz	w2, LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
LBB0_2:
	ldr	w1, [x19]
	bl	_add_sample_entry
	mov	w0, #1
	b	LBB0_8
LBB0_3:
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w1, [x19, #4]
	add	x2, sp, #12
	bl	_lookup_dcookie
Lloh0:
	adrp	x8, _INVALID_COOKIE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INVALID_COOKIE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.5:
Lloh3:
	adrp	x0, _oprofile_stats@GOTPAGE
Lloh4:
	ldr	x0, [x0, _oprofile_stats@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _oprofile_stats@GOTPAGE
Lloh6:
	ldr	x8, [x8, _oprofile_stats@GOTPAGEOFF]
	add	x0, x8, #4
LBB0_7:
	bl	_atomic_inc
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	mov	x20, x0
Lloh7:
	adrp	x21, _last_cookie@GOTPAGE
Lloh8:
	ldr	x21, [x21, _last_cookie@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_add_cookie_switch
	str	x20, [x21]
LBB0_11:
	ldr	w0, [sp, #12]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_oprofile_stats,8,2             ; @oprofile_stats
	.comm	_INVALID_COOKIE,8,3             ; @INVALID_COOKIE
	.comm	_last_cookie,8,3                ; @last_cookie
	.no_dead_strip	_add_sample
.subsections_via_symbols
