	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_encoder_phys_vid_disable
_dpu_encoder_phys_vid_disable:          ## @dpu_encoder_phys_vid_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
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.6:
	movq	(%rbx), %rcx
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.11:
	xorl	%edi, %edi
	cmpq	$0, 8(%rax)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_20
## %bb.12:
	movq	8(%rbx), %rax
	movq	_DPU_ENC_DISABLED@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
LBB0_7:
	xorl	%edx, %edx
	testq	%rcx, %rcx
	setne	%dl
	jmp	LBB0_10
LBB0_9:
	xorl	%edx, %edx
LBB0_10:
	xorl	%esi, %esi
	testq	%rax, %rax
	setne	%sil
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
LBB0_14:
	movl	36(%rbx), %edi
	callq	_spin_lock_irqsave
	movq	16(%rbx), %rdi
	xorl	%esi, %esi
	callq	*8(%rdi)
	movq	%rbx, %rdi
	callq	_dpu_encoder_phys_vid_is_master
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_dpu_encoder_phys_inc_pending
LBB0_16:
	movl	36(%rbx), %edi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_dpu_encoder_phys_vid_is_master
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	%rbx, %rdi
	callq	_dpu_encoder_phys_vid_wait_for_vblank
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %r14d
	leaq	32(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	24(%rbx), %rdi
	callq	_DRMID
	movq	16(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	_INTF_0@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rdx
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	movl	%r14d, %ecx
	callq	_DRM_ERROR
LBB0_19:
	movq	(%r15), %rax
	movq	%rax, 8(%rbx)
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid encoder/device\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid hw_intf %d hw_ctl %d\n"

	.comm	_DPU_ENC_DISABLED,8,3           ## @DPU_ENC_DISABLED
L_.str.2:                               ## @.str.2
	.asciz	"already disabled\n"

L_.str.3:                               ## @.str.3
	.asciz	"wait disable failed: id:%u intf:%d ret:%d\n"

	.comm	_INTF_0,8,3                     ## @INTF_0
	.no_dead_strip	_dpu_encoder_phys_vid_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_encoder_phys_vid_disable
_dpu_encoder_phys_vid_disable:          ; @dpu_encoder_phys_vid_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	cbz	x8, LBB0_11
; %bb.5:
	cbz	x9, LBB0_12
; %bb.6:
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_13
; %bb.7:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x21, _DPU_ENC_DISABLED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DPU_ENC_DISABLED@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.8:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_DPU_ERROR
LBB0_11:
	cmp	x9, #0
	cset	w9, ne
LBB0_12:
	cmp	x8, #0
	cset	w8, ne
	stp	x8, x9, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPU_ERROR
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	ldr	w0, [x19, #36]
	bl	_spin_lock_irqsave
	ldr	x0, [x19, #16]
	ldr	x8, [x0, #8]
	mov	w1, #0
	blr	x8
	mov	x0, x19
	bl	_dpu_encoder_phys_vid_is_master
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_dpu_encoder_phys_inc_pending
LBB0_16:
	ldr	w0, [x19, #36]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_dpu_encoder_phys_vid_is_master
	cbz	x0, LBB0_19
; %bb.17:
	mov	x0, x19
	bl	_dpu_encoder_phys_vid_wait_for_vblank
	cbz	w0, LBB0_19
; %bb.18:
	mov	x20, x0
	add	x0, x19, #32
	mov	w1, #0
	bl	_atomic_set
	ldr	x0, [x19, #24]
	bl	_DRMID
	mov	x1, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _INTF_0@GOTPAGE
Lloh9:
	ldr	x9, [x9, _INTF_0@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	sub	x2, x8, x9
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x3, x20
	bl	_DRM_ERROR
LBB0_19:
	ldr	x8, [x21]
	str	x8, [x19, #8]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid encoder/device\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid hw_intf %d hw_ctl %d\n"

	.comm	_DPU_ENC_DISABLED,8,3           ; @DPU_ENC_DISABLED
l_.str.2:                               ; @.str.2
	.asciz	"already disabled\n"

l_.str.3:                               ; @.str.3
	.asciz	"wait disable failed: id:%u intf:%d ret:%d\n"

	.comm	_INTF_0,8,3                     ; @INTF_0
	.no_dead_strip	_dpu_encoder_phys_vid_disable
.subsections_via_symbols
