	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_dmcu_setup_psr
_dce_dmcu_setup_psr:                    ## @dce_dmcu_setup_psr
	.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
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_TO_DCE_DMCU
	movq	(%r15), %rdi
	movq	(%rdi), %rax
	movl	64(%r12), %esi
	callq	*8(%rax)
	movq	_DMCU_INTERRUPT_TO_UC_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STATIC_SCREEN1_INT_TO_UC_EN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_STATIC_SCREEN2_INT_TO_UC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_STATIC_SCREEN3_INT_TO_UC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_STATIC_SCREEN4_INT_TO_UC_EN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	subq	$8, %rsp
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_REG_UPDATE_4
	addq	$32, %rsp
	movl	(%r12), %eax
	addl	$-2, %eax
	cmpl	$4, %eax
	ja	LBB0_5
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_STATIC_SCREEN2_INT_TO_UC_EN@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_3:
	movq	_STATIC_SCREEN3_INT_TO_UC_EN@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_4:
	movq	%r13, %rbx
LBB0_5:
	movq	_DMCU_INTERRUPT_TO_UC_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
LBB0_6:
	movq	(%r15), %rdi
	movq	(%rdi), %rax
	movl	60(%r12), %esi
	callq	*(%rax)
	movq	_MASTER_COMM_CNTL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MASTER_COMM_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$100, %ecx
	movl	$801, %r8d                      ## imm = 0x321
	callq	_REG_WAIT
	movl	(%r12), %r13d
	movl	32(%r12), %ebx
	movl	(%r14), %r15d
	movq	_MASTER_COMM_DATA_REG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_REG
	shlq	$32, %rbx
	orq	%r13, %rbx
	movl	%r15d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_dm_write_reg
	movl	(%r14), %r15d
	movq	_MASTER_COMM_DATA_REG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rbx
	callq	_REG
	movl	%r15d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_dm_write_reg
	movl	4(%r12), %r15d
	movl	(%r14), %ebx
	movq	_MASTER_COMM_DATA_REG3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_dm_write_reg
	movq	_MASTER_COMM_CMD_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MASTER_COMM_CMD_REG_BYTE0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PSR_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_REG_UPDATE
	movq	_MASTER_COMM_CNTL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MASTER_COMM_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_DMCU_INTERRUPT_TO_UC_EN_MASK,4,2 ## @DMCU_INTERRUPT_TO_UC_EN_MASK
	.comm	_STATIC_SCREEN1_INT_TO_UC_EN,4,2 ## @STATIC_SCREEN1_INT_TO_UC_EN
	.comm	_STATIC_SCREEN2_INT_TO_UC_EN,4,2 ## @STATIC_SCREEN2_INT_TO_UC_EN
	.comm	_STATIC_SCREEN3_INT_TO_UC_EN,4,2 ## @STATIC_SCREEN3_INT_TO_UC_EN
	.comm	_STATIC_SCREEN4_INT_TO_UC_EN,4,2 ## @STATIC_SCREEN4_INT_TO_UC_EN
	.comm	_MASTER_COMM_CNTL_REG,4,2       ## @MASTER_COMM_CNTL_REG
	.comm	_MASTER_COMM_INTERRUPT,4,2      ## @MASTER_COMM_INTERRUPT
	.comm	_MASTER_COMM_DATA_REG1,4,2      ## @MASTER_COMM_DATA_REG1
	.comm	_MASTER_COMM_DATA_REG2,4,2      ## @MASTER_COMM_DATA_REG2
	.comm	_MASTER_COMM_DATA_REG3,4,2      ## @MASTER_COMM_DATA_REG3
	.comm	_MASTER_COMM_CMD_REG,4,2        ## @MASTER_COMM_CMD_REG
	.comm	_MASTER_COMM_CMD_REG_BYTE0,4,2  ## @MASTER_COMM_CMD_REG_BYTE0
	.comm	_PSR_SET,4,2                    ## @PSR_SET
	.no_dead_strip	_dce_dmcu_setup_psr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_dmcu_setup_psr
_dce_dmcu_setup_psr:                    ; @dce_dmcu_setup_psr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_TO_DCE_DMCU
	ldr	x0, [x21]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	ldr	w1, [x20, #64]
	blr	x8
Lloh0:
	adrp	x22, _DMCU_INTERRUPT_TO_UC_EN_MASK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMCU_INTERRUPT_TO_UC_EN_MASK@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x23, _STATIC_SCREEN1_INT_TO_UC_EN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _STATIC_SCREEN1_INT_TO_UC_EN@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh4:
	adrp	x8, _STATIC_SCREEN2_INT_TO_UC_EN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STATIC_SCREEN2_INT_TO_UC_EN@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
Lloh7:
	adrp	x8, _STATIC_SCREEN3_INT_TO_UC_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STATIC_SCREEN3_INT_TO_UC_EN@GOTPAGEOFF]
Lloh9:
	ldr	w5, [x8]
