	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7511_set_fmt
_adv7511_set_fmt:                       ## @adv7511_set_fmt
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_get_adv7511_state
	movq	(%rax), %rsi
	movq	_V4L2_DV_IT_CONTENT_TYPE_NO_ITC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movl	%esi, %edx
	cmpq	%rdi, %rsi
	jne	LBB0_2
## %bb.1:
	movq	_V4L2_DV_IT_CONTENT_TYPE_GRAPHICS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_2:
	cmpq	$0, (%r12)
	jne	LBB0_6
## %bb.3:
	movl	$-135, %ecx
	addl	16(%r12), %ecx
	cmpl	$3, %ecx
	jae	LBB0_6
## %bb.4:
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	_HDMI_COLORIMETRY_NONE@GOTPCREL(%rip), %rbx
	movq	_HDMI_EXTENDED_COLORIMETRY_XV_YCC_601@GOTPCREL(%rip), %rdi
	movq	_HDMI_COLORSPACE_RGB@GOTPCREL(%rip), %rcx
	movq	_HDMI_QUANTIZATION_RANGE_DEFAULT@GOTPCREL(%rip), %rsi
	movq	_HDMI_YCC_QUANTIZATION_RANGE_LIMITED@GOTPCREL(%rip), %rdx
	movl	(%rbx), %ebx
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movl	(%rsi), %ebx
	movl	(%rdx), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	leaq	16(%r12), %r15
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_adv7511_fill_format
	movq	8(%r12), %rax
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:
	movq	(%r12), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_v4l2_subdev_get_try_format
	movl	16(%r12), %ecx
	movl	%ecx, (%rax)
	movdqu	20(%r12), %xmm0
	pshufd	$180, %xmm0, %xmm0              ## xmm0 = xmm0[0,1,3,2]
	movdqu	%xmm0, 4(%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	cmpl	$135, %eax
	je	LBB0_11
## %bb.9:
	cmpl	$136, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$240, %edx
	jne	LBB0_13
## %bb.10:
	movl	$1, %ecx
	callq	_adv7511_wr_and_or
	movq	%rbx, %rdi
	movl	$22, %esi
	movl	$3, %edx
	movl	$184, %ecx
	jmp	LBB0_12
LBB0_11:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$240, %edx
	movl	$1, %ecx
	callq	_adv7511_wr_and_or
	movq	%rbx, %rdi
	movl	$22, %esi
	movl	$3, %edx
	movl	$188, %ecx
LBB0_12:
	callq	_adv7511_wr_and_or
	movq	_HDMI_COLORSPACE_YUV422@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_14
LBB0_13:
	xorl	%ecx, %ecx
	callq	_adv7511_wr_and_or
	movq	%rbx, %rdi
	movl	$22, %esi
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_adv7511_wr_and_or
	movl	%r14d, %r15d
LBB0_14:
	movl	16(%r12), %eax
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, 8(%rdi)
	movl	20(%r12), %edx
	movl	%edx, 12(%rdi)
	movl	28(%r12), %ecx
	movl	%ecx, 28(%rdi)
	movl	24(%r12), %eax
	movl	%eax, 16(%rdi)
	movl	32(%r12), %esi
	movl	%esi, 24(%rdi)
	addl	$-130, %edx
	cmpl	$4, %edx
	movq	_HDMI_EXTENDED_COLORIMETRY_XV_YCC_601@GOTPCREL(%rip), %r10
	movq	_HDMI_COLORIMETRY_NONE@GOTPCREL(%rip), %rdi
	ja	LBB0_17
## %bb.15:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	jmpq	*%rdx
LBB0_16:
	movq	%rbx, %r9
	testl	%r15d, %r15d
	movq	_HDMI_COLORIMETRY_EXTENDED@GOTPCREL(%rip), %rcx
	cmoveq	_HDMI_COLORIMETRY_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	_HDMI_EXTENDED_COLORIMETRY_S_YCC_601@GOTPCREL(%rip), %rcx
	cmoveq	_HDMI_EXTENDED_COLORIMETRY_XV_YCC_601@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	jmp	LBB0_27
LBB0_17:
	movq	%rbx, %r9
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_35
LBB0_18:
	testl	%r15d, %r15d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_28
## %bb.19:
	movq	%rbx, %r9
	movq	_V4L2_YCBCR_ENC_XV601@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_31
## %bb.20:
	movq	_HDMI_COLORIMETRY_EXTENDED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	(%r10), %r13d
	jmp	LBB0_35
LBB0_21:
	testl	%r15d, %r15d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_28
## %bb.22:
	movq	%rbx, %r9
	movq	_V4L2_YCBCR_ENC_XV709@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_32
## %bb.23:
	movq	_HDMI_COLORIMETRY_EXTENDED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	_HDMI_EXTENDED_COLORIMETRY_XV_YCC_709@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	jmp	LBB0_35
LBB0_24:
	movq	_HDMI_COLORIMETRY_EXTENDED@GOTPCREL(%rip), %rcx
	movq	%rbx, %r9
	testl	%r15d, %r15d
	jne	LBB0_29
## %bb.25:
	movq	_HDMI_EXTENDED_COLORIMETRY_OPRGB@GOTPCREL(%rip), %rdx
	jmp	LBB0_30
LBB0_26:
	movq	%rbx, %r9
	movq	_HDMI_COLORIMETRY_EXTENDED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	testl	%r15d, %r15d
	setne	%dl
	movq	_V4L2_YCBCR_ENC_BT2020_CONST_LUM@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	sete	%cl
	andb	%dl, %cl
	movzbl	%cl, %ecx
	movl	$6, %r13d
	subl	%ecx, %r13d
LBB0_27:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_35
LBB0_28:
	movq	%rbx, %r9
	movl	(%rdi), %r14d
	jmp	LBB0_34
LBB0_29:
	movq	_HDMI_EXTENDED_COLORIMETRY_OPYCC_601@GOTPCREL(%rip), %rdx
LBB0_30:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rcx), %r14d
	movl	(%rdx), %r13d
	jmp	LBB0_35
