	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_cmd_encoder_set_split_display ## -- Begin function mdp5_cmd_encoder_set_split_display
	.p2align	4, 0x90
_mdp5_cmd_encoder_set_split_display:    ## @mdp5_cmd_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_to_mdp5_encoder
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	testq	%r15, %r15
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_get_kms
	movq	%rax, %r15
	movq	(%r14), %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$2, %eax
	jne	LBB0_2
## %bb.6:
	movq	_MDP5_SPLIT_DPL_UPPER_INTF1_SW_TRG_MUX@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_4:
	movq	_MDP5_SPLIT_DPL_UPPER_INTF2_SW_TRG_MUX@GOTPCREL(%rip), %rax
LBB0_7:
	movq	_MDP5_SPLIT_DPL_UPPER_SMART_PANEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	(%r15), %r14
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	movq	_REG_MDP5_SPLIT_DPL_UPPER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mdp5_write
	movq	_REG_MDP5_SPLIT_DPL_LOWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDP5_SPLIT_DPL_LOWER_SMART_PANEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mdp5_write
	movq	_REG_MDP5_SPLIT_DPL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_mdp5_write
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MDP5_SPLIT_DPL_UPPER_INTF2_SW_TRG_MUX,4,2 ## @MDP5_SPLIT_DPL_UPPER_INTF2_SW_TRG_MUX
	.comm	_MDP5_SPLIT_DPL_UPPER_INTF1_SW_TRG_MUX,4,2 ## @MDP5_SPLIT_DPL_UPPER_INTF1_SW_TRG_MUX
	.comm	_MDP5_SPLIT_DPL_UPPER_SMART_PANEL,4,2 ## @MDP5_SPLIT_DPL_UPPER_SMART_PANEL
	.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	_MDP5_SPLIT_DPL_LOWER_SMART_PANEL,4,2 ## @MDP5_SPLIT_DPL_LOWER_SMART_PANEL
	.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_cmd_encoder_set_split_display ; -- Begin function mdp5_cmd_encoder_set_split_display
	.p2align	2
_mdp5_cmd_encoder_set_split_display:    ; @mdp5_cmd_encoder_set_split_display
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	bl	_to_mdp5_encoder
	cbz	x19, LBB0_5
; %bb.1:
	cbz	x21, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_get_kms
	mov	x19, x0
	ldr	x8, [x20]
	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_UPPER_INTF1_SW_TRG_MUX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDP5_SPLIT_DPL_UPPER_INTF1_SW_TRG_MUX@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_UPPER_INTF2_SW_TRG_MUX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDP5_SPLIT_DPL_UPPER_INTF2_SW_TRG_MUX@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _MDP5_SPLIT_DPL_UPPER_SMART_PANEL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MDP5_SPLIT_DPL_UPPER_SMART_PANEL@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w20, w9, w8
	ldr	x21, [x19]
	mov	x0, x21
	bl	_pm_runtime_get_sync
Lloh10:
	adrp	x8, _REG_MDP5_SPLIT_DPL_UPPER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REG_MDP5_SPLIT_DPL_UPPER@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_mdp5_write
Lloh13:
	adrp	x8, _REG_MDP5_SPLIT_DPL_LOWER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _REG_MDP5_SPLIT_DPL_LOWER@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _MDP5_SPLIT_DPL_LOWER_SMART_PANEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MDP5_SPLIT_DPL_LOWER_SMART_PANEL@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mdp5_write
Lloh19:
	adrp	x8, _REG_MDP5_SPLIT_DPL_EN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _REG_MDP5_SPLIT_DPL_EN@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_mdp5_write
	mov	x0, x21
	bl	_pm_runtime_put_sync
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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_UPPER_INTF2_SW_TRG_MUX,4,2 ; @MDP5_SPLIT_DPL_UPPER_INTF2_SW_TRG_MUX
	.comm	_MDP5_SPLIT_DPL_UPPER_INTF1_SW_TRG_MUX,4,2 ; @MDP5_SPLIT_DPL_UPPER_INTF1_SW_TRG_MUX
	.comm	_MDP5_SPLIT_DPL_UPPER_SMART_PANEL,4,2 ; @MDP5_SPLIT_DPL_UPPER_SMART_PANEL
	.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	_MDP5_SPLIT_DPL_LOWER_SMART_PANEL,4,2 ; @MDP5_SPLIT_DPL_LOWER_SMART_PANEL
	.comm	_REG_MDP5_SPLIT_DPL_EN,4,2      ; @REG_MDP5_SPLIT_DPL_EN
.subsections_via_symbols
