	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce_dmcu_load_iram             ## -- Begin function dce_dmcu_load_iram
	.p2align	4, 0x90
_dce_dmcu_load_iram:                    ## @dce_dmcu_load_iram
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movl	%esi, %r15d
	callq	_TO_DCE_DMCU
	movq	_DMCU_RAM_ACCESS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IRAM_HOST_ACCESS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRAM_WR_ADDR_AUTO_INC@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	$1, %edx
	movl	$1, %r8d
	callq	_REG_UPDATE_2
	movq	_DCI_MEM_PWR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DMCU_IRAM_MEM_PWR_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$2, %ecx
	movl	$10, %r8d
	callq	_REG_WAIT
	movq	_DMCU_IRAM_WR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movsbl	%r15b, %esi
	callq	_REG_WRITE
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	movl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	_DMCU_IRAM_WR_DATA@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movsbl	(%r13,%rbx), %esi
	callq	_REG_WRITE
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_2
LBB0_3:
	movq	_DMCU_RAM_ACCESS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IRAM_HOST_ACCESS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_2
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMCU_RAM_ACCESS_CTRL,4,2       ## @DMCU_RAM_ACCESS_CTRL
	.comm	_IRAM_HOST_ACCESS_EN,4,2        ## @IRAM_HOST_ACCESS_EN
	.comm	_IRAM_WR_ADDR_AUTO_INC,4,2      ## @IRAM_WR_ADDR_AUTO_INC
	.comm	_DCI_MEM_PWR_STATUS,4,2         ## @DCI_MEM_PWR_STATUS
	.comm	_DMCU_IRAM_MEM_PWR_STATE,4,2    ## @DMCU_IRAM_MEM_PWR_STATE
	.comm	_DMCU_IRAM_WR_CTRL,4,2          ## @DMCU_IRAM_WR_CTRL
	.comm	_DMCU_IRAM_WR_DATA,4,2          ## @DMCU_IRAM_WR_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce_dmcu_load_iram             ; -- Begin function dce_dmcu_load_iram
	.p2align	2
_dce_dmcu_load_iram:                    ; @dce_dmcu_load_iram
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	bl	_TO_DCE_DMCU
Lloh0:
	adrp	x22, _DMCU_RAM_ACCESS_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMCU_RAM_ACCESS_CTRL@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x23, _IRAM_HOST_ACCESS_EN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IRAM_HOST_ACCESS_EN@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh4:
	adrp	x24, _IRAM_WR_ADDR_AUTO_INC@GOTPAGE
Lloh5:
	ldr	x24, [x24, _IRAM_WR_ADDR_AUTO_INC@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	w2, #1
	mov	w4, #1
	bl	_REG_UPDATE_2
Lloh6:
	adrp	x8, _DCI_MEM_PWR_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DCI_MEM_PWR_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _DMCU_IRAM_MEM_PWR_STATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMCU_IRAM_MEM_PWR_STATE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #2
	mov	w4, #10
	bl	_REG_WAIT
Lloh12:
	adrp	x8, _DMCU_IRAM_WR_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMCU_IRAM_WR_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	sxtb	w1, w21
	bl	_REG_WRITE
	cbz	w20, LBB0_3
; %bb.1:
	mov	w20, w20
Lloh15:
	adrp	x21, _DMCU_IRAM_WR_DATA@GOTPAGE
Lloh16:
	ldr	x21, [x21, _DMCU_IRAM_WR_DATA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldrsb	w1, [x19], #1
	bl	_REG_WRITE
	subs	x20, x20, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	w0, [x22]
	ldr	w1, [x23]
	ldr	w3, [x24]
	mov	w2, #0
	mov	w4, #0
	bl	_REG_UPDATE_2
	mov	w0, #1
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DMCU_RAM_ACCESS_CTRL,4,2       ; @DMCU_RAM_ACCESS_CTRL
	.comm	_IRAM_HOST_ACCESS_EN,4,2        ; @IRAM_HOST_ACCESS_EN
	.comm	_IRAM_WR_ADDR_AUTO_INC,4,2      ; @IRAM_WR_ADDR_AUTO_INC
	.comm	_DCI_MEM_PWR_STATUS,4,2         ; @DCI_MEM_PWR_STATUS
	.comm	_DMCU_IRAM_MEM_PWR_STATE,4,2    ; @DMCU_IRAM_MEM_PWR_STATE
	.comm	_DMCU_IRAM_WR_CTRL,4,2          ; @DMCU_IRAM_WR_CTRL
	.comm	_DMCU_IRAM_WR_DATA,4,2          ; @DMCU_IRAM_WR_DATA
.subsections_via_symbols
