	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lapic_write32
_lapic_write32:                         ## @lapic_write32
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_x2apic_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_mfence
	xorl	%eax, %eax
	callq	_lfence
	movq	_MSR_APIC_000@GOTPCREL(%rip), %rax
	movl	%ebx, %edi
	addq	(%rax), %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wrmsr                          ## TAILCALL
LBB0_1:
	movq	_lapic_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_LAPIC_MEM_MUL@GOTPCREL(%rip), %rcx
	imull	(%rcx), %ebx
	movl	%r14d, (%rax,%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_x2apic_mode,8,3                ## @x2apic_mode
	.comm	_MSR_APIC_000,8,3               ## @MSR_APIC_000
	.comm	_lapic_map,8,3                  ## @lapic_map
	.comm	_LAPIC_MEM_MUL,4,2              ## @LAPIC_MEM_MUL
	.no_dead_strip	_lapic_write32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lapic_write32
_lapic_write32:                         ; @lapic_write32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _x2apic_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _x2apic_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_mfence
	bl	_lfence
Lloh3:
	adrp	x8, _MSR_APIC_000@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSR_APIC_000@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x0, x8, w20, uxtw
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wrmsr
LBB0_2:
Lloh6:
	adrp	x8, _lapic_map@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lapic_map@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _LAPIC_MEM_MUL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LAPIC_MEM_MUL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	mul	w9, w9, w20
	str	w19, [x8, w9, uxtw]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_x2apic_mode,8,3                ; @x2apic_mode
	.comm	_MSR_APIC_000,8,3               ; @MSR_APIC_000
	.comm	_lapic_map,8,3                  ; @lapic_map
	.comm	_LAPIC_MEM_MUL,4,2              ; @LAPIC_MEM_MUL
	.no_dead_strip	_lapic_write32
.subsections_via_symbols
