	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gic_cpu_startup
_gic_cpu_startup:                       ## @gic_cpu_startup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_GIC_VX_CTL_EIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_cpu_has_veic@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	movl	%edi, %esi
	cmovel	%ecx, %esi
	callq	_change_gic_vl_ctl
	movl	$-1, %edi
	callq	_write_gic_vl_rmask
	xorl	%eax, %eax
	callq	_irq_cpu_online
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GIC_VX_CTL_EIC,4,2             ## @GIC_VX_CTL_EIC
	.comm	_cpu_has_veic,8,3               ## @cpu_has_veic
	.no_dead_strip	_gic_cpu_startup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gic_cpu_startup
_gic_cpu_startup:                       ; @gic_cpu_startup
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _GIC_VX_CTL_EIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GIC_VX_CTL_EIC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _cpu_has_veic@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpu_has_veic@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	w1, wzr, w0, eq
	bl	_change_gic_vl_ctl
	mov	w0, #-1
	bl	_write_gic_vl_rmask
	bl	_irq_cpu_online
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GIC_VX_CTL_EIC,4,2             ; @GIC_VX_CTL_EIC
	.comm	_cpu_has_veic,8,3               ; @cpu_has_veic
	.no_dead_strip	_gic_cpu_startup
.subsections_via_symbols
