	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armada_xp_mpic_smp_cpu_init
_armada_xp_mpic_smp_cpu_init:           ## @armada_xp_mpic_smp_cpu_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_main_int_base@GOTPCREL(%rip), %rax
	movq	_ARMADA_370_XP_INT_CONTROL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	callq	_readl
	movl	%eax, %r14d
	shrl	$2, %r14d
	andl	$1023, %r14d                    ## imm = 0x3FF
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_per_cpu_int_base@GOTPCREL(%rip), %r15
	movq	_ARMADA_370_XP_INT_SET_MASK_OFFS@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_2
LBB0_3:
	movq	_per_cpu_int_base@GOTPCREL(%rip), %rbx
	movq	_ARMADA_370_XP_IN_DRBEL_CAUSE_OFFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_IPI_DOORBELL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ARMADA_370_XP_IN_DRBEL_MSK_OFFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_ARMADA_370_XP_INT_CLEAR_MASK_OFFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_main_int_base,8,3              ## @main_int_base
	.comm	_ARMADA_370_XP_INT_CONTROL,8,3  ## @ARMADA_370_XP_INT_CONTROL
	.comm	_per_cpu_int_base,8,3           ## @per_cpu_int_base
	.comm	_ARMADA_370_XP_INT_SET_MASK_OFFS,8,3 ## @ARMADA_370_XP_INT_SET_MASK_OFFS
	.comm	_ARMADA_370_XP_IN_DRBEL_CAUSE_OFFS,8,3 ## @ARMADA_370_XP_IN_DRBEL_CAUSE_OFFS
	.comm	_IPI_DOORBELL_MASK,4,2          ## @IPI_DOORBELL_MASK
	.comm	_ARMADA_370_XP_IN_DRBEL_MSK_OFFS,8,3 ## @ARMADA_370_XP_IN_DRBEL_MSK_OFFS
	.comm	_ARMADA_370_XP_INT_CLEAR_MASK_OFFS,8,3 ## @ARMADA_370_XP_INT_CLEAR_MASK_OFFS
	.no_dead_strip	_armada_xp_mpic_smp_cpu_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function armada_xp_mpic_smp_cpu_init
_armada_xp_mpic_smp_cpu_init:           ; @armada_xp_mpic_smp_cpu_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _main_int_base@GOTPAGE
Lloh1:
	ldr	x8, [x8, _main_int_base@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ARMADA_370_XP_INT_CONTROL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARMADA_370_XP_INT_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ubfx	w21, w0, #2, #10
Lloh6:
	adrp	x20, _per_cpu_int_base@GOTPAGE
Lloh7:
	ldr	x20, [x20, _per_cpu_int_base@GOTPAGEOFF]
	cbz	w21, LBB0_3
; %bb.1:
	mov	w19, #0
Lloh8:
	adrp	x22, _ARMADA_370_XP_INT_SET_MASK_OFFS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ARMADA_370_XP_INT_SET_MASK_OFFS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel
	add	w19, w19, #1
	cmp	w21, w19
	b.ne	LBB0_2
LBB0_3:
	ldr	x8, [x20]
Lloh10:
	adrp	x9, _ARMADA_370_XP_IN_DRBEL_CAUSE_OFFS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ARMADA_370_XP_IN_DRBEL_CAUSE_OFFS@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh13:
	adrp	x8, _IPI_DOORBELL_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IPI_DOORBELL_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh16:
	adrp	x9, _ARMADA_370_XP_IN_DRBEL_MSK_OFFS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ARMADA_370_XP_IN_DRBEL_MSK_OFFS@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20]
Lloh19:
	adrp	x9, _ARMADA_370_XP_INT_CLEAR_MASK_OFFS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ARMADA_370_XP_INT_CLEAR_MASK_OFFS@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_main_int_base,8,3              ; @main_int_base
	.comm	_ARMADA_370_XP_INT_CONTROL,8,3  ; @ARMADA_370_XP_INT_CONTROL
	.comm	_per_cpu_int_base,8,3           ; @per_cpu_int_base
	.comm	_ARMADA_370_XP_INT_SET_MASK_OFFS,8,3 ; @ARMADA_370_XP_INT_SET_MASK_OFFS
	.comm	_ARMADA_370_XP_IN_DRBEL_CAUSE_OFFS,8,3 ; @ARMADA_370_XP_IN_DRBEL_CAUSE_OFFS
	.comm	_IPI_DOORBELL_MASK,4,2          ; @IPI_DOORBELL_MASK
	.comm	_ARMADA_370_XP_IN_DRBEL_MSK_OFFS,8,3 ; @ARMADA_370_XP_IN_DRBEL_MSK_OFFS
	.comm	_ARMADA_370_XP_INT_CLEAR_MASK_OFFS,8,3 ; @ARMADA_370_XP_INT_CLEAR_MASK_OFFS
	.no_dead_strip	_armada_xp_mpic_smp_cpu_init
.subsections_via_symbols
