	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipi_startup                    ## -- Begin function ipi_startup
	.p2align	4, 0x90
_ipi_startup:                           ## @ipi_startup
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_APIC_DEST_DESTFLD@GOTPCREL(%rip), %r15
	movq	_APIC_TRIGMOD_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r15), %eax
	movq	_APIC_LEVEL_ASSERT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_APIC_DESTMODE_PHY@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_APIC_DELMODE_INIT@GOTPCREL(%rip), %r13
	orl	(%r13), %eax
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_lapic_ipi_raw
	movl	$100, %edi
	callq	_lapic_ipi_wait
	movq	_APIC_TRIGMOD_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r15), %edi
	movq	_APIC_LEVEL_DEASSERT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	(%r12), %edi
	orl	(%r13), %edi
	movl	%r14d, %esi
	callq	_lapic_ipi_raw
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_DELAY
	movq	_APIC_TRIGMOD_EDGE@GOTPCREL(%rip), %rcx
	movq	_APIC_DELMODE_STARTUP@GOTPCREL(%rip), %rax
	movl	(%r15), %edi
	movq	%rax, %r15
	orl	%ebx, %edi
	orl	(%rcx), %edi
	movq	_APIC_LEVEL_ASSERT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	(%r12), %edi
	orl	(%r15), %edi
	movl	%r14d, %esi
	callq	_lapic_ipi_raw
	movl	$100, %edi
	callq	_lapic_ipi_wait
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_panic
LBB0_2:
	movl	$200, %edi
	callq	_DELAY
	movq	_APIC_DEST_DESTFLD@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_APIC_TRIGMOD_EDGE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_APIC_LEVEL_ASSERT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_APIC_DESTMODE_PHY@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	orl	(%r15), %ebx
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_lapic_ipi_raw
	movl	$100, %edi
	callq	_lapic_ipi_wait
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_panic
LBB0_4:
	movl	$200, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DELAY                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_DEST_DESTFLD,4,2          ## @APIC_DEST_DESTFLD
	.comm	_APIC_TRIGMOD_LEVEL,4,2         ## @APIC_TRIGMOD_LEVEL
	.comm	_APIC_LEVEL_ASSERT,4,2          ## @APIC_LEVEL_ASSERT
	.comm	_APIC_DESTMODE_PHY,4,2          ## @APIC_DESTMODE_PHY
	.comm	_APIC_DELMODE_INIT,4,2          ## @APIC_DELMODE_INIT
	.comm	_APIC_LEVEL_DEASSERT,4,2        ## @APIC_LEVEL_DEASSERT
	.comm	_APIC_TRIGMOD_EDGE,4,2          ## @APIC_TRIGMOD_EDGE
	.comm	_APIC_DELMODE_STARTUP,4,2       ## @APIC_DELMODE_STARTUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to deliver first STARTUP IPI to APIC %d"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to deliver second STARTUP IPI to APIC %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipi_startup                    ; -- Begin function ipi_startup
	.p2align	2
_ipi_startup:                           ; @ipi_startup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _APIC_DEST_DESTFLD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _APIC_DEST_DESTFLD@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x24, _APIC_TRIGMOD_LEVEL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _APIC_TRIGMOD_LEVEL@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh4:
	adrp	x22, _APIC_LEVEL_ASSERT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _APIC_LEVEL_ASSERT@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w8, w9
Lloh6:
	adrp	x23, _APIC_DESTMODE_PHY@GOTPAGE
Lloh7:
	ldr	x23, [x23, _APIC_DESTMODE_PHY@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w8, w9
Lloh8:
	adrp	x25, _APIC_DELMODE_INIT@GOTPAGE
Lloh9:
	ldr	x25, [x25, _APIC_DELMODE_INIT@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w0, w8, w9
	mov	x1, x19
	bl	_lapic_ipi_raw
	mov	w0, #100
	bl	_lapic_ipi_wait
	ldr	w8, [x21]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _APIC_LEVEL_DEASSERT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _APIC_LEVEL_DEASSERT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w0, w8, w9
	mov	x1, x19
	bl	_lapic_ipi_raw
	mov	w0, #10000
	bl	_DELAY
Lloh13:
	adrp	x24, _APIC_TRIGMOD_EDGE@GOTPAGE
Lloh14:
	ldr	x24, [x24, _APIC_TRIGMOD_EDGE@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x24]
	ldr	w10, [x22]
	ldr	w11, [x23]
Lloh15:
	adrp	x25, _APIC_DELMODE_STARTUP@GOTPAGE
Lloh16:
	ldr	x25, [x25, _APIC_DELMODE_STARTUP@GOTPAGEOFF]
	ldr	w12, [x25]
	orr	w8, w8, w20
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w0, w8, w12
	mov	x1, x19
	bl	_lapic_ipi_raw
	mov	w0, #100
	bl	_lapic_ipi_wait
	cbnz	w0, LBB0_2
; %bb.1:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_panic
LBB0_2:
	mov	w0, #200
	bl	_DELAY
	ldr	w8, [x21]
	ldr	w9, [x24]
	ldr	w10, [x22]
	ldr	w11, [x23]
	ldr	w12, [x25]
	orr	w8, w8, w20
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w0, w8, w12
	mov	x1, x19
	bl	_lapic_ipi_raw
	mov	w0, #100
	bl	_lapic_ipi_wait
	cbnz	w0, LBB0_4
; %bb.3:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_panic
LBB0_4:
	mov	w0, #200
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_DELAY
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_DEST_DESTFLD,4,2          ; @APIC_DEST_DESTFLD
	.comm	_APIC_TRIGMOD_LEVEL,4,2         ; @APIC_TRIGMOD_LEVEL
	.comm	_APIC_LEVEL_ASSERT,4,2          ; @APIC_LEVEL_ASSERT
	.comm	_APIC_DESTMODE_PHY,4,2          ; @APIC_DESTMODE_PHY
	.comm	_APIC_DELMODE_INIT,4,2          ; @APIC_DELMODE_INIT
	.comm	_APIC_LEVEL_DEASSERT,4,2        ; @APIC_LEVEL_DEASSERT
	.comm	_APIC_TRIGMOD_EDGE,4,2          ; @APIC_TRIGMOD_EDGE
	.comm	_APIC_DELMODE_STARTUP,4,2       ; @APIC_DELMODE_STARTUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to deliver first STARTUP IPI to APIC %d"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to deliver second STARTUP IPI to APIC %d"

.subsections_via_symbols
