	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lvt_mode_impl
_lvt_mode_impl:                         ## @lvt_mode_impl
	.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	_APIC_LVT_M@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_APIC_LVT_TM@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	%ebx, %r15d
	orl	%r10d, %r15d
	movq	_APIC_LVT_IIPP@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_APIC_LVT_DM@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_APIC_LVT_VECTOR@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	notl	%r15d
	andl	%ecx, %r15d
	movq	(%rsi), %r9
	xorl	%r8d, %r8d
	testq	%r9, %r9
	cmovnel	%r8d, %ebx
	cmpq	$0, 8(%rsi)
	movl	$0, %ecx
	jne	LBB0_2
## %bb.1:
	movq	_APIC_LVT_IIPP_INTALO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	orl	%ecx, %ebx
	cmpq	$0, 24(%rsi)
	cmovel	%r8d, %r10d
	movl	16(%rsi), %ecx
	orl	%ecx, %ebx
	orl	%r10d, %ebx
	orl	%ebx, %r15d
	leal	-128(%rcx), %eax
	cmpl	$3, %eax
	jb	LBB0_5
## %bb.3:
	cmpl	$131, %ecx
	je	LBB0_8
## %bb.4:
	cmpl	$132, %ecx
	jne	LBB0_9
LBB0_5:
	testq	%r9, %r9
	jne	LBB0_10
## %bb.6:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.7:
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, %r15d
	jmp	LBB0_10
LBB0_8:
	orl	20(%rsi), %r15d
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_panic
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_LVT_M,4,2                 ## @APIC_LVT_M
	.comm	_APIC_LVT_TM,4,2                ## @APIC_LVT_TM
	.comm	_APIC_LVT_IIPP,4,2              ## @APIC_LVT_IIPP
	.comm	_APIC_LVT_DM,4,2                ## @APIC_LVT_DM
	.comm	_APIC_LVT_VECTOR,4,2            ## @APIC_LVT_VECTOR
	.comm	_APIC_LVT_IIPP_INTALO,4,2       ## @APIC_LVT_IIPP_INTALO
	.comm	_bootverbose,4,2                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lapic%u: Forcing LINT%u to edge trigger\n"

L_.str.1:                               ## @.str.1
	.asciz	"bad APIC LVT delivery mode: %#x\n"

	.no_dead_strip	_lvt_mode_impl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lvt_mode_impl
_lvt_mode_impl:                         ; @lvt_mode_impl
	.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
Lloh0:
	adrp	x8, _APIC_LVT_M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APIC_LVT_M@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x20, _APIC_LVT_TM@GOTPAGE
Lloh4:
	ldr	x20, [x20, _APIC_LVT_TM@GOTPAGEOFF]
	ldr	w10, [x20]
	orr	w8, w10, w9
Lloh5:
	adrp	x11, _APIC_LVT_IIPP@GOTPAGE
Lloh6:
	ldr	x11, [x11, _APIC_LVT_IIPP@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	orr	w8, w8, w11
Lloh8:
	adrp	x11, _APIC_LVT_DM@GOTPAGE
Lloh9:
	ldr	x11, [x11, _APIC_LVT_DM@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	orr	w8, w8, w11
Lloh11:
	adrp	x11, _APIC_LVT_VECTOR@GOTPAGE
Lloh12:
	ldr	x11, [x11, _APIC_LVT_VECTOR@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	orr	w8, w8, w11
	bic	w11, w3, w8
	ldp	x8, x12, [x1]
	cmp	x8, #0
	csel	w10, w10, wzr, eq
	orr	w10, w10, w11
Lloh14:
	adrp	x11, _APIC_LVT_IIPP_INTALO@GOTPAGE
Lloh15:
	ldr	x11, [x11, _APIC_LVT_IIPP_INTALO@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	cmp	x12, #0
	csel	w11, w11, wzr, eq
	orr	w10, w10, w11
	ldr	x11, [x1, #24]
	cmp	x11, #0
	csel	w11, wzr, w9, eq
	ldr	w9, [x1, #16]
	orr	w10, w10, w9
	orr	w19, w10, w11
	sub	w10, w9, #128
	cmp	w10, #3
	b.lo	LBB0_3
; %bb.1:
	cmp	w9, #131
	b.eq	LBB0_6
; %bb.2:
	cmp	w9, #132
	b.ne	LBB0_7
LBB0_3:
	cbnz	x8, LBB0_8
; %bb.4:
Lloh17:
	adrp	x8, _bootverbose@GOTPAGE
Lloh18:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.5:
	ldr	w1, [x0]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	w8, [x20]
	bic	w19, w19, w8
	b	LBB0_8
LBB0_6:
	ldr	w8, [x1, #20]
	orr	w19, w8, w19
	b	LBB0_8
LBB0_7:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_panic
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_LVT_M,4,2                 ; @APIC_LVT_M
	.comm	_APIC_LVT_TM,4,2                ; @APIC_LVT_TM
	.comm	_APIC_LVT_IIPP,4,2              ; @APIC_LVT_IIPP
	.comm	_APIC_LVT_DM,4,2                ; @APIC_LVT_DM
	.comm	_APIC_LVT_VECTOR,4,2            ; @APIC_LVT_VECTOR
	.comm	_APIC_LVT_IIPP_INTALO,4,2       ; @APIC_LVT_IIPP_INTALO
	.comm	_bootverbose,4,2                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lapic%u: Forcing LINT%u to edge trigger\n"

l_.str.1:                               ; @.str.1
	.asciz	"bad APIC LVT delivery mode: %#x\n"

	.no_dead_strip	_lvt_mode_impl
.subsections_via_symbols
