	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlapic_icrtmr_write_handler    ## -- Begin function vlapic_icrtmr_write_handler
	.p2align	4, 0x90
_vlapic_icrtmr_write_handler:           ## @vlapic_icrtmr_write_handler
	.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	%rdi, %rbx
	callq	_VLAPIC_TIMER_LOCK
	movq	16(%rbx), %rax
	movq	(%rax), %r15
	movl	12(%rbx), %eax
	leaq	4(%rbx), %r14
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_bintime_mul
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_binuptime
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bintime_add
	movl	4(%rbx), %edi
	callq	_bttosbt
	movq	_vlapic_callout_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	_callout_reset_sbt
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_callout_stop
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VLAPIC_TIMER_UNLOCK            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vlapic_callout_handler,4,2     ## @vlapic_callout_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlapic_icrtmr_write_handler    ; -- Begin function vlapic_icrtmr_write_handler
	.p2align	2
_vlapic_icrtmr_write_handler:           ; @vlapic_icrtmr_write_handler
	.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	x19, x0
	bl	_VLAPIC_TIMER_LOCK
	ldr	w8, [x19, #12]
	mov	x20, x19
	str	w8, [x20, #4]!
	ldur	x8, [x20, #12]
	ldr	x21, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_bintime_mul
	cbz	x21, LBB0_2
; %bb.1:
	add	x21, x19, #8
	mov	x0, x21
	bl	_binuptime
	mov	x0, x21
	mov	x1, x20
	bl	_bintime_add
	ldr	w0, [x19, #4]
	bl	_bttosbt
	mov	x1, x0
Lloh0:
	adrp	x8, _vlapic_callout_handler@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vlapic_callout_handler@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x4, x19
	mov	w5, #0
	bl	_callout_reset_sbt
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_callout_stop
LBB0_3:
	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	_VLAPIC_TIMER_UNLOCK
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_vlapic_callout_handler,4,2     ; @vlapic_callout_handler
.subsections_via_symbols
