	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_atom_encoder_dpms
_radeon_atom_encoder_dpms:              ## @radeon_atom_encoder_dpms
	.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	%esi, %r14d
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	(%rax), %r12
	callq	_to_radeon_encoder
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_radeon_get_external_encoder
	movq	%rax, %r15
	movl	8(%rbx), %ecx
	movl	(%rbx), %esi
	movl	4(%rbx), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_DRM_DEBUG_KMS
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$14, %eax
	ja	LBB0_22
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_18:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_radeon_atom_encoder_dpms_avivo
	testq	%r15, %r15
	jne	LBB0_20
	jmp	LBB0_21
LBB0_11:
	movq	%r12, %rdi
	callq	_ASIC_IS_DCE5
	testl	%eax, %eax
	je	LBB0_18
## %bb.12:
	leal	-143(%r14), %eax
	cmpl	$2, %eax
	jb	LBB0_17
## %bb.13:
	cmpl	$146, %r14d
	je	LBB0_17
## %bb.14:
	cmpl	$145, %r14d
	jne	LBB0_19
## %bb.15:
	movq	_ATOM_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r12, %rdi
	callq	_ASIC_IS_DCE5
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	leal	-143(%r14), %eax
	cmpl	$2, %eax
	jb	LBB0_8
## %bb.4:
	cmpl	$146, %r14d
	je	LBB0_8
## %bb.5:
	cmpl	$145, %r14d
	jne	LBB0_19
## %bb.6:
	movq	_ATOM_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_17:
	movq	_ATOM_DISABLE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_atombios_dac_setup
	testq	%r15, %r15
	jne	LBB0_20
	jmp	LBB0_21
LBB0_9:
	movq	%r12, %rdi
	callq	_ASIC_IS_DCE3
	testl	%eax, %eax
	je	LBB0_18
LBB0_10:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_radeon_atom_encoder_dpms_dig
LBB0_19:
	testq	%r15, %r15
	je	LBB0_21
LBB0_20:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_radeon_atom_encoder_dpms_ext
LBB0_21:
	xorl	%esi, %esi
	cmpl	$145, %r14d
	sete	%sil
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_atombios_encoder_dpms_scratch_regs ## TAILCALL
LBB0_8:
	movq	_ATOM_DISABLE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_atombios_dvo_setup
	testq	%r15, %r15
	jne	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_18
	.long	L0_0_set_11
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"encoder dpms %d to mode %d, devices %08x, active_devices %08x\n"

	.comm	_ATOM_ENABLE,4,2                ## @ATOM_ENABLE
	.comm	_ATOM_DISABLE,4,2               ## @ATOM_DISABLE
	.no_dead_strip	_radeon_atom_encoder_dpms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_atom_encoder_dpms
_radeon_atom_encoder_dpms:              ; @radeon_atom_encoder_dpms
	.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, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x22, [x8]
	bl	_to_radeon_encoder
	mov	x23, x0
	mov	x0, x19
	bl	_radeon_get_external_encoder
	mov	x21, x0
	ldp	w4, w3, [x23, #4]
	ldr	w1, [x23]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x23]
	sub	w8, w8, #128
	cmp	w8, #14
	b.hi	LBB0_8
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_radeon_atom_encoder_dpms_avivo
	cbnz	x21, LBB0_19
	b	LBB0_20
LBB0_3:
	mov	x0, x22
	bl	_ASIC_IS_DCE5
	cbz	w0, LBB0_2
; %bb.4:
	sub	w8, w20, #143
	cmp	w8, #2
	b.lo	LBB0_14
; %bb.5:
	cmp	w20, #146
	b.eq	LBB0_14
; %bb.6:
	cmp	w20, #145
	b.ne	LBB0_18
; %bb.7:
Lloh4:
	adrp	x8, _ATOM_ENABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ATOM_ENABLE@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
	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
LBB0_9:
	mov	x0, x22
	bl	_ASIC_IS_DCE5
	cbz	w0, LBB0_16
; %bb.10:
	sub	w8, w20, #143
	cmp	w8, #2
	b.lo	LBB0_21
; %bb.11:
	cmp	w20, #146
	b.eq	LBB0_21
; %bb.12:
	cmp	w20, #145
	b.ne	LBB0_18
; %bb.13:
Lloh6:
	adrp	x8, _ATOM_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATOM_ENABLE@GOTPAGEOFF]
	b	LBB0_22
LBB0_14:
Lloh8:
	adrp	x8, _ATOM_DISABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATOM_DISABLE@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_atombios_dac_setup
	cbnz	x21, LBB0_19
	b	LBB0_20
LBB0_16:
	mov	x0, x22
	bl	_ASIC_IS_DCE3
	cbz	w0, LBB0_2
LBB0_17:
	mov	x0, x19
	mov	x1, x20
	bl	_radeon_atom_encoder_dpms_dig
LBB0_18:
	cbz	x21, LBB0_20
LBB0_19:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_radeon_atom_encoder_dpms_ext
LBB0_20:
	cmp	w20, #145
	cset	w1, eq
	mov	x0, x19
	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
	b	_radeon_atombios_encoder_dpms_scratch_regs
LBB0_21:
Lloh10:
	adrp	x8, _ATOM_DISABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATOM_DISABLE@GOTPAGEOFF]
LBB0_22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_atombios_dvo_setup
	cbnz	x21, LBB0_19
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"encoder dpms %d to mode %d, devices %08x, active_devices %08x\n"

	.comm	_ATOM_ENABLE,4,2                ; @ATOM_ENABLE
	.comm	_ATOM_DISABLE,4,2               ; @ATOM_DISABLE
	.no_dead_strip	_radeon_atom_encoder_dpms
.subsections_via_symbols
