	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdp4_dtv_encoder_disable
_mdp4_dtv_encoder_disable:              ## @mdp4_dtv_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	_to_mdp4_dtv_encoder
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_get_kms
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpl	$0, (%r15)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_REG_MDP4_DTV_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mdp4_write
	movq	_MDP4_IRQ_EXTERNAL_VSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mdp_irq_wait
	movl	8(%r15), %edi
	callq	_clk_disable_unprepare
	movl	4(%r15), %edi
	callq	_clk_disable_unprepare
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bs_set
	movl	$0, (%r15)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MDP4_DTV_ENABLE,4,2        ## @REG_MDP4_DTV_ENABLE
	.comm	_MDP4_IRQ_EXTERNAL_VSYNC,4,2    ## @MDP4_IRQ_EXTERNAL_VSYNC
	.no_dead_strip	_mdp4_dtv_encoder_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdp4_dtv_encoder_disable
_mdp4_dtv_encoder_disable:              ; @mdp4_dtv_encoder_disable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_to_mdp4_dtv_encoder
	mov	x19, x0
	mov	x0, x20
	bl	_get_kms
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _REG_MDP4_DTV_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_MDP4_DTV_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_mdp4_write
Lloh3:
	adrp	x8, _MDP4_IRQ_EXTERNAL_VSYNC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDP4_IRQ_EXTERNAL_VSYNC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mdp_irq_wait
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
	mov	x0, x19
	mov	w1, #0
	bl	_bs_set
	str	wzr, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MDP4_DTV_ENABLE,4,2        ; @REG_MDP4_DTV_ENABLE
	.comm	_MDP4_IRQ_EXTERNAL_VSYNC,4,2    ; @MDP4_IRQ_EXTERNAL_VSYNC
	.no_dead_strip	_mdp4_dtv_encoder_disable
.subsections_via_symbols
