	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v6_0_encoder_disable
_dce_v6_0_encoder_disable:              ## @dce_v6_0_encoder_disable
	.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	%rdi, %rbx
	callq	_to_amdgpu_encoder
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_amdgpu_atombios_encoder_get_encoder_mode
	movl	%eax, %r15d
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_amdgpu_atombios_encoder_dpms
	movq	%rbx, %rdi
	callq	_amdgpu_atombios_encoder_is_digital
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_ATOM_ENCODER_MODE_HDMI@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_3
## %bb.2:
	movl	%r15d, %edi
	callq	_ENCODER_MODE_IS_DP
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dce_v6_0_afmt_enable
LBB0_4:
	movq	8(%r14), %rax
	movl	$-1, (%rax)
LBB0_5:
	movq	$0, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_DPMS_OFF,4,2          ## @DRM_MODE_DPMS_OFF
	.comm	_ATOM_ENCODER_MODE_HDMI,4,2     ## @ATOM_ENCODER_MODE_HDMI
	.no_dead_strip	_dce_v6_0_encoder_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_v6_0_encoder_disable
_dce_v6_0_encoder_disable:              ; @dce_v6_0_encoder_disable
	.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	x20, x0
	bl	_to_amdgpu_encoder
	mov	x19, x0
	mov	x0, x20
	bl	_amdgpu_atombios_encoder_get_encoder_mode
	mov	x21, x0
Lloh0:
	adrp	x8, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_amdgpu_atombios_encoder_dpms
	mov	x0, x20
	bl	_amdgpu_atombios_encoder_is_digital
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _ATOM_ENCODER_MODE_HDMI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATOM_ENCODER_MODE_HDMI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w21, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_ENCODER_MODE_IS_DP
	cbz	x0, LBB0_4
LBB0_3:
	mov	x0, x20
	mov	w1, #0
	bl	_dce_v6_0_afmt_enable
LBB0_4:
	ldr	x8, [x19, #8]
	mov	w9, #-1
	str	w9, [x8]
LBB0_5:
	str	xzr, [x19]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_DPMS_OFF,4,2          ; @DRM_MODE_DPMS_OFF
	.comm	_ATOM_ENCODER_MODE_HDMI,4,2     ; @ATOM_ENCODER_MODE_HDMI
	.no_dead_strip	_dce_v6_0_encoder_disable
.subsections_via_symbols
