	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_vid_encoder_set_split_display ## -- Begin function mdp5_vid_encoder_set_split_display
	.p2align	4, 0x90
_mdp5_vid_encoder_set_split_display:    ## @mdp5_vid_encoder_set_split_display
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_to_mdp5_encoder
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_to_mdp5_encoder
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_get_kms
	movq	%rax, %r12
	movq	8(%r15), %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$2, %eax
	jne	LBB0_2
## %bb.6:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_MDP5_SPLIT_DPL_LOWER_INTF1_TG_SYNC@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_MDP5_SPLIT_DPL_LOWER_INTF2_TG_SYNC@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r14d
	movq	(%r12), %r13
	movq	%r13, %rdi
	callq	_pm_runtime_get_sync
	movq	_REG_MDP5_SPLIT_DPL_UPPER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_mdp5_write
	movq	_REG_MDP5_SPLIT_DPL_LOWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_mdp5_write
	movq	_REG_MDP5_SPLIT_DPL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_mdp5_write
	movl	(%r15), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_mdp5_ctl_pair
	movq	%r13, %rdi
	callq	_pm_runtime_put_sync
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MDP5_SPLIT_DPL_LOWER_INTF2_TG_SYNC,4,2 ## @MDP5_SPLIT_DPL_LOWER_INTF2_TG_SYNC
	.comm	_MDP5_SPLIT_DPL_LOWER_INTF1_TG_SYNC,4,2 ## @MDP5_SPLIT_DPL_LOWER_INTF1_TG_SYNC
	.comm	_REG_MDP5_SPLIT_DPL_UPPER,4,2   ## @REG_MDP5_SPLIT_DPL_UPPER
	.comm	_REG_MDP5_SPLIT_DPL_LOWER,4,2   ## @REG_MDP5_SPLIT_DPL_LOWER
	.comm	_REG_MDP5_SPLIT_DPL_EN,4,2      ## @REG_MDP5_SPLIT_DPL_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_vid_encoder_set_split_display ; -- Begin function mdp5_vid_encoder_set_split_display
	.p2align	2
_mdp5_vid_encoder_set_split_display:    ; @mdp5_vid_encoder_set_split_display
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x21, x0
	bl	_to_mdp5_encoder
	mov	x19, x0
	mov	x0, x22
	bl	_to_mdp5_encoder
	cbz	x21, LBB0_5
; %bb.1:
	cbz	x22, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x21
	bl	_get_kms
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _MDP5_SPLIT_DPL_LOWER_INTF1_TG_SYNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDP5_SPLIT_DPL_LOWER_INTF1_TG_SYNC@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _MDP5_SPLIT_DPL_LOWER_INTF2_TG_SYNC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDP5_SPLIT_DPL_LOWER_INTF2_TG_SYNC@GOTPAGEOFF]
LBB0_7:
	ldr	w22, [x8]
	ldr	x23, [x21]
	mov	x0, x23
	bl	_pm_runtime_get_sync
Lloh7:
	adrp	x8, _REG_MDP5_SPLIT_DPL_UPPER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REG_MDP5_SPLIT_DPL_UPPER@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_mdp5_write
Lloh10:
	adrp	x8, _REG_MDP5_SPLIT_DPL_LOWER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REG_MDP5_SPLIT_DPL_LOWER@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	bl	_mdp5_write
Lloh13:
	adrp	x8, _REG_MDP5_SPLIT_DPL_EN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _REG_MDP5_SPLIT_DPL_EN@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_mdp5_write
	ldr	w0, [x19]
	ldr	w1, [x20]
	mov	w2, #1
	bl	_mdp5_ctl_pair
	mov	x0, x23
	bl	_pm_runtime_put_sync
	mov	w0, #0
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MDP5_SPLIT_DPL_LOWER_INTF2_TG_SYNC,4,2 ; @MDP5_SPLIT_DPL_LOWER_INTF2_TG_SYNC
	.comm	_MDP5_SPLIT_DPL_LOWER_INTF1_TG_SYNC,4,2 ; @MDP5_SPLIT_DPL_LOWER_INTF1_TG_SYNC
	.comm	_REG_MDP5_SPLIT_DPL_UPPER,4,2   ; @REG_MDP5_SPLIT_DPL_UPPER
	.comm	_REG_MDP5_SPLIT_DPL_LOWER,4,2   ; @REG_MDP5_SPLIT_DPL_LOWER
	.comm	_REG_MDP5_SPLIT_DPL_EN,4,2      ; @REG_MDP5_SPLIT_DPL_EN
.subsections_via_symbols
