	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_set_video_color_format ## -- Begin function analogix_dp_set_video_color_format
	.p2align	4, 0x90
_analogix_dp_set_video_color_format:    ## @analogix_dp_set_video_color_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_IN_D_RANGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	8(%rdi), %eax
	movl	12(%rdi), %edx
	shll	%cl, %eax
	movq	_IN_BPC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	movl	16(%rdi), %edi
	movq	_IN_COLOR_F_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	orl	%edx, %edi
	movq	_ANALOGIX_DP_VIDEO_CTL_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_ANALOGIX_DP_VIDEO_CTL_3@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	_IN_YC_COEFFI_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	cmpq	$0, 24(%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_IN_YC_COEFFI_ITU601@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IN_YC_COEFFI_ITU709@GOTPCREL(%rip), %rax
LBB0_3:
	orl	(%rax), %edi
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IN_D_RANGE_SHIFT,4,2           ## @IN_D_RANGE_SHIFT
	.comm	_IN_BPC_SHIFT,4,2               ## @IN_BPC_SHIFT
	.comm	_IN_COLOR_F_SHIFT,4,2           ## @IN_COLOR_F_SHIFT
	.comm	_ANALOGIX_DP_VIDEO_CTL_2,8,3    ## @ANALOGIX_DP_VIDEO_CTL_2
	.comm	_ANALOGIX_DP_VIDEO_CTL_3,8,3    ## @ANALOGIX_DP_VIDEO_CTL_3
	.comm	_IN_YC_COEFFI_MASK,4,2          ## @IN_YC_COEFFI_MASK
	.comm	_IN_YC_COEFFI_ITU709,4,2        ## @IN_YC_COEFFI_ITU709
	.comm	_IN_YC_COEFFI_ITU601,4,2        ## @IN_YC_COEFFI_ITU601
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_set_video_color_format ; -- Begin function analogix_dp_set_video_color_format
	.p2align	2
_analogix_dp_set_video_color_format:    ; @analogix_dp_set_video_color_format
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _IN_D_RANGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IN_D_RANGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x0, #8]
	lsl	w8, w9, w8
Lloh3:
	adrp	x9, _IN_BPC_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IN_BPC_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w8, w9, w8
	ldr	w9, [x0, #16]
Lloh6:
	adrp	x10, _IN_COLOR_F_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IN_COLOR_F_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _ANALOGIX_DP_VIDEO_CTL_2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ANALOGIX_DP_VIDEO_CTL_2@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh12:
	adrp	x20, _ANALOGIX_DP_VIDEO_CTL_3@GOTPAGE
Lloh13:
	ldr	x20, [x20, _ANALOGIX_DP_VIDEO_CTL_3@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh14:
	adrp	x8, _IN_YC_COEFFI_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IN_YC_COEFFI_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	x9, [x19, #24]
Lloh17:
	adrp	x10, _IN_YC_COEFFI_ITU601@GOTPAGE
Lloh18:
	ldr	x10, [x10, _IN_YC_COEFFI_ITU601@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh19:
	adrp	x11, _IN_YC_COEFFI_ITU709@GOTPAGE
Lloh20:
	ldr	x11, [x11, _IN_YC_COEFFI_ITU709@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IN_D_RANGE_SHIFT,4,2           ; @IN_D_RANGE_SHIFT
	.comm	_IN_BPC_SHIFT,4,2               ; @IN_BPC_SHIFT
	.comm	_IN_COLOR_F_SHIFT,4,2           ; @IN_COLOR_F_SHIFT
	.comm	_ANALOGIX_DP_VIDEO_CTL_2,8,3    ; @ANALOGIX_DP_VIDEO_CTL_2
	.comm	_ANALOGIX_DP_VIDEO_CTL_3,8,3    ; @ANALOGIX_DP_VIDEO_CTL_3
	.comm	_IN_YC_COEFFI_MASK,4,2          ; @IN_YC_COEFFI_MASK
	.comm	_IN_YC_COEFFI_ITU709,4,2        ; @IN_YC_COEFFI_ITU709
	.comm	_IN_YC_COEFFI_ITU601,4,2        ; @IN_YC_COEFFI_ITU601
.subsections_via_symbols
