	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_legacy_primary_dac_dpms
_radeon_legacy_primary_dac_dpms:        ## @radeon_legacy_primary_dac_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, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movq	_RADEON_CRTC_EXT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r15d
	movq	_RADEON_DAC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r13d
	movq	_RADEON_DAC_MACRO_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	leal	-128(%r12), %eax
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.1:
	cmpl	$131, %r12d
	je	LBB0_4
## %bb.2:
	cmpl	$130, %r12d
	jne	LBB0_5
## %bb.3:
	movq	_RADEON_CRTC_CRT_ON@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_RADEON_DAC_PDWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r13d
	movq	_RADEON_DAC_PDWN_R@GOTPCREL(%rip), %rax
	movq	_RADEON_DAC_PDWN_G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_RADEON_DAC_PDWN_B@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_RADEON_CRTC_CRT_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	movq	_RADEON_DAC_PDWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, %r13d
	movq	_RADEON_DAC_PDWN_R@GOTPCREL(%rip), %rax
	movq	_RADEON_DAC_PDWN_G@GOTPCREL(%rip), %rcx
	movq	_RADEON_DAC_PDWN_B@GOTPCREL(%rip), %rdx
	movl	(%rax), %eax
	orl	%ebx, %eax
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movl	%eax, %ebx
LBB0_5:
	movq	_RADEON_SINGLE_CRTC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_7
## %bb.6:
	movq	_RADEON_CRTC_EXT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_WREG32
LBB0_7:
	movq	_RADEON_DAC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_WREG32
	movq	_RADEON_DAC_MACRO_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_WREG32
	xorl	%esi, %esi
	cmpl	$130, %r12d
	sete	%sil
	cmpq	$0, 8(%r14)
	je	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_atombios_encoder_dpms_scratch_regs ## TAILCALL
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_combios_encoder_dpms_scratch_regs ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_CRTC_EXT_CNTL,4,2       ## @RADEON_CRTC_EXT_CNTL
	.comm	_RADEON_DAC_CNTL,4,2            ## @RADEON_DAC_CNTL
	.comm	_RADEON_DAC_MACRO_CNTL,4,2      ## @RADEON_DAC_MACRO_CNTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_RADEON_CRTC_CRT_ON,4,2         ## @RADEON_CRTC_CRT_ON
	.comm	_RADEON_DAC_PDWN,4,2            ## @RADEON_DAC_PDWN
	.comm	_RADEON_DAC_PDWN_R,4,2          ## @RADEON_DAC_PDWN_R
	.comm	_RADEON_DAC_PDWN_G,4,2          ## @RADEON_DAC_PDWN_G
	.comm	_RADEON_DAC_PDWN_B,4,2          ## @RADEON_DAC_PDWN_B
	.comm	_RADEON_SINGLE_CRTC,4,2         ## @RADEON_SINGLE_CRTC
	.no_dead_strip	_radeon_legacy_primary_dac_dpms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_legacy_primary_dac_dpms
_radeon_legacy_primary_dac_dpms:        ; @radeon_legacy_primary_dac_dpms
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x24, [x8]
Lloh0:
	adrp	x25, _RADEON_CRTC_EXT_CNTL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RADEON_CRTC_EXT_CNTL@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_RREG32
	mov	x21, x0
Lloh2:
	adrp	x26, _RADEON_DAC_CNTL@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RADEON_DAC_CNTL@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_RREG32
	mov	x22, x0
Lloh4:
	adrp	x27, _RADEON_DAC_MACRO_CNTL@GOTPAGE
Lloh5:
	ldr	x27, [x27, _RADEON_DAC_MACRO_CNTL@GOTPAGEOFF]
	ldr	w0, [x27]
	bl	_RREG32
	mov	x23, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	sub	w8, w20, #128
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w20, #131
	b.eq	LBB0_4
; %bb.2:
	cmp	w20, #130
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _RADEON_CRTC_CRT_ON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RADEON_CRTC_CRT_ON@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w21, w8, w21
Lloh11:
	adrp	x8, _RADEON_DAC_PDWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RADEON_DAC_PDWN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	bic	w22, w22, w8
Lloh14:
	adrp	x8, _RADEON_DAC_PDWN_R@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RADEON_DAC_PDWN_R@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _RADEON_DAC_PDWN_G@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RADEON_DAC_PDWN_G@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _RADEON_DAC_PDWN_B@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RADEON_DAC_PDWN_B@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w23, w23, w8
	b	LBB0_5
LBB0_4:
Lloh23:
	adrp	x8, _RADEON_CRTC_CRT_ON@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RADEON_CRTC_CRT_ON@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	bic	w21, w21, w8
Lloh26:
	adrp	x8, _RADEON_DAC_PDWN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RADEON_DAC_PDWN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w22, w8, w22
Lloh29:
	adrp	x8, _RADEON_DAC_PDWN_R@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RADEON_DAC_PDWN_R@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _RADEON_DAC_PDWN_G@GOTPAGE
Lloh33:
	ldr	x9, [x9, _RADEON_DAC_PDWN_G@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x10, _RADEON_DAC_PDWN_B@GOTPAGE
Lloh36:
	ldr	x10, [x10, _RADEON_DAC_PDWN_B@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	orr	w8, w8, w23
	orr	w8, w8, w9
	orr	w23, w8, w10
LBB0_5:
	ldr	w8, [x24]
Lloh38:
	adrp	x9, _RADEON_SINGLE_CRTC@GOTPAGE
Lloh39:
	ldr	x9, [x9, _RADEON_SINGLE_CRTC@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x25]
	mov	x1, x21
	bl	_WREG32
LBB0_7:
	ldr	w0, [x26]
	mov	x1, x22
	bl	_WREG32
	ldr	w0, [x27]
	mov	x1, x23
	bl	_WREG32
	ldr	x8, [x24, #8]
	cmp	w20, #130
	cset	w1, eq
	mov	x0, x19
	cbz	x8, LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_radeon_atombios_encoder_dpms_scratch_regs
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_radeon_combios_encoder_dpms_scratch_regs
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_CRTC_EXT_CNTL,4,2       ; @RADEON_CRTC_EXT_CNTL
	.comm	_RADEON_DAC_CNTL,4,2            ; @RADEON_DAC_CNTL
	.comm	_RADEON_DAC_MACRO_CNTL,4,2      ; @RADEON_DAC_MACRO_CNTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_RADEON_CRTC_CRT_ON,4,2         ; @RADEON_CRTC_CRT_ON
	.comm	_RADEON_DAC_PDWN,4,2            ; @RADEON_DAC_PDWN
	.comm	_RADEON_DAC_PDWN_R,4,2          ; @RADEON_DAC_PDWN_R
	.comm	_RADEON_DAC_PDWN_G,4,2          ; @RADEON_DAC_PDWN_G
	.comm	_RADEON_DAC_PDWN_B,4,2          ; @RADEON_DAC_PDWN_B
	.comm	_RADEON_SINGLE_CRTC,4,2         ; @RADEON_SINGLE_CRTC
	.no_dead_strip	_radeon_legacy_primary_dac_dpms
.subsections_via_symbols
