	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_rgb_encoder_disable
_tegra_rgb_encoder_disable:             ## @tegra_rgb_encoder_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_encoder_to_output
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_to_rgb
	movq	%rax, %r14
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_drm_panel_disable
LBB0_2:
	movl	(%r14), %r15d
	movq	_rgb_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_tegra_dc_write_regs
	movl	(%r14), %edi
	callq	_tegra_dc_commit
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_panel_unprepare            ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rgb_disable,4,2                ## @rgb_disable
	.no_dead_strip	_tegra_rgb_encoder_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_rgb_encoder_disable
_tegra_rgb_encoder_disable:             ; @tegra_rgb_encoder_disable
	.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
	bl	_encoder_to_output
	mov	x19, x0
	bl	_to_rgb
	mov	x20, x0
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_drm_panel_disable
LBB0_2:
	ldr	w21, [x20]
Lloh0:
	adrp	x8, _rgb_disable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rgb_disable@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_tegra_dc_write_regs
	ldr	w0, [x20]
	bl	_tegra_dc_commit
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	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	_drm_panel_unprepare
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_rgb_disable,4,2                ; @rgb_disable
	.no_dead_strip	_tegra_rgb_encoder_disable
.subsections_via_symbols
