	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_encoder_dpms   ## -- Begin function amdgpu_atombios_encoder_dpms
	.p2align	4, 0x90
_amdgpu_atombios_encoder_dpms:          ## @amdgpu_atombios_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_to_amdgpu_encoder
	movq	%rax, %rbx
	movl	8(%rax), %ecx
	movl	(%rax), %esi
	movl	4(%rax), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %edx
	callq	_DRM_DEBUG_KMS
	movl	(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_1
## %bb.8:
	leal	-134(%r15), %eax
	cmpl	$2, %eax
	jb	LBB0_13
## %bb.9:
	cmpl	$137, %r15d
	je	LBB0_13
## %bb.10:
	cmpl	$136, %r15d
	jne	LBB0_21
## %bb.11:
	movq	_ATOM_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	cmpl	$132, %eax
	je	LBB0_14
## %bb.2:
	cmpl	$133, %eax
	jne	LBB0_21
## %bb.3:
	leal	-134(%r15), %eax
	cmpl	$2, %eax
	jb	LBB0_20
## %bb.4:
	cmpl	$137, %r15d
	je	LBB0_20
## %bb.5:
	cmpl	$136, %r15d
	jne	LBB0_21
## %bb.6:
	movq	_ATOM_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_13:
	movq	_ATOM_DISABLE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_amdgpu_atombios_encoder_setup_dig ## TAILCALL
LBB0_14:
	leal	-134(%r15), %eax
	cmpl	$2, %eax
	jb	LBB0_19
## %bb.15:
	cmpl	$137, %r15d
	je	LBB0_19
## %bb.16:
	cmpl	$136, %r15d
	jne	LBB0_21
## %bb.17:
	movq	_ATOM_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_ATOM_DISABLE@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_amdgpu_atombios_encoder_setup_dvo ## TAILCALL
LBB0_20:
	movq	_ATOM_DISABLE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_amdgpu_atombios_encoder_setup_dac ## TAILCALL
	.cfi_endproc
                                        ## -- 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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_encoder_dpms   ; -- Begin function amdgpu_atombios_encoder_dpms
	.p2align	2
_amdgpu_atombios_encoder_dpms:          ; @amdgpu_atombios_encoder_dpms
	.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, x1
	mov	x19, x0
	bl	_to_amdgpu_encoder
	mov	x21, x0
	ldp	w4, w3, [x0, #4]
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x21]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hs	LBB0_5
; %bb.1:
	sub	w8, w20, #134
	cmp	w8, #2
	b.lo	LBB0_11
; %bb.2:
	cmp	w20, #137
	b.eq	LBB0_11
; %bb.3:
	cmp	w20, #136
	b.ne	LBB0_17
; %bb.4:
Lloh2:
	adrp	x8, _ATOM_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATOM_ENABLE@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
	cmp	w8, #132
	b.eq	LBB0_13
; %bb.6:
	cmp	w8, #133
	b.ne	LBB0_17
; %bb.7:
	sub	w8, w20, #134
	cmp	w8, #2
	b.lo	LBB0_20
; %bb.8:
	cmp	w20, #137
	b.eq	LBB0_20
; %bb.9:
	cmp	w20, #136
	b.ne	LBB0_17
; %bb.10:
Lloh4:
	adrp	x8, _ATOM_ENABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ATOM_ENABLE@GOTPAGEOFF]
	b	LBB0_21
LBB0_11:
Lloh6:
	adrp	x8, _ATOM_DISABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATOM_DISABLE@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
	mov	x0, 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
	b	_amdgpu_atombios_encoder_setup_dig
LBB0_13:
	sub	w8, w20, #134
	cmp	w8, #2
	b.lo	LBB0_18
; %bb.14:
	cmp	w20, #137
	b.eq	LBB0_18
; %bb.15:
	cmp	w20, #136
	b.ne	LBB0_17
; %bb.16:
Lloh8:
	adrp	x8, _ATOM_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATOM_ENABLE@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
	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
LBB0_18:
Lloh10:
	adrp	x8, _ATOM_DISABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATOM_DISABLE@GOTPAGEOFF]
LBB0_19:
	ldr	w1, [x8]
	mov	x0, 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
	b	_amdgpu_atombios_encoder_setup_dvo
LBB0_20:
Lloh12:
	adrp	x8, _ATOM_DISABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATOM_DISABLE@GOTPAGEOFF]
LBB0_21:
	ldr	w1, [x8]
	mov	x0, 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
	b	_amdgpu_atombios_encoder_setup_dac
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- 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
.subsections_via_symbols
