	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlapic_lvt_write_handler       ## -- Begin function vlapic_lvt_write_handler
	.p2align	4, 0x90
_vlapic_lvt_write_handler:              ## @vlapic_lvt_write_handler
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	callq	_vlapic_get_lvtptr
	movq	%rax, %r14
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_lvt_off_to_idx
	movl	(%r13), %r8d
	movq	_APIC_SVR_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_APIC_LVT_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_APIC_LVT_DS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	movq	_APIC_LVT_VECTOR@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	leal	-129(%rbx), %esi
	cmpl	$2, %esi
	jb	LBB0_4
## %bb.1:
	cmpl	$131, %ebx
	je	LBB0_7
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_5
## %bb.3:
	movq	_APIC_LVTT_TM@GOTPCREL(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movq	_APIC_LVT_TM@GOTPCREL(%rip), %rsi
	movq	_APIC_LVT_RIRR@GOTPCREL(%rip), %rbx
	movq	_APIC_LVT_IIPP@GOTPCREL(%rip), %r9
	orl	(%rsi), %edx
	orl	(%rbx), %edx
	orl	(%r9), %edx
LBB0_5:
	movq	_APIC_LVT_DM@GOTPCREL(%rip), %rsi
LBB0_6:
	orl	(%rsi), %edx
LBB0_7:
	xorl	%esi, %esi
	testl	%r8d, %edi
	cmovel	%ecx, %esi
	orl	%r12d, %esi
	andl	%edx, %esi
	movl	%esi, (%r14)
	movslq	%eax, %rdi
	shlq	$2, %rdi
	addq	(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_store_rel_32            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_SVR_ENABLE,4,2            ## @APIC_SVR_ENABLE
	.comm	_APIC_LVT_M,4,2                 ## @APIC_LVT_M
	.comm	_APIC_LVT_DS,4,2                ## @APIC_LVT_DS
	.comm	_APIC_LVT_VECTOR,4,2            ## @APIC_LVT_VECTOR
	.comm	_APIC_LVTT_TM,4,2               ## @APIC_LVTT_TM
	.comm	_APIC_LVT_TM,4,2                ## @APIC_LVT_TM
	.comm	_APIC_LVT_RIRR,4,2              ## @APIC_LVT_RIRR
	.comm	_APIC_LVT_IIPP,4,2              ## @APIC_LVT_IIPP
	.comm	_APIC_LVT_DM,4,2                ## @APIC_LVT_DM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlapic_lvt_write_handler       ; -- Begin function vlapic_lvt_write_handler
	.p2align	2
_vlapic_lvt_write_handler:              ; @vlapic_lvt_write_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0, #8]
	bl	_vlapic_get_lvtptr
	mov	x20, x0
	ldr	w22, [x0]
	mov	x0, x21
	bl	_lvt_off_to_idx
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _APIC_SVR_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _APIC_SVR_ENABLE@GOTPAGEOFF]
Lloh2:
	adrp	x11, _APIC_LVT_M@GOTPAGE
Lloh3:
	ldr	x11, [x11, _APIC_LVT_M@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x9]
Lloh5:
	ldr	w9, [x11]
Lloh6:
	adrp	x11, _APIC_LVT_DS@GOTPAGE
Lloh7:
	ldr	x11, [x11, _APIC_LVT_DS@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w11, w11, w9
Lloh9:
	adrp	x12, _APIC_LVT_VECTOR@GOTPAGE
Lloh10:
	ldr	x12, [x12, _APIC_LVT_VECTOR@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	orr	w11, w11, w12
	sub	w12, w21, #129
	cmp	w12, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w21, #131
	b.eq	LBB0_7
; %bb.2:
	cmp	w21, #128
	b.ne	LBB0_5
; %bb.3:
Lloh12:
	adrp	x12, _APIC_LVTT_TM@GOTPAGE
Lloh13:
	ldr	x12, [x12, _APIC_LVTT_TM@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x12, _APIC_LVT_TM@GOTPAGE
Lloh15:
	ldr	x12, [x12, _APIC_LVT_TM@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x12]
Lloh17:
	adrp	x13, _APIC_LVT_RIRR@GOTPAGE
Lloh18:
	ldr	x13, [x13, _APIC_LVT_RIRR@GOTPAGEOFF]
Lloh19:
	ldr	w13, [x13]
Lloh20:
	adrp	x14, _APIC_LVT_IIPP@GOTPAGE
Lloh21:
	ldr	x14, [x14, _APIC_LVT_IIPP@GOTPAGEOFF]
Lloh22:
	ldr	w14, [x14]
	orr	w11, w12, w11
	orr	w11, w11, w13
	orr	w11, w11, w14
LBB0_5:
Lloh23:
	adrp	x12, _APIC_LVT_DM@GOTPAGE
Lloh24:
	ldr	x12, [x12, _APIC_LVT_DM@GOTPAGEOFF]
LBB0_6:
	ldr	w12, [x12]
	orr	w11, w12, w11
LBB0_7:
	tst	w10, w8
	csel	w8, w9, wzr, eq
	orr	w8, w8, w22
	and	w1, w11, w8
	str	w1, [x20]
	ldr	x8, [x19]
	add	x0, x8, w0, sxtw #2
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_atomic_store_rel_32
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_SVR_ENABLE,4,2            ; @APIC_SVR_ENABLE
	.comm	_APIC_LVT_M,4,2                 ; @APIC_LVT_M
	.comm	_APIC_LVT_DS,4,2                ; @APIC_LVT_DS
	.comm	_APIC_LVT_VECTOR,4,2            ; @APIC_LVT_VECTOR
	.comm	_APIC_LVTT_TM,4,2               ; @APIC_LVTT_TM
	.comm	_APIC_LVT_TM,4,2                ; @APIC_LVT_TM
	.comm	_APIC_LVT_RIRR,4,2              ; @APIC_LVT_RIRR
	.comm	_APIC_LVT_IIPP,4,2              ; @APIC_LVT_IIPP
	.comm	_APIC_LVT_DM,4,2                ; @APIC_LVT_DM
.subsections_via_symbols
