	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlapic_icrlo_write_handler     ## -- Begin function vlapic_icrlo_write_handler
	.p2align	4, 0x90
_vlapic_icrlo_write_handler:            ## @vlapic_icrlo_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	_APIC_DELSTAT_PEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, (%rax)
	callq	_x2apic
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_VLAPIC_CTR2
	movl	16(%rbx), %edi
	callq	_vm_get_maxcpus
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_DELSTAT_PEND,4,2          ## @APIC_DELSTAT_PEND
	.comm	_APIC_VECTOR_MASK,4,2           ## @APIC_VECTOR_MASK
	.comm	_APIC_DELMODE_MASK,4,2          ## @APIC_DELMODE_MASK
	.comm	_APIC_DELMODE_FIXED,4,2         ## @APIC_DELMODE_FIXED
	.comm	_APIC_ESR_SEND_ILLEGAL_VECTOR,4,2 ## @APIC_ESR_SEND_ILLEGAL_VECTOR
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"icrlo 0x%016lx triggered ipi %d"

	.comm	_APIC_DELMODE_NMI,4,2           ## @APIC_DELMODE_NMI
	.comm	_APIC_DEST_MASK,4,2             ## @APIC_DEST_MASK
	.comm	_APIC_DESTMODE_LOG,4,2          ## @APIC_DESTMODE_LOG
	.comm	_IPIS_SENT,4,2                  ## @IPIS_SENT
	.comm	_APIC_DELMODE_INIT,4,2          ## @APIC_DELMODE_INIT
	.comm	_APIC_LEVEL_MASK,4,2            ## @APIC_LEVEL_MASK
	.comm	_APIC_LEVEL_DEASSERT,4,2        ## @APIC_LEVEL_DEASSERT
	.comm	_BS_INIT,8,3                    ## @BS_INIT
	.comm	_BS_SIPI,8,3                    ## @BS_SIPI
	.comm	_APIC_DELMODE_STARTUP,4,2       ## @APIC_DELMODE_STARTUP
	.comm	_BS_RUNNING,8,3                 ## @BS_RUNNING
	.comm	_VM_EXITCODE_SPINUP_AP,4,2      ## @VM_EXITCODE_SPINUP_AP
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlapic_icrlo_write_handler     ; -- Begin function vlapic_icrlo_write_handler
	.p2align	2
_vlapic_icrlo_write_handler:            ; @vlapic_icrlo_write_handler
	.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, x0
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _APIC_DELSTAT_PEND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _APIC_DELSTAT_PEND@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x8]
	bic	w9, w10, w9
	str	w9, [x8]
	bl	_x2apic
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_VLAPIC_CTR2
	ldr	w0, [x19, #16]
	bl	_vm_get_maxcpus
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_DELSTAT_PEND,4,2          ; @APIC_DELSTAT_PEND
	.comm	_APIC_VECTOR_MASK,4,2           ; @APIC_VECTOR_MASK
	.comm	_APIC_DELMODE_MASK,4,2          ; @APIC_DELMODE_MASK
	.comm	_APIC_DELMODE_FIXED,4,2         ; @APIC_DELMODE_FIXED
	.comm	_APIC_ESR_SEND_ILLEGAL_VECTOR,4,2 ; @APIC_ESR_SEND_ILLEGAL_VECTOR
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"icrlo 0x%016lx triggered ipi %d"

	.comm	_APIC_DELMODE_NMI,4,2           ; @APIC_DELMODE_NMI
	.comm	_APIC_DEST_MASK,4,2             ; @APIC_DEST_MASK
	.comm	_APIC_DESTMODE_LOG,4,2          ; @APIC_DESTMODE_LOG
	.comm	_IPIS_SENT,4,2                  ; @IPIS_SENT
	.comm	_APIC_DELMODE_INIT,4,2          ; @APIC_DELMODE_INIT
	.comm	_APIC_LEVEL_MASK,4,2            ; @APIC_LEVEL_MASK
	.comm	_APIC_LEVEL_DEASSERT,4,2        ; @APIC_LEVEL_DEASSERT
	.comm	_BS_INIT,8,3                    ; @BS_INIT
	.comm	_BS_SIPI,8,3                    ; @BS_SIPI
	.comm	_APIC_DELMODE_STARTUP,4,2       ; @APIC_DELMODE_STARTUP
	.comm	_BS_RUNNING,8,3                 ; @BS_RUNNING
	.comm	_VM_EXITCODE_SPINUP_AP,4,2      ; @VM_EXITCODE_SPINUP_AP
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
.subsections_via_symbols
