	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dpu_encoder_virt_enable_helper
__dpu_encoder_virt_enable_helper:       ## @_dpu_encoder_virt_enable_helper
	.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_3
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	(%rax), %edi
	callq	_to_dpu_kms
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_dpu_encoder_virt
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %rbx
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.11:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	(%r14), %esi
	callq	*%rax
LBB0_13:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__dpu_encoder_update_vsync_source ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rdi
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid parameters\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid dpu_kms\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid dpu encoder/master\n"

	.no_dead_strip	__dpu_encoder_virt_enable_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _dpu_encoder_virt_enable_helper
__dpu_encoder_virt_enable_helper:       ; @_dpu_encoder_virt_enable_helper
	.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_10
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.3:
	ldr	w0, [x8]
	bl	_to_dpu_kms
	cbz	x0, LBB0_12
; %bb.4:
	mov	x20, x0
	mov	x0, x19
	bl	_to_dpu_encoder_virt
	cbz	x0, LBB0_13
; %bb.5:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_13
; %bb.6:
	ldr	x0, [x8]
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w1, [x20]
	blr	x8
LBB0_9:
	mov	x0, x19
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__dpu_encoder_update_vsync_source
LBB0_10:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DPU_ERROR
LBB0_12:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_13:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid parameters\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid dpu_kms\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid dpu encoder/master\n"

	.no_dead_strip	__dpu_encoder_virt_enable_helper
.subsections_via_symbols
