	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hpet_interrupt
_hpet_interrupt:                        ## @hpet_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
	movq	%rsi, %rbx
	movq	48(%rsi), %rax
	movl	(%rax), %eax
	movl	%ebx, %ecx
	subl	%eax, %ecx
	shrl	$3, %ecx
	imull	$-73, %ecx, %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movslq	%eax, %r14
	movq	_HPET_SHARED_IRQ@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rsi)
	je	LBB0_3
## %bb.1:
	movq	24(%rbx), %rdi
	callq	_readl
	testq	%r14, %rax
	je	LBB0_2
LBB0_3:
	movq	_hpet_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	incl	40(%rbx)
	movl	(%rbx), %eax
	movq	_HPET_IE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_HPET_PERIODIC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	andl	%eax, %edx
	cmpl	%ecx, %edx
	jne	LBB0_5
## %bb.4:
	movq	8(%rbx), %r15
	movq	32(%rbx), %rdi
	callq	_read_counter
	addq	%rax, %r15
	movq	32(%rbx), %rsi
	movq	%r15, %rdi
	callq	_write_counter
	movl	(%rbx), %eax
LBB0_5:
	testl	%eax, (%r12)
	je	LBB0_7
## %bb.6:
	movq	24(%rbx), %rsi
	movq	%r14, %rdi
	callq	_writel
LBB0_7:
	movq	_hpet_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	leaq	20(%rbx), %rdi
	callq	_wake_up_interruptible
	addq	$16, %rbx
	movq	_SIGIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_POLL_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_kill_fasync
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPET_SHARED_IRQ,4,2            ## @HPET_SHARED_IRQ
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_hpet_lock,4,2                  ## @hpet_lock
	.comm	_HPET_IE,4,2                    ## @HPET_IE
	.comm	_HPET_PERIODIC,4,2              ## @HPET_PERIODIC
	.comm	_SIGIO,4,2                      ## @SIGIO
	.comm	_POLL_IN,4,2                    ## @POLL_IN
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_hpet_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hpet_interrupt
_hpet_interrupt:                        ; @hpet_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	x19, x1
	ldr	x8, [x1, #48]
	ldr	x8, [x8]
	sub	x8, x1, x8
	lsr	x8, x8, #3
	mov	w9, #28087
	movk	w9, #46811, lsl #16
	mul	w8, w8, w9
	mov	w9, #1
	lsl	w8, w9, w8
	sxtw	x20, w8
	ldr	w8, [x1]
Lloh0:
	adrp	x21, _HPET_SHARED_IRQ@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HPET_SHARED_IRQ@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19, #24]
	bl	_readl
	tst	x0, x20
	b.eq	LBB0_7
LBB0_2:
Lloh2:
	adrp	x0, _hpet_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _hpet_lock@GOTPAGEOFF]
	bl	_spin_lock
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
	ldr	w8, [x19]
Lloh4:
	adrp	x9, _HPET_IE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HPET_IE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _HPET_PERIODIC@GOTPAGE
Lloh8:
	ldr	x10, [x10, _HPET_PERIODIC@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	orr	w10, w10, w9
	and	w10, w10, w8
	cmp	w10, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	x22, [x19, #8]
	ldr	x0, [x19, #32]
	bl	_read_counter
	add	x0, x0, x22
	ldr	x1, [x19, #32]
	bl	_write_counter
	ldr	w8, [x19]
LBB0_4:
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x1, [x19, #24]
	mov	x0, x20
	bl	_writel
LBB0_6:
Lloh10:
	adrp	x0, _hpet_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _hpet_lock@GOTPAGEOFF]
	bl	_spin_unlock
	add	x0, x19, #20
	bl	_wake_up_interruptible
	add	x0, x19, #16
Lloh12:
	adrp	x8, _SIGIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIGIO@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _POLL_IN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _POLL_IN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_kill_fasync
Lloh18:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HPET_SHARED_IRQ,4,2            ; @HPET_SHARED_IRQ
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_hpet_lock,4,2                  ; @hpet_lock
	.comm	_HPET_IE,4,2                    ; @HPET_IE
	.comm	_HPET_PERIODIC,4,2              ; @HPET_PERIODIC
	.comm	_SIGIO,4,2                      ; @SIGIO
	.comm	_POLL_IN,4,2                    ; @POLL_IN
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_hpet_interrupt
.subsections_via_symbols
