	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atombios_crtc_dpms             ## -- Begin function atombios_crtc_dpms
	.p2align	4, 0x90
_atombios_crtc_dpms:                    ## @atombios_crtc_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, %ebx
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movq	8(%r13), %r14
	callq	_to_radeon_crtc
	movq	%rax, %r15
	leal	-128(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_9
## %bb.1:
	cmpl	$131, %ebx
	je	LBB0_9
## %bb.2:
	cmpl	$130, %ebx
	jne	LBB0_17
## %bb.3:
	movl	$1, (%r15)
	movq	_ATOM_ENABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_atombios_enable_crtc
	movq	%r14, %rdi
	callq	_ASIC_IS_DCE3
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_ASIC_IS_DCE6
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_atombios_enable_crtc_memreq
LBB0_6:
	movq	_ATOM_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_atombios_blank_crtc
	movl	(%r13), %eax
	cmpl	4(%r15), %eax
	jle	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_drm_crtc_vblank_on
LBB0_8:
	movq	%r12, %rdi
	callq	_radeon_crtc_load_lut
	jmp	LBB0_17
LBB0_9:
	movl	(%r13), %eax
	cmpl	4(%r15), %eax
	jle	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_drm_crtc_vblank_off
LBB0_11:
	cmpl	$0, (%r15)
	je	LBB0_13
## %bb.12:
	movq	_ATOM_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_atombios_blank_crtc
LBB0_13:
	movq	%r14, %rdi
	callq	_ASIC_IS_DCE3
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	callq	_ASIC_IS_DCE6
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	_ATOM_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_atombios_enable_crtc_memreq
LBB0_16:
	movq	_ATOM_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_atombios_enable_crtc
	movl	$0, (%r15)
LBB0_17:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_pm_compute_clocks       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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	_atombios_crtc_dpms             ; -- Begin function atombios_crtc_dpms
	.p2align	2
_atombios_crtc_dpms:                    ; @atombios_crtc_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	x22, x1
	mov	x20, x0
	ldr	x23, [x0]
	ldr	x19, [x23, #8]
	bl	_to_radeon_crtc
	mov	x21, x0
	sub	w8, w22, #128
	cmp	w8, #2
	b.lo	LBB0_9
; %bb.1:
	cmp	w22, #131
	b.eq	LBB0_9
; %bb.2:
	cmp	w22, #130
	b.ne	LBB0_17
; %bb.3:
	mov	w8, #1
	str	w8, [x21]
Lloh0:
	adrp	x22, _ATOM_ENABLE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ATOM_ENABLE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_atombios_enable_crtc
	mov	x0, x19
	bl	_ASIC_IS_DCE3
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_ASIC_IS_DCE6
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_atombios_enable_crtc_memreq
LBB0_6:
Lloh2:
	adrp	x8, _ATOM_DISABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATOM_DISABLE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_atombios_blank_crtc
	ldr	w8, [x23]
	ldr	w9, [x21, #4]
	cmp	w8, w9
	b.le	LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_drm_crtc_vblank_on
LBB0_8:
	mov	x0, x20
	bl	_radeon_crtc_load_lut
	b	LBB0_17
LBB0_9:
	ldr	w8, [x23]
	ldr	w9, [x21, #4]
	cmp	w8, w9
	b.le	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_drm_crtc_vblank_off
LBB0_11:
	ldr	w8, [x21]
	cbz	w8, LBB0_13
; %bb.12:
Lloh5:
	adrp	x8, _ATOM_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATOM_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_atombios_blank_crtc
LBB0_13:
	mov	x0, x19
	bl	_ASIC_IS_DCE3
	cbz	w0, LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_ASIC_IS_DCE6
	cbnz	w0, LBB0_16
; %bb.15:
Lloh8:
	adrp	x8, _ATOM_DISABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATOM_DISABLE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_atombios_enable_crtc_memreq
LBB0_16:
Lloh11:
	adrp	x8, _ATOM_DISABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATOM_DISABLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_atombios_enable_crtc
	str	wzr, [x21]
LBB0_17:
	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_pm_compute_clocks
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ATOM_ENABLE,4,2                ; @ATOM_ENABLE
	.comm	_ATOM_DISABLE,4,2               ; @ATOM_DISABLE
.subsections_via_symbols
