	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_atom_encoder_dpms_avivo
_radeon_atom_encoder_dpms_avivo:        ## @radeon_atom_encoder_dpms_avivo
	.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, %ebx
	movq	(%rdi), %rax
	movq	(%rax), %r12
	callq	_to_radeon_encoder
	movq	%rax, %r14
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r14), %ecx
	addl	$-128, %ecx
	cmpl	$10, %ecx
	ja	LBB0_28
## %bb.1:
	movq	_TMDSAOutputControl@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_DVOOutputControl@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_3:
	movl	8(%r14), %eax
	movq	_ATOM_DEVICE_TV_SUPPORT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.10:
	movq	_ATOM_DEVICE_CV_SUPPORT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_16
## %bb.11:
	movq	_DAC2OutputControl@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_5:
	movl	8(%r14), %eax
	movq	_ATOM_DEVICE_TV_SUPPORT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
LBB0_6:
	movq	_TV1OutputControl@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_7:
	movq	_ATOM_DEVICE_LCD_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	jne	LBB0_9
## %bb.8:
	movq	_LVTMAOutputControl@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_9:
	movq	_LCD1OutputControl@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_12:
	movq	_ATOM_DEVICE_CV_SUPPORT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_16
## %bb.13:
	movq	_DAC1OutputControl@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_CV1OutputControl@GOTPCREL(%rip), %rax
LBB0_17:
	movq	_COMMAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, %r15d
	leal	-139(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_22
## %bb.18:
	cmpl	$142, %ebx
	je	LBB0_22
## %bb.19:
	cmpl	$141, %ebx
	jne	LBB0_28
## %bb.20:
	movq	_ATOM_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	cmpl	$136, (%r14)
	jne	LBB0_24
## %bb.21:
	movq	_RADEON_BIOS_3_SCRATCH@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movl	(%r13), %edi
	movq	_ATOM_S3_DFP2I_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%ebx, %esi
	callq	_WREG32
	movl	(%r12), %edi
	leaq	-48(%rbp), %rdx
	movl	%r15d, %esi
	callq	_atom_execute_table
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_WREG32
	jmp	LBB0_25
LBB0_22:
	movq	_ATOM_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%r12), %edi
	leaq	-48(%rbp), %rdx
	movl	%r15d, %esi
	callq	_atom_execute_table
	movq	_ATOM_DEVICE_LCD_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_28
## %bb.23:
	movq	_ATOM_LCD_BLOFF@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_24:
	movl	(%r12), %edi
	leaq	-48(%rbp), %rdx
	movl	%r15d, %esi
	callq	_atom_execute_table
LBB0_25:
	movq	_ATOM_DEVICE_LCD_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_28
## %bb.26:
	movq	_ATOM_LCD_BLON@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%r12), %edi
	leaq	-48(%rbp), %rdx
	movl	%r15d, %esi
	callq	_atom_execute_table
LBB0_28:
	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_17, LBB0_17-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_17
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_TMDSAOutputControl,4,2         ## @TMDSAOutputControl
	.comm	_DVOOutputControl,4,2           ## @DVOOutputControl
	.comm	_LCD1OutputControl,4,2          ## @LCD1OutputControl
	.comm	_ATOM_DEVICE_LCD_SUPPORT,4,2    ## @ATOM_DEVICE_LCD_SUPPORT
	.comm	_LVTMAOutputControl,4,2         ## @LVTMAOutputControl
	.comm	_ATOM_DEVICE_TV_SUPPORT,4,2     ## @ATOM_DEVICE_TV_SUPPORT
	.comm	_TV1OutputControl,4,2           ## @TV1OutputControl
	.comm	_ATOM_DEVICE_CV_SUPPORT,4,2     ## @ATOM_DEVICE_CV_SUPPORT
	.comm	_CV1OutputControl,4,2           ## @CV1OutputControl
	.comm	_DAC1OutputControl,4,2          ## @DAC1OutputControl
	.comm	_DAC2OutputControl,4,2          ## @DAC2OutputControl
	.comm	_ATOM_ENABLE,4,2                ## @ATOM_ENABLE
	.comm	_RADEON_BIOS_3_SCRATCH,4,2      ## @RADEON_BIOS_3_SCRATCH
	.comm	_ATOM_S3_DFP2I_ACTIVE,4,2       ## @ATOM_S3_DFP2I_ACTIVE
	.comm	_ATOM_LCD_BLON,4,2              ## @ATOM_LCD_BLON
	.comm	_ATOM_DISABLE,4,2               ## @ATOM_DISABLE
	.comm	_ATOM_LCD_BLOFF,4,2             ## @ATOM_LCD_BLOFF
	.no_dead_strip	_radeon_atom_encoder_dpms_avivo
.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_avivo
_radeon_atom_encoder_dpms_avivo:        ; @radeon_atom_encoder_dpms_avivo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	ldr	x8, [x0]
	ldr	x22, [x8]
	bl	_to_radeon_encoder
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #10
	b.hi	LBB0_22
; %bb.1:
Lloh0:
	adrp	x8, _TMDSAOutputControl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TMDSAOutputControl@GOTPAGEOFF]
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh4:
	adrp	x8, _DVOOutputControl@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DVOOutputControl@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x9, _ATOM_DEVICE_TV_SUPPORT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATOM_DEVICE_TV_SUPPORT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.4:
Lloh9:
	adrp	x9, _ATOM_DEVICE_CV_SUPPORT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATOM_DEVICE_CV_SUPPORT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _CV1OutputControl@GOTPAGE
Lloh13:
	ldr	x10, [x10, _CV1OutputControl@GOTPAGEOFF]
