	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_combios_encoder_dpms_scratch_regs ## -- Begin function radeon_combios_encoder_dpms_scratch_regs
	.p2align	4, 0x90
_radeon_combios_encoder_dpms_scratch_regs: ## @radeon_combios_encoder_dpms_scratch_regs
	.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, %r14d
	callq	_to_radeon_encoder
	movq	%rax, %rbx
	movq	_RADEON_BIOS_6_SCRATCH@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_RREG32
	movl	(%rbx), %ecx
	movq	_ATOM_DEVICE_TV_SUPPORT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_3
## %bb.1:
	movq	_RADEON_TV_DPMS_ON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.2:
	orl	%edx, %eax
LBB0_3:
	movq	_ATOM_DEVICE_CRT_SUPPORT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_8
## %bb.4:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.5:
	movq	_RADEON_CRT_DPMS_ON@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	jmp	LBB0_8
LBB0_6:
	notl	%edx
	andl	%edx, %eax
	movq	_ATOM_DEVICE_CRT_SUPPORT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_8
LBB0_7:
	movq	_RADEON_CRT_DPMS_ON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %eax
LBB0_8:
	movq	_ATOM_DEVICE_LCD_SUPPORT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_11
## %bb.9:
	movq	_RADEON_LCD_DPMS_ON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.10:
	orl	%edx, %eax
LBB0_11:
	movq	_ATOM_DEVICE_DFP_SUPPORT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_16
## %bb.12:
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.13:
	movq	_RADEON_DFP_DPMS_ON@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_16
LBB0_14:
	notl	%edx
	andl	%edx, %eax
	movq	_ATOM_DEVICE_DFP_SUPPORT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_16
LBB0_15:
	movq	_RADEON_DFP_DPMS_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
LBB0_16:
	movl	(%r15), %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_BIOS_6_SCRATCH,4,2      ## @RADEON_BIOS_6_SCRATCH
	.comm	_ATOM_DEVICE_TV_SUPPORT,4,2     ## @ATOM_DEVICE_TV_SUPPORT
	.comm	_RADEON_TV_DPMS_ON,4,2          ## @RADEON_TV_DPMS_ON
	.comm	_ATOM_DEVICE_CRT_SUPPORT,4,2    ## @ATOM_DEVICE_CRT_SUPPORT
	.comm	_RADEON_CRT_DPMS_ON,4,2         ## @RADEON_CRT_DPMS_ON
	.comm	_ATOM_DEVICE_LCD_SUPPORT,4,2    ## @ATOM_DEVICE_LCD_SUPPORT
	.comm	_RADEON_LCD_DPMS_ON,4,2         ## @RADEON_LCD_DPMS_ON
	.comm	_ATOM_DEVICE_DFP_SUPPORT,4,2    ## @ATOM_DEVICE_DFP_SUPPORT
	.comm	_RADEON_DFP_DPMS_ON,4,2         ## @RADEON_DFP_DPMS_ON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_combios_encoder_dpms_scratch_regs ; -- Begin function radeon_combios_encoder_dpms_scratch_regs
	.p2align	2
_radeon_combios_encoder_dpms_scratch_regs: ; @radeon_combios_encoder_dpms_scratch_regs
	.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	x19, x1
	bl	_to_radeon_encoder
	mov	x20, x0
Lloh0:
	adrp	x21, _RADEON_BIOS_6_SCRATCH@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RADEON_BIOS_6_SCRATCH@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_RREG32
	mov	x1, x0
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _ATOM_DEVICE_TV_SUPPORT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATOM_DEVICE_TV_SUPPORT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh5:
	adrp	x9, _RADEON_TV_DPMS_ON@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RADEON_TV_DPMS_ON@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cbz	w19, LBB0_6
; %bb.2:
	orr	w1, w9, w1
LBB0_3:
Lloh8:
	adrp	x9, _ATOM_DEVICE_CRT_SUPPORT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATOM_DEVICE_CRT_SUPPORT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:
	cbz	w19, LBB0_7
; %bb.5:
Lloh11:
	adrp	x9, _RADEON_CRT_DPMS_ON@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RADEON_CRT_DPMS_ON@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w1
	b	LBB0_8
LBB0_6:
	bic	w1, w1, w9
Lloh14:
	adrp	x9, _ATOM_DEVICE_CRT_SUPPORT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ATOM_DEVICE_CRT_SUPPORT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_7:
Lloh17:
	adrp	x9, _RADEON_CRT_DPMS_ON@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RADEON_CRT_DPMS_ON@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	bic	w1, w1, w9
LBB0_8:
Lloh20:
	adrp	x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
Lloh23:
	adrp	x9, _RADEON_LCD_DPMS_ON@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RADEON_LCD_DPMS_ON@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cbz	w19, LBB0_14
; %bb.10:
	orr	w1, w9, w1
LBB0_11:
Lloh26:
	adrp	x9, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.12:
	cbz	w19, LBB0_15
; %bb.13:
Lloh29:
	adrp	x8, _RADEON_DFP_DPMS_ON@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RADEON_DFP_DPMS_ON@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w1, w8, w1
	b	LBB0_16
LBB0_14:
	bic	w1, w1, w9
Lloh32:
	adrp	x9, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
LBB0_15:
Lloh35:
	adrp	x8, _RADEON_DFP_DPMS_ON@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RADEON_DFP_DPMS_ON@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	bic	w1, w1, w8
LBB0_16:
	ldr	w0, [x21]
	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	_WREG32
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_BIOS_6_SCRATCH,4,2      ; @RADEON_BIOS_6_SCRATCH
	.comm	_ATOM_DEVICE_TV_SUPPORT,4,2     ; @ATOM_DEVICE_TV_SUPPORT
	.comm	_RADEON_TV_DPMS_ON,4,2          ; @RADEON_TV_DPMS_ON
	.comm	_ATOM_DEVICE_CRT_SUPPORT,4,2    ; @ATOM_DEVICE_CRT_SUPPORT
	.comm	_RADEON_CRT_DPMS_ON,4,2         ; @RADEON_CRT_DPMS_ON
	.comm	_ATOM_DEVICE_LCD_SUPPORT,4,2    ; @ATOM_DEVICE_LCD_SUPPORT
	.comm	_RADEON_LCD_DPMS_ON,4,2         ; @RADEON_LCD_DPMS_ON
	.comm	_ATOM_DEVICE_DFP_SUPPORT,4,2    ; @ATOM_DEVICE_DFP_SUPPORT
	.comm	_RADEON_DFP_DPMS_ON,4,2         ; @RADEON_DFP_DPMS_ON
.subsections_via_symbols
