	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_sor_disable
_nv50_sor_disable:                      ## @nv50_sor_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	%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
	movq	%rdi, %r14
	callq	_nouveau_encoder
	movq	%rax, %rbx
	movq	24(%rax), %rdi
	callq	_nouveau_crtc
	movq	$0, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movq	16(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_4
## %bb.2:
	movq	_DP_SET_POWER@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_nvkm_rdaux
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_DP_SET_POWER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-44(%rbp), %eax
	movq	_DP_SET_POWER_D3@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -44(%rbp)
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_nvkm_wraux
LBB0_4:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	*8(%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_nv50_audio_disable
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_nv50_hdmi_disable
	movq	%rbx, %rdi
	callq	_nv50_outp_release
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_SET_POWER,4,2               ## @DP_SET_POWER
	.comm	_DP_SET_POWER_MASK,4,2          ## @DP_SET_POWER_MASK
	.comm	_DP_SET_POWER_D3,4,2            ## @DP_SET_POWER_D3
	.no_dead_strip	_nv50_sor_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_sor_disable
_nv50_sor_disable:                      ; @nv50_sor_disable
	.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, x0
	bl	_nouveau_encoder
	mov	x19, x0
	ldr	x0, [x0, #24]
	bl	_nouveau_crtc
	str	xzr, [x19, #24]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x22, [x19, #16]
	cbz	x22, LBB0_4
; %bb.2:
Lloh0:
	adrp	x23, _DP_SET_POWER@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DP_SET_POWER@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x22
	mov	w3, #1
	bl	_nvkm_rdaux
	cbnz	w0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _DP_SET_POWER_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DP_SET_POWER_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh5:
	adrp	x9, _DP_SET_POWER_D3@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DP_SET_POWER_D3@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #12]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x22
	mov	w3, #1
	bl	_nvkm_wraux
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	blr	x8
	mov	x0, x20
	mov	x1, x21
	bl	_nv50_audio_disable
	mov	x0, x19
	mov	x1, x21
	bl	_nv50_hdmi_disable
	mov	x0, x19
	bl	_nv50_outp_release
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_SET_POWER,4,2               ; @DP_SET_POWER
	.comm	_DP_SET_POWER_MASK,4,2          ; @DP_SET_POWER_MASK
	.comm	_DP_SET_POWER_D3,4,2            ; @DP_SET_POWER_D3
	.no_dead_strip	_nv50_sor_disable
.subsections_via_symbols
