	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_armada38x_scu_enable           ## -- Begin function armada38x_scu_enable
	.p2align	4, 0x90
_armada38x_scu_enable:                  ## @armada38x_scu_enable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_fdtbus_bs_tag@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_MV_SCU_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MV_SCU_REGS_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-28(%rbp), %r8
	xorl	%ecx, %ecx
	callq	_bus_space_map
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%r14), %edi
	movl	-28(%rbp), %esi
	movq	_MV_SCU_REG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bus_space_read_4
	movq	_MV_SCU_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_3
## %bb.2:
	movq	_MV_SCU_SL_L2_ENABLE@GOTPCREL(%rip), %rdx
	movl	(%r14), %edi
	movl	-28(%rbp), %esi
	orl	%eax, %ecx
	orl	(%rdx), %ecx
	xorl	%edx, %edx
	callq	_bus_space_write_4
LBB0_3:
	movl	(%r14), %edi
	movl	-28(%rbp), %esi
	movl	(%r15), %edx
	callq	_bus_space_unmap
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fdtbus_bs_tag,4,2              ## @fdtbus_bs_tag
	.comm	_MV_SCU_BASE,8,3                ## @MV_SCU_BASE
	.comm	_MV_SCU_REGS_LEN,4,2            ## @MV_SCU_REGS_LEN
	.comm	_MV_SCU_REG_CTRL,4,2            ## @MV_SCU_REG_CTRL
	.comm	_MV_SCU_ENABLE,4,2              ## @MV_SCU_ENABLE
	.comm	_MV_SCU_SL_L2_ENABLE,4,2        ## @MV_SCU_SL_L2_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_armada38x_scu_enable           ; -- Begin function armada38x_scu_enable
	.p2align	2
_armada38x_scu_enable:                  ; @armada38x_scu_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, _fdtbus_bs_tag@GOTPAGE
Lloh1:
	ldr	x20, [x20, _fdtbus_bs_tag@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _MV_SCU_BASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MV_SCU_BASE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x21, _MV_SCU_REGS_LEN@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MV_SCU_REGS_LEN@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x4, sp, #12
	mov	w3, #0
	bl	_bus_space_map
	mov	x19, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x20]
	ldr	w1, [sp, #12]
Lloh7:
	adrp	x8, _MV_SCU_REG_CTRL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MV_SCU_REG_CTRL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_bus_space_read_4
Lloh10:
	adrp	x8, _MV_SCU_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MV_SCU_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x8]
	tst	w9, w0
	b.ne	LBB0_3
; %bb.2:
Lloh13:
	adrp	x8, _MV_SCU_SL_L2_ENABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MV_SCU_SL_L2_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x8]
	ldr	w8, [x20]
	ldr	w1, [sp, #12]
	orr	w9, w9, w0
	orr	w3, w9, w10
	mov	x0, x8
	mov	w2, #0
	bl	_bus_space_write_4
LBB0_3:
	ldr	w0, [x20]
	ldr	w1, [sp, #12]
	ldr	w2, [x21]
	bl	_bus_space_unmap
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_fdtbus_bs_tag,4,2              ; @fdtbus_bs_tag
	.comm	_MV_SCU_BASE,8,3                ; @MV_SCU_BASE
	.comm	_MV_SCU_REGS_LEN,4,2            ; @MV_SCU_REGS_LEN
	.comm	_MV_SCU_REG_CTRL,4,2            ; @MV_SCU_REG_CTRL
	.comm	_MV_SCU_ENABLE,4,2              ; @MV_SCU_ENABLE
	.comm	_MV_SCU_SL_L2_ENABLE,4,2        ; @MV_SCU_SL_L2_ENABLE
.subsections_via_symbols
