	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce_v10_0_disable_dce          ## -- Begin function dce_v10_0_disable_dce
	.p2align	4, 0x90
_dce_v10_0_disable_dce:                 ## @dce_v10_0_disable_dce
	.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	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_amdgpu_atombios_has_dce_engine_info
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dce_v10_0_set_vga_render_state
	movq	%rbx, %rdi
	callq	_dce_v10_0_get_num_crtc
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	movq	_mmCRTC_CONTROL@GOTPCREL(%rip), %r15
	movq	_crtc_offsets@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dce_v10_0_get_num_crtc
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	(%r15), %rdi
	callq	_RREG32
	movq	_CRTC_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_CRTC_MASTER_EN@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	%eax, %edi
	callq	_REG_GET_FIELD
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r15, %r14
	movq	_mmCRTC_UPDATE_LOCK@GOTPCREL(%rip), %r15
	addq	(%r15), %rdi
	movl	$1, %esi
	callq	_WREG32
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movl	(%r13), %esi
	movq	_CRTC_MASTER_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	(%r15), %rdi
	movq	%r14, %r15
	xorl	%esi, %esi
	callq	_WREG32
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmCRTC_CONTROL,8,3             ## @mmCRTC_CONTROL
	.comm	_crtc_offsets,8,3               ## @crtc_offsets
	.comm	_CRTC_CONTROL,4,2               ## @CRTC_CONTROL
	.comm	_CRTC_MASTER_EN,4,2             ## @CRTC_MASTER_EN
	.comm	_mmCRTC_UPDATE_LOCK,8,3         ## @mmCRTC_UPDATE_LOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce_v10_0_disable_dce          ; -- Begin function dce_v10_0_disable_dce
	.p2align	2
_dce_v10_0_disable_dce:                 ; @dce_v10_0_disable_dce
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	bl	_amdgpu_atombios_has_dce_engine_info
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_dce_v10_0_set_vga_render_state
	mov	x0, x19
	bl	_dce_v10_0_get_num_crtc
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x20, #0
Lloh0:
	adrp	x21, _mmCRTC_CONTROL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mmCRTC_CONTROL@GOTPAGEOFF]
Lloh2:
	adrp	x22, _crtc_offsets@GOTPAGE
Lloh3:
	ldr	x22, [x22, _crtc_offsets@GOTPAGEOFF]
Lloh4:
	adrp	x23, _CRTC_CONTROL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _CRTC_CONTROL@GOTPAGEOFF]
Lloh6:
	adrp	x24, _CRTC_MASTER_EN@GOTPAGE
Lloh7:
	ldr	x24, [x24, _CRTC_MASTER_EN@GOTPAGEOFF]
Lloh8:
	adrp	x25, _mmCRTC_UPDATE_LOCK@GOTPAGE
Lloh9:
	ldr	x25, [x25, _mmCRTC_UPDATE_LOCK@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	mov	x0, x19
	bl	_dce_v10_0_get_num_crtc
	cmp	x20, w0, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldr	x9, [x9, x20, lsl #3]
	add	x0, x9, x8
	bl	_RREG32
	ldr	w1, [x23]
	ldr	w2, [x24]
	bl	_REG_GET_FIELD
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x22]
	lsl	x26, x20, #3
	ldr	x9, [x9, x26]
	add	x0, x9, x8
	mov	w1, #1
	bl	_WREG32
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldr	x9, [x9, x26]
	add	x0, x9, x8
	bl	_RREG32
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	w3, #0
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldr	x9, [x9, x26]
	add	x0, x9, x8
	bl	_WREG32
	ldr	x8, [x25]
	ldr	x9, [x22]
	ldr	x9, [x9, x26]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mmCRTC_CONTROL,8,3             ; @mmCRTC_CONTROL
	.comm	_crtc_offsets,8,3               ; @crtc_offsets
	.comm	_CRTC_CONTROL,4,2               ; @CRTC_CONTROL
	.comm	_CRTC_MASTER_EN,4,2             ; @CRTC_MASTER_EN
	.comm	_mmCRTC_UPDATE_LOCK,8,3         ; @mmCRTC_UPDATE_LOCK
.subsections_via_symbols
