	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_tval
_set_tval:                              ## @set_tval
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_cntv_tval@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_cntp_tval@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_set_el0
	xorl	%eax, %eax
	callq	_isb
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cntp_tval,4,2                  ## @cntp_tval
	.comm	_cntv_tval,4,2                  ## @cntv_tval
	.no_dead_strip	_set_tval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_tval
_set_tval:                              ; @set_tval
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
Lloh0:
	adrp	x9, _cntv_tval@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cntv_tval@GOTPAGEOFF]
Lloh2:
	adrp	x10, _cntp_tval@GOTPAGE
Lloh3:
	ldr	x10, [x10, _cntp_tval@GOTPAGEOFF]
	cmp	w1, #0
	csel	x9, x9, x10, eq
	ldr	w0, [x9]
	mov	x1, x8
	bl	_set_el0
	bl	_isb
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cntp_tval,4,2                  ; @cntp_tval
	.comm	_cntv_tval,4,2                  ; @cntv_tval
	.no_dead_strip	_set_tval
.subsections_via_symbols
