	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdp5_hwpipe_mode_set
_mdp5_hwpipe_mode_set:                  ## @mdp5_hwpipe_mode_set
	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -72(%rbp)                 ## 4-byte Spill
	movq	%r8, -136(%rbp)                 ## 8-byte Spill
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	movl	120(%rbp), %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	112(%rbp), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	24(%rbp), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	40(%rbp), %eax
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movq	_MDP_PIPE_CAP_SW_PIX_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rsi), %eax
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movl	32(%rbp), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movl	56(%rbp), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	48(%rbp), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	72(%rbp), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	64(%rbp), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	104(%rbp), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	96(%rbp), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	88(%rbp), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	80(%rbp), %r14d
	movq	%rsi, -152(%rbp)                ## 8-byte Spill
	movl	(%rsi), %r13d
	movq	%rdx, -160(%rbp)                ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_msm_framebuffer_format
	movl	%eax, %edi
	callq	_to_mdp_format
	movq	%rax, %r12
	movl	%r13d, %edi
	callq	_REG_MDP5_PIPE_SRC_IMG_SIZE
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_MDP5_PIPE_SRC_IMG_SIZE_WIDTH
	movl	%eax, %ebx
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %r14d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	callq	_MDP5_PIPE_SRC_IMG_SIZE_HEIGHT
	orl	%eax, %ebx
	movq	-128(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_mdp5_write
	movl	%r14d, %edi
	callq	_REG_MDP5_PIPE_SRC_SIZE
	movl	%eax, %r14d
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_MDP5_PIPE_SRC_SIZE_WIDTH
	movl	%eax, %ebx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_MDP5_PIPE_SRC_SIZE_HEIGHT
	orl	%eax, %ebx
	movq	%r13, %rdi
	movq	%r13, %r15
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_mdp5_write
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	callq	_REG_MDP5_PIPE_SRC_XY
	movl	%eax, %r14d
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	callq	_MDP5_PIPE_SRC_XY_X
	movl	%eax, %ebx
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	callq	_MDP5_PIPE_SRC_XY_Y
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_mdp5_write
	movl	%r13d, %edi
	callq	_REG_MDP5_PIPE_OUT_SIZE
	movl	%eax, %r14d
	movl	-88(%rbp), %edi                 ## 4-byte Reload
	callq	_MDP5_PIPE_OUT_SIZE_WIDTH
	movl	%eax, %ebx
	movl	-92(%rbp), %edi                 ## 4-byte Reload
	callq	_MDP5_PIPE_OUT_SIZE_HEIGHT
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_mdp5_write
	movl	%r13d, %edi
	callq	_REG_MDP5_PIPE_OUT_XY
	movl	%eax, %r14d
	movl	-96(%rbp), %edi                 ## 4-byte Reload
	callq	_MDP5_PIPE_OUT_XY_X
	movl	%eax, %ebx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_MDP5_PIPE_OUT_XY_Y
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_mdp5_write
	movl	%r13d, %edi
	callq	_REG_MDP5_PIPE_SRC_FORMAT
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	52(%r12), %edi
	callq	_MDP5_PIPE_SRC_FORMAT_A_BPC
	movl	%eax, %r14d
	movl	48(%r12), %edi
	callq	_MDP5_PIPE_SRC_FORMAT_R_BPC
	orl	%eax, %r14d
	movl	44(%r12), %edi
	callq	_MDP5_PIPE_SRC_FORMAT_G_BPC
	movl	%eax, %ebx
	movl	40(%r12), %edi
	callq	_MDP5_PIPE_SRC_FORMAT_B_BPC
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movl	(%r12), %edi
	movq	_MDP5_PIPE_SRC_FORMAT_ALPHA_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_COND
	movl	%eax, %r14d
	movq	32(%r12), %rdi
	decq	%rdi
	callq	_MDP5_PIPE_SRC_FORMAT_CPP
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movq	24(%r12), %rdi
	decq	%rdi
	callq	_MDP5_PIPE_SRC_FORMAT_UNPACK_COUNT
	movl	%eax, %r14d
	movl	4(%r12), %edi
	movq	_MDP5_PIPE_SRC_FORMAT_UNPACK_TIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_COND
	orl	%eax, %r14d
	orl	%ebx, %r14d
	movl	20(%r12), %edi
	callq	_MDP5_PIPE_SRC_FORMAT_FETCH_TYPE
	movl	%eax, %ebx
	movl	16(%r12), %edi
	callq	_MDP5_PIPE_SRC_FORMAT_CHROMA_SAMP
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movq	%r15, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_mdp5_write
	movl	%r13d, %edi
	callq	_REG_MDP5_PIPE_SRC_UNPACK
	movl	%eax, %r14d
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_MDP5_PIPE_SRC_UNPACK_ELEM0
	movl	%eax, %r15d
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	callq	_MDP5_PIPE_SRC_UNPACK_ELEM1
	orl	%eax, %r15d
	movq	8(%r12), %rax
	movl	8(%rax), %edi
	callq	_MDP5_PIPE_SRC_UNPACK_ELEM2
	movl	%eax, %ebx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movl	12(%rax), %edi
	callq	_MDP5_PIPE_SRC_UNPACK_ELEM3
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	-128(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_mdp5_write
	movl	%r13d, %edi
	callq	_REG_MDP5_PIPE_SRC_OP_MODE
	movl	-100(%rbp), %ecx                ## 4-byte Reload
	movl	%eax, %r14d
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movq	_MDP5_PIPE_SRC_OP_MODE_FLIP_LR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	movl	-108(%rbp), %r12d               ## 4-byte Reload
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	movq	_MDP5_PIPE_SRC_OP_MODE_FLIP_UD@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_4:
	orl	%ecx, %r12d
	movq	_MDP5_PIPE_SRC_OP_MODE_SW_PIX_EXT_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-104(%rbp), %edi                ## 4-byte Reload
	callq	_COND
	movl	%eax, %ebx
	movq	_BWC_LOSSLESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MDP5_PIPE_SRC_OP_MODE_BWC
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_mdp5_write
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_REG_MDP5_PIPE_SRC_ADDR_SW_STATUS
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_mdp5_write
	movq	-152(%rbp), %r12                ## 8-byte Reload
	movl	4(%r12), %eax
	movq	_MDP_PIPE_CAP_SW_PIX_EXT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movl	12(%rcx), %r8d
	movl	8(%rcx), %r9d
	movl	(%rcx), %eax
	movl	4(%rcx), %ebx
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	pushq	%rax
	pushq	%rbx
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	callq	_mdp5_write_pixel_ext
	addq	$32, %rsp
	movl	4(%r12), %eax
LBB0_6:
	movq	_MDP_PIPE_CAP_SCALE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	callq	_REG_MDP5_PIPE_SCALE_PHASE_STEP_X
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %rcx
	movq	_COMP_0@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movl	(%rcx,%rdx,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mdp5_write
	movl	%r13d, %edi
	callq	_REG_MDP5_PIPE_SCALE_PHASE_STEP_Y
	movq	8(%rbx), %rcx
	movq	(%r14), %rdx
	movl	(%rcx,%rdx,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mdp5_write
	movl	%r13d, %edi
	callq	_REG_MDP5_PIPE_SCALE_CR_PHASE_STEP_X
	movq	(%rbx), %rcx
	movq	_COMP_1_2@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movl	(%rcx,%rdx,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mdp5_write
	movl	%r13d, %edi
	callq	_REG_MDP5_PIPE_SCALE_CR_PHASE_STEP_Y
	movq	8(%rbx), %rcx
	movq	(%r14), %rdx
	movl	(%rcx,%rdx,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mdp5_write
	movl	%r13d, %edi
	callq	_REG_MDP5_PIPE_DECIMATION
	movl	%eax, %r14d
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_MDP5_PIPE_DECIMATION_VERT
	movl	%eax, %ebx
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_MDP5_PIPE_DECIMATION_HORZ
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_mdp5_write
	movl	%r13d, %edi
	callq	_REG_MDP5_PIPE_SCALE_CONFIG
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_mdp5_write
	movl	4(%r12), %eax
LBB0_8:
	movq	_MDP_PIPE_CAP_CSC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_MDP_FORMAT_IS_YUV
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_CSC_YUV2RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdp_get_default_csc_cfg
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_csc_enable
	jmp	LBB0_12
LBB0_11:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_csc_disable
LBB0_12:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-160(%rbp), %rdx                ## 8-byte Reload
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_scanout_locked             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MDP_PIPE_CAP_SW_PIX_EXT,4,2    ## @MDP_PIPE_CAP_SW_PIX_EXT
	.comm	_MDP5_PIPE_SRC_FORMAT_ALPHA_ENABLE,4,2 ## @MDP5_PIPE_SRC_FORMAT_ALPHA_ENABLE
	.comm	_MDP5_PIPE_SRC_FORMAT_UNPACK_TIGHT,4,2 ## @MDP5_PIPE_SRC_FORMAT_UNPACK_TIGHT
	.comm	_MDP5_PIPE_SRC_OP_MODE_FLIP_LR,4,2 ## @MDP5_PIPE_SRC_OP_MODE_FLIP_LR
	.comm	_MDP5_PIPE_SRC_OP_MODE_FLIP_UD,4,2 ## @MDP5_PIPE_SRC_OP_MODE_FLIP_UD
	.comm	_MDP5_PIPE_SRC_OP_MODE_SW_PIX_EXT_OVERRIDE,4,2 ## @MDP5_PIPE_SRC_OP_MODE_SW_PIX_EXT_OVERRIDE
	.comm	_BWC_LOSSLESS,4,2               ## @BWC_LOSSLESS
	.comm	_MDP_PIPE_CAP_SCALE,4,2         ## @MDP_PIPE_CAP_SCALE
	.comm	_COMP_0,8,3                     ## @COMP_0
	.comm	_COMP_1_2,8,3                   ## @COMP_1_2
	.comm	_MDP_PIPE_CAP_CSC,4,2           ## @MDP_PIPE_CAP_CSC
	.comm	_CSC_YUV2RGB,4,2                ## @CSC_YUV2RGB
	.no_dead_strip	_mdp5_hwpipe_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdp5_hwpipe_mode_set
_mdp5_hwpipe_mode_set:                  ; @mdp5_hwpipe_mode_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	w7, w6, [sp, #44]               ; 8-byte Folded Spill
	str	w5, [sp, #52]                   ; 4-byte Folded Spill
	str	x4, [sp, #16]                   ; 8-byte Folded Spill
	str	x3, [sp, #32]                   ; 8-byte Folded Spill
	mov	x28, x1
	mov	x20, x0
	ldp	w27, w22, [x29, #56]
	ldr	w8, [x29, #20]
	stur	w8, [x29, #-84]                 ; 4-byte Folded Spill
	ldr	w8, [x29, #16]
	str	w8, [sp, #88]                   ; 4-byte Folded Spill
	ldr	w8, [x29, #28]
	str	w8, [sp, #80]                   ; 4-byte Folded Spill
	ldr	w8, [x29, #24]
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
	ldr	w8, [x29, #36]
	str	w8, [sp, #72]                   ; 4-byte Folded Spill
	ldr	w8, [x29, #32]
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
	ldr	w8, [x29, #52]
	str	w8, [sp, #64]                   ; 4-byte Folded Spill
	ldp	w23, w25, [x29, #44]
	ldr	w19, [x29, #40]
	ldp	w21, w8, [x1]
Lloh0:
	adrp	x9, _MDP_PIPE_CAP_SW_PIX_EXT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MDP_PIPE_CAP_SW_PIX_EXT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [sp, #84]                   ; 4-byte Folded Spill
	str	x2, [sp, #56]                   ; 8-byte Folded Spill
	mov	x0, x2
	bl	_msm_framebuffer_format
	bl	_to_mdp_format
	mov	x24, x0
	mov	x0, x21
	bl	_REG_MDP5_PIPE_SRC_IMG_SIZE
	mov	x26, x0
	mov	x0, x19
	bl	_MDP5_PIPE_SRC_IMG_SIZE_WIDTH
	mov	x19, x0
	mov	x0, x23
	bl	_MDP5_PIPE_SRC_IMG_SIZE_HEIGHT
	orr	w2, w0, w19
	mov	x0, x20
	mov	x1, x26
	mov	x26, x22
	bl	_mdp5_write
	mov	x0, x21
	bl	_REG_MDP5_PIPE_SRC_SIZE
	mov	x19, x0
	str	w27, [sp, #28]                  ; 4-byte Folded Spill
	mov	x0, x27
	bl	_MDP5_PIPE_SRC_SIZE_WIDTH
	mov	x23, x0
	mov	x0, x22
	bl	_MDP5_PIPE_SRC_SIZE_HEIGHT
	orr	w2, w0, w23
	mov	x0, x20
	mov	x1, x19
	bl	_mdp5_write
	mov	x0, x21
	bl	_REG_MDP5_PIPE_SRC_XY
	mov	x19, x0
	mov	x0, x25
	bl	_MDP5_PIPE_SRC_XY_X
	mov	x23, x0
	ldr	w0, [sp, #64]                   ; 4-byte Folded Reload
	bl	_MDP5_PIPE_SRC_XY_Y
	orr	w2, w0, w23
	mov	x0, x20
	mov	x1, x19
	bl	_mdp5_write
	mov	x0, x21
	bl	_REG_MDP5_PIPE_OUT_SIZE
	mov	x19, x0
	ldr	w0, [sp, #68]                   ; 4-byte Folded Reload
	bl	_MDP5_PIPE_OUT_SIZE_WIDTH
	mov	x22, x0
	ldr	w0, [sp, #72]                   ; 4-byte Folded Reload
	bl	_MDP5_PIPE_OUT_SIZE_HEIGHT
	orr	w2, w0, w22
	mov	x0, x20
	mov	x1, x19
	bl	_mdp5_write
	mov	x0, x21
	bl	_REG_MDP5_PIPE_OUT_XY
	mov	x19, x0
	ldr	w0, [sp, #76]                   ; 4-byte Folded Reload
	bl	_MDP5_PIPE_OUT_XY_X
	mov	x22, x0
	ldr	w0, [sp, #80]                   ; 4-byte Folded Reload
	bl	_MDP5_PIPE_OUT_XY_Y
	orr	w2, w0, w22
	mov	x0, x20
	mov	x1, x19
	bl	_mdp5_write
	mov	x0, x21
	bl	_REG_MDP5_PIPE_SRC_FORMAT
	mov	x19, x0
	ldr	w0, [x24, #52]
	bl	_MDP5_PIPE_SRC_FORMAT_A_BPC
	mov	x22, x0
	ldr	w0, [x24, #48]
	bl	_MDP5_PIPE_SRC_FORMAT_R_BPC
	orr	w22, w0, w22
	ldr	w0, [x24, #44]
	bl	_MDP5_PIPE_SRC_FORMAT_G_BPC
	orr	w22, w22, w0
	ldr	w0, [x24, #40]
	bl	_MDP5_PIPE_SRC_FORMAT_B_BPC
	orr	w22, w22, w0
	ldr	w0, [x24]
Lloh3:
	adrp	x8, _MDP5_PIPE_SRC_FORMAT_ALPHA_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDP5_PIPE_SRC_FORMAT_ALPHA_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_COND
	orr	w22, w22, w0
	ldr	x8, [x24, #32]
	sub	x0, x8, #1
	bl	_MDP5_PIPE_SRC_FORMAT_CPP
	orr	w22, w22, w0
	ldr	x8, [x24, #24]
	sub	x0, x8, #1
	bl	_MDP5_PIPE_SRC_FORMAT_UNPACK_COUNT
	orr	w22, w22, w0
	ldr	w0, [x24, #4]
Lloh6:
	adrp	x8, _MDP5_PIPE_SRC_FORMAT_UNPACK_TIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDP5_PIPE_SRC_FORMAT_UNPACK_TIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_COND
	orr	w22, w22, w0
	ldr	w0, [x24, #20]
	bl	_MDP5_PIPE_SRC_FORMAT_FETCH_TYPE
	orr	w22, w22, w0
	ldr	w0, [x24, #16]
	bl	_MDP5_PIPE_SRC_FORMAT_CHROMA_SAMP
	orr	w2, w22, w0
	mov	x0, x20
	mov	x1, x19
	bl	_mdp5_write
	mov	x0, x21
	bl	_REG_MDP5_PIPE_SRC_UNPACK
	mov	x19, x0
	ldr	x8, [x24, #8]
	ldr	w0, [x8]
	bl	_MDP5_PIPE_SRC_UNPACK_ELEM0
	mov	x22, x0
	ldr	x8, [x24, #8]
	ldr	w0, [x8, #4]
	bl	_MDP5_PIPE_SRC_UNPACK_ELEM1
	orr	w22, w0, w22
	ldr	x8, [x24, #8]
	ldr	w0, [x8, #8]
	bl	_MDP5_PIPE_SRC_UNPACK_ELEM2
	orr	w22, w22, w0
	ldr	x8, [x24, #8]
	ldr	w0, [x8, #12]
	bl	_MDP5_PIPE_SRC_UNPACK_ELEM3
	orr	w2, w22, w0
	mov	x0, x20
	mov	x1, x19
	bl	_mdp5_write
	mov	x0, x21
	bl	_REG_MDP5_PIPE_SRC_OP_MODE
	mov	x19, x0
Lloh9:
	adrp	x8, _MDP5_PIPE_SRC_OP_MODE_FLIP_LR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MDP5_PIPE_SRC_OP_MODE_FLIP_LR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldp	w0, w9, [sp, #84]               ; 8-byte Folded Reload
	cmp	w9, #0
	csel	w8, wzr, w8, eq
Lloh12:
	adrp	x9, _MDP5_PIPE_SRC_OP_MODE_FLIP_UD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MDP5_PIPE_SRC_OP_MODE_FLIP_UD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ldur	w10, [x29, #-84]                ; 4-byte Folded Reload
	cmp	w10, #0
	csel	w9, wzr, w9, eq
	orr	w22, w9, w8
Lloh15:
	adrp	x8, _MDP5_PIPE_SRC_OP_MODE_SW_PIX_EXT_OVERRIDE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MDP5_PIPE_SRC_OP_MODE_SW_PIX_EXT_OVERRIDE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_COND
	orr	w22, w22, w0
Lloh18:
	adrp	x8, _BWC_LOSSLESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BWC_LOSSLESS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_MDP5_PIPE_SRC_OP_MODE_BWC
	orr	w2, w22, w0
	mov	x0, x20
	mov	x1, x19
	bl	_mdp5_write
	mov	x0, x21
	bl	_REG_MDP5_PIPE_SRC_ADDR_SW_STATUS
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_mdp5_write
	ldr	w8, [x28, #4]
Lloh21:
	adrp	x9, _MDP_PIPE_CAP_SW_PIX_EXT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MDP_PIPE_CAP_SW_PIX_EXT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldp	w5, w4, [x8, #8]
	ldp	w8, w7, [x8]
	str	w8, [sp]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	ldr	w3, [sp, #28]                   ; 4-byte Folded Reload
	mov	x6, x26
	bl	_mdp5_write_pixel_ext
	ldr	w8, [x28, #4]
LBB0_2:
	ldr	x23, [sp, #56]                  ; 8-byte Folded Reload
Lloh24:
	adrp	x9, _MDP_PIPE_CAP_SCALE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MDP_PIPE_CAP_SCALE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_REG_MDP5_PIPE_SCALE_PHASE_STEP_X
	mov	x1, x0
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x8, [x22]
Lloh27:
	adrp	x19, _COMP_0@GOTPAGE
Lloh28:
	ldr	x19, [x19, _COMP_0@GOTPAGEOFF]
	ldr	x9, [x19]
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_mdp5_write
	mov	x0, x21
	bl	_REG_MDP5_PIPE_SCALE_PHASE_STEP_Y
	mov	x1, x0
	ldr	x8, [x22, #8]
	ldr	x9, [x19]
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_mdp5_write
	mov	x0, x21
	bl	_REG_MDP5_PIPE_SCALE_CR_PHASE_STEP_X
	mov	x1, x0
	ldr	x8, [x22]
Lloh29:
	adrp	x19, _COMP_1_2@GOTPAGE
Lloh30:
	ldr	x19, [x19, _COMP_1_2@GOTPAGEOFF]
	ldr	x9, [x19]
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_mdp5_write
	mov	x0, x21
	bl	_REG_MDP5_PIPE_SCALE_CR_PHASE_STEP_Y
	mov	x1, x0
	ldr	x8, [x22, #8]
	ldr	x9, [x19]
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_mdp5_write
	mov	x0, x21
	bl	_REG_MDP5_PIPE_DECIMATION
	mov	x19, x0
	ldr	w0, [sp, #44]                   ; 4-byte Folded Reload
	bl	_MDP5_PIPE_DECIMATION_VERT
	mov	x22, x0
	ldr	w0, [sp, #48]                   ; 4-byte Folded Reload
	bl	_MDP5_PIPE_DECIMATION_HORZ
	orr	w2, w0, w22
	mov	x0, x20
	mov	x1, x19
	bl	_mdp5_write
	mov	x0, x21
	bl	_REG_MDP5_PIPE_SCALE_CONFIG
	mov	x1, x0
	mov	x0, x20
	ldr	w2, [sp, #52]                   ; 4-byte Folded Reload
	bl	_mdp5_write
	ldr	w8, [x28, #4]
LBB0_4:
Lloh31:
	adrp	x9, _MDP_PIPE_CAP_CSC@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MDP_PIPE_CAP_CSC@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	mov	x0, x24
	bl	_MDP_FORMAT_IS_YUV
	cbz	x0, LBB0_7
; %bb.6:
Lloh34:
	adrp	x8, _CSC_YUV2RGB@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CSC_YUV2RGB@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_mdp_get_default_csc_cfg
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_csc_enable
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	mov	x1, x21
	bl	_csc_disable
LBB0_8:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_set_scanout_locked
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_MDP_PIPE_CAP_SW_PIX_EXT,4,2    ; @MDP_PIPE_CAP_SW_PIX_EXT
	.comm	_MDP5_PIPE_SRC_FORMAT_ALPHA_ENABLE,4,2 ; @MDP5_PIPE_SRC_FORMAT_ALPHA_ENABLE
	.comm	_MDP5_PIPE_SRC_FORMAT_UNPACK_TIGHT,4,2 ; @MDP5_PIPE_SRC_FORMAT_UNPACK_TIGHT
	.comm	_MDP5_PIPE_SRC_OP_MODE_FLIP_LR,4,2 ; @MDP5_PIPE_SRC_OP_MODE_FLIP_LR
	.comm	_MDP5_PIPE_SRC_OP_MODE_FLIP_UD,4,2 ; @MDP5_PIPE_SRC_OP_MODE_FLIP_UD
	.comm	_MDP5_PIPE_SRC_OP_MODE_SW_PIX_EXT_OVERRIDE,4,2 ; @MDP5_PIPE_SRC_OP_MODE_SW_PIX_EXT_OVERRIDE
	.comm	_BWC_LOSSLESS,4,2               ; @BWC_LOSSLESS
	.comm	_MDP_PIPE_CAP_SCALE,4,2         ; @MDP_PIPE_CAP_SCALE
	.comm	_COMP_0,8,3                     ; @COMP_0
	.comm	_COMP_1_2,8,3                   ; @COMP_1_2
	.comm	_MDP_PIPE_CAP_CSC,4,2           ; @MDP_PIPE_CAP_CSC
	.comm	_CSC_YUV2RGB,4,2                ; @CSC_YUV2RGB
	.no_dead_strip	_mdp5_hwpipe_mode_set
.subsections_via_symbols
