	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_plane_mode_set
_vc4_plane_mode_set:                    ## @vc4_plane_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
	movq	%rsi, %r15
	movl	(%rdi), %edi
	callq	_to_vc4_dev
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_to_vc4_plane_state
	movq	%rax, %rbx
	movq	24(%r15), %r13
	movslq	(%rax), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	8(%r13), %rax
	movl	32(%rax), %edi
	callq	_vc4_get_hvs_format
	movq	%rax, %r12
	movq	16(%r13), %rdi
	callq	_fourcc_mod_broadcom_mod
	movl	%eax, %ecx
	xorl	%eax, %eax
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%rbx)
	jne	LBB0_86
## %bb.1:
	movq	8(%r13), %rax
	movl	(%rax), %r14d
	movl	4(%rax), %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	8(%rax), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	(%r12), %ebx
	movq	%r15, %rdi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	callq	_vc4_plane_setup_clipping_and_scaling
	testl	%eax, %eax
	jne	LBB0_86
## %bb.2:
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -136(%rbp)                ## 8-byte Spill
	cmpl	$1, %r14d
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	jne	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	callq	_vc4_get_scl_field
	movl	%eax, %r13d
	movl	%eax, %r12d
	jmp	LBB0_5
LBB0_4:
	movl	$1, %esi
	callq	_vc4_get_scl_field
	movl	%eax, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vc4_get_scl_field
	movl	%eax, %r13d
LBB0_5:
	movq	_DRM_MODE_ROTATE_0@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_REFLECT_X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	16(%r15), %edi
	movq	_DRM_MODE_REFLECT_Y@GOTPCREL(%rip), %rbx
	orl	(%rbx), %esi
	callq	_drm_rotation_simplify
	movl	%eax, %edx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ecx
	movl	(%rbx), %r14d
	testl	%edx, %r14d
	je	LBB0_7
## %bb.6:
	movq	16(%rax), %rax
	movl	(%rax), %eax
	addl	%eax, %ecx
	decl	%ecx
LBB0_7:
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leal	-130(%rcx), %eax
	cmpl	$3, %eax
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	jae	LBB0_12
## %bb.8:
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rdi
	callq	_fourcc_mod_broadcom_param
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$132, %edx
	je	LBB0_23
## %bb.9:
	cmpl	$131, %edx
	je	LBB0_24
## %bb.10:
                                        ## implicit-def: $ecx
                                        ## implicit-def: $esi
	cmpl	$130, %edx
	jne	LBB0_25
## %bb.11:
	movq	_SCALER_CTL0_TILING_64B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$64, %esi
	jmp	LBB0_25
LBB0_12:
	cmpl	$129, %ecx
	je	LBB0_18
## %bb.13:
	cmpl	$128, %ecx
	jne	LBB0_22
## %bb.14:
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	_SCALER_CTL0_TILING_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_SCALER_SRC_PITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movq	-136(%rbp), %r11                ## 8-byte Reload
	testl	%r11d, %r11d
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%r12d, -104(%rbp)               ## 4-byte Spill
	movl	%r14d, -100(%rbp)               ## 4-byte Spill
	jle	LBB0_87