LBB0_31:
	movq	_HDMI_COLORIMETRY_ITU_601@GOTPCREL(%rip), %rcx
	jmp	LBB0_33
LBB0_32:
	movq	_HDMI_COLORIMETRY_ITU_709@GOTPCREL(%rip), %rcx
LBB0_33:
	movl	(%rcx), %r14d
LBB0_34:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_35:
	movq	_HDMI_YCC_QUANTIZATION_RANGE_LIMITED@GOTPCREL(%rip), %rcx
	cmpl	$128, %eax
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	je	LBB0_41
## %bb.36:
	cmpl	$129, %eax
	jne	LBB0_47
## %bb.37:
	testl	%r15d, %r15d
	movq	_HDMI_QUANTIZATION_RANGE_DEFAULT@GOTPCREL(%rip), %rax
	jne	LBB0_39
## %bb.38:
	movq	_HDMI_QUANTIZATION_RANGE_FULL@GOTPCREL(%rip), %rax
LBB0_39:
	movl	(%rax), %ebx
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	subl	$1, %ebx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jae	LBB0_47
## %bb.40:
	movq	_HDMI_YCC_QUANTIZATION_RANGE_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_46
LBB0_41:
	testl	%r15d, %r15d
	jne	LBB0_43
## %bb.42:
	movq	_HDMI_QUANTIZATION_RANGE_LIMITED@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_43:
	movq	_HDMI_QUANTIZATION_RANGE_DEFAULT@GOTPCREL(%rip), %rax
LBB0_44:
	movl	(%rax), %ebx
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	subl	$1, %ebx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jae	LBB0_47
## %bb.45:
	movl	(%rcx), %eax
