	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lvt_off_to_idx
_lvt_off_to_idx:                        ## @lvt_off_to_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $edi killed $edi def $rdi
	leal	-128(%rdi), %eax
	cmpl	$6, %eax
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_APIC_LVT_TIMER@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_11
LBB0_5:
	movq	_APIC_LVT_THERMAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_APIC_LVT_PMC@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_APIC_LVT_LINT1@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_APIC_LVT_LINT0@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_APIC_LVT_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movq	_APIC_LVT_CMCI@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
LBB0_11:
	testl	%ebx, %ebx
	setns	%al
	movq	_VLAPIC_MAXLVT_INDEX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	movslq	%edi, %rsi
	movl	%eax, %edi
	callq	_KASSERT
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_APIC_LVT_CMCI,4,2              ## @APIC_LVT_CMCI
	.comm	_APIC_LVT_TIMER,4,2             ## @APIC_LVT_TIMER
	.comm	_APIC_LVT_THERMAL,4,2           ## @APIC_LVT_THERMAL
	.comm	_APIC_LVT_PMC,4,2               ## @APIC_LVT_PMC
	.comm	_APIC_LVT_LINT0,4,2             ## @APIC_LVT_LINT0
	.comm	_APIC_LVT_LINT1,4,2             ## @APIC_LVT_LINT1
	.comm	_APIC_LVT_ERROR,4,2             ## @APIC_LVT_ERROR
	.comm	_VLAPIC_MAXLVT_INDEX,4,2        ## @VLAPIC_MAXLVT_INDEX
	.no_dead_strip	_lvt_off_to_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lvt_off_to_idx
_lvt_off_to_idx:                        ; @lvt_off_to_idx
	.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
                                        ; kill: def $w0 killed $w0 def $x0
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _APIC_LVT_TIMER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _APIC_LVT_TIMER@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
	mov	w19, #-1
	b	LBB0_11
LBB0_4:
Lloh4:
	adrp	x8, _APIC_LVT_THERMAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _APIC_LVT_THERMAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x8, _APIC_LVT_PMC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _APIC_LVT_PMC@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh8:
	adrp	x8, _APIC_LVT_LINT1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _APIC_LVT_LINT1@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh10:
	adrp	x8, _APIC_LVT_LINT0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _APIC_LVT_LINT0@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh12:
	adrp	x8, _APIC_LVT_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _APIC_LVT_ERROR@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _APIC_LVT_CMCI@GOTPAGE
Lloh15:
	ldr	x8, [x8, _APIC_LVT_CMCI@GOTPAGEOFF]
LBB0_10:
	ldr	w19, [x8]
LBB0_11:
	cmp	w19, #0
Lloh16:
	adrp	x8, _VLAPIC_MAXLVT_INDEX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VLAPIC_MAXLVT_INDEX@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ccmp	w19, w8, #0, ge
	cset	w8, le
	sxtw	x1, w0
	mov	x0, x8
	bl	_KASSERT
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_APIC_LVT_CMCI,4,2              ; @APIC_LVT_CMCI
	.comm	_APIC_LVT_TIMER,4,2             ; @APIC_LVT_TIMER
	.comm	_APIC_LVT_THERMAL,4,2           ; @APIC_LVT_THERMAL
	.comm	_APIC_LVT_PMC,4,2               ; @APIC_LVT_PMC
	.comm	_APIC_LVT_LINT0,4,2             ; @APIC_LVT_LINT0
	.comm	_APIC_LVT_LINT1,4,2             ; @APIC_LVT_LINT1
	.comm	_APIC_LVT_ERROR,4,2             ; @APIC_LVT_ERROR
	.comm	_VLAPIC_MAXLVT_INDEX,4,2        ; @VLAPIC_MAXLVT_INDEX
	.no_dead_strip	_lvt_off_to_idx
.subsections_via_symbols
