	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atombios_crtc_disable
_atombios_crtc_disable:                 ## @atombios_crtc_disable
	.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
	movq	%rdi, %r14
	callq	_to_radeon_crtc
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	(%rax), %r15
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_atombios_crtc_dpms
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE6
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ATOM_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_atombios_powergate_crtc
LBB0_2:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.3:
	movq	8(%r15), %rcx
	xorl	%edx, %edx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 8(%rsi)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %edi
	cmpq	%rdi, %rdx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rbx), %edi
	cmpl	(%rsi), %edi
	jne	LBB0_8
	jmp	LBB0_14
LBB0_9:
	movl	4(%rbx), %edx
	leal	-128(%rdx), %eax
	cmpl	$2, %eax
	jae	LBB0_10
## %bb.15:
	movl	(%rbx), %esi
	movq	_ATOM_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	-32(%rbp), %rax
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_13
LBB0_10:
	cmpl	$130, %edx
	jne	LBB0_14
## %bb.11:
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE61
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	movq	_ATOM_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	-32(%rbp), %rax
	movq	%r14, %rdi
LBB0_13:
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_atombios_crtc_program_pll
	addq	$64, %rsp
LBB0_14:
	movq	_ATOM_PPLL_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 24(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_DPMS_OFF,4,2          ## @DRM_MODE_DPMS_OFF
	.comm	_ATOM_ENABLE,4,2                ## @ATOM_ENABLE
	.comm	_ATOM_DISABLE,4,2               ## @ATOM_DISABLE
	.comm	_ATOM_PPLL_INVALID,4,2          ## @ATOM_PPLL_INVALID
	.no_dead_strip	_atombios_crtc_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atombios_crtc_disable
_atombios_crtc_disable:                 ; @atombios_crtc_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x0
	bl	_to_radeon_crtc
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_atombios_crtc_dpms
	mov	x0, x21
	bl	_ASIC_IS_DCE6
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ATOM_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATOM_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_atombios_powergate_crtc
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x9, #0
	ldr	x10, [x21, #8]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cbz	x11, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #8]
	cbz	x12, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w12, [x19]
	cmp	x9, x12
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w12, [x19, #4]
	ldr	w11, [x11]
	cmp	w12, w11
	b.ne	LBB0_4
	b	LBB0_15
LBB0_9:
	ldr	w2, [x19, #4]
	sub	w8, w2, #128
	cmp	w8, #2
	b.hs	LBB0_11
; %bb.10:
	ldr	w1, [x19]
	b	LBB0_14
LBB0_11:
	cmp	w2, #130
	b.ne	LBB0_15
; %bb.12:
	mov	x0, x21
	bl	_ASIC_IS_DCE61
	cbz	w0, LBB0_15
; %bb.13:
	ldp	w1, w2, [x19]
LBB0_14:
Lloh6:
	adrp	x8, _ATOM_DISABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATOM_DISABLE@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	stp	xzr, xzr, [sp]
	add	x8, sp, #24
	str	x8, [sp, #16]
	mov	x0, x20
	mov	w3, #0
	mov	w4, #0
	mov	w6, #0
	mov	w7, #0
	bl	_atombios_crtc_program_pll
LBB0_15:
Lloh9:
	adrp	x8, _ATOM_PPLL_INVALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATOM_PPLL_INVALID@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_DPMS_OFF,4,2          ; @DRM_MODE_DPMS_OFF
	.comm	_ATOM_ENABLE,4,2                ; @ATOM_ENABLE
	.comm	_ATOM_DISABLE,4,2               ; @ATOM_DISABLE
	.comm	_ATOM_PPLL_INVALID,4,2          ; @ATOM_PPLL_INVALID
	.no_dead_strip	_atombios_crtc_disable
.subsections_via_symbols
