	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reprogram_fixed_counter
_reprogram_fixed_counter:               ## @reprogram_fixed_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_stop_counter
	testb	$3, %bl
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_pmc_enabled
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%ebx, %r9d
	andl	$8, %r9d
	movq	_PERF_TYPE_HARDWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_arch_events@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_fixed_pmc_events@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r15d, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rax,%rcx,4), %edx
	movl	%ebx, %r8d
	notl	%r8d
	xorl	%ecx, %ecx
	testb	$2, %bl
	sete	%cl
	andl	$1, %r8d
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reprogram_counter              ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_TYPE_HARDWARE,4,2         ## @PERF_TYPE_HARDWARE
	.comm	_arch_events,8,3                ## @arch_events
	.comm	_fixed_pmc_events,8,3           ## @fixed_pmc_events
	.no_dead_strip	_reprogram_fixed_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reprogram_fixed_counter
_reprogram_fixed_counter:               ; @reprogram_fixed_counter
	.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
	and	w22, w1, #0x3
	bl	_stop_counter
	cbz	w22, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_pmc_enabled
	cbz	w0, LBB0_3
; %bb.2:
	and	w5, w20, #0x8
Lloh0:
	adrp	x8, _PERF_TYPE_HARDWARE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERF_TYPE_HARDWARE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _arch_events@GOTPAGE
Lloh4:
	ldr	x8, [x8, _arch_events@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _fixed_pmc_events@GOTPAGE
Lloh7:
	ldr	x9, [x9, _fixed_pmc_events@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x9, [x9, w21, sxtw #3]
	ldr	w2, [x8, x9, lsl #2]
	mvn	w8, w20
	mov	w9, #1
	bic	w3, w9, w20, lsr #1
	and	w4, w8, #0x1
	mov	x0, x19
	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
	b	_reprogram_counter
LBB0_3:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_TYPE_HARDWARE,4,2         ; @PERF_TYPE_HARDWARE
	.comm	_arch_events,8,3                ; @arch_events
	.comm	_fixed_pmc_events,8,3           ; @fixed_pmc_events
	.no_dead_strip	_reprogram_fixed_counter
.subsections_via_symbols