LBB0_46:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_47:
	xorl	%r12d, %r12d
	cmpq	%r8, %rsi
	setne	%r12b
	xorl	%ebx, %ebx
	movq	%r9, %r14
	movq	%r9, %rdi
	movl	$74, %esi
	movl	$191, %edx
	xorl	%ecx, %ecx
	callq	_adv7511_wr_and_or
	shll	$5, %r15d
	movq	%r14, %rdi
	movl	$85, %esi
	movl	$159, %edx
	movl	%r15d, %ecx
	callq	_adv7511_wr_and_or
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	shll	$6, %ecx
	movq	%r14, %rdi
	movl	$86, %esi
	movl	$63, %edx
	callq	_adv7511_wr_and_or
	shll	$4, %r13d
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	shll	$2, %eax
	orl	%r13d, %eax
	shll	$7, %r12d
	orl	%eax, %r12d
	movq	%r14, %rdi
	movl	$87, %esi
	movl	$131, %edx
	movl	%r12d, %ecx
	callq	_adv7511_wr_and_or
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	shll	$6, %eax
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	shll	$4, %ecx
	orl	%eax, %ecx
	movq	%r14, %rdi
	movl	$89, %esi
	movl	$15, %edx
	callq	_adv7511_wr_and_or
	movq	%r14, %rdi
	movl	$74, %esi
	movl	$255, %edx
	movl	$1, %ecx
	callq	_adv7511_wr_and_or
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %esi
	movq	%r14, %rdi
	callq	_adv7511_set_rgb_quantization_mode
	jmp	LBB0_7
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_21
	.long	L0_0_set_24
	.long	L0_0_set_26
	.end_data_region
                                        ## -- End function
	.comm	_HDMI_COLORIMETRY_NONE,4,2      ## @HDMI_COLORIMETRY_NONE
	.comm	_HDMI_EXTENDED_COLORIMETRY_XV_YCC_601,4,2 ## @HDMI_EXTENDED_COLORIMETRY_XV_YCC_601
	.comm	_HDMI_COLORSPACE_RGB,4,2        ## @HDMI_COLORSPACE_RGB
	.comm	_HDMI_QUANTIZATION_RANGE_DEFAULT,4,2 ## @HDMI_QUANTIZATION_RANGE_DEFAULT
	.comm	_HDMI_YCC_QUANTIZATION_RANGE_LIMITED,4,2 ## @HDMI_YCC_QUANTIZATION_RANGE_LIMITED
	.comm	_V4L2_DV_IT_CONTENT_TYPE_NO_ITC,8,3 ## @V4L2_DV_IT_CONTENT_TYPE_NO_ITC
	.comm	_V4L2_DV_IT_CONTENT_TYPE_GRAPHICS,4,2 ## @V4L2_DV_IT_CONTENT_TYPE_GRAPHICS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ## @V4L2_SUBDEV_FORMAT_TRY
	.comm	_HDMI_COLORSPACE_YUV422,4,2     ## @HDMI_COLORSPACE_YUV422
	.comm	_HDMI_COLORIMETRY_EXTENDED,4,2  ## @HDMI_COLORIMETRY_EXTENDED
	.comm	_HDMI_EXTENDED_COLORIMETRY_OPYCC_601,4,2 ## @HDMI_EXTENDED_COLORIMETRY_OPYCC_601
	.comm	_HDMI_EXTENDED_COLORIMETRY_OPRGB,4,2 ## @HDMI_EXTENDED_COLORIMETRY_OPRGB
	.comm	_HDMI_COLORIMETRY_ITU_601,4,2   ## @HDMI_COLORIMETRY_ITU_601
	.comm	_V4L2_YCBCR_ENC_XV601,4,2       ## @V4L2_YCBCR_ENC_XV601
	.comm	_HDMI_COLORIMETRY_ITU_709,4,2   ## @HDMI_COLORIMETRY_ITU_709
	.comm	_V4L2_YCBCR_ENC_XV709,4,2       ## @V4L2_YCBCR_ENC_XV709
	.comm	_HDMI_EXTENDED_COLORIMETRY_XV_YCC_709,4,2 ## @HDMI_EXTENDED_COLORIMETRY_XV_YCC_709
	.comm	_HDMI_EXTENDED_COLORIMETRY_S_YCC_601,4,2 ## @HDMI_EXTENDED_COLORIMETRY_S_YCC_601
	.comm	_V4L2_YCBCR_ENC_BT2020_CONST_LUM,4,2 ## @V4L2_YCBCR_ENC_BT2020_CONST_LUM
	.comm	_HDMI_QUANTIZATION_RANGE_FULL,4,2 ## @HDMI_QUANTIZATION_RANGE_FULL
	.comm	_HDMI_YCC_QUANTIZATION_RANGE_FULL,4,2 ## @HDMI_YCC_QUANTIZATION_RANGE_FULL
	.comm	_HDMI_QUANTIZATION_RANGE_LIMITED,4,2 ## @HDMI_QUANTIZATION_RANGE_LIMITED
	.no_dead_strip	_adv7511_set_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7511_set_fmt
