	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_encoder_phys_cmd_enable_helper
_dpu_encoder_phys_cmd_enable_helper:    ## @dpu_encoder_phys_cmd_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, -20(%rbp)
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.2:
	cmpl	$0, 16(%rbx)
	je	LBB0_6
## %bb.3:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_dpu_encoder_helper_split_config
	movq	%rbx, %rdi
	callq	__dpu_encoder_phys_cmd_pingpong_config
	movq	%rbx, %rdi
	callq	_dpu_encoder_phys_cmd_is_master
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %r14
	movl	(%rbx), %edx
	leaq	-20(%rbp), %rsi
	movq	%r14, %rdi
	callq	*8(%r14)
	movl	-20(%rbp), %esi
	movq	%r14, %rdi
	callq	*(%r14)
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	xorl	%esi, %esi
	testq	%rbx, %rbx
	setne	%sil
	leaq	L_.str(%rip), %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid arg(s), encoder %d\n"

	.no_dead_strip	_dpu_encoder_phys_cmd_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_phys_cmd_enable_helper
_dpu_encoder_phys_cmd_enable_helper:    ; @dpu_encoder_phys_cmd_enable_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	wzr, [sp, #12]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_dpu_encoder_helper_split_config
	mov	x0, x19
	bl	__dpu_encoder_phys_cmd_pingpong_config
	mov	x0, x19
	bl	_dpu_encoder_phys_cmd_is_master
	cbz	w0, LBB0_5
; %bb.4:
	ldr	x20, [x19, #8]
	ldr	x8, [x20, #8]
	ldr	w2, [x19]
	add	x1, sp, #12
	mov	x0, x20
	blr	x8
	ldr	x8, [x20]
	ldr	w1, [sp, #12]
	mov	x0, x20
	blr	x8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	cmp	x19, #0
	cset	w1, ne
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_DPU_ERROR
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arg(s), encoder %d\n"

	.no_dead_strip	_dpu_encoder_phys_cmd_enable_helper
.subsections_via_symbols
