	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_get_dmcu_psr_state
_dce_get_dmcu_psr_state:                ## @dce_get_dmcu_psr_state
	.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	%rsi, %rbx
	callq	_TO_DCE_DMCU
	movq	_DMCU_RAM_ACCESS_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_IRAM_HOST_ACCESS_EN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
	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_RD_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$240, %esi
	callq	_REG_WRITE
	movq	_DMCU_IRAM_RD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_REG_READ
	movl	%eax, (%rbx)
	movl	(%r14), %edi
	movl	(%r15), %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_UPDATE                     ## TAILCALL
	.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	_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_RD_CTRL,4,2          ## @DMCU_IRAM_RD_CTRL
	.comm	_DMCU_IRAM_RD_DATA,4,2          ## @DMCU_IRAM_RD_DATA
	.no_dead_strip	_dce_get_dmcu_psr_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_get_dmcu_psr_state
_dce_get_dmcu_psr_state:                ; @dce_get_dmcu_psr_state
	.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
	mov	x19, x1
	bl	_TO_DCE_DMCU
Lloh0:
	adrp	x20, _DMCU_RAM_ACCESS_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DMCU_RAM_ACCESS_CTRL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _IRAM_HOST_ACCESS_EN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _IRAM_HOST_ACCESS_EN@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #1
	bl	_REG_UPDATE
Lloh4:
	adrp	x8, _DCI_MEM_PWR_STATUS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DCI_MEM_PWR_STATUS@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _DMCU_IRAM_MEM_PWR_STATE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMCU_IRAM_MEM_PWR_STATE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #2
	mov	w4, #10
	bl	_REG_WAIT
Lloh10:
	adrp	x8, _DMCU_IRAM_RD_CTRL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMCU_IRAM_RD_CTRL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	w1, #240
	bl	_REG_WRITE
Lloh13:
	adrp	x8, _DMCU_IRAM_RD_DATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMCU_IRAM_RD_DATA@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_REG_READ
	str	w0, [x19]
	ldr	w0, [x20]
	ldr	w1, [x21]
	mov	w2, #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	_REG_UPDATE
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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	_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_RD_CTRL,4,2          ; @DMCU_IRAM_RD_CTRL
	.comm	_DMCU_IRAM_RD_DATA,4,2          ; @DMCU_IRAM_RD_DATA
	.no_dead_strip	_dce_get_dmcu_psr_state
.subsections_via_symbols
