	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdp5_vid_encoder_disable
_mdp5_vid_encoder_disable:              ## @mdp5_vid_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_mdp5_encoder
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_get_kms
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_mdp5_crtc_get_pipeline
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_mdp5_crtc_get_mixer
	movq	%rax, %rbx
	movq	8(%r15), %r13
	movl	(%r13), %r14d
	xorl	%edi, %edi
	cmpl	$0, (%r15)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_mdp5_ctl_set_encoder_state
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	%r14d, %edi
	callq	_REG_MDP5_INTF_TIMING_ENGINE_EN
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_mdp5_write
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r13, %rdi
	callq	_mdp_ctl_flush_mask_encoder
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_mdp5_ctl_commit
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_intf2vblank
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mdp_irq_wait
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bs_set
	movl	$0, (%r15)
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mdp5_vid_encoder_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdp5_vid_encoder_disable
_mdp5_vid_encoder_disable:              ; @mdp5_vid_encoder_disable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x0
	bl	_to_mdp5_encoder
	mov	x19, x0
	mov	x0, x23
	bl	_get_kms
	mov	x20, x0
	ldr	x21, [x19, #16]
	ldr	w0, [x23]
	bl	_mdp5_crtc_get_pipeline
	mov	x22, x0
	ldr	w0, [x23]
	bl	_mdp5_crtc_get_mixer
	mov	x23, x0
	ldr	x24, [x19, #8]
	ldr	w25, [x24]
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_mdp5_ctl_set_encoder_state
	add	x26, x19, #4
	mov	x0, x26
	bl	_spin_lock_irqsave
	mov	x0, x25
	bl	_REG_MDP5_INTF_TIMING_ENGINE_EN
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_mdp5_write
	mov	x0, x26
	bl	_spin_unlock_irqrestore
	mov	x0, x24
	bl	_mdp_ctl_flush_mask_encoder
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	mov	w3, #1
	bl	_mdp5_ctl_commit
	mov	x0, x23
	mov	x1, x24
	bl	_intf2vblank
	mov	x1, x0
	mov	x0, x20
	bl	_mdp_irq_wait
	mov	x0, x19
	mov	w1, #0
	bl	_bs_set
	str	wzr, [x19]
LBB0_2:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mdp5_vid_encoder_disable
.subsections_via_symbols
