	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7511_set_config_csc
_adv7511_set_config_csc:                ## @adv7511_set_config_csc
	.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	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%ecx, -152(%rbp)
	leaq	-144(%rbp), %r14
	movq	%r14, %rdi
	callq	_hdmi_avi_infoframe_init
	movq	_HDMI_SCAN_MODE_UNDERSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -140(%rbp)
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movl	$0, -148(%rbp)
	movq	_HDMI_COLORSPACE_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -144(%rbp)
	movl	-152(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_11
LBB0_7:
	movq	_ADV7511_HDMI_CFG_MODE_HDMI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	cmpl	$128, %eax
	je	LBB0_8
## %bb.9:
	cmpl	$129, %eax
	je	LBB0_10
	jmp	LBB0_12
LBB0_2:
	movq	_ADV7511_CSC_SCALING_4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -136(%rbp)
	movq	_adv7511_csc_ycbcr_to_rgb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -132(%rbp)
	movq	_DRM_COLOR_FORMAT_YCRCB422@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-152(%rbp), %ecx
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.3:
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	movabsq	$554050781184, %rax             ## imm = 0x8100000000
	movq	%rax, -148(%rbp)
	movq	_ADV7511_HDMI_CFG_MODE_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_10:
	movl	$1, %eax
	movl	$128, %ebx
	jmp	LBB0_13
LBB0_5:
	movl	$1, -148(%rbp)
	movq	_HDMI_COLORSPACE_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -144(%rbp)
	testl	%ecx, %ecx
	jne	LBB0_7
LBB0_11:
	movq	_ADV7511_HDMI_CFG_MODE_DVI@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_12:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_8:
	movl	$1, %eax
	xorl	%ebx, %ebx
LBB0_13:
	orl	%eax, %ebx
	movq	_ADV7511_PACKET_ENABLE_AVI_INFOFRAME@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_adv7511_packet_disable
	movl	-132(%rbp), %edx
	movl	-148(%rbp), %esi
	movl	-136(%rbp), %ecx
	movq	%r12, %rdi
	callq	_adv7511_set_colormap
	movl	(%r12), %edi
	movq	_ADV7511_REG_VIDEO_INPUT_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$129, %edx
	movl	%ebx, %ecx
	callq	_regmap_update_bits
	movl	(%r12), %edi
	movq	_ADV7511_REG_HDCP_HDMI_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADV7511_HDMI_CFG_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %ecx
	callq	_regmap_update_bits
	leaq	-128(%rbp), %rsi
	movq	%r14, %rdi
	movl	$68, %edx
	callq	_hdmi_avi_infoframe_pack
	movl	(%r12), %edi
	movq	_ADV7511_REG_AVI_INFOFRAME_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-124(%rbp), %rdx
	movl	$67, %ecx
	callq	_regmap_bulk_write
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_adv7511_packet_enable
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_SCAN_MODE_UNDERSCAN,4,2   ## @HDMI_SCAN_MODE_UNDERSCAN
	.comm	_HDMI_COLORSPACE_RGB,8,3        ## @HDMI_COLORSPACE_RGB
	.comm	_ADV7511_CSC_SCALING_4,4,2      ## @ADV7511_CSC_SCALING_4
	.comm	_adv7511_csc_ycbcr_to_rgb,4,2   ## @adv7511_csc_ycbcr_to_rgb
	.comm	_DRM_COLOR_FORMAT_YCRCB422,4,2  ## @DRM_COLOR_FORMAT_YCRCB422
	.comm	_ADV7511_HDMI_CFG_MODE_HDMI,4,2 ## @ADV7511_HDMI_CFG_MODE_HDMI
	.comm	_ADV7511_HDMI_CFG_MODE_DVI,4,2  ## @ADV7511_HDMI_CFG_MODE_DVI
	.comm	_ADV7511_PACKET_ENABLE_AVI_INFOFRAME,4,2 ## @ADV7511_PACKET_ENABLE_AVI_INFOFRAME
	.comm	_ADV7511_REG_VIDEO_INPUT_CFG1,4,2 ## @ADV7511_REG_VIDEO_INPUT_CFG1
	.comm	_ADV7511_REG_HDCP_HDMI_CFG,4,2  ## @ADV7511_REG_HDCP_HDMI_CFG
	.comm	_ADV7511_HDMI_CFG_MODE_MASK,4,2 ## @ADV7511_HDMI_CFG_MODE_MASK
	.comm	_ADV7511_REG_AVI_INFOFRAME_VERSION,4,2 ## @ADV7511_REG_AVI_INFOFRAME_VERSION
	.no_dead_strip	_adv7511_set_config_csc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function adv7511_set_config_csc
lCPI0_0:
	.long	0                               ; 0x0
	.long	129                             ; 0x81
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_adv7511_set_config_csc:                ; @adv7511_set_config_csc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	w3, [sp, #8]
	add	x8, sp, #8
	add	x20, x8, #8
	mov	x0, x20
	bl	_hdmi_avi_infoframe_init
Lloh3:
	adrp	x8, _HDMI_SCAN_MODE_UNDERSCAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_SCAN_MODE_UNDERSCAN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	cbz	w22, LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _HDMI_COLORSPACE_RGB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDMI_COLORSPACE_RGB@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #12]
	ldr	w9, [sp, #8]
	cbz	w9, LBB0_7
LBB0_2:
Lloh9:
	adrp	x9, _ADV7511_HDMI_CFG_MODE_HDMI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ADV7511_HDMI_CFG_MODE_HDMI@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x9]
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.4:
	mov	w24, #0
	mov	w23, #0
	b	LBB0_11
LBB0_5:
Lloh12:
	adrp	x8, _ADV7511_CSC_SCALING_4@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADV7511_CSC_SCALING_4@GOTPAGEOFF]
Lloh14:
	adrp	x9, _adv7511_csc_ycbcr_to_rgb@GOTPAGE
Lloh15:
	ldr	x9, [x9, _adv7511_csc_ycbcr_to_rgb@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
Lloh18:
	adrp	x8, _DRM_COLOR_FORMAT_YCRCB422@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DRM_COLOR_FORMAT_YCRCB422@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh20:
	ldr	w8, [x8]
	and	w8, w8, w9
	ldr	w9, [sp, #8]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_8
; %bb.6:
	mov	w10, #1
Lloh21:
	adrp	x8, _HDMI_COLORSPACE_RGB@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HDMI_COLORSPACE_RGB@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	stp	w10, w8, [sp, #12]
	cbnz	w9, LBB0_2
LBB0_7:
	mov	w24, #0
	mov	w23, #0
Lloh24:
	adrp	x8, _ADV7511_HDMI_CFG_MODE_DVI@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ADV7511_HDMI_CFG_MODE_DVI@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
	b	LBB0_11
LBB0_8:
Lloh27:
	adrp	x8, lCPI0_0@PAGE
Lloh28:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #12]
Lloh29:
	adrp	x8, _ADV7511_HDMI_CFG_MODE_HDMI@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ADV7511_HDMI_CFG_MODE_HDMI@GOTPAGEOFF]
Lloh31:
	ldr	w21, [x8]
LBB0_9:
	mov	w23, #1
	mov	w24, #128
	b	LBB0_11
LBB0_10:
	mov	w24, #0
	mov	w23, #1
LBB0_11:
Lloh32:
	adrp	x22, _ADV7511_PACKET_ENABLE_AVI_INFOFRAME@GOTPAGE
Lloh33:
	ldr	x22, [x22, _ADV7511_PACKET_ENABLE_AVI_INFOFRAME@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_adv7511_packet_disable
	ldp	w3, w2, [sp, #24]
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_adv7511_set_colormap
	ldr	w0, [x19]
Lloh34:
	adrp	x8, _ADV7511_REG_VIDEO_INPUT_CFG1@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ADV7511_REG_VIDEO_INPUT_CFG1@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	orr	w3, w23, w24
	mov	w2, #129
	bl	_regmap_update_bits
	ldr	w0, [x19]
Lloh37:
	adrp	x8, _ADV7511_REG_HDCP_HDMI_CFG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ADV7511_REG_HDCP_HDMI_CFG@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _ADV7511_HDMI_CFG_MODE_MASK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ADV7511_HDMI_CFG_MODE_MASK@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x3, x21
	bl	_regmap_update_bits
	add	x21, sp, #36
	add	x1, sp, #36
	mov	x0, x20
	mov	w2, #68
	bl	_hdmi_avi_infoframe_pack
	ldr	w0, [x19]
Lloh43:
	adrp	x8, _ADV7511_REG_AVI_INFOFRAME_VERSION@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ADV7511_REG_AVI_INFOFRAME_VERSION@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	add	x2, x21, #4
	mov	w3, #67
	bl	_regmap_bulk_write
	ldr	w1, [x22]
	mov	x0, x19
	bl	_adv7511_packet_enable
	ldur	x8, [x29, #-56]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	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
	add	sp, sp, #176
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdrp	Lloh27, Lloh29
	.loh AdrpLdr	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_SCAN_MODE_UNDERSCAN,4,2   ; @HDMI_SCAN_MODE_UNDERSCAN
	.comm	_HDMI_COLORSPACE_RGB,8,3        ; @HDMI_COLORSPACE_RGB
	.comm	_ADV7511_CSC_SCALING_4,4,2      ; @ADV7511_CSC_SCALING_4
	.comm	_adv7511_csc_ycbcr_to_rgb,4,2   ; @adv7511_csc_ycbcr_to_rgb
	.comm	_DRM_COLOR_FORMAT_YCRCB422,4,2  ; @DRM_COLOR_FORMAT_YCRCB422
	.comm	_ADV7511_HDMI_CFG_MODE_HDMI,4,2 ; @ADV7511_HDMI_CFG_MODE_HDMI
	.comm	_ADV7511_HDMI_CFG_MODE_DVI,4,2  ; @ADV7511_HDMI_CFG_MODE_DVI
	.comm	_ADV7511_PACKET_ENABLE_AVI_INFOFRAME,4,2 ; @ADV7511_PACKET_ENABLE_AVI_INFOFRAME
	.comm	_ADV7511_REG_VIDEO_INPUT_CFG1,4,2 ; @ADV7511_REG_VIDEO_INPUT_CFG1
	.comm	_ADV7511_REG_HDCP_HDMI_CFG,4,2  ; @ADV7511_REG_HDCP_HDMI_CFG
	.comm	_ADV7511_HDMI_CFG_MODE_MASK,4,2 ; @ADV7511_HDMI_CFG_MODE_MASK
	.comm	_ADV7511_REG_AVI_INFOFRAME_VERSION,4,2 ; @ADV7511_REG_AVI_INFOFRAME_VERSION
	.no_dead_strip	_adv7511_set_config_csc
.subsections_via_symbols
