	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_hdmi_encoder_disable
_tegra_hdmi_encoder_disable:            ## @tegra_hdmi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_encoder_to_output
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_to_tegra_dc
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_to_hdmi
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	_DC_DISP_DISP_WIN_OPTIONS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_tegra_dc_readl
	movq	_HDMI_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_tegra_dc_writel
	movq	%r14, %rdi
	callq	_tegra_dc_commit
LBB0_2:
	cmpl	$0, 16(%rbx)
	jne	LBB0_6
## %bb.3:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_tegra_hdmi_disable_stereo_infoframe
LBB0_5:
	movq	%rbx, %rdi
	callq	_tegra_hdmi_disable_audio_infoframe
	movq	%rbx, %rdi
	callq	_tegra_hdmi_disable_avi_infoframe
	movq	%rbx, %rdi
	callq	_tegra_hdmi_disable_audio
LBB0_6:
	movq	_HDMI_NV_PDISP_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_tegra_hdmi_writel
	movq	_HDMI_NV_PDISP_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_tegra_hdmi_writel
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pm_runtime_put                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_DISP_DISP_WIN_OPTIONS,4,2   ## @DC_DISP_DISP_WIN_OPTIONS
	.comm	_HDMI_ENABLE,4,2                ## @HDMI_ENABLE
	.comm	_HDMI_NV_PDISP_INT_ENABLE,4,2   ## @HDMI_NV_PDISP_INT_ENABLE
	.comm	_HDMI_NV_PDISP_INT_MASK,4,2     ## @HDMI_NV_PDISP_INT_MASK
	.no_dead_strip	_tegra_hdmi_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_hdmi_encoder_disable
_tegra_hdmi_encoder_disable:            ; @tegra_hdmi_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
	mov	x19, x0
	bl	_encoder_to_output
	mov	x21, x0
	ldr	w0, [x19]
	bl	_to_tegra_dc
	mov	x20, x0
	mov	x0, x21
	bl	_to_hdmi
	mov	x19, x0
	cbz	x20, LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, _DC_DISP_DISP_WIN_OPTIONS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DC_DISP_DISP_WIN_OPTIONS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_tegra_dc_readl
Lloh2:
	adrp	x8, _HDMI_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDMI_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w2, [x21]
	mov	x0, x20
	bl	_tegra_dc_writel
	mov	x0, x20
	bl	_tegra_dc_commit
LBB0_2:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_6
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_tegra_hdmi_disable_stereo_infoframe
LBB0_5:
	mov	x0, x19
	bl	_tegra_hdmi_disable_audio_infoframe
	mov	x0, x19
	bl	_tegra_hdmi_disable_avi_infoframe
	mov	x0, x19
	bl	_tegra_hdmi_disable_audio
LBB0_6:
Lloh5:
	adrp	x8, _HDMI_NV_PDISP_INT_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDMI_NV_PDISP_INT_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_tegra_hdmi_writel
Lloh8:
	adrp	x8, _HDMI_NV_PDISP_INT_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDMI_NV_PDISP_INT_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_tegra_hdmi_writel
	ldr	w0, [x19]
	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	_pm_runtime_put
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_DISP_DISP_WIN_OPTIONS,4,2   ; @DC_DISP_DISP_WIN_OPTIONS
	.comm	_HDMI_ENABLE,4,2                ; @HDMI_ENABLE
	.comm	_HDMI_NV_PDISP_INT_ENABLE,4,2   ; @HDMI_NV_PDISP_INT_ENABLE
	.comm	_HDMI_NV_PDISP_INT_MASK,4,2     ; @HDMI_NV_PDISP_INT_MASK
	.no_dead_strip	_tegra_hdmi_encoder_disable
.subsections_via_symbols
