	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_hw_setup_split_pipe
_dpu_hw_setup_split_pipe:               ## @dpu_hw_setup_split_pipe
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.2:
	movq	%rdi, %rbx
	cmpl	$0, (%r14)
	je	LBB0_3
## %bb.4:
	movq	8(%r14), %rax
	movq	_INTF_MODE_CMD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:
	movq	_FLD_SPLIT_DISPLAY_CMD@GOTPCREL(%rip), %rax
	movq	16(%r14), %rcx
	movq	_INTF_2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.7:
	movq	_FLD_INTF_1_SW_TRG_MUX@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_9:
	movq	16(%r14), %rax
	movq	_INTF_2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	_FLD_INTF_1_SW_TRG_MUX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_FLD_INTF_2_SW_TRG_MUX@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	_FLD_INTF_2_SW_TRG_MUX@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movl	%r15d, %r12d
	jmp	LBB0_13
LBB0_11:
	movq	_FLD_INTF_2_SW_TRG_MUX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_FLD_INTF_1_SW_TRG_MUX@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %r15d
LBB0_13:
	movq	_SSPP_SPARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, 24(%r14)
	setne	%dl
	movq	%rbx, %rdi
	callq	_DPU_REG_WRITE
	movq	_SPLIT_DISPLAY_LOWER_PIPE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_DPU_REG_WRITE
	movq	_SPLIT_DISPLAY_UPPER_PIPE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_DPU_REG_WRITE
	movq	_SPLIT_DISPLAY_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_REG_WRITE                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INTF_MODE_CMD,8,3              ## @INTF_MODE_CMD
	.comm	_FLD_SPLIT_DISPLAY_CMD,4,2      ## @FLD_SPLIT_DISPLAY_CMD
	.comm	_INTF_2,8,3                     ## @INTF_2
	.comm	_FLD_INTF_1_SW_TRG_MUX,4,2      ## @FLD_INTF_1_SW_TRG_MUX
	.comm	_FLD_INTF_2_SW_TRG_MUX,4,2      ## @FLD_INTF_2_SW_TRG_MUX
	.comm	_SSPP_SPARE,4,2                 ## @SSPP_SPARE
	.comm	_SPLIT_DISPLAY_LOWER_PIPE_CTRL,4,2 ## @SPLIT_DISPLAY_LOWER_PIPE_CTRL
	.comm	_SPLIT_DISPLAY_UPPER_PIPE_CTRL,4,2 ## @SPLIT_DISPLAY_UPPER_PIPE_CTRL
	.comm	_SPLIT_DISPLAY_EN,4,2           ## @SPLIT_DISPLAY_EN
	.no_dead_strip	_dpu_hw_setup_split_pipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_hw_setup_split_pipe
_dpu_hw_setup_split_pipe:               ; @dpu_hw_setup_split_pipe
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _INTF_MODE_CMD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTF_MODE_CMD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _FLD_SPLIT_DISPLAY_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLD_SPLIT_DISPLAY_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x20, #16]
Lloh6:
	adrp	x10, _INTF_2@GOTPAGE
Lloh7:
	ldr	x10, [x10, _INTF_2@GOTPAGEOFF]
Lloh8:
	adrp	x11, _FLD_INTF_1_SW_TRG_MUX@GOTPAGE
Lloh9:
	ldr	x11, [x11, _FLD_INTF_1_SW_TRG_MUX@GOTPAGEOFF]
Lloh10:
	adrp	x12, _FLD_INTF_2_SW_TRG_MUX@GOTPAGE
Lloh11:
	ldr	x12, [x12, _FLD_INTF_2_SW_TRG_MUX@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	orr	w21, w9, w8
	mov	x22, x21
	b	LBB0_11
LBB0_5:
	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
LBB0_6:
	mov	w21, #0
	mov	w22, #0
	b	LBB0_11
LBB0_7:
	ldr	x8, [x20, #16]
Lloh13:
	adrp	x9, _INTF_2@GOTPAGE
Lloh14:
	ldr	x9, [x9, _INTF_2@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh16:
	adrp	x8, _FLD_INTF_1_SW_TRG_MUX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FLD_INTF_1_SW_TRG_MUX@GOTPAGEOFF]
Lloh18:
	ldr	w22, [x8]
Lloh19:
	adrp	x8, _FLD_INTF_2_SW_TRG_MUX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FLD_INTF_2_SW_TRG_MUX@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh21:
	adrp	x8, _FLD_INTF_2_SW_TRG_MUX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FLD_INTF_2_SW_TRG_MUX@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
Lloh24:
	adrp	x8, _FLD_INTF_1_SW_TRG_MUX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FLD_INTF_1_SW_TRG_MUX@GOTPAGEOFF]
LBB0_10:
	ldr	w21, [x8]
LBB0_11:
Lloh26:
	adrp	x8, _SSPP_SPARE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SSPP_SPARE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	x8, [x20, #24]
	cmp	x8, #0
	cset	w2, ne
	mov	x0, x19
	bl	_DPU_REG_WRITE
Lloh29:
	adrp	x8, _SPLIT_DISPLAY_LOWER_PIPE_CTRL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SPLIT_DISPLAY_LOWER_PIPE_CTRL@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_DPU_REG_WRITE
Lloh32:
	adrp	x8, _SPLIT_DISPLAY_UPPER_PIPE_CTRL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SPLIT_DISPLAY_UPPER_PIPE_CTRL@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_DPU_REG_WRITE
Lloh35:
	adrp	x8, _SPLIT_DISPLAY_EN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SPLIT_DISPLAY_EN@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w8, [x20]
	and	w2, w8, #0x1
	mov	x0, x19
	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
	b	_DPU_REG_WRITE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_INTF_MODE_CMD,8,3              ; @INTF_MODE_CMD
	.comm	_FLD_SPLIT_DISPLAY_CMD,4,2      ; @FLD_SPLIT_DISPLAY_CMD
	.comm	_INTF_2,8,3                     ; @INTF_2
	.comm	_FLD_INTF_1_SW_TRG_MUX,4,2      ; @FLD_INTF_1_SW_TRG_MUX
	.comm	_FLD_INTF_2_SW_TRG_MUX,4,2      ; @FLD_INTF_2_SW_TRG_MUX
	.comm	_SSPP_SPARE,4,2                 ; @SSPP_SPARE
	.comm	_SPLIT_DISPLAY_LOWER_PIPE_CTRL,4,2 ; @SPLIT_DISPLAY_LOWER_PIPE_CTRL
	.comm	_SPLIT_DISPLAY_UPPER_PIPE_CTRL,4,2 ; @SPLIT_DISPLAY_UPPER_PIPE_CTRL
	.comm	_SPLIT_DISPLAY_EN,4,2           ; @SPLIT_DISPLAY_EN
	.no_dead_strip	_dpu_hw_setup_split_pipe
.subsections_via_symbols
