	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function op_create_counter
_op_create_counter:                     ## @op_create_counter
	.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	_counter_config@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movslq	%esi, %r12
	xorl	%ebx, %ebx
	cmpl	$0, 4(%rax,%r12,8)
	je	LBB0_6
## %bb.1:
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	_perf_events@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_per_cpu
	cmpq	$0, (%rax,%r12,8)
	je	LBB0_2
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	(,%r12,8), %rdi
	addq	(%r13), %rdi
	movq	_op_overflow_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_perf_event_create_kernel_counter
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	(%rbx), %rax
	movq	_PERF_EVENT_STATE_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_perf_events@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_per_cpu
	movq	%rbx, (%rax,%r12,8)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_perf_event_release_kernel
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_pr_warning
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_counter_config,8,3             ## @counter_config
	.comm	_perf_events,4,2                ## @perf_events
	.comm	_op_overflow_handler,4,2        ## @op_overflow_handler
	.comm	_PERF_EVENT_STATE_ACTIVE,8,3    ## @PERF_EVENT_STATE_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"oprofile: failed to enable event %d on CPU %d\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_op_create_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function op_create_counter
_op_create_counter:                     ; @op_create_counter
	.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
Lloh0:
	adrp	x21, _counter_config@GOTPAGE
Lloh1:
	ldr	x21, [x21, _counter_config@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x8, x8, w1, sxtw #3
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	sxtw	x22, w20
Lloh2:
	adrp	x23, _perf_events@GOTPAGE
Lloh3:
	ldr	x23, [x23, _perf_events@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x19
	bl	_per_cpu
	ldr	x8, [x0, x22, lsl #3]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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_4:
	ldr	x8, [x21]
	add	x0, x8, x22, lsl #3
Lloh4:
	adrp	x8, _op_overflow_handler@GOTPAGE
Lloh5:
	ldr	x8, [x8, _op_overflow_handler@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x1, x19
	mov	x2, #0
	mov	x4, #0
	bl	_perf_event_create_kernel_counter
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	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	_PTR_ERR
LBB0_6:
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _PERF_EVENT_STATE_ACTIVE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PERF_EVENT_STATE_ACTIVE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	w0, [x23]
	mov	x1, x19
	bl	_per_cpu
	mov	x8, x0
	mov	w0, #0
	str	x21, [x8, x22, lsl #3]
	b	LBB0_3
LBB0_8:
	mov	x0, x21
	bl	_perf_event_release_kernel
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_pr_warning
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_counter_config,8,3             ; @counter_config
	.comm	_perf_events,4,2                ; @perf_events
	.comm	_op_overflow_handler,4,2        ; @op_overflow_handler
	.comm	_PERF_EVENT_STATE_ACTIVE,8,3    ; @PERF_EVENT_STATE_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"oprofile: failed to enable event %d on CPU %d\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_op_create_counter
.subsections_via_symbols