Lloh10:
	adrp	x8, _STATIC_SCREEN4_INT_TO_UC_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STATIC_SCREEN4_INT_TO_UC_EN@GOTPAGEOFF]
Lloh12:
	ldr	w7, [x8]
	str	wzr, [sp]
	mov	w2, #0
	mov	w4, #0
	mov	w6, #0
	bl	_REG_UPDATE_4
	ldr	w8, [x20]
	sub	w8, w8, #2
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.1:
Lloh13:
	adrp	x9, lJTI0_0@PAGE
Lloh14:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh15:
	adrp	x23, _STATIC_SCREEN2_INT_TO_UC_EN@GOTPAGE
Lloh16:
	ldr	x23, [x23, _STATIC_SCREEN2_INT_TO_UC_EN@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh17:
	adrp	x23, _STATIC_SCREEN3_INT_TO_UC_EN@GOTPAGE
Lloh18:
	ldr	x23, [x23, _STATIC_SCREEN3_INT_TO_UC_EN@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x23, _STATIC_SCREEN4_INT_TO_UC_EN@GOTPAGE
Lloh20:
	ldr	x23, [x23, _STATIC_SCREEN4_INT_TO_UC_EN@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x22]
	ldr	w1, [x23]
	mov	w2, #1
	bl	_REG_UPDATE
LBB0_6:
	ldr	x0, [x21]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w1, [x20, #60]
	blr	x8
Lloh21:
	adrp	x23, _MASTER_COMM_CNTL_REG@GOTPAGE
Lloh22:
	ldr	x23, [x23, _MASTER_COMM_CNTL_REG@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh23:
	adrp	x24, _MASTER_COMM_INTERRUPT@GOTPAGE
Lloh24:
	ldr	x24, [x24, _MASTER_COMM_INTERRUPT@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w2, #0
	mov	w3, #100
	mov	w4, #801
	bl	_REG_WAIT
	ldr	w21, [x20]
	ldr	w22, [x19]
Lloh25:
	adrp	x8, _MASTER_COMM_DATA_REG1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MASTER_COMM_DATA_REG1@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	w25, [x20, #32]
	bl	_REG
	mov	x1, x0
	bfi	x21, x25, #32, #32
	mov	x0, x22
	mov	x2, x21
	bl	_dm_write_reg
	ldr	w21, [x19]
Lloh28:
	adrp	x8, _MASTER_COMM_DATA_REG2@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MASTER_COMM_DATA_REG2@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	x22, [x20, #8]
	bl	_REG
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
	bl	_dm_write_reg
	ldr	w20, [x20, #4]
	ldr	w19, [x19]
Lloh31:
	adrp	x8, _MASTER_COMM_DATA_REG3@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MASTER_COMM_DATA_REG3@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_dm_write_reg
Lloh34:
	adrp	x8, _MASTER_COMM_CMD_REG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MASTER_COMM_CMD_REG@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x8, _MASTER_COMM_CMD_REG_BYTE0@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MASTER_COMM_CMD_REG_BYTE0@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _PSR_SET@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PSR_SET@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	bl	_REG_UPDATE
	ldr	w0, [x23]
	ldr	w1, [x24]
	mov	w2, #1
	bl	_REG_UPDATE
	mov	w0, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_DMCU_INTERRUPT_TO_UC_EN_MASK,4,2 ; @DMCU_INTERRUPT_TO_UC_EN_MASK
	.comm	_STATIC_SCREEN1_INT_TO_UC_EN,4,2 ; @STATIC_SCREEN1_INT_TO_UC_EN
	.comm	_STATIC_SCREEN2_INT_TO_UC_EN,4,2 ; @STATIC_SCREEN2_INT_TO_UC_EN
	.comm	_STATIC_SCREEN3_INT_TO_UC_EN,4,2 ; @STATIC_SCREEN3_INT_TO_UC_EN
	.comm	_STATIC_SCREEN4_INT_TO_UC_EN,4,2 ; @STATIC_SCREEN4_INT_TO_UC_EN
	.comm	_MASTER_COMM_CNTL_REG,4,2       ; @MASTER_COMM_CNTL_REG
	.comm	_MASTER_COMM_INTERRUPT,4,2      ; @MASTER_COMM_INTERRUPT
	.comm	_MASTER_COMM_DATA_REG1,4,2      ; @MASTER_COMM_DATA_REG1
	.comm	_MASTER_COMM_DATA_REG2,4,2      ; @MASTER_COMM_DATA_REG2
	.comm	_MASTER_COMM_DATA_REG3,4,2      ; @MASTER_COMM_DATA_REG3
	.comm	_MASTER_COMM_CMD_REG,4,2        ; @MASTER_COMM_CMD_REG
	.comm	_MASTER_COMM_CMD_REG_BYTE0,4,2  ; @MASTER_COMM_CMD_REG_BYTE0
	.comm	_PSR_SET,4,2                    ; @PSR_SET
	.no_dead_strip	_dce_dmcu_setup_psr
.subsections_via_symbols
