	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_encoder_phys_vid_prepare_for_kickoff
_dpu_encoder_phys_vid_prepare_for_kickoff: ## @dpu_encoder_phys_vid_prepare_for_kickoff
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.2:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_DPU_ERROR_VIDENC
	movq	_INTR_IDX_VSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dpu_encoder_helper_unregister_irq ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid encoder/parameters\n"

L_.str.1:                               ## @.str.1
	.asciz	"ctl %d reset failure: %d\n"

	.comm	_INTR_IDX_VSYNC,4,2             ## @INTR_IDX_VSYNC
	.no_dead_strip	_dpu_encoder_phys_vid_prepare_for_kickoff
.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_prepare_for_kickoff
_dpu_encoder_phys_vid_prepare_for_kickoff: ; @dpu_encoder_phys_vid_prepare_for_kickoff
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0]
	cbz	x20, LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_5
; %bb.4:
	mov	x3, x0
	ldr	w2, [x20]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DPU_ERROR_VIDENC
Lloh2:
	adrp	x8, _INTR_IDX_VSYNC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INTR_IDX_VSYNC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dpu_encoder_helper_unregister_irq
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DPU_ERROR
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid encoder/parameters\n"

l_.str.1:                               ; @.str.1
	.asciz	"ctl %d reset failure: %d\n"

	.comm	_INTR_IDX_VSYNC,4,2             ; @INTR_IDX_VSYNC
	.no_dead_strip	_dpu_encoder_phys_vid_prepare_for_kickoff
.subsections_via_symbols
