	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lapic_handle_timer             ## -- Begin function lapic_handle_timer
	.p2align	4, 0x90
_lapic_handle_timer:                    ## @lapic_handle_timer
	.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, %r14
	xorl	%eax, %eax
	callq	_lapic_eoi
	movq	_lapics@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_apic_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movq	(%rbx,%rax,8), %rax
	incl	(%rax)
	xorl	%eax, %eax
	callq	_critical_enter
	movq	_lapic_et@GOTPCREL(%rip), %rdi
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	incl	(%rbx)
	movq	8(%rbx), %r15
	movq	%r14, 8(%rbx)
	movl	(%rdi), %esi
	callq	*8(%rdi)
	movq	%r15, 8(%rbx)
	decl	(%rbx)
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_critical_exit                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_lapics,8,3                     ## @lapics
	.comm	_apic_id,4,2                    ## @apic_id
	.comm	_lapic_et,24,3                  ## @lapic_et
	.comm	_curthread,8,3                  ## @curthread
	.comm	_cpuid,4,2                      ## @cpuid
	.comm	_hlt_cpus_mask,4,2              ## @hlt_cpus_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lapic_handle_timer             ; -- Begin function lapic_handle_timer
	.p2align	2
_lapic_handle_timer:                    ; @lapic_handle_timer
	.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	_lapic_eoi
Lloh0:
	adrp	x8, _lapics@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lapics@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _apic_id@GOTPAGE
Lloh4:
	ldr	x8, [x8, _apic_id@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_PCPU_GET
	ldr	x8, [x20, x0, lsl #3]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	bl	_critical_enter
Lloh6:
	adrp	x0, _lapic_et@GOTPAGE
Lloh7:
	ldr	x0, [x0, _lapic_et@GOTPAGEOFF]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _curthread@GOTPAGE
Lloh9:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldr	x21, [x20, #8]
	str	x19, [x20, #8]
	ldr	x8, [x0, #8]
	ldr	w1, [x0]
	blr	x8
	str	x21, [x20, #8]
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
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
	b	_critical_exit
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_lapics,8,3                     ; @lapics
	.comm	_apic_id,4,2                    ; @apic_id
	.comm	_lapic_et,24,3                  ; @lapic_et
	.comm	_curthread,8,3                  ; @curthread
	.comm	_cpuid,4,2                      ; @cpuid
	.comm	_hlt_cpus_mask,4,2              ; @hlt_cpus_mask
.subsections_via_symbols