## %bb.15:
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movq	(%rbx), %r8
	movq	8(%rbx), %rax
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	24(%r14), %rdi
	movq	16(%rax), %r9
	xorl	%esi, %esi
	movl	$1, %r10d
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	-88(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	testq	%rsi, %rsi
	movl	%r13d, %ecx
	cmovel	%r10d, %ecx
	movl	%r12d, %ebx
	cmovel	%r10d, %ebx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ecx
	imull	(%r8,%rsi,4), %ecx
	addl	(%rdi,%rsi,4), %ecx
	movl	%ecx, (%rdi,%rsi,4)
	movl	32(%r14), %eax
	cltd
	idivl	%ebx
	imull	(%r9,%rsi,4), %eax
	addl	%ecx, %eax
	movl	%eax, (%rdi,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %r11
	jne	LBB0_16
## %bb.17:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movq	_DRM_MODE_REFLECT_X@GOTPCREL(%rip), %rcx
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_35
LBB0_18:
	movl	%r12d, -104(%rbp)               ## 4-byte Spill
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	andl	%edx, %r14d
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movq	16(%rcx), %rcx
	cmpl	$2, (%rcx)
	sete	%cl
	addb	$5, %cl
	movl	$-1, %edi
	shll	%cl, %edi
	notl	%edi
	movl	(%rax), %r12d
	sarl	$7, %r12d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %eax
	andl	%eax, %edi
	movl	%eax, %esi
	sarl	%cl, %esi
	movl	%r12d, %eax
	subl	%esi, %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %r15d
	shrl	$4, %r15d
	movl	%eax, %r13d
	andl	$63, %r13d
	testl	%r14d, %r14d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_20
## %bb.19:
	xorl	$63, %r13d
	movq	_SCALER_PITCH0_TILE_LINE_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_20:
	andl	$1, %r15d
	movq	_SCALER_CTL0_TILING_256B_OR_T@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movq	_SCALER_PITCH0_SINK_PIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_SCALER_PITCH0_TILE_Y_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_VC4_SET_FIELD
	movl	%eax, %ebx
	movq	_SCALER_PITCH0_TILE_WIDTH_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_VC4_SET_FIELD
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	_SCALER_PITCH0_TILE_WIDTH_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-88(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	callq	_VC4_SET_FIELD
	orl	%r14d, %ebx
	orl	-84(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	%eax, %ebx
	orl	-64(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	%edi, %edx
	andl	$-32, %edx
	shll	$7, %edx
	imull	%r12d, %edx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movl	%edi, %esi
	andl	$12, %esi
	shll	$6, %esi
	movl	%edi, %ecx
	shll	$4, %ecx
	andl	$48, %ecx
	orl	%esi, %ecx
	orl	%edx, %ecx
	addl	(%rax), %ecx
	movl	%ecx, (%rax)
	testb	$32, %dil
	jne	LBB0_32
## %bb.21:
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	shll	$12, %edx
	shll	$10, %r15d
	orl	%edx, %r15d
	addl	%ecx, %r15d
	movl	%r15d, (%rax)
	jmp	LBB0_33
LBB0_22:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_27
LBB0_23:
	movq	_SCALER_CTL0_TILING_128B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$128, %esi
	jmp	LBB0_25
LBB0_24:
	movq	_SCALER_CTL0_TILING_256B_OR_T@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$256, %esi                      ## imm = 0x100
LBB0_25:
	movq	_SCALER_TILE_HEIGHT_MASK@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jle	LBB0_28
## %bb.26:
	movslq	%eax, %rsi
	leaq	L_.str(%rip), %rdi
LBB0_27:
	callq	_DRM_DEBUG_KMS
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_86
LBB0_28:
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	%ecx, -100(%rbp)                ## 4-byte Spill
	movl	%r12d, -104(%rbp)               ## 4-byte Spill
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movq	_HVS_PIXEL_FORMAT_H264@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rax
	movq	16(%rax), %rdi
	movl	%esi, %eax
	cltd
	idivl	(%rdi)
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %eax
	cltd
	idivl	%esi
	movq	-136(%rbp), %r8                 ## 8-byte Reload
	testl	%r8d, %r8d
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	movl	-88(%rbp), %r14d                ## 4-byte Reload
	jle	LBB0_31
## %bb.29:
	movl	%edx, %r11d
	movl	%eax, %r13d
	imull	-84(%rbp), %r13d                ## 4-byte Folded Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rcx
	xorl	%esi, %esi
	movl	$1, %r10d
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	testq	%rsi, %rsi
	movl	%r14d, %ebx
	cmovel	%r10d, %ebx
	movl	%r9d, %r15d
	cmovel	%r10d, %r15d
	movl	%r12d, %eax
	cltd
	idivl	%ebx
	movl	%eax, %ebx
	addl	%r13d, %ebx
	imull	-64(%rbp), %ebx                 ## 4-byte Folded Reload
	addl	(%rcx,%rsi,4), %ebx
	movl	%ebx, (%rcx,%rsi,4)
	movl	%r11d, %eax
	cltd
	idivl	%r15d
	imull	(%rdi,%rsi,4), %eax
	addl	%ebx, %eax
	movl	%eax, (%rcx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_30
LBB0_31:
	movq	_SCALER_TILE_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	callq	_VC4_SET_FIELD
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	jmp	LBB0_33
LBB0_32:
	movq	_SCALER_PITCH0_TILE_INITIAL_LINE_DIR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ebx
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	shll	$12, %r13d
	shll	$10, %r15d
	orl	%r13d, %r15d
	addl	%r15d, %ecx
	addl	$-2048, %ecx                    ## imm = 0xF800
	movl	%ecx, (%rax)
LBB0_33:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movl	-68(%rbp), %r13d                ## 4-byte Reload
LBB0_34:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movq	_DRM_MODE_REFLECT_X@GOTPCREL(%rip), %rcx
LBB0_35:
	movq	_SCALER_CTL0_VALID@GOTPCREL(%rip), %rax
	movl	(%rcx), %r15d
	andl	%ebx, %r15d
	je	LBB0_37
## %bb.36:
	movq	_SCALER_CTL0_HFLIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_37:
	orl	(%rax), %r15d
	movq	_DRM_MODE_REFLECT_Y@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	je	LBB0_39
## %bb.38:
	movq	_SCALER_CTL0_VFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_39:
	movq	_SCALER_CTL0_RGBA_EXPAND_ROUND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SCALER_CTL0_RGBA_EXPAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	orl	%ebx, %eax
	movl	4(%r12), %edx
	movq	_SCALER_CTL0_ORDER_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_SCALER_CTL0_PIXEL_FORMAT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	shll	%cl, %r14d
	orl	%eax, %r15d
	orl	%edx, %r14d
	movq	_SCALER_CTL0_TILING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-100(%rbp), %edi                ## 4-byte Reload
	callq	_VC4_SET_FIELD
	movl	%eax, %ebx
	orl	%r14d, %ebx
	xorl	%eax, %eax
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	cmpq	$0, 128(%r12)
	je	LBB0_41
## %bb.40:
	movq	_SCALER_CTL0_UNITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_41:
	orl	%eax, %ebx
	movq	_SCALER_CTL0_SCL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-104(%rbp), %edi                ## 4-byte Reload
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	movq	_SCALER_CTL0_SCL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	orl	%ebx, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_vc4_dlist_write
	movl	(%r12), %eax
	movl	%eax, 36(%r12)
	movq	-128(%rbp), %r15                ## 8-byte Reload
	movl	(%r15), %edi
	sarl	$8, %edi
	movq	_SCALER_POS0_FIXED_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movl	%eax, %ebx
	movl	40(%r12), %edi
	movq	_SCALER_POS0_START_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	movl	44(%r12), %edi
	movq	_SCALER_POS0_START_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_vc4_dlist_write
	cmpq	$0, 128(%r12)
	jne	LBB0_43
## %bb.42:
	movl	48(%r12), %edi
	movq	_SCALER_POS1_SCL_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movl	%eax, %ebx
	movl	52(%r12), %edi
	movq	_SCALER_POS1_SCL_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_vc4_dlist_write
LBB0_43:
	movl	(%r15), %r13d
	movq	_DRM_BLEND_ALPHA_OPAQUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	24(%rax), %r14
	movl	(%r12), %eax
	movl	%eax, 56(%r12)
	testq	%r14, %r14
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	jne	LBB0_45
## %bb.44:
	movq	_SCALER_POS2_ALPHA_MODE_FIXED@GOTPCREL(%rip), %rax
	jmp	LBB0_46
LBB0_45:
	movq	_SCALER_POS2_ALPHA_MODE_PIPELINE@GOTPCREL(%rip), %rax
LBB0_46:
	movl	(%rax), %edi
	movq	_SCALER_POS2_ALPHA_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movl	%eax, %r15d
	xorl	%eax, %eax
	movl	$0, %ebx
	testq	%r14, %r14
	je	LBB0_48
## %bb.47:
	movq	_SCALER_POS2_ALPHA_MIX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_48:
	cmpl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	cmovel	%eax, %ebx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	cmpq	$0, 24(%rcx)
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_50
## %bb.49:
	movq	_SCALER_POS2_ALPHA_PREMULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_50:
	orl	%eax, %ebx
	movq	64(%r12), %rax
	movl	(%rax), %edi
	movq	_SCALER_POS2_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	movq	16(%r12), %rax
	movl	(%rax), %edi
	movq	_SCALER_POS2_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	orl	%ebx, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_vc4_dlist_write
	movq	%r12, %rdi
	movl	$-1061109568, %esi              ## imm = 0xC0C0C0C0
	callq	_vc4_dlist_write
	movl	(%r12), %eax
	movl	%eax, 72(%r12)
	movq	-136(%rbp), %r13                ## 8-byte Reload
	testl	%r13d, %r13d
	jle	LBB0_60
## %bb.51:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_52:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r12, %rdi
	callq	_vc4_dlist_write
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_52
## %bb.53:
	movl	%r13d, %ebx
	.p2align	4, 0x90
LBB0_54:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$-1061109568, %esi              ## imm = 0xC0C0C0C0
	callq	_vc4_dlist_write
	decl	%ebx
	jne	LBB0_54
## %bb.55:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_vc4_dlist_write
	cmpl	$2, %r13d
	jl	LBB0_61
## %bb.56:
	movl	$1, %ebx
	movq	_HVS_PIXEL_FORMAT_H264@GOTPCREL(%rip), %r14
	movq	_SCALER_SRC_PITCH@GOTPCREL(%rip), %r15
	jmp	LBB0_58
	.p2align	4, 0x90
LBB0_57:                                ##   in Loop: Header=BB0_58 Depth=1
	movq	%r12, %rdi
	callq	_vc4_dlist_write
	incq	%rbx
	cmpq	%rbx, %r13
	je	LBB0_62
LBB0_58:                                ## =>This Inner Loop Header: Depth=1
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	(%r14), %eax
	je	LBB0_57
## %bb.59:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r15), %esi
	callq	_VC4_SET_FIELD
	movl	%eax, %esi
	jmp	LBB0_57
LBB0_60:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_vc4_dlist_write
LBB0_61:
	xorl	%ebx, %ebx
	jmp	LBB0_63
LBB0_62:
	movb	$1, %bl
LBB0_63:
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	cmpq	$0, 120(%r12)
	je	LBB0_65
## %bb.64:
	movq	_SCALER_CSC0_ITR_R_601_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_vc4_dlist_write
	movq	_SCALER_CSC1_ITR_R_601_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_vc4_dlist_write
	movq	_SCALER_CSC2_ITR_R_601_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_vc4_dlist_write
LBB0_65:
	movq	$0, 112(%r12)
	movq	80(%r12), %rdx
	movq	(%rdx), %rcx
	movq	_VC4_SCALING_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jne	LBB0_69
## %bb.66:
	cmpq	%rcx, 8(%rdx)
	jne	LBB0_69
## %bb.67:
	movq	88(%r12), %rdx
	cmpq	%rcx, (%rdx)
	jne	LBB0_69
## %bb.68:
	cmpq	%rcx, 8(%rdx)
	je	LBB0_79
LBB0_69:
	movq	88(%r12), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_71
## %bb.70:
	cmpq	%rax, 8(%rcx)
	je	LBB0_72
LBB0_71:
	movslq	(%r12), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%r12)
	movq	%rax, 112(%r12)
LBB0_72:
	testb	%bl, %bl
	je	LBB0_74
## %bb.73:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_vc4_write_scaling_parameters
LBB0_74:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_vc4_write_scaling_parameters
	movq	80(%r12), %rcx
	movq	_VC4_SCALING_PPF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rcx)
	je	LBB0_78
## %bb.75:
	movq	88(%r12), %rdx
	cmpq	%rax, (%rdx)
	je	LBB0_78
## %bb.76:
	cmpq	%rax, 8(%rcx)
	je	LBB0_78
## %bb.77:
	cmpq	%rax, 8(%rdx)
	jne	LBB0_79
LBB0_78:
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_SCALER_PPF_KERNEL_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_vc4_dlist_write
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_vc4_dlist_write
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_vc4_dlist_write
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_vc4_dlist_write
LBB0_79:
	movl	(%r12), %edi
	movq	_SCALER_CTL0_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movq	96(%r12), %rcx
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	orl	%eax, (%rcx,%rdx,4)
	movl	$1, %eax
	cmpl	$0, 40(%r12)
	jne	LBB0_85
## %bb.80:
	cmpl	$0, 44(%r12)
	jne	LBB0_85
## %bb.81:
	movl	48(%r12), %edx
	movq	8(%r14), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_85
## %bb.82:
	movq	8(%r15), %rdx
	cmpq	$0, 24(%rdx)
	jne	LBB0_85
## %bb.83:
	movl	4(%rcx), %ecx
	cmpl	%ecx, 52(%r12)
	jne	LBB0_85
## %bb.84:
	movl	(%r14), %ecx
	xorl	%eax, %eax
	movq	_DRM_BLEND_ALPHA_OPAQUE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	setne	%al
LBB0_85:
	movl	%eax, 104(%r12)
	movl	$1, 4(%r12)
	movq	%r14, %rdi
	callq	_vc4_plane_calc_load
	xorl	%eax, %eax
LBB0_86:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_87:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-112(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_ROTATE_0,4,2          ## @DRM_MODE_ROTATE_0
	.comm	_DRM_MODE_REFLECT_X,4,2         ## @DRM_MODE_REFLECT_X
	.comm	_DRM_MODE_REFLECT_Y,4,2         ## @DRM_MODE_REFLECT_Y
	.comm	_SCALER_CTL0_TILING_LINEAR,4,2  ## @SCALER_CTL0_TILING_LINEAR
	.comm	_SCALER_SRC_PITCH,4,2           ## @SCALER_SRC_PITCH
	.comm	_SCALER_PITCH0_TILE_LINE_DIR,4,2 ## @SCALER_PITCH0_TILE_LINE_DIR
	.comm	_SCALER_CTL0_TILING_256B_OR_T,4,2 ## @SCALER_CTL0_TILING_256B_OR_T
	.comm	_SCALER_PITCH0_SINK_PIX,4,2     ## @SCALER_PITCH0_SINK_PIX
	.comm	_SCALER_PITCH0_TILE_Y_OFFSET,4,2 ## @SCALER_PITCH0_TILE_Y_OFFSET
	.comm	_SCALER_PITCH0_TILE_WIDTH_L,4,2 ## @SCALER_PITCH0_TILE_WIDTH_L
	.comm	_SCALER_PITCH0_TILE_WIDTH_R,4,2 ## @SCALER_PITCH0_TILE_WIDTH_R
	.comm	_SCALER_PITCH0_TILE_INITIAL_LINE_DIR,4,2 ## @SCALER_PITCH0_TILE_INITIAL_LINE_DIR
	.comm	_HVS_PIXEL_FORMAT_H264,4,2      ## @HVS_PIXEL_FORMAT_H264
	.comm	_SCALER_CTL0_TILING_64B,4,2     ## @SCALER_CTL0_TILING_64B
	.comm	_SCALER_CTL0_TILING_128B,4,2    ## @SCALER_CTL0_TILING_128B
	.comm	_SCALER_TILE_HEIGHT_MASK,4,2    ## @SCALER_TILE_HEIGHT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SAND height too large (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCALER_TILE_HEIGHT,4,2         ## @SCALER_TILE_HEIGHT
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported FB tiling flag 0x%16llx"

	.comm	_SCALER_CTL0_VALID,4,2          ## @SCALER_CTL0_VALID
	.comm	_SCALER_CTL0_HFLIP,4,2          ## @SCALER_CTL0_HFLIP
	.comm	_SCALER_CTL0_VFLIP,4,2          ## @SCALER_CTL0_VFLIP
	.comm	_SCALER_CTL0_RGBA_EXPAND_ROUND,4,2 ## @SCALER_CTL0_RGBA_EXPAND_ROUND
	.comm	_SCALER_CTL0_RGBA_EXPAND,4,2    ## @SCALER_CTL0_RGBA_EXPAND
	.comm	_SCALER_CTL0_ORDER_SHIFT,4,2    ## @SCALER_CTL0_ORDER_SHIFT
	.comm	_SCALER_CTL0_PIXEL_FORMAT_SHIFT,4,2 ## @SCALER_CTL0_PIXEL_FORMAT_SHIFT
	.comm	_SCALER_CTL0_TILING,4,2         ## @SCALER_CTL0_TILING
	.comm	_SCALER_CTL0_UNITY,4,2          ## @SCALER_CTL0_UNITY
	.comm	_SCALER_CTL0_SCL0,4,2           ## @SCALER_CTL0_SCL0
	.comm	_SCALER_CTL0_SCL1,4,2           ## @SCALER_CTL0_SCL1
	.comm	_SCALER_POS0_FIXED_ALPHA,4,2    ## @SCALER_POS0_FIXED_ALPHA
	.comm	_SCALER_POS0_START_X,4,2        ## @SCALER_POS0_START_X
	.comm	_SCALER_POS0_START_Y,4,2        ## @SCALER_POS0_START_Y
	.comm	_SCALER_POS1_SCL_WIDTH,4,2      ## @SCALER_POS1_SCL_WIDTH
	.comm	_SCALER_POS1_SCL_HEIGHT,4,2     ## @SCALER_POS1_SCL_HEIGHT
	.comm	_DRM_BLEND_ALPHA_OPAQUE,4,2     ## @DRM_BLEND_ALPHA_OPAQUE
	.comm	_SCALER_POS2_ALPHA_MODE_PIPELINE,4,2 ## @SCALER_POS2_ALPHA_MODE_PIPELINE
	.comm	_SCALER_POS2_ALPHA_MODE_FIXED,4,2 ## @SCALER_POS2_ALPHA_MODE_FIXED
	.comm	_SCALER_POS2_ALPHA_MODE,4,2     ## @SCALER_POS2_ALPHA_MODE
	.comm	_SCALER_POS2_ALPHA_MIX,4,2      ## @SCALER_POS2_ALPHA_MIX
	.comm	_SCALER_POS2_ALPHA_PREMULT,4,2  ## @SCALER_POS2_ALPHA_PREMULT
	.comm	_SCALER_POS2_WIDTH,4,2          ## @SCALER_POS2_WIDTH
	.comm	_SCALER_POS2_HEIGHT,4,2         ## @SCALER_POS2_HEIGHT
	.comm	_SCALER_CSC0_ITR_R_601_5,4,2    ## @SCALER_CSC0_ITR_R_601_5
	.comm	_SCALER_CSC1_ITR_R_601_5,4,2    ## @SCALER_CSC1_ITR_R_601_5
	.comm	_SCALER_CSC2_ITR_R_601_5,4,2    ## @SCALER_CSC2_ITR_R_601_5
	.comm	_VC4_SCALING_NONE,8,3           ## @VC4_SCALING_NONE
	.comm	_VC4_SCALING_PPF,8,3            ## @VC4_SCALING_PPF
	.comm	_SCALER_PPF_KERNEL_OFFSET,4,2   ## @SCALER_PPF_KERNEL_OFFSET
	.comm	_SCALER_CTL0_SIZE,4,2           ## @SCALER_CTL0_SIZE
	.no_dead_strip	_vc4_plane_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_plane_mode_set
_vc4_plane_mode_set:                    ; @vc4_plane_mode_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x19, x1
	ldr	w0, [x0]
	bl	_to_vc4_dev
	mov	x26, x0
	mov	x0, x19
	bl	_to_vc4_plane_state
	mov	x20, x0
	ldr	x28, [x19, #24]
	ldrsw	x21, [x0]
	ldr	x8, [x28, #8]
	ldr	w0, [x8, #32]
	bl	_vc4_get_hvs_format
	mov	x22, x0
	ldr	x0, [x28, #16]
	bl	_fourcc_mod_broadcom_mod
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	str	w0, [sp, #76]                   ; 4-byte Folded Spill
	ldr	x8, [x28, #8]
	ldp	w24, w27, [x8]
	ldr	w25, [x8, #8]
	ldr	w23, [x22]
	mov	x0, x19
	bl	_vc4_plane_setup_clipping_and_scaling
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_4:
	stp	w25, w27, [sp, #16]             ; 8-byte Folded Spill
	stp	x28, x24, [sp, #48]             ; 16-byte Folded Spill
	str	x22, [sp, #64]                  ; 8-byte Folded Spill
	cmp	w24, #1
	stp	x26, x21, [sp, #24]             ; 16-byte Folded Spill
	mov	x0, x19
	b.ne	LBB0_6
; %bb.5:
	mov	w1, #0
	bl	_vc4_get_scl_field
	mov	x28, x0
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	b	LBB0_7
LBB0_6:
	mov	w1, #1
	bl	_vc4_get_scl_field
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #0
	bl	_vc4_get_scl_field
	mov	x28, x0
LBB0_7:
	mov	x24, x23
	ldr	x23, [sp, #48]                  ; 8-byte Folded Reload
	ldr	w25, [sp, #76]                  ; 4-byte Folded Reload
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _DRM_MODE_ROTATE_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_ROTATE_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DRM_MODE_REFLECT_X@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_MODE_REFLECT_X@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x22, _DRM_MODE_REFLECT_Y@GOTPAGE
Lloh7:
	ldr	x22, [x22, _DRM_MODE_REFLECT_Y@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w8, w9
	bl	_drm_rotation_simplify
	mov	x26, x0
	ldr	w21, [x20, #8]
	ldr	w8, [x22]
	ands	w8, w8, w0
	ldr	x22, [sp, #64]                  ; 8-byte Folded Reload
	b.eq	LBB0_9
; %bb.8:
	ldr	x9, [x20, #16]
	ldr	w9, [x9]
	add	w9, w21, w9
	sub	w21, w9, #1
LBB0_9:
	sub	w9, w25, #130
	cmp	w9, #3
	b.hs	LBB0_14
; %bb.10:
	ldr	x0, [x23, #16]
	bl	_fourcc_mod_broadcom_param
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w25, #132
	b.eq	LBB0_23
; %bb.11:
	cmp	w25, #131
	b.eq	LBB0_24
; %bb.12:
                                        ; implicit-def: $w10
                                        ; implicit-def: $w8
	cmp	w25, #130
	b.ne	LBB0_25
; %bb.13:
Lloh8:
	adrp	x8, _SCALER_CTL0_TILING_64B@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCALER_CTL0_TILING_64B@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x8]
	mov	w8, #64
	b	LBB0_25
LBB0_14:
	cmp	w25, #129
	b.eq	LBB0_20
; %bb.15:
	cmp	w25, #128
	b.ne	LBB0_22
; %bb.16:
Lloh11:
	adrp	x8, _SCALER_CTL0_TILING_LINEAR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCALER_CTL0_TILING_LINEAR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
	ldr	x8, [x23]
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _SCALER_SRC_PITCH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SCALER_SRC_PITCH@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	mov	x25, x0
	ldr	x12, [sp, #56]                  ; 8-byte Folded Reload
	cmp	w12, #1
	str	w28, [sp, #76]                  ; 4-byte Folded Spill
	b.lt	LBB0_34
; %bb.17:
	mov	x8, #0
	ldr	x9, [x20, #24]
	ldp	x10, x11, [x23]
	ldr	x11, [x11, #16]
	lsl	x12, x12, #2
	ldp	w0, w17, [sp, #16]              ; 8-byte Folded Reload
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	cmp	x8, #0
	csinc	w13, w0, wzr, ne
	sdiv	w13, w21, w13
	ldr	w14, [x10, x8]
	ldr	w15, [x9, x8]
	madd	w13, w14, w13, w15
	str	w13, [x9, x8]
	ldr	w14, [x20, #32]
	csinc	w15, w17, wzr, ne
	ldr	w16, [x11, x8]
	sdiv	w14, w14, w15
	madd	w13, w16, w14, w13
	str	w13, [x9, x8]
	add	x8, x8, #4
	cmp	x12, x8
	b.ne	LBB0_18
; %bb.19:
	ldr	x28, [sp, #56]                  ; 8-byte Folded Reload
	b	LBB0_35
LBB0_20:
	str	w28, [sp, #76]                  ; 4-byte Folded Spill
	ldp	x10, x9, [x23]
	ldr	x9, [x9, #16]
	ldr	w9, [x9]
	cmp	w9, #2
	mov	w9, #5
	cinc	w9, w9, eq
	mov	w11, #-1
	lsl	w11, w11, w9
	ldr	w10, [x10]
	asr	w27, w10, #7
	ldr	w10, [x20, #32]
	asr	w28, w10, w9
	sub	w22, w27, w28
	ubfx	w9, w21, #4, #1
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	bic	w0, w10, w11
	and	w9, w21, #0x3f
	eor	w10, w9, #0x3f
Lloh17:
	adrp	x11, _SCALER_PITCH0_TILE_LINE_DIR@GOTPAGE
Lloh18:
	ldr	x11, [x11, _SCALER_PITCH0_TILE_LINE_DIR@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	cmp	w8, #0
	csel	w25, w9, w10, eq
	csel	w8, wzr, w11, eq
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
Lloh20:
	adrp	x8, _SCALER_CTL0_TILING_256B_OR_T@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SCALER_CTL0_TILING_256B_OR_T@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
Lloh23:
	adrp	x8, _SCALER_PITCH0_SINK_PIX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SCALER_PITCH0_SINK_PIX@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
Lloh26:
	adrp	x8, _SCALER_PITCH0_TILE_Y_OFFSET@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SCALER_PITCH0_TILE_Y_OFFSET@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_VC4_SET_FIELD
	mov	x25, x0
Lloh29:
	adrp	x8, _SCALER_PITCH0_TILE_WIDTH_L@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SCALER_PITCH0_TILE_WIDTH_L@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	str	w28, [sp, #4]                   ; 4-byte Folded Spill
	mov	x0, x28
	bl	_VC4_SET_FIELD
	mov	x28, x0
Lloh32:
	adrp	x8, _SCALER_PITCH0_TILE_WIDTH_R@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SCALER_PITCH0_TILE_WIDTH_R@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	str	w22, [sp, #8]                   ; 4-byte Folded Spill
	mov	x0, x22
	bl	_VC4_SET_FIELD
	ldp	w9, w8, [sp, #12]               ; 8-byte Folded Reload
	orr	w8, w9, w8
	orr	w8, w8, w25
	orr	w8, w8, w28
	orr	w25, w8, w0
	lsl	w8, w21, #7
	and	w8, w8, #0xfffff000
	mul	w9, w8, w27
	ldr	x8, [x20, #24]
	ldr	w10, [x8]
	lsl	w11, w21, #6
	and	w11, w11, #0x300
	bfi	w11, w21, #4, #2
	orr	w9, w11, w9
	add	w9, w9, w10
	str	w9, [x8]
	tbnz	w21, #5, LBB0_32
; %bb.21:
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	lsl	w10, w10, #10
	ldr	w11, [sp, #4]                   ; 4-byte Folded Reload
	bfi	w10, w11, #12, #20
	add	w9, w10, w9
	b	LBB0_33
LBB0_22:
	ldr	x1, [x23, #16]
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_27
LBB0_23:
Lloh37:
	adrp	x8, _SCALER_CTL0_TILING_128B@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SCALER_CTL0_TILING_128B@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x8]
	mov	w8, #128
	b	LBB0_25
LBB0_24:
Lloh40:
	adrp	x8, _SCALER_CTL0_TILING_256B_OR_T@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SCALER_CTL0_TILING_256B_OR_T@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x8]
	mov	w8, #256
LBB0_25:
Lloh43:
	adrp	x9, _SCALER_TILE_HEIGHT_MASK@GOTPAGE
Lloh44:
	ldr	x9, [x9, _SCALER_TILE_HEIGHT_MASK@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	cmp	w0, w9
	b.le	LBB0_28
; %bb.26:
	sxtw	x1, w0
Lloh46:
	adrp	x0, l_.str@PAGE
Lloh47:
	add	x0, x0, l_.str@PAGEOFF
LBB0_27:
	bl	_DRM_DEBUG_KMS
Lloh48:
	adrp	x8, _EINVAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_28:
	str	w10, [sp, #48]                  ; 4-byte Folded Spill
	str	w28, [sp, #76]                  ; 4-byte Folded Spill
Lloh51:
	adrp	x9, _HVS_PIXEL_FORMAT_H264@GOTPAGE
Lloh52:
	ldr	x9, [x9, _HVS_PIXEL_FORMAT_H264@GOTPAGEOFF]
Lloh53:
	ldr	w24, [x9]
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	cmp	w9, #1
	ldp	w2, w1, [sp, #16]               ; 8-byte Folded Reload
	b.lt	LBB0_31
; %bb.29:
	mov	x9, #0
	ldr	x10, [x23, #8]
	ldr	x10, [x10, #16]
	ldr	w11, [x10]
	sdiv	w11, w8, w11
	ldr	w12, [x20, #32]
	sdiv	w13, w12, w11
	msub	w11, w13, w11, w12
	mul	w12, w13, w0
	ldr	x13, [x20, #24]
	ldr	x14, [sp, #56]                  ; 8-byte Folded Reload
	lsl	x14, x14, #2
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x13, x9]
	cmp	x9, #0
	csinc	w16, w2, wzr, ne
	sdiv	w16, w21, w16
	add	w16, w16, w12
	madd	w15, w16, w8, w15
	str	w15, [x13, x9]
	csinc	w16, w1, wzr, ne
	ldr	w17, [x10, x9]
	sdiv	w16, w11, w16
	madd	w15, w17, w16, w15
	str	w15, [x13, x9]
	add	x9, x9, #4
	cmp	x14, x9
	b.ne	LBB0_30
LBB0_31:
Lloh54:
	adrp	x8, _SCALER_TILE_HEIGHT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SCALER_TILE_HEIGHT@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_VC4_SET_FIELD
	mov	x25, x0
	ldr	x28, [sp, #56]                  ; 8-byte Folded Reload
	ldr	w27, [sp, #44]                  ; 4-byte Folded Reload
Lloh57:
	adrp	x11, _DRM_MODE_REFLECT_Y@GOTPAGE
Lloh58:
	ldr	x11, [x11, _DRM_MODE_REFLECT_Y@GOTPAGEOFF]
Lloh59:
	adrp	x10, _DRM_MODE_REFLECT_X@GOTPAGE
Lloh60:
	ldr	x10, [x10, _DRM_MODE_REFLECT_X@GOTPAGEOFF]
	b	LBB0_36
LBB0_32:
Lloh61:
	adrp	x10, _SCALER_PITCH0_TILE_INITIAL_LINE_DIR@GOTPAGE
Lloh62:
	ldr	x10, [x10, _SCALER_PITCH0_TILE_INITIAL_LINE_DIR@GOTPAGEOFF]
Lloh63:
	ldr	w10, [x10]
	orr	w25, w10, w25
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	lsl	w10, w10, #10
	ldr	w11, [sp, #8]                   ; 4-byte Folded Reload
	bfi	w10, w11, #12, #20
	add	w9, w10, w9
	sub	w9, w9, #2048
LBB0_33:
	str	w9, [x8]
	ldr	x28, [sp, #56]                  ; 8-byte Folded Reload
	b	LBB0_35
LBB0_34:
	mov	x28, x12
LBB0_35:
	ldr	w27, [sp, #44]                  ; 4-byte Folded Reload
Lloh64:
	adrp	x11, _DRM_MODE_REFLECT_Y@GOTPAGE
Lloh65:
	ldr	x11, [x11, _DRM_MODE_REFLECT_Y@GOTPAGEOFF]
Lloh66:
	adrp	x10, _DRM_MODE_REFLECT_X@GOTPAGE
Lloh67:
	ldr	x10, [x10, _DRM_MODE_REFLECT_X@GOTPAGEOFF]
	ldr	x22, [sp, #64]                  ; 8-byte Folded Reload
LBB0_36:
Lloh68:
	adrp	x8, _SCALER_CTL0_VALID@GOTPAGE
Lloh69:
	ldr	x8, [x8, _SCALER_CTL0_VALID@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
Lloh71:
	adrp	x9, _SCALER_CTL0_HFLIP@GOTPAGE
Lloh72:
	ldr	x9, [x9, _SCALER_CTL0_HFLIP@GOTPAGEOFF]
	ldr	w10, [x10]
Lloh73:
	ldr	w9, [x9]
	tst	w10, w26
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
	ldr	w9, [x11]
Lloh74:
	adrp	x10, _SCALER_CTL0_VFLIP@GOTPAGE
Lloh75:
	ldr	x10, [x10, _SCALER_CTL0_VFLIP@GOTPAGEOFF]
Lloh76:
	ldr	w10, [x10]
	tst	w9, w26
	csel	w9, wzr, w10, eq
	orr	w21, w8, w9
Lloh77:
	adrp	x8, _SCALER_CTL0_RGBA_EXPAND_ROUND@GOTPAGE
Lloh78:
	ldr	x8, [x8, _SCALER_CTL0_RGBA_EXPAND_ROUND@GOTPAGEOFF]
Lloh79:
	ldr	w0, [x8]
Lloh80:
	adrp	x8, _SCALER_CTL0_RGBA_EXPAND@GOTPAGE
Lloh81:
	ldr	x8, [x8, _SCALER_CTL0_RGBA_EXPAND@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w8, w21, w0
Lloh83:
	adrp	x9, _SCALER_CTL0_ORDER_SHIFT@GOTPAGE
Lloh84:
	ldr	x9, [x9, _SCALER_CTL0_ORDER_SHIFT@GOTPAGEOFF]
	ldr	w10, [x22, #4]
Lloh85:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w8, w8, w9
Lloh86:
	adrp	x9, _SCALER_CTL0_PIXEL_FORMAT_SHIFT@GOTPAGE
Lloh87:
	ldr	x9, [x9, _SCALER_CTL0_PIXEL_FORMAT_SHIFT@GOTPAGEOFF]
Lloh88:
	ldr	w9, [x9]
	lsl	w9, w24, w9
	orr	w21, w8, w9
Lloh89:
	adrp	x8, _SCALER_CTL0_TILING@GOTPAGE
Lloh90:
	ldr	x8, [x8, _SCALER_CTL0_TILING@GOTPAGEOFF]
Lloh91:
	ldr	w1, [x8]
	ldr	w0, [sp, #48]                   ; 4-byte Folded Reload
	bl	_VC4_SET_FIELD
	orr	w8, w21, w0
	ldr	x9, [x20, #128]
Lloh92:
	adrp	x10, _SCALER_CTL0_UNITY@GOTPAGE
Lloh93:
	ldr	x10, [x10, _SCALER_CTL0_UNITY@GOTPAGEOFF]
Lloh94:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w21, w8, w9
Lloh95:
	adrp	x8, _SCALER_CTL0_SCL0@GOTPAGE
Lloh96:
	ldr	x8, [x8, _SCALER_CTL0_SCL0@GOTPAGEOFF]
Lloh97:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_VC4_SET_FIELD
	orr	w21, w21, w0
Lloh98:
	adrp	x8, _SCALER_CTL0_SCL1@GOTPAGE
Lloh99:
	ldr	x8, [x8, _SCALER_CTL0_SCL1@GOTPAGEOFF]
Lloh100:
	ldr	w1, [x8]
	ldr	w0, [sp, #76]                   ; 4-byte Folded Reload
	bl	_VC4_SET_FIELD
	orr	w1, w21, w0
	mov	x0, x20
	bl	_vc4_dlist_write
	ldr	w8, [x20]
	str	w8, [x20, #36]
	ldr	w8, [x19]
	asr	w0, w8, #8
Lloh101:
	adrp	x8, _SCALER_POS0_FIXED_ALPHA@GOTPAGE
Lloh102:
	ldr	x8, [x8, _SCALER_POS0_FIXED_ALPHA@GOTPAGEOFF]
Lloh103:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	mov	x22, x0
	ldr	w0, [x20, #40]
Lloh104:
	adrp	x8, _SCALER_POS0_START_X@GOTPAGE
Lloh105:
	ldr	x8, [x8, _SCALER_POS0_START_X@GOTPAGEOFF]
Lloh106:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w21, w0, w22
	ldr	w0, [x20, #44]
Lloh107:
	adrp	x8, _SCALER_POS0_START_Y@GOTPAGE
Lloh108:
	ldr	x8, [x8, _SCALER_POS0_START_Y@GOTPAGEOFF]
Lloh109:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w1, w21, w0
	mov	x0, x20
	bl	_vc4_dlist_write
	ldr	x8, [x20, #128]
	cbnz	x8, LBB0_38
; %bb.37:
	ldr	w0, [x20, #48]
Lloh110:
	adrp	x8, _SCALER_POS1_SCL_WIDTH@GOTPAGE
Lloh111:
	ldr	x8, [x8, _SCALER_POS1_SCL_WIDTH@GOTPAGEOFF]
Lloh112:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	mov	x22, x0
	ldr	w0, [x20, #52]
Lloh113:
	adrp	x8, _SCALER_POS1_SCL_HEIGHT@GOTPAGE
Lloh114:
	ldr	x8, [x8, _SCALER_POS1_SCL_HEIGHT@GOTPAGEOFF]
Lloh115:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w1, w0, w22
	mov	x0, x20
	bl	_vc4_dlist_write
LBB0_38:
	ldr	w21, [x19]
Lloh116:
	adrp	x22, _DRM_BLEND_ALPHA_OPAQUE@GOTPAGE
Lloh117:
	ldr	x22, [x22, _DRM_BLEND_ALPHA_OPAQUE@GOTPAGEOFF]
	ldr	w26, [x22]
	ldr	x8, [x23, #8]
	ldr	x27, [x8, #24]
	ldr	w8, [x20]
	str	w8, [x20, #56]
Lloh118:
	adrp	x8, _SCALER_POS2_ALPHA_MODE_PIPELINE@GOTPAGE
Lloh119:
	ldr	x8, [x8, _SCALER_POS2_ALPHA_MODE_PIPELINE@GOTPAGEOFF]
Lloh120:
	adrp	x9, _SCALER_POS2_ALPHA_MODE_FIXED@GOTPAGE
Lloh121:
	ldr	x9, [x9, _SCALER_POS2_ALPHA_MODE_FIXED@GOTPAGEOFF]
	cmp	x27, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
Lloh122:
	adrp	x8, _SCALER_POS2_ALPHA_MODE@GOTPAGE
Lloh123:
	ldr	x8, [x8, _SCALER_POS2_ALPHA_MODE@GOTPAGEOFF]
Lloh124:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	cmp	x27, #0
	ccmp	w21, w26, #4, ne
Lloh125:
	adrp	x8, _SCALER_POS2_ALPHA_MIX@GOTPAGE
Lloh126:
	ldr	x8, [x8, _SCALER_POS2_ALPHA_MIX@GOTPAGEOFF]
Lloh127:
	ldr	w8, [x8]
	csel	w8, w8, wzr, ne
	orr	w8, w8, w0
	ldr	x9, [x23, #8]
	ldr	x9, [x9, #24]
Lloh128:
	adrp	x10, _SCALER_POS2_ALPHA_PREMULT@GOTPAGE
Lloh129:
	ldr	x10, [x10, _SCALER_POS2_ALPHA_PREMULT@GOTPAGEOFF]
Lloh130:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w21, w8, w9
	ldr	x8, [x20, #64]
	ldr	w0, [x8]
Lloh131:
	adrp	x8, _SCALER_POS2_WIDTH@GOTPAGE
Lloh132:
	ldr	x8, [x8, _SCALER_POS2_WIDTH@GOTPAGEOFF]
Lloh133:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w21, w21, w0
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
Lloh134:
	adrp	x8, _SCALER_POS2_HEIGHT@GOTPAGE
Lloh135:
	ldr	x8, [x8, _SCALER_POS2_HEIGHT@GOTPAGEOFF]
Lloh136:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w1, w21, w0
	mov	x0, x20
	bl	_vc4_dlist_write
	mov	x0, x20
	mov	w1, #-1061109568
	bl	_vc4_dlist_write
	ldr	w8, [x20]
	str	w8, [x20, #72]
	cmp	w28, #1
	b.lt	LBB0_48
; %bb.39:
	mov	x26, #0
	lsl	x21, x28, #2
LBB0_40:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x26]
	mov	x0, x20
	bl	_vc4_dlist_write
	add	x26, x26, #4
	cmp	x21, x26
	b.ne	LBB0_40
; %bb.41:
	mov	x26, x28
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #-1061109568
	bl	_vc4_dlist_write
	subs	w26, w26, #1
	b.ne	LBB0_42
; %bb.43:
	mov	x0, x20
	mov	x1, x25
	bl	_vc4_dlist_write
	cmp	w28, #2
	b.lt	LBB0_49
; %bb.44:
	mov	w26, #4
Lloh137:
	adrp	x27, _HVS_PIXEL_FORMAT_H264@GOTPAGE
Lloh138:
	ldr	x27, [x27, _HVS_PIXEL_FORMAT_H264@GOTPAGEOFF]
Lloh139:
	adrp	x28, _SCALER_SRC_PITCH@GOTPAGE
Lloh140:
	ldr	x28, [x28, _SCALER_SRC_PITCH@GOTPAGEOFF]
	b	LBB0_46
LBB0_45:                                ;   in Loop: Header=BB0_46 Depth=1
	mov	x0, x20
	bl	_vc4_dlist_write
	add	x26, x26, #4
	cmp	x21, x26
	b.eq	LBB0_50
LBB0_46:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	mov	x1, x25
	cmp	w24, w8
	b.eq	LBB0_45
; %bb.47:                               ;   in Loop: Header=BB0_46 Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x26]
	ldr	w1, [x28]
	bl	_VC4_SET_FIELD
	mov	x1, x0
	b	LBB0_45
LBB0_48:
	mov	x0, x20
	mov	x1, x25
	bl	_vc4_dlist_write
LBB0_49:
	mov	w21, #0
	b	LBB0_51
LBB0_50:
	mov	w21, #1
LBB0_51:
	ldp	x25, x24, [sp, #24]             ; 16-byte Folded Reload
	ldr	x8, [x20, #120]
	cbz	x8, LBB0_53
; %bb.52:
Lloh141:
	adrp	x8, _SCALER_CSC0_ITR_R_601_5@GOTPAGE
Lloh142:
	ldr	x8, [x8, _SCALER_CSC0_ITR_R_601_5@GOTPAGEOFF]
Lloh143:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_vc4_dlist_write
Lloh144:
	adrp	x8, _SCALER_CSC1_ITR_R_601_5@GOTPAGE
Lloh145:
	ldr	x8, [x8, _SCALER_CSC1_ITR_R_601_5@GOTPAGEOFF]
Lloh146:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_vc4_dlist_write
Lloh147:
	adrp	x8, _SCALER_CSC2_ITR_R_601_5@GOTPAGE
Lloh148:
	ldr	x8, [x8, _SCALER_CSC2_ITR_R_601_5@GOTPAGEOFF]
Lloh149:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_vc4_dlist_write
LBB0_53:
	str	xzr, [x20, #112]
	ldr	x10, [x20, #80]
	ldr	x9, [x10]
Lloh150:
	adrp	x8, _VC4_SCALING_NONE@GOTPAGE
Lloh151:
	ldr	x8, [x8, _VC4_SCALING_NONE@GOTPAGEOFF]
Lloh152:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_57
; %bb.54:
	ldr	x10, [x10, #8]
	cmp	x10, x9
	b.ne	LBB0_57
; %bb.55:
	ldr	x10, [x20, #88]
	ldr	x11, [x10]
	cmp	x11, x9
	b.ne	LBB0_57
; %bb.56:
	ldr	x10, [x10, #8]
	cmp	x10, x9
	b.eq	LBB0_67
LBB0_57:
	ldr	x9, [x20, #88]
	ldr	x10, [x9]
	cmp	x10, x8
	b.ne	LBB0_59
; %bb.58:
	ldr	x9, [x9, #8]
	cmp	x9, x8
	b.eq	LBB0_60
LBB0_59:
	ldrsw	x8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	str	x8, [x20, #112]
LBB0_60:
	cbz	w21, LBB0_62
; %bb.61:
	mov	x0, x19
	mov	w1, #1
	bl	_vc4_write_scaling_parameters
LBB0_62:
	mov	x0, x19
	mov	w1, #0
	bl	_vc4_write_scaling_parameters
	ldr	x9, [x20, #80]
	ldr	x10, [x9]
Lloh153:
	adrp	x8, _VC4_SCALING_PPF@GOTPAGE
Lloh154:
	ldr	x8, [x8, _VC4_SCALING_PPF@GOTPAGEOFF]
Lloh155:
	ldr	x8, [x8]
	cmp	x10, x8
	b.eq	LBB0_66
; %bb.63:
	ldr	x10, [x20, #88]
	ldr	x11, [x10]
	cmp	x11, x8
	b.eq	LBB0_66
; %bb.64:
	ldr	x9, [x9, #8]
	cmp	x9, x8
	b.eq	LBB0_66
; %bb.65:
	ldr	x9, [x10, #8]
	cmp	x9, x8
	b.ne	LBB0_67
LBB0_66:
	ldr	x8, [x25]
	ldr	w0, [x8]
Lloh156:
	adrp	x8, _SCALER_PPF_KERNEL_OFFSET@GOTPAGE
Lloh157:
	ldr	x8, [x8, _SCALER_PPF_KERNEL_OFFSET@GOTPAGEOFF]
Lloh158:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_vc4_dlist_write
	mov	x0, x20
	mov	x1, x21
	bl	_vc4_dlist_write
	mov	x0, x20
	mov	x1, x21
	bl	_vc4_dlist_write
	mov	x0, x20
	mov	x1, x21
	bl	_vc4_dlist_write
LBB0_67:
	ldr	w0, [x20]
Lloh159:
	adrp	x8, _SCALER_CTL0_SIZE@GOTPAGE
Lloh160:
	ldr	x8, [x8, _SCALER_CTL0_SIZE@GOTPAGEOFF]
Lloh161:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	ldr	x8, [x20, #96]
	lsl	x9, x24, #2
	ldr	w10, [x8, x9]
	orr	w10, w10, w0
	str	w10, [x8, x9]
	ldr	w10, [x20, #40]
	mov	w8, #1
	mov	w9, #1
	cbnz	w10, LBB0_74
; %bb.68:
	ldr	w9, [x20, #44]
	cbnz	w9, LBB0_73
; %bb.69:
	ldr	w9, [x20, #48]
	ldr	x10, [x19, #8]
	ldr	w11, [x10]
	cmp	w9, w11
	b.ne	LBB0_73
; %bb.70:
	ldr	x9, [x23, #8]
	ldr	x11, [x9, #24]
	mov	w9, #1
	cbnz	x11, LBB0_74
; %bb.71:
	ldr	w11, [x20, #52]
	ldr	w10, [x10, #4]
	cmp	w11, w10
	b.ne	LBB0_74
; %bb.72:
	ldr	w9, [x19]
	ldr	w10, [x22]
	cmp	w9, w10
	cset	w9, ne
	b	LBB0_74
LBB0_73:
	mov	w9, #1
LBB0_74:
	str	w9, [x20, #104]
	str	w8, [x20, #4]
	mov	x0, x19
	bl	_vc4_plane_calc_load
	b	LBB0_1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh134, Lloh135, Lloh136
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGot	Lloh120, Lloh121
	.loh AdrpLdrGot	Lloh118, Lloh119
	.loh AdrpLdrGot	Lloh116, Lloh117
	.loh AdrpLdrGot	Lloh139, Lloh140
	.loh AdrpLdrGot	Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh147, Lloh148, Lloh149
	.loh AdrpLdrGotLdr	Lloh144, Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.loh AdrpLdrGotLdr	Lloh156, Lloh157, Lloh158
	.loh AdrpLdrGotLdr	Lloh159, Lloh160, Lloh161
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_ROTATE_0,4,2          ; @DRM_MODE_ROTATE_0
	.comm	_DRM_MODE_REFLECT_X,4,2         ; @DRM_MODE_REFLECT_X
	.comm	_DRM_MODE_REFLECT_Y,4,2         ; @DRM_MODE_REFLECT_Y
	.comm	_SCALER_CTL0_TILING_LINEAR,4,2  ; @SCALER_CTL0_TILING_LINEAR
	.comm	_SCALER_SRC_PITCH,4,2           ; @SCALER_SRC_PITCH
	.comm	_SCALER_PITCH0_TILE_LINE_DIR,4,2 ; @SCALER_PITCH0_TILE_LINE_DIR
	.comm	_SCALER_CTL0_TILING_256B_OR_T,4,2 ; @SCALER_CTL0_TILING_256B_OR_T
	.comm	_SCALER_PITCH0_SINK_PIX,4,2     ; @SCALER_PITCH0_SINK_PIX
	.comm	_SCALER_PITCH0_TILE_Y_OFFSET,4,2 ; @SCALER_PITCH0_TILE_Y_OFFSET
	.comm	_SCALER_PITCH0_TILE_WIDTH_L,4,2 ; @SCALER_PITCH0_TILE_WIDTH_L
	.comm	_SCALER_PITCH0_TILE_WIDTH_R,4,2 ; @SCALER_PITCH0_TILE_WIDTH_R
	.comm	_SCALER_PITCH0_TILE_INITIAL_LINE_DIR,4,2 ; @SCALER_PITCH0_TILE_INITIAL_LINE_DIR
	.comm	_HVS_PIXEL_FORMAT_H264,4,2      ; @HVS_PIXEL_FORMAT_H264
	.comm	_SCALER_CTL0_TILING_64B,4,2     ; @SCALER_CTL0_TILING_64B
	.comm	_SCALER_CTL0_TILING_128B,4,2    ; @SCALER_CTL0_TILING_128B
	.comm	_SCALER_TILE_HEIGHT_MASK,4,2    ; @SCALER_TILE_HEIGHT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SAND height too large (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCALER_TILE_HEIGHT,4,2         ; @SCALER_TILE_HEIGHT
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported FB tiling flag 0x%16llx"

	.comm	_SCALER_CTL0_VALID,4,2          ; @SCALER_CTL0_VALID
	.comm	_SCALER_CTL0_HFLIP,4,2          ; @SCALER_CTL0_HFLIP
	.comm	_SCALER_CTL0_VFLIP,4,2          ; @SCALER_CTL0_VFLIP
	.comm	_SCALER_CTL0_RGBA_EXPAND_ROUND,4,2 ; @SCALER_CTL0_RGBA_EXPAND_ROUND
	.comm	_SCALER_CTL0_RGBA_EXPAND,4,2    ; @SCALER_CTL0_RGBA_EXPAND
	.comm	_SCALER_CTL0_ORDER_SHIFT,4,2    ; @SCALER_CTL0_ORDER_SHIFT
	.comm	_SCALER_CTL0_PIXEL_FORMAT_SHIFT,4,2 ; @SCALER_CTL0_PIXEL_FORMAT_SHIFT
	.comm	_SCALER_CTL0_TILING,4,2         ; @SCALER_CTL0_TILING
	.comm	_SCALER_CTL0_UNITY,4,2          ; @SCALER_CTL0_UNITY
	.comm	_SCALER_CTL0_SCL0,4,2           ; @SCALER_CTL0_SCL0
	.comm	_SCALER_CTL0_SCL1,4,2           ; @SCALER_CTL0_SCL1
	.comm	_SCALER_POS0_FIXED_ALPHA,4,2    ; @SCALER_POS0_FIXED_ALPHA
	.comm	_SCALER_POS0_START_X,4,2        ; @SCALER_POS0_START_X
	.comm	_SCALER_POS0_START_Y,4,2        ; @SCALER_POS0_START_Y
	.comm	_SCALER_POS1_SCL_WIDTH,4,2      ; @SCALER_POS1_SCL_WIDTH
	.comm	_SCALER_POS1_SCL_HEIGHT,4,2     ; @SCALER_POS1_SCL_HEIGHT
	.comm	_DRM_BLEND_ALPHA_OPAQUE,4,2     ; @DRM_BLEND_ALPHA_OPAQUE
	.comm	_SCALER_POS2_ALPHA_MODE_PIPELINE,4,2 ; @SCALER_POS2_ALPHA_MODE_PIPELINE
	.comm	_SCALER_POS2_ALPHA_MODE_FIXED,4,2 ; @SCALER_POS2_ALPHA_MODE_FIXED
	.comm	_SCALER_POS2_ALPHA_MODE,4,2     ; @SCALER_POS2_ALPHA_MODE
	.comm	_SCALER_POS2_ALPHA_MIX,4,2      ; @SCALER_POS2_ALPHA_MIX
	.comm	_SCALER_POS2_ALPHA_PREMULT,4,2  ; @SCALER_POS2_ALPHA_PREMULT
	.comm	_SCALER_POS2_WIDTH,4,2          ; @SCALER_POS2_WIDTH
	.comm	_SCALER_POS2_HEIGHT,4,2         ; @SCALER_POS2_HEIGHT
	.comm	_SCALER_CSC0_ITR_R_601_5,4,2    ; @SCALER_CSC0_ITR_R_601_5
	.comm	_SCALER_CSC1_ITR_R_601_5,4,2    ; @SCALER_CSC1_ITR_R_601_5
	.comm	_SCALER_CSC2_ITR_R_601_5,4,2    ; @SCALER_CSC2_ITR_R_601_5
	.comm	_VC4_SCALING_NONE,8,3           ; @VC4_SCALING_NONE
	.comm	_VC4_SCALING_PPF,8,3            ; @VC4_SCALING_PPF
	.comm	_SCALER_PPF_KERNEL_OFFSET,4,2   ; @SCALER_PPF_KERNEL_OFFSET
	.comm	_SCALER_CTL0_SIZE,4,2           ; @SCALER_CTL0_SIZE
	.no_dead_strip	_vc4_plane_mode_set
.subsections_via_symbols