Lloh14:
	adrp	x11, _DAC2OutputControl@GOTPAGE
Lloh15:
	ldr	x11, [x11, _DAC2OutputControl@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	ldr	w8, [x19, #8]
Lloh16:
	adrp	x9, _ATOM_DEVICE_TV_SUPPORT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ATOM_DEVICE_TV_SUPPORT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_6:
Lloh19:
	adrp	x8, _TV1OutputControl@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TV1OutputControl@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	ldr	w8, [x19, #4]
Lloh21:
	adrp	x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _LCD1OutputControl@GOTPAGE
Lloh25:
	ldr	x10, [x10, _LCD1OutputControl@GOTPAGEOFF]
Lloh26:
	adrp	x11, _LVTMAOutputControl@GOTPAGE
Lloh27:
	ldr	x11, [x11, _LVTMAOutputControl@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh28:
	adrp	x8, _LCD1OutputControl@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LCD1OutputControl@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh30:
	adrp	x9, _ATOM_DEVICE_CV_SUPPORT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ATOM_DEVICE_CV_SUPPORT@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _CV1OutputControl@GOTPAGE
Lloh34:
	ldr	x10, [x10, _CV1OutputControl@GOTPAGEOFF]
Lloh35:
	adrp	x11, _DAC1OutputControl@GOTPAGE
Lloh36:
	ldr	x11, [x11, _DAC1OutputControl@GOTPAGEOFF]
LBB0_10:
	tst	w9, w8
	csel	x8, x11, x10, eq
LBB0_11:
Lloh37:
	adrp	x9, _COMMAND@GOTPAGE
Lloh38:
	ldr	x9, [x9, _COMMAND@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x21, x0
	sub	w8, w20, #139
	cmp	w8, #2
	b.lo	LBB0_16
; %bb.12:
	cmp	w20, #142
	b.eq	LBB0_16
; %bb.13:
	cmp	w20, #141
	b.ne	LBB0_22
; %bb.14:
Lloh40:
	adrp	x8, _ATOM_ENABLE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ATOM_ENABLE@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w8, [x19]
	cmp	w8, #136
	b.ne	LBB0_18
; %bb.15:
Lloh43:
	adrp	x23, _RADEON_BIOS_3_SCRATCH@GOTPAGE
Lloh44:
	ldr	x23, [x23, _RADEON_BIOS_3_SCRATCH@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_RREG32
	mov	x20, x0
	ldr	w0, [x23]
Lloh45:
	adrp	x8, _ATOM_S3_DFP2I_ACTIVE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ATOM_S3_DFP2I_ACTIVE@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	bic	w1, w20, w8
	bl	_WREG32
	ldr	w0, [x22]
	add	x2, sp, #8
	mov	x1, x21
	bl	_atom_execute_table
	ldr	w0, [x23]
	mov	x1, x20
	bl	_WREG32
	b	LBB0_19
LBB0_16:
Lloh48:
	adrp	x8, _ATOM_DISABLE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ATOM_DISABLE@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x22]
	add	x2, sp, #8
	mov	x1, x21
	bl	_atom_execute_table
	ldr	w8, [x19, #4]
Lloh51:
	adrp	x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGE
Lloh52:
	ldr	x9, [x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.17:
Lloh54:
	adrp	x8, _ATOM_LCD_BLOFF@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ATOM_LCD_BLOFF@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
	ldr	w0, [x22]
	add	x2, sp, #8
	mov	x1, x21
	bl	_atom_execute_table
LBB0_19:
	ldr	w8, [x19, #4]
Lloh56:
	adrp	x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGE
Lloh57:
	ldr	x9, [x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.20:
Lloh59:
	adrp	x8, _ATOM_LCD_BLON@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ATOM_LCD_BLON@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x22]
	add	x2, sp, #8
	mov	x1, x21
	bl	_atom_execute_table
LBB0_22:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_TMDSAOutputControl,4,2         ; @TMDSAOutputControl
	.comm	_DVOOutputControl,4,2           ; @DVOOutputControl
	.comm	_LCD1OutputControl,4,2          ; @LCD1OutputControl
	.comm	_ATOM_DEVICE_LCD_SUPPORT,4,2    ; @ATOM_DEVICE_LCD_SUPPORT
	.comm	_LVTMAOutputControl,4,2         ; @LVTMAOutputControl
	.comm	_ATOM_DEVICE_TV_SUPPORT,4,2     ; @ATOM_DEVICE_TV_SUPPORT
	.comm	_TV1OutputControl,4,2           ; @TV1OutputControl
	.comm	_ATOM_DEVICE_CV_SUPPORT,4,2     ; @ATOM_DEVICE_CV_SUPPORT
	.comm	_CV1OutputControl,4,2           ; @CV1OutputControl
	.comm	_DAC1OutputControl,4,2          ; @DAC1OutputControl
	.comm	_DAC2OutputControl,4,2          ; @DAC2OutputControl
	.comm	_ATOM_ENABLE,4,2                ; @ATOM_ENABLE
	.comm	_RADEON_BIOS_3_SCRATCH,4,2      ; @RADEON_BIOS_3_SCRATCH
	.comm	_ATOM_S3_DFP2I_ACTIVE,4,2       ; @ATOM_S3_DFP2I_ACTIVE
	.comm	_ATOM_LCD_BLON,4,2              ; @ATOM_LCD_BLON
	.comm	_ATOM_DISABLE,4,2               ; @ATOM_DISABLE
	.comm	_ATOM_LCD_BLOFF,4,2             ; @ATOM_LCD_BLOFF
	.no_dead_strip	_radeon_atom_encoder_dpms_avivo
.subsections_via_symbols
