	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lapic_enable
_lapic_enable:                          ## @lapic_enable
	.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
	movq	_LAPIC_SVR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_lapic_read32
	movq	_APIC_SVR_VECTOR@GOTPCREL(%rip), %rdx
	movq	_APIC_SVR_FOCUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_APIC_SVR_FEN@GOTPCREL(%rip), %rax
	movq	_APIC_SVR_SWEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rax), %esi
	movq	_APIC_SPURIOUS_INT@GOTPCREL(%rip), %rax
	movq	_lapic_eoi_suppression@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_APIC_SVR_EOI_SUPPRESSION@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_2:
	orl	%ecx, %esi
	orl	(%rax), %esi
	orl	%edx, %esi
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_lapic_write32                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LAPIC_SVR,4,2                  ## @LAPIC_SVR
	.comm	_APIC_SVR_VECTOR,4,2            ## @APIC_SVR_VECTOR
	.comm	_APIC_SVR_FOCUS,4,2             ## @APIC_SVR_FOCUS
	.comm	_APIC_SVR_FEN,4,2               ## @APIC_SVR_FEN
	.comm	_APIC_SVR_SWEN,4,2              ## @APIC_SVR_SWEN
	.comm	_APIC_SPURIOUS_INT,4,2          ## @APIC_SPURIOUS_INT
	.comm	_lapic_eoi_suppression,8,3      ## @lapic_eoi_suppression
	.comm	_APIC_SVR_EOI_SUPPRESSION,4,2   ## @APIC_SVR_EOI_SUPPRESSION
	.no_dead_strip	_lapic_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lapic_enable
_lapic_enable:                          ; @lapic_enable
	.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	x19, _LAPIC_SVR@GOTPAGE
Lloh1:
	ldr	x19, [x19, _LAPIC_SVR@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_lapic_read32
Lloh2:
	adrp	x8, _APIC_SVR_VECTOR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _APIC_SVR_VECTOR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _APIC_SVR_FOCUS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _APIC_SVR_FOCUS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh8:
	adrp	x9, _APIC_SVR_FEN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _APIC_SVR_FEN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _APIC_SVR_SWEN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _APIC_SVR_SWEN@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh14:
	adrp	x10, _APIC_SPURIOUS_INT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _APIC_SPURIOUS_INT@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _lapic_eoi_suppression@GOTPAGE
Lloh18:
	ldr	x11, [x11, _lapic_eoi_suppression@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
Lloh20:
	adrp	x12, _APIC_SVR_EOI_SUPPRESSION@GOTPAGE
Lloh21:
	ldr	x12, [x12, _APIC_SVR_EOI_SUPPRESSION@GOTPAGEOFF]
Lloh22:
	ldr	w12, [x12]
	cmp	x11, #0
	csel	w11, wzr, w12, eq
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w1, w8, w11
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lapic_write32
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LAPIC_SVR,4,2                  ; @LAPIC_SVR
	.comm	_APIC_SVR_VECTOR,4,2            ; @APIC_SVR_VECTOR
	.comm	_APIC_SVR_FOCUS,4,2             ; @APIC_SVR_FOCUS
	.comm	_APIC_SVR_FEN,4,2               ; @APIC_SVR_FEN
	.comm	_APIC_SVR_SWEN,4,2              ; @APIC_SVR_SWEN
	.comm	_APIC_SPURIOUS_INT,4,2          ; @APIC_SPURIOUS_INT
	.comm	_lapic_eoi_suppression,8,3      ; @lapic_eoi_suppression
	.comm	_APIC_SVR_EOI_SUPPRESSION,4,2   ; @APIC_SVR_EOI_SUPPRESSION
	.no_dead_strip	_lapic_enable
.subsections_via_symbols
