	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx6_mp_start_ap               ## -- Begin function imx6_mp_start_ap
	.p2align	4, 0x90
_imx6_mp_start_ap:                      ## @imx6_mp_start_ap
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_fdtbus_bs_tag@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_SCU_PHYSBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SCU_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r8
	xorl	%ecx, %ecx
	callq	_bus_space_map
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_2:
	movl	(%r13), %edi
	movq	_SRC_PHYSBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SRC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r8
	xorl	%ecx, %ecx
	callq	_bus_space_map
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
LBB0_4:
	movl	(%r13), %edi
	movl	-44(%rbp), %esi
	movq	_SCU_INV_TAGS_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_bus_space_write_4
	movl	(%r13), %edi
	movl	-44(%rbp), %esi
	movq	_SCU_DIAG_CONTROL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	callq	_bus_space_read_4
	movl	(%r13), %edi
	movl	-44(%rbp), %esi
	movq	(%rbx), %rdx
	movq	_SCU_DIAG_DISABLE_MIGBIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %ecx
	callq	_bus_space_write_4
	movl	(%r13), %edi
	movl	-44(%rbp), %esi
	movq	_SCU_CONTROL_REG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	callq	_bus_space_read_4
	movl	(%r13), %edi
	movl	-44(%rbp), %esi
	movq	(%rbx), %rdx
	movq	_SCU_CONTROL_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %ecx
	callq	_bus_space_write_4
	xorl	%eax, %eax
	callq	_dcache_wbinv_poc_all
	movl	(%r13), %edi
	movl	-48(%rbp), %esi
	movq	_SRC_CONTROL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_bus_space_read_4
	movl	%eax, %r12d
	movq	_mp_ncpus@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_7
## %bb.5:
	movl	$8, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r14d, %ebx
	andl	$-8, %ebx
	movq	_SRC_GPR0_C1FUNC@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	addq	%rbx, %r13
	movq	_mpentry@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pmap_kextract
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	movq	_fdtbus_bs_tag@GOTPCREL(%rip), %r13
	movl	%eax, %ecx
	callq	_bus_space_write_4
	movl	(%r13), %edi
	movl	-48(%rbp), %esi
	movq	_SRC_GPR1_C1ARG@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_bus_space_write_4
	movq	_mp_ncpus@GOTPCREL(%rip), %rdx
	movq	_SRC_CONTROL_C1ENA_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	movq	_SRC_CONTROL_C1RST_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r15d, %ecx
	btsl	%eax, %r12d
	btsl	%ecx, %r12d
	movslq	(%rdx), %rax
	leaq	1(%r15), %rcx
	addq	$8, %r14
	addq	$2, %r15
	cmpq	%rax, %r15
	movq	%rcx, %r15
	jl	LBB0_6
LBB0_7:
	movl	(%r13), %edi
	movl	-48(%rbp), %esi
	movq	_SRC_CONTROL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	%r12d, %ecx
	callq	_bus_space_write_4
	xorl	%eax, %eax
	callq	_dsb
	xorl	%eax, %eax
	callq	_sev
	movl	(%r13), %edi
	movl	-44(%rbp), %esi
	movq	_SCU_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bus_space_unmap
	movl	(%r13), %edi
	movl	-48(%rbp), %esi
	movq	_SRC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bus_space_unmap
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fdtbus_bs_tag,4,2              ## @fdtbus_bs_tag
	.comm	_SCU_PHYSBASE,4,2               ## @SCU_PHYSBASE
	.comm	_SCU_SIZE,4,2                   ## @SCU_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't map the SCU\n"

	.comm	_SRC_PHYSBASE,4,2               ## @SRC_PHYSBASE
	.comm	_SRC_SIZE,4,2                   ## @SRC_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't map the system reset controller (SRC)\n"

	.comm	_SCU_INV_TAGS_REG,8,3           ## @SCU_INV_TAGS_REG
	.comm	_SCU_DIAG_CONTROL,8,3           ## @SCU_DIAG_CONTROL
	.comm	_SCU_DIAG_DISABLE_MIGBIT,4,2    ## @SCU_DIAG_DISABLE_MIGBIT
	.comm	_SCU_CONTROL_REG,8,3            ## @SCU_CONTROL_REG
	.comm	_SCU_CONTROL_ENABLE,4,2         ## @SCU_CONTROL_ENABLE
	.comm	_SRC_CONTROL_REG,8,3            ## @SRC_CONTROL_REG
	.comm	_mp_ncpus,4,2                   ## @mp_ncpus
	.comm	_SRC_GPR0_C1FUNC,8,3            ## @SRC_GPR0_C1FUNC
	.comm	_mpentry,8,3                    ## @mpentry
	.comm	_SRC_GPR1_C1ARG,8,3             ## @SRC_GPR1_C1ARG
	.comm	_SRC_CONTROL_C1ENA_SHIFT,4,2    ## @SRC_CONTROL_C1ENA_SHIFT
	.comm	_SRC_CONTROL_C1RST_SHIFT,4,2    ## @SRC_CONTROL_C1RST_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx6_mp_start_ap               ; -- Begin function imx6_mp_start_ap
	.p2align	2
