	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vhpet_timer_clear_isr
_vhpet_timer_clear_isr:                 ## @vhpet_timer_clear_isr
	.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
	movl	(%rdi), %eax
	movl	$1, %r12d
	movl	%ebx, %ecx
	shll	%cl, %r12d
	btl	%esi, %eax
	jae	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movl	%ebx, %esi
	callq	_vhpet_timer_ioapic_pin
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	movslq	%ebx, %rsi
	callq	_KASSERT
	movl	4(%r14), %edi
	movl	%r15d, %esi
	callq	_vioapic_deassert_irq
	notl	%r12d
	andl	%r12d, (%r14)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vhpet_timer_clear_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vhpet_timer_clear_isr
_vhpet_timer_clear_isr:                 ; @vhpet_timer_clear_isr
	.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
	ldr	w8, [x0]
	mov	w9, #1
	lsl	w22, w9, w1
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_vhpet_timer_ioapic_pin
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	sxtw	x1, w20
	bl	_KASSERT
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_vioapic_deassert_irq
	ldr	w8, [x19]
	bic	w8, w8, w22
	str	w8, [x19]
LBB0_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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vhpet_timer_clear_isr
.subsections_via_symbols
