	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openpic_ipi                    ## -- Begin function openpic_ipi
	.p2align	4, 0x90
_openpic_ipi:                           ## @openpic_ipi
	.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
	movq	%rdi, %rbx
	movq	_root_pic@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	callq	_device_get_softc
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_sched_pin
	movq	_cpuid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_OPENPIC_PCPU_IPI_DISPATCH
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_openpic_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sched_unpin                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_root_pic,8,3                   ## @root_pic
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot send IPIs from non-root OpenPIC"

	.comm	_cpuid,4,2                      ## @cpuid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openpic_ipi                    ; -- Begin function openpic_ipi
	.p2align	2
_openpic_ipi:                           ; @openpic_ipi
	.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, _root_pic@GOTPAGE
Lloh1:
	ldr	x8, [x8, _root_pic@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	cset	w0, eq
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	mov	x0, x20
	bl	_device_get_softc
	mov	x20, x0
	bl	_sched_pin
Lloh5:
	adrp	x8, _cpuid@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cpuid@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_PCPU_GET
	mov	w1, #0
	bl	_OPENPIC_PCPU_IPI_DISPATCH
	mov	x1, x0
	mov	w8, #1
	lsl	w2, w8, w19
	mov	x0, x20
	bl	_openpic_write
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sched_unpin
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_root_pic,8,3                   ; @root_pic
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot send IPIs from non-root OpenPIC"

	.comm	_cpuid,4,2                      ; @cpuid
.subsections_via_symbols
