	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oprofile_write_reserve         ## -- Begin function oprofile_write_reserve
	.p2align	4, 0x90
_oprofile_write_reserve:                ## @oprofile_write_reserve
	.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
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_user_mode
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	%r14b
	movq	_op_cpu_buffer@GOTPCREL(%rip), %rdi
	callq	_this_cpu_ptr
	movq	%rax, %rbx
	incl	4(%rax)
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_op_add_code
	testq	%rax, %rax
	je	LBB0_1
LBB0_2:
	movq	$0, (%r12)
	incl	(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	addl	$2, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_op_cpu_buffer_write_reserve
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_ESCAPE_CODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	$0, (%rax)
	movslq	%r15d, %rsi
	movq	%r12, %rdi
	callq	_op_cpu_buffer_add_data
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_op_cpu_buffer_add_data         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_op_cpu_buffer,4,2              ## @op_cpu_buffer
	.comm	_current,4,2                    ## @current
	.comm	_ESCAPE_CODE,4,2                ## @ESCAPE_CODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oprofile_write_reserve         ; -- Begin function oprofile_write_reserve
	.p2align	2
_oprofile_write_reserve:                ; @oprofile_write_reserve
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x4
	mov	x21, x3
	mov	x20, x2
	mov	x19, x0
	mov	x0, x1
	bl	_user_mode
	cmp	w0, #0
	cset	w24, eq
Lloh0:
	adrp	x0, _op_cpu_buffer@GOTPAGE
Lloh1:
	ldr	x0, [x0, _op_cpu_buffer@GOTPAGEOFF]
	bl	_this_cpu_ptr
	mov	x23, x0
	ldr	w8, [x0, #4]
	add	w8, w8, #1
	str	w8, [x0, #4]
Lloh2:
	adrp	x8, _current@GOTPAGE
Lloh3:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	w1, #0
	mov	x2, x24
	bl	_op_add_code
	cbz	x0, LBB0_2
LBB0_1:
	str	xzr, [x19]
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	add	w1, w22, #2
	mov	x0, x19
	bl	_op_cpu_buffer_write_reserve
	cbz	x0, LBB0_1
; %bb.3:
Lloh5:
	adrp	x8, _ESCAPE_CODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ESCAPE_CODE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	xzr, [x0]
	sxtw	x1, w21
	mov	x0, x19
	bl	_op_cpu_buffer_add_data
	mov	x0, x19
	mov	x1, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_op_cpu_buffer_add_data
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_op_cpu_buffer,4,2              ; @op_cpu_buffer
	.comm	_current,4,2                    ; @current
	.comm	_ESCAPE_CODE,4,2                ; @ESCAPE_CODE
.subsections_via_symbols