_imx6_mp_start_ap:                      ; @imx6_mp_start_ap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x20, _fdtbus_bs_tag@GOTPAGE
Lloh1:
	ldr	x20, [x20, _fdtbus_bs_tag@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _SCU_PHYSBASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCU_PHYSBASE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _SCU_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCU_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x4, sp, #12
	mov	w3, #0
	bl	_bus_space_map
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_2:
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _SRC_PHYSBASE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SRC_PHYSBASE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _SRC_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SRC_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	w3, #0
	bl	_bus_space_map
	cbz	x0, LBB0_4
; %bb.3:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_4:
	ldr	w0, [x20]
	ldr	w1, [sp, #12]
Lloh18:
	adrp	x8, _SCU_INV_TAGS_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SCU_INV_TAGS_REG@GOTPAGEOFF]
Lloh20:
	ldr	x2, [x8]
	mov	w3, #65535
	bl	_bus_space_write_4
	ldr	w0, [x20]
	ldr	w1, [sp, #12]
Lloh21:
	adrp	x19, _SCU_DIAG_CONTROL@GOTPAGE
Lloh22:
	ldr	x19, [x19, _SCU_DIAG_CONTROL@GOTPAGEOFF]
	ldr	x2, [x19]
	bl	_bus_space_read_4
	ldr	w8, [x20]
	ldr	w1, [sp, #12]
	ldr	x2, [x19]
Lloh23:
	adrp	x9, _SCU_DIAG_DISABLE_MIGBIT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SCU_DIAG_DISABLE_MIGBIT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w3, w9, w0
	mov	x0, x8
	bl	_bus_space_write_4
	ldr	w0, [x20]
	ldr	w1, [sp, #12]
Lloh26:
	adrp	x19, _SCU_CONTROL_REG@GOTPAGE
Lloh27:
	ldr	x19, [x19, _SCU_CONTROL_REG@GOTPAGEOFF]
	ldr	x2, [x19]
	bl	_bus_space_read_4
	ldr	w8, [x20]
	ldr	w1, [sp, #12]
	ldr	x2, [x19]
Lloh28:
	adrp	x9, _SCU_CONTROL_ENABLE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SCU_CONTROL_ENABLE@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w3, w9, w0
	mov	x0, x8
	bl	_bus_space_write_4
	bl	_dcache_wbinv_poc_all
	ldr	w0, [x20]
	ldr	w1, [sp, #8]
Lloh31:
	adrp	x8, _SRC_CONTROL_REG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SRC_CONTROL_REG@GOTPAGEOFF]
Lloh33:
	ldr	x2, [x8]
	bl	_bus_space_read_4
	mov	x19, x0
Lloh34:
	adrp	x25, _mp_ncpus@GOTPAGE
Lloh35:
	ldr	x25, [x25, _mp_ncpus@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.5:
	mov	x28, #0
	mov	w23, #8
	mov	w24, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w27, [x20]
	ldr	w21, [sp, #8]
Lloh36:
	adrp	x8, _SRC_GPR0_C1FUNC@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SRC_GPR0_C1FUNC@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	and	x26, x23, #0xfffffff8
	add	x22, x8, x26
Lloh39:
	adrp	x8, _mpentry@GOTPAGE
Lloh40:
	ldr	x8, [x8, _mpentry@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_pmap_kextract
	mov	x3, x0
	mov	x0, x27
	mov	x1, x21
	mov	x2, x22
	bl	_bus_space_write_4
	ldr	w0, [x20]
	ldr	w1, [sp, #8]
Lloh42:
	adrp	x8, _SRC_GPR1_C1ARG@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SRC_GPR1_C1ARG@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	add	x2, x8, x26
	mov	w3, #0
	bl	_bus_space_write_4
Lloh45:
	adrp	x8, _SRC_CONTROL_C1ENA_SHIFT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SRC_CONTROL_C1ENA_SHIFT@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	add	w8, w28, w8
	lsl	w8, w24, w8
Lloh48:
	adrp	x9, _SRC_CONTROL_C1RST_SHIFT@GOTPAGE
Lloh49:
	ldr	x9, [x9, _SRC_CONTROL_C1RST_SHIFT@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	add	w9, w28, w9
	lsl	w9, w24, w9
	orr	w8, w8, w19
	orr	w19, w8, w9
	ldrsw	x8, [x25]
	add	x9, x28, #2
	add	x28, x28, #1
	add	x23, x23, #8
	cmp	x9, x8
	b.lt	LBB0_6
LBB0_7:
	ldr	w0, [x20]
	ldr	w1, [sp, #8]
Lloh51:
	adrp	x8, _SRC_CONTROL_REG@GOTPAGE
Lloh52:
	ldr	x8, [x8, _SRC_CONTROL_REG@GOTPAGEOFF]
Lloh53:
	ldr	x2, [x8]
	mov	x3, x19
	bl	_bus_space_write_4
	bl	_dsb
	bl	_sev
	ldr	w0, [x20]
	ldr	w1, [sp, #12]
Lloh54:
	adrp	x8, _SCU_SIZE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SCU_SIZE@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	bl	_bus_space_unmap
	ldr	w0, [x20]
	ldr	w1, [sp, #8]
Lloh57:
	adrp	x8, _SRC_SIZE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _SRC_SIZE@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
	bl	_bus_space_unmap
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_fdtbus_bs_tag,4,2              ; @fdtbus_bs_tag
	.comm	_SCU_PHYSBASE,4,2               ; @SCU_PHYSBASE
	.comm	_SCU_SIZE,4,2                   ; @SCU_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't map the SCU\n"

	.comm	_SRC_PHYSBASE,4,2               ; @SRC_PHYSBASE
	.comm	_SRC_SIZE,4,2                   ; @SRC_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't map the system reset controller (SRC)\n"

	.comm	_SCU_INV_TAGS_REG,8,3           ; @SCU_INV_TAGS_REG
	.comm	_SCU_DIAG_CONTROL,8,3           ; @SCU_DIAG_CONTROL
	.comm	_SCU_DIAG_DISABLE_MIGBIT,4,2    ; @SCU_DIAG_DISABLE_MIGBIT
	.comm	_SCU_CONTROL_REG,8,3            ; @SCU_CONTROL_REG
	.comm	_SCU_CONTROL_ENABLE,4,2         ; @SCU_CONTROL_ENABLE
	.comm	_SRC_CONTROL_REG,8,3            ; @SRC_CONTROL_REG
	.comm	_mp_ncpus,4,2                   ; @mp_ncpus
	.comm	_SRC_GPR0_C1FUNC,8,3            ; @SRC_GPR0_C1FUNC
	.comm	_mpentry,8,3                    ; @mpentry
	.comm	_SRC_GPR1_C1ARG,8,3             ; @SRC_GPR1_C1ARG
	.comm	_SRC_CONTROL_C1ENA_SHIFT,4,2    ; @SRC_CONTROL_C1ENA_SHIFT
	.comm	_SRC_CONTROL_C1RST_SHIFT,4,2    ; @SRC_CONTROL_C1RST_SHIFT
.subsections_via_symbols