_adv7511_set_fmt:                       ; @adv7511_set_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_get_adv7511_state
	ldr	x25, [x0]
Lloh0:
	adrp	x8, _V4L2_DV_IT_CONTENT_TYPE_NO_ITC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_DV_IT_CONTENT_TYPE_NO_ITC@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _V4L2_DV_IT_CONTENT_TYPE_GRAPHICS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_DV_IT_CONTENT_TYPE_GRAPHICS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x25, x10
	csel	w9, w8, w25, eq
	ldr	x8, [x21]
	cbnz	x8, LBB0_4
; %bb.1:
	mov	x23, x21
	ldr	w8, [x23, #16]!
	sub	w8, w8, #135
	cmp	w8, #3
	b.hs	LBB0_4
; %bb.2:
	mov	x20, x0
	str	x10, [sp, #16]                  ; 8-byte Folded Spill
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _HDMI_COLORIMETRY_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDMI_COLORIMETRY_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
Lloh9:
	adrp	x8, _HDMI_EXTENDED_COLORIMETRY_XV_YCC_601@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDMI_EXTENDED_COLORIMETRY_XV_YCC_601@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
Lloh12:
	adrp	x8, _HDMI_COLORSPACE_RGB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HDMI_COLORSPACE_RGB@GOTPAGEOFF]
Lloh14:
	ldr	w27, [x8]
Lloh15:
	adrp	x8, _HDMI_QUANTIZATION_RANGE_DEFAULT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HDMI_QUANTIZATION_RANGE_DEFAULT@GOTPAGEOFF]
Lloh17:
	ldr	w28, [x8]
Lloh18:
	adrp	x8, _HDMI_YCC_QUANTIZATION_RANGE_LIMITED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HDMI_YCC_QUANTIZATION_RANGE_LIMITED@GOTPAGEOFF]
