	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_encoder_helper_split_config ## -- Begin function dpu_encoder_helper_split_config
	.p2align	4, 0x90
_dpu_encoder_helper_split_config:       ## @dpu_encoder_helper_split_config
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	$0, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	cmpq	$0, 24(%rbx)
	je	LBB0_13
## %bb.2:
	movl	32(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.3:
	movl	%esi, %r12d
	callq	_to_dpu_encoder_virt
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_DRM_MODE_ENCODER_DSI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.4:
	movq	24(%rbx), %r14
	movq	(%rbx), %rax
	movq	_ENC_ROLE_SOLO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.5:
	movl	$1, -64(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -52(%rbp)
	movl	%r12d, -60(%rbp)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	$1, -56(%rbp)
LBB0_8:
	movq	(%rbx), %rax
	movq	_ENC_ROLE_MASTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_DPU_DEBUG_ENC
LBB0_10:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	*%rax
LBB0_12:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%esi, %esi
	testq	%rbx, %rbx
	setne	%sil
	leaq	L_.str(%rip), %rdi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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"

	.comm	_DRM_MODE_ENCODER_DSI,8,3       ## @DRM_MODE_ENCODER_DSI
	.comm	_ENC_ROLE_SOLO,8,3              ## @ENC_ROLE_SOLO
	.comm	_ENC_ROLE_MASTER,8,3            ## @ENC_ROLE_MASTER
L_.str.1:                               ## @.str.1
	.asciz	"enable %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_encoder_helper_split_config ; -- Begin function dpu_encoder_helper_split_config
	.p2align	2
_dpu_encoder_helper_split_config:       ; @dpu_encoder_helper_split_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x0
	stp	xzr, xzr, [sp, #8]
	str	wzr, [sp, #24]
	cbz	x0, LBB0_13
; %bb.1:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_13
; %bb.2:
	ldr	w0, [x20, #32]
	cbz	w0, LBB0_13
; %bb.3:
	mov	x22, x1
	bl	_to_dpu_encoder_virt
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DRM_MODE_ENCODER_DSI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_ENCODER_DSI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.4:
	ldr	x19, [x20, #24]
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _ENC_ROLE_SOLO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENC_ROLE_SOLO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.5:
	mov	x21, x0
	mov	w8, #1
	ldr	w9, [x20, #16]
	str	w9, [sp, #20]
	stp	w8, w22, [sp, #8]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x0, x20
	blr	x8
	cbz	x0, LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [sp, #16]
LBB0_8:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _ENC_ROLE_MASTER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENC_ROLE_MASTER@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.9:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w2, #1
	bl	_DPU_DEBUG_ENC
LBB0_10:
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.11:
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
LBB0_12:
	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
	add	sp, sp, #80
	ret
LBB0_13:
	cmp	x20, #0
	cset	w1, ne
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	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
	add	sp, sp, #80
	b	_DPU_ERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arg(s), encoder %d\n"

	.comm	_DRM_MODE_ENCODER_DSI,8,3       ; @DRM_MODE_ENCODER_DSI
	.comm	_ENC_ROLE_SOLO,8,3              ; @ENC_ROLE_SOLO
	.comm	_ENC_ROLE_MASTER,8,3            ; @ENC_ROLE_MASTER
l_.str.1:                               ; @.str.1
	.asciz	"enable %d\n"

.subsections_via_symbols
