	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vhpet_timer_interrupt
_vhpet_timer_interrupt:                 ## @vhpet_timer_interrupt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_vhpet_timer_interrupt_enabled
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movl	(%r14), %eax
	movl	$1, %r12d
	movl	%ebx, %ecx
	shll	%cl, %r12d
	btl	%ebx, %eax
	jae	LBB0_4
## %bb.2:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VM_CTR1                        ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_vhpet_timer_msi_enabled
	testq	%rax, %rax
	je	LBB0_5
## %bb.10:
	movl	4(%r14), %edi
	movq	8(%r14), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lapic_intr_msi                 ## TAILCALL
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_vhpet_timer_ioapic_pin
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_vhpet_timer_edge_trig
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movl	4(%r14), %edi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vioapic_pulse_irq              ## TAILCALL
LBB0_6:
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_8:
	orl	%r12d, (%r14)
	movl	4(%r14), %edi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vioapic_assert_irq             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hpet t%d intr is already asserted"

L_.str.1:                               ## @.str.1
	.asciz	"hpet t%d intr is not routed to ioapic"

	.no_dead_strip	_vhpet_timer_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vhpet_timer_interrupt
_vhpet_timer_interrupt:                 ; @vhpet_timer_interrupt
	.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	x20, x1
	mov	x19, x0
	bl	_vhpet_timer_interrupt_enabled
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	mov	w9, #1
	lsl	w22, w9, w20
	tst	w8, w22
	b.eq	LBB0_5
; %bb.2:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x2, x20
	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	_VM_CTR1
LBB0_4:
	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
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_vhpet_timer_msi_enabled
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x19, #4]
	ldr	x8, [x19, #8]
	ldr	w2, [x8, w20, sxtw #2]
	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	_lapic_intr_msi
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_vhpet_timer_ioapic_pin
	cbz	w0, LBB0_10
; %bb.8:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_vhpet_timer_edge_trig
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w0, [x19, #4]
	mov	x1, x21
	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	_vioapic_pulse_irq
LBB0_10:
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_11:
	ldp	w8, w0, [x19]
	orr	w8, w8, w22
	str	w8, [x19]
	mov	x1, x21
	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	_vioapic_assert_irq
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hpet t%d intr is already asserted"

l_.str.1:                               ; @.str.1
	.asciz	"hpet t%d intr is not routed to ioapic"

	.no_dead_strip	_vhpet_timer_interrupt
.subsections_via_symbols