Lloh20:
	ldr	w26, [x8]
	mov	x1, x23
	bl	_adv7511_fill_format
	ldr	x8, [x21, #8]
Lloh21:
	adrp	x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x2, [x21]
	mov	x0, x19
	mov	x1, x22
	bl	_v4l2_subdev_get_try_format
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x21, #16]
	str	w9, [x8]
	ldur	q0, [x21, #20]
	mov.16b	v1, v0
	mov.s	v1[2], v0[3]
	mov.s	v1[3], v0[2]
	stur	q1, [x8, #4]
	b	LBB0_5
LBB0_4:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	str	w27, [sp, #12]                  ; 4-byte Folded Spill
	ldr	w8, [x23]
	cmp	w8, #135
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, #136
	mov	x22, x26
	mov	x23, x28
	mov	x26, x24
	mov	x0, x19
	mov	w1, #21
	mov	w2, #240
	b.ne	LBB0_10
; %bb.8:
	mov	w3, #1
	bl	_adv7511_wr_and_or
	mov	x0, x19
	mov	w1, #22
	mov	w2, #3
	mov	w3, #184
	bl	_adv7511_wr_and_or
Lloh27:
	adrp	x8, _HDMI_COLORSPACE_YUV422@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HDMI_COLORSPACE_YUV422@GOTPAGEOFF]
Lloh29:
	ldr	w28, [x8]
	ldr	w24, [sp, #24]                  ; 4-byte Folded Reload
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	mov	w1, #21
	mov	w2, #240
	mov	w3, #1
	bl	_adv7511_wr_and_or
	mov	x0, x19
	mov	w1, #22
	mov	w2, #3
	mov	w3, #188
	bl	_adv7511_wr_and_or
Lloh30:
	adrp	x8, _HDMI_COLORSPACE_YUV422@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HDMI_COLORSPACE_YUV422@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	mov	x22, x26
	mov	x23, x28
	mov	x28, x8
	mov	x26, x24
	ldr	w24, [sp, #24]                  ; 4-byte Folded Reload
	b	LBB0_11
LBB0_10:
	mov	w3, #0
	bl	_adv7511_wr_and_or
	mov	x0, x19
	mov	w1, #22
	mov	w2, #3
	mov	w3, #0
	bl	_adv7511_wr_and_or
	ldr	w24, [sp, #24]                  ; 4-byte Folded Reload
	ldr	w28, [sp, #12]                  ; 4-byte Folded Reload
LBB0_11:
	ldp	w8, w9, [x21, #16]
	stp	w8, w9, [x20, #8]
	ldr	w8, [x21, #24]
	str	w8, [x20, #16]
	ldur	d0, [x21, #28]
	rev64.2s	v1, v0
	str	d1, [x20, #24]
	sub	w9, w9, #130
	cmp	w9, #4
Lloh33:
	adrp	x13, _HDMI_EXTENDED_COLORIMETRY_XV_YCC_601@GOTPAGE
Lloh34:
	ldr	x13, [x13, _HDMI_EXTENDED_COLORIMETRY_XV_YCC_601@GOTPAGEOFF]
Lloh35:
	adrp	x14, _HDMI_COLORIMETRY_NONE@GOTPAGE
Lloh36:
	ldr	x14, [x14, _HDMI_COLORIMETRY_NONE@GOTPAGEOFF]
	b.hi	LBB0_23
; %bb.12:
Lloh37:
	adrp	x10, lJTI0_0@PAGE
Lloh38:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_13
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_13:
Lloh39:
	adrp	x9, _HDMI_COLORIMETRY_EXTENDED@GOTPAGE
Lloh40:
	ldr	x9, [x9, _HDMI_COLORIMETRY_EXTENDED@GOTPAGEOFF]
	cmp	w28, #0
	csel	x9, x14, x9, eq
	ldr	w24, [x9]
Lloh41:
	adrp	x9, _HDMI_EXTENDED_COLORIMETRY_S_YCC_601@GOTPAGE
Lloh42:
	ldr	x9, [x9, _HDMI_EXTENDED_COLORIMETRY_S_YCC_601@GOTPAGEOFF]
	csel	x9, x13, x9, eq
	ldr	w26, [x9]
	b	LBB0_23
LBB0_14:
	cbz	w28, LBB0_22
; %bb.15:
Lloh43:
	adrp	x9, _V4L2_YCBCR_ENC_XV601@GOTPAGE
Lloh44:
	ldr	x9, [x9, _V4L2_YCBCR_ENC_XV601@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	fmov	w10, s0
	cmp	w10, w9
Lloh46:
	adrp	x11, _HDMI_YCC_QUANTIZATION_RANGE_LIMITED@GOTPAGE
Lloh47:
	ldr	x11, [x11, _HDMI_YCC_QUANTIZATION_RANGE_LIMITED@GOTPAGEOFF]
	b.ne	LBB0_26
; %bb.16:
Lloh48:
	adrp	x9, _HDMI_COLORIMETRY_EXTENDED@GOTPAGE
Lloh49:
	ldr	x9, [x9, _HDMI_COLORIMETRY_EXTENDED@GOTPAGEOFF]
Lloh50:
	ldr	w24, [x9]
	ldr	w26, [x13]
	b	LBB0_29
LBB0_17:
	cbz	w28, LBB0_22
; %bb.18:
Lloh51:
	adrp	x9, _V4L2_YCBCR_ENC_XV709@GOTPAGE
Lloh52:
	ldr	x9, [x9, _V4L2_YCBCR_ENC_XV709@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	fmov	w10, s0
	cmp	w10, w9
Lloh54:
	adrp	x11, _HDMI_YCC_QUANTIZATION_RANGE_LIMITED@GOTPAGE
Lloh55:
	ldr	x11, [x11, _HDMI_YCC_QUANTIZATION_RANGE_LIMITED@GOTPAGEOFF]
	b.ne	LBB0_27
; %bb.19:
Lloh56:
	adrp	x9, _HDMI_COLORIMETRY_EXTENDED@GOTPAGE
Lloh57:
	ldr	x9, [x9, _HDMI_COLORIMETRY_EXTENDED@GOTPAGEOFF]
Lloh58:
	ldr	w24, [x9]
Lloh59:
	adrp	x9, _HDMI_EXTENDED_COLORIMETRY_XV_YCC_709@GOTPAGE
Lloh60:
	ldr	x9, [x9, _HDMI_EXTENDED_COLORIMETRY_XV_YCC_709@GOTPAGEOFF]
Lloh61:
	ldr	w26, [x9]
	b	LBB0_29
LBB0_20:
Lloh62:
	adrp	x9, _HDMI_COLORIMETRY_EXTENDED@GOTPAGE
Lloh63:
	ldr	x9, [x9, _HDMI_COLORIMETRY_EXTENDED@GOTPAGEOFF]
Lloh64:
	adrp	x10, _HDMI_EXTENDED_COLORIMETRY_OPYCC_601@GOTPAGE
Lloh65:
	ldr	x10, [x10, _HDMI_EXTENDED_COLORIMETRY_OPYCC_601@GOTPAGEOFF]
Lloh66:
	ldr	w24, [x9]
Lloh67:
	adrp	x9, _HDMI_EXTENDED_COLORIMETRY_OPRGB@GOTPAGE
Lloh68:
	ldr	x9, [x9, _HDMI_EXTENDED_COLORIMETRY_OPRGB@GOTPAGEOFF]
	cmp	w28, #0
	csel	x9, x9, x10, eq
	ldr	w26, [x9]
	b	LBB0_23
LBB0_21:
Lloh69:
	adrp	x9, _HDMI_COLORIMETRY_EXTENDED@GOTPAGE
Lloh70:
	ldr	x9, [x9, _HDMI_COLORIMETRY_EXTENDED@GOTPAGEOFF]
Lloh71:
	ldr	w24, [x9]
Lloh72:
	adrp	x9, _V4L2_YCBCR_ENC_BT2020_CONST_LUM@GOTPAGE
Lloh73:
	ldr	x9, [x9, _V4L2_YCBCR_ENC_BT2020_CONST_LUM@GOTPAGEOFF]
Lloh74:
	ldr	w9, [x9]
	fmov	w10, s0
	cmp	w10, w9
	ccmp	w28, #0, #4, eq
	mov	w9, #5
	cinc	w26, w9, eq
	b	LBB0_23
LBB0_22:
	ldr	w24, [x14]
LBB0_23:
Lloh75:
	adrp	x9, _HDMI_QUANTIZATION_RANGE_DEFAULT@GOTPAGE
Lloh76:
	ldr	x9, [x9, _HDMI_QUANTIZATION_RANGE_DEFAULT@GOTPAGEOFF]
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
Lloh77:
	adrp	x11, _HDMI_YCC_QUANTIZATION_RANGE_LIMITED@GOTPAGE
Lloh78:
	ldr	x11, [x11, _HDMI_YCC_QUANTIZATION_RANGE_LIMITED@GOTPAGEOFF]
	cmp	w8, #128
	b.eq	LBB0_30
LBB0_24:
	cmp	w8, #129
	b.ne	LBB0_32
; %bb.25:
Lloh79:
	adrp	x8, _HDMI_QUANTIZATION_RANGE_FULL@GOTPAGE
Lloh80:
	ldr	x8, [x8, _HDMI_QUANTIZATION_RANGE_FULL@GOTPAGEOFF]
	cmp	w28, #0
	csel	x8, x8, x9, eq
	ldr	w23, [x8]
	sub	w8, w23, #1
Lloh81:
	adrp	x9, _HDMI_YCC_QUANTIZATION_RANGE_FULL@GOTPAGE
Lloh82:
	ldr	x9, [x9, _HDMI_YCC_QUANTIZATION_RANGE_FULL@GOTPAGEOFF]
Lloh83:
	ldr	w9, [x9]
	b	LBB0_31
LBB0_26:
Lloh84:
	adrp	x9, _HDMI_COLORIMETRY_ITU_601@GOTPAGE
Lloh85:
	ldr	x9, [x9, _HDMI_COLORIMETRY_ITU_601@GOTPAGEOFF]
	b	LBB0_28
LBB0_27:
Lloh86:
	adrp	x9, _HDMI_COLORIMETRY_ITU_709@GOTPAGE
Lloh87:
	ldr	x9, [x9, _HDMI_COLORIMETRY_ITU_709@GOTPAGEOFF]
LBB0_28:
	ldr	w24, [x9]
LBB0_29:
Lloh88:
	adrp	x9, _HDMI_QUANTIZATION_RANGE_DEFAULT@GOTPAGE
Lloh89:
	ldr	x9, [x9, _HDMI_QUANTIZATION_RANGE_DEFAULT@GOTPAGEOFF]
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	cmp	w8, #128
	b.ne	LBB0_24
LBB0_30:
Lloh90:
	adrp	x8, _HDMI_QUANTIZATION_RANGE_LIMITED@GOTPAGE
Lloh91:
	ldr	x8, [x8, _HDMI_QUANTIZATION_RANGE_LIMITED@GOTPAGEOFF]
	cmp	w28, #0
	csel	x8, x8, x9, eq
	ldr	w23, [x8]
	sub	w8, w23, #1
	ldr	w9, [x11]
LBB0_31:
	cmp	w23, #0
	csel	w22, w9, w8, eq
LBB0_32:
	cmp	x25, x10
	cset	w21, ne
	mov	x0, x19
	mov	w1, #74
	mov	w2, #191
	mov	w3, #0
	bl	_adv7511_wr_and_or
	lsl	w3, w28, #5
	mov	x0, x19
	mov	w1, #85
	mov	w2, #159
	bl	_adv7511_wr_and_or
	lsl	w3, w24, #6
	mov	x0, x19
	mov	w1, #86
	mov	w2, #63
	bl	_adv7511_wr_and_or
	lsl	w8, w26, #4
	orr	w8, w8, w21, lsl #7
	orr	w3, w8, w23, lsl #2
	mov	x0, x19
	mov	w1, #87
	mov	w2, #131
	bl	_adv7511_wr_and_or
	lsl	w8, w22, #6
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	orr	w3, w8, w9, lsl #4
	mov	x0, x19
	mov	w1, #89
	mov	w2, #15
	bl	_adv7511_wr_and_or
	mov	x0, x19
	mov	w1, #74
	mov	w2, #255
	mov	w3, #1
	bl	_adv7511_wr_and_or
	ldr	w1, [x20, #20]
	mov	x0, x19
	bl	_adv7511_set_rgb_quantization_mode
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh66
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh90, Lloh91
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_14-LBB0_13)>>2
	.byte	(LBB0_17-LBB0_13)>>2
	.byte	(LBB0_20-LBB0_13)>>2
	.byte	(LBB0_21-LBB0_13)>>2
                                        ; -- End function
	.comm	_HDMI_COLORIMETRY_NONE,4,2      ; @HDMI_COLORIMETRY_NONE
	.comm	_HDMI_EXTENDED_COLORIMETRY_XV_YCC_601,4,2 ; @HDMI_EXTENDED_COLORIMETRY_XV_YCC_601
	.comm	_HDMI_COLORSPACE_RGB,4,2        ; @HDMI_COLORSPACE_RGB
	.comm	_HDMI_QUANTIZATION_RANGE_DEFAULT,4,2 ; @HDMI_QUANTIZATION_RANGE_DEFAULT
	.comm	_HDMI_YCC_QUANTIZATION_RANGE_LIMITED,4,2 ; @HDMI_YCC_QUANTIZATION_RANGE_LIMITED
	.comm	_V4L2_DV_IT_CONTENT_TYPE_NO_ITC,8,3 ; @V4L2_DV_IT_CONTENT_TYPE_NO_ITC
	.comm	_V4L2_DV_IT_CONTENT_TYPE_GRAPHICS,4,2 ; @V4L2_DV_IT_CONTENT_TYPE_GRAPHICS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_HDMI_COLORSPACE_YUV422,4,2     ; @HDMI_COLORSPACE_YUV422
	.comm	_HDMI_COLORIMETRY_EXTENDED,4,2  ; @HDMI_COLORIMETRY_EXTENDED
	.comm	_HDMI_EXTENDED_COLORIMETRY_OPYCC_601,4,2 ; @HDMI_EXTENDED_COLORIMETRY_OPYCC_601
	.comm	_HDMI_EXTENDED_COLORIMETRY_OPRGB,4,2 ; @HDMI_EXTENDED_COLORIMETRY_OPRGB
	.comm	_HDMI_COLORIMETRY_ITU_601,4,2   ; @HDMI_COLORIMETRY_ITU_601
	.comm	_V4L2_YCBCR_ENC_XV601,4,2       ; @V4L2_YCBCR_ENC_XV601
	.comm	_HDMI_COLORIMETRY_ITU_709,4,2   ; @HDMI_COLORIMETRY_ITU_709
	.comm	_V4L2_YCBCR_ENC_XV709,4,2       ; @V4L2_YCBCR_ENC_XV709
	.comm	_HDMI_EXTENDED_COLORIMETRY_XV_YCC_709,4,2 ; @HDMI_EXTENDED_COLORIMETRY_XV_YCC_709
	.comm	_HDMI_EXTENDED_COLORIMETRY_S_YCC_601,4,2 ; @HDMI_EXTENDED_COLORIMETRY_S_YCC_601
	.comm	_V4L2_YCBCR_ENC_BT2020_CONST_LUM,4,2 ; @V4L2_YCBCR_ENC_BT2020_CONST_LUM
	.comm	_HDMI_QUANTIZATION_RANGE_FULL,4,2 ; @HDMI_QUANTIZATION_RANGE_FULL
	.comm	_HDMI_YCC_QUANTIZATION_RANGE_FULL,4,2 ; @HDMI_YCC_QUANTIZATION_RANGE_FULL
	.comm	_HDMI_QUANTIZATION_RANGE_LIMITED,4,2 ; @HDMI_QUANTIZATION_RANGE_LIMITED
	.no_dead_strip	_adv7511_set_fmt
.subsections_via_symbols
