	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lapic_timer_deadline
_lapic_timer_deadline:                  ## @lapic_timer_deadline
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_APIC_LVTT_TM@GOTPCREL(%rip), %rax
	movq	_APIC_LVT_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	notl	%esi
	andl	(%rdi), %esi
	movq	_APIC_LVTT_TM_TSCDLT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	cmpl	4(%rdi), %esi
	je	LBB0_3
## %bb.1:
	movl	%esi, 4(%rbx)
	movq	_LAPIC_LVT_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_lapic_write32_nofence
	movq	_x2apic_mode@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_mfence
LBB0_3:
	movq	_MSR_TSC_DEADLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	8(%rbx), %rbx
	xorl	%eax, %eax
	callq	_rdtsc
	addq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wrmsr                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_LVTT_TM,4,2               ## @APIC_LVTT_TM
	.comm	_APIC_LVT_M,4,2                 ## @APIC_LVT_M
	.comm	_APIC_LVTT_TM_TSCDLT,4,2        ## @APIC_LVTT_TM_TSCDLT
	.comm	_LAPIC_LVT_TIMER,4,2            ## @LAPIC_LVT_TIMER
	.comm	_x2apic_mode,4,2                ## @x2apic_mode
	.comm	_MSR_TSC_DEADLINE,4,2           ## @MSR_TSC_DEADLINE
	.no_dead_strip	_lapic_timer_deadline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lapic_timer_deadline
_lapic_timer_deadline:                  ; @lapic_timer_deadline
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _APIC_LVTT_TM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APIC_LVTT_TM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _APIC_LVT_M@GOTPAGE
Lloh4:
	ldr	x9, [x9, _APIC_LVT_M@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldp	w9, w10, [x0]
	bic	w8, w9, w8
Lloh6:
	adrp	x9, _APIC_LVTT_TM_TSCDLT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _APIC_LVTT_TM_TSCDLT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
	cmp	w1, w10
	b.eq	LBB0_3
; %bb.1:
	str	w1, [x19, #4]
Lloh9:
	adrp	x8, _LAPIC_LVT_TIMER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LAPIC_LVT_TIMER@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_lapic_write32_nofence
Lloh12:
	adrp	x8, _x2apic_mode@GOTPAGE
Lloh13:
	ldr	x8, [x8, _x2apic_mode@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
; %bb.2:
	bl	_mfence
LBB0_3:
Lloh15:
	adrp	x8, _MSR_TSC_DEADLINE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSR_TSC_DEADLINE@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	ldr	x19, [x19, #8]
	bl	_rdtsc
	add	x1, x0, x19
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wrmsr
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_LVTT_TM,4,2               ; @APIC_LVTT_TM
	.comm	_APIC_LVT_M,4,2                 ; @APIC_LVT_M
	.comm	_APIC_LVTT_TM_TSCDLT,4,2        ; @APIC_LVTT_TM_TSCDLT
	.comm	_LAPIC_LVT_TIMER,4,2            ; @LAPIC_LVT_TIMER
	.comm	_x2apic_mode,4,2                ; @x2apic_mode
	.comm	_MSR_TSC_DEADLINE,4,2           ; @MSR_TSC_DEADLINE
	.no_dead_strip	_lapic_timer_deadline
.subsections_via_symbols
