	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function analogix_dp_bridge_mode_set
_analogix_dp_bridge_mode_set:           ## @analogix_dp_bridge_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %r13
	movl	(%rdx), %eax
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%sil
	movl	%esi, 8(%rbx)
	movq	_DRM_MODE_FLAG_NVSYNC@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%sil
	movl	%esi, 12(%rbx)
	movq	_DRM_MODE_FLAG_NHSYNC@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	andl	(%rcx), %eax
	setne	%sil
	movl	%esi, 16(%rbx)
	movq	%rdx, %rdi
	callq	_drm_match_cea_mode
	movq	_CEA@GOTPCREL(%rip), %rcx
	cmpl	$22, %eax
	ja	LBB0_4
## %bb.1:
	movl	$6684876, %edx                  ## imm = 0x6600CC
	btl	%eax, %edx
	jae	LBB0_3
## %bb.2:
	movq	_COLOR_YCBCR601@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rcx), %rcx
	movq	%rcx, 40(%rbx)
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movl	56(%rbx), %eax
	addl	$-6, %eax
	cmpl	$6, %eax
	ja	LBB0_7
## %bb.8:
	cltq
	leaq	l_switch.table.analogix_dp_bridge_mode_set(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_COLOR_8@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movl	60(%rbx), %ecx
	movq	_DRM_COLOR_FORMAT_YCRCB444@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	movq	_DRM_COLOR_FORMAT_YCRCB422@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	jne	LBB0_10
## %bb.11:
	movq	_COLOR_RGB@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_10:
	movq	_COLOR_YCBCR422@GOTPCREL(%rip), %rcx
LBB0_12:
	leaq	40(%rbx), %r12
	leaq	32(%rbx), %r15
	leaq	24(%rbx), %r14
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	_COLOR_YCBCR444@GOTPCREL(%rip), %rcx
LBB0_14:
	movq	(%rcx), %rax
	leaq	48(%rbx), %rdx
	movq	%rax, 48(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_of_property_read_u32
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_of_property_read_u32
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_of_property_read_u32
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_of_property_read_u32
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	$1, 16(%rbx)
LBB0_16:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	$1, 12(%rbx)
LBB0_18:
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	$1, 8(%rbx)
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	_COLOR_YCBCR709@GOTPCREL(%rip), %rax
	movq	_VESA@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_COLOR_YCBCR709@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ## @DRM_MODE_FLAG_NVSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ## @DRM_MODE_FLAG_NHSYNC
	.comm	_CEA,8,3                        ## @CEA
	.comm	_COLOR_YCBCR601,8,3             ## @COLOR_YCBCR601
	.comm	_COLOR_YCBCR709,8,3             ## @COLOR_YCBCR709
	.comm	_VESA,8,3                       ## @VESA
	.comm	_COLOR_12,8,3                   ## @COLOR_12
	.comm	_COLOR_10,8,3                   ## @COLOR_10
	.comm	_COLOR_8,8,3                    ## @COLOR_8
	.comm	_COLOR_6,8,3                    ## @COLOR_6
	.comm	_DRM_COLOR_FORMAT_YCRCB444,4,2  ## @DRM_COLOR_FORMAT_YCRCB444
	.comm	_COLOR_YCBCR444,8,3             ## @COLOR_YCBCR444
	.comm	_DRM_COLOR_FORMAT_YCRCB422,4,2  ## @DRM_COLOR_FORMAT_YCRCB422
	.comm	_COLOR_YCBCR422,8,3             ## @COLOR_YCBCR422
	.comm	_COLOR_RGB,8,3                  ## @COLOR_RGB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"samsung,color-space"

L_.str.1:                               ## @.str.1
	.asciz	"samsung,dynamic-range"

L_.str.2:                               ## @.str.2
	.asciz	"samsung,ycbcr-coeff"

L_.str.3:                               ## @.str.3
	.asciz	"samsung,color-depth"

L_.str.4:                               ## @.str.4
	.asciz	"hsync-active-high"

L_.str.5:                               ## @.str.5
	.asciz	"vsync-active-high"

L_.str.6:                               ## @.str.6
	.asciz	"interlaced"

	.no_dead_strip	_analogix_dp_bridge_mode_set
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.analogix_dp_bridge_mode_set
l_switch.table.analogix_dp_bridge_mode_set:
	.quad	_COLOR_6
	.quad	_COLOR_8
	.quad	_COLOR_8
	.quad	_COLOR_8
	.quad	_COLOR_10
	.quad	_COLOR_8
	.quad	_COLOR_12

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function analogix_dp_bridge_mode_set
_analogix_dp_bridge_mode_set:           ; @analogix_dp_bridge_mode_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x23, [x0]
	ldr	x8, [x23]
	ldr	x19, [x8]
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
Lloh3:
	adrp	x9, _DRM_MODE_FLAG_NVSYNC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_MODE_FLAG_NVSYNC@GOTPAGEOFF]
	cset	w10, ne
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
	stp	w10, w9, [x23, #8]
Lloh6:
	adrp	x9, _DRM_MODE_FLAG_NHSYNC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_MODE_FLAG_NHSYNC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x23, #16]
	mov	x0, x2
	bl	_drm_match_cea_mode
	cmp	w0, #22
	b.hi	LBB0_16
; %bb.1:
	mov	w8, #1
	lsl	w8, w8, w0
	mov	w9, #204
	movk	w9, #102, lsl #16
	tst	w8, w9
	b.eq	LBB0_14
; %bb.2:
Lloh9:
	adrp	x8, _COLOR_YCBCR601@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COLOR_YCBCR601@GOTPAGEOFF]
LBB0_3:
Lloh11:
	adrp	x9, _CEA@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CEA@GOTPAGEOFF]
LBB0_4:
	ldr	x9, [x9]
	ldr	x8, [x8]
	mov	x20, x23
	str	x8, [x20, #32]!
	mov	x21, x20
	str	x9, [x21, #8]!
	ldr	w8, [x20, #24]
	sub	w8, w8, #6
	cmp	w8, #6
	b.hi	LBB0_6
; %bb.5:
Lloh13:
	adrp	x9, l_switch.table.analogix_dp_bridge_mode_set@PAGE
Lloh14:
	add	x9, x9, l_switch.table.analogix_dp_bridge_mode_set@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _COLOR_8@GOTPAGE
Lloh16:
	ldr	x8, [x8, _COLOR_8@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x8]
	mov	x22, x23
	str	x8, [x22, #24]!
	ldr	w8, [x23, #60]
Lloh17:
	adrp	x9, _DRM_COLOR_FORMAT_YCRCB444@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DRM_COLOR_FORMAT_YCRCB444@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _DRM_COLOR_FORMAT_YCRCB422@GOTPAGE
Lloh21:
	ldr	x10, [x10, _DRM_COLOR_FORMAT_YCRCB422@GOTPAGEOFF]
Lloh22:
	adrp	x11, _COLOR_RGB@GOTPAGE
Lloh23:
	ldr	x11, [x11, _COLOR_RGB@GOTPAGEOFF]
Lloh24:
	adrp	x12, _COLOR_YCBCR422@GOTPAGE
Lloh25:
	ldr	x12, [x12, _COLOR_YCBCR422@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w8
	csel	x10, x11, x12, eq
	ldr	x10, [x10]
Lloh27:
	adrp	x11, _COLOR_YCBCR444@GOTPAGE
Lloh28:
	ldr	x11, [x11, _COLOR_YCBCR444@GOTPAGEOFF]
Lloh29:
	ldr	x11, [x11]
	tst	w9, w8
	csel	x8, x10, x11, eq
	mov	x2, x23
	str	x8, [x2, #48]!
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_of_property_read_u32
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_of_property_read_u32
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_of_property_read_u32
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_of_property_read_u32
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_of_property_read_bool
	cbz	x0, LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x23, #16]
LBB0_9:
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_of_property_read_bool
	cbz	x0, LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x23, #12]
LBB0_11:
Lloh42:
	adrp	x1, l_.str.6@PAGE
Lloh43:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_of_property_read_bool
	cbz	x0, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x23, #8]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	cbnz	w0, LBB0_16
; %bb.15:
Lloh44:
	adrp	x8, _COLOR_YCBCR709@GOTPAGE
Lloh45:
	ldr	x8, [x8, _COLOR_YCBCR709@GOTPAGEOFF]
Lloh46:
	adrp	x9, _VESA@GOTPAGE
Lloh47:
	ldr	x9, [x9, _VESA@GOTPAGEOFF]
	b	LBB0_4
LBB0_16:
Lloh48:
	adrp	x8, _COLOR_YCBCR709@GOTPAGE
Lloh49:
	ldr	x8, [x8, _COLOR_YCBCR709@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh26
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ; @DRM_MODE_FLAG_NVSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ; @DRM_MODE_FLAG_NHSYNC
	.comm	_CEA,8,3                        ; @CEA
	.comm	_COLOR_YCBCR601,8,3             ; @COLOR_YCBCR601
	.comm	_COLOR_YCBCR709,8,3             ; @COLOR_YCBCR709
	.comm	_VESA,8,3                       ; @VESA
	.comm	_COLOR_12,8,3                   ; @COLOR_12
	.comm	_COLOR_10,8,3                   ; @COLOR_10
	.comm	_COLOR_8,8,3                    ; @COLOR_8
	.comm	_COLOR_6,8,3                    ; @COLOR_6
	.comm	_DRM_COLOR_FORMAT_YCRCB444,4,2  ; @DRM_COLOR_FORMAT_YCRCB444
	.comm	_COLOR_YCBCR444,8,3             ; @COLOR_YCBCR444
	.comm	_DRM_COLOR_FORMAT_YCRCB422,4,2  ; @DRM_COLOR_FORMAT_YCRCB422
	.comm	_COLOR_YCBCR422,8,3             ; @COLOR_YCBCR422
	.comm	_COLOR_RGB,8,3                  ; @COLOR_RGB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"samsung,color-space"

l_.str.1:                               ; @.str.1
	.asciz	"samsung,dynamic-range"

l_.str.2:                               ; @.str.2
	.asciz	"samsung,ycbcr-coeff"

l_.str.3:                               ; @.str.3
	.asciz	"samsung,color-depth"

l_.str.4:                               ; @.str.4
	.asciz	"hsync-active-high"

l_.str.5:                               ; @.str.5
	.asciz	"vsync-active-high"

l_.str.6:                               ; @.str.6
	.asciz	"interlaced"

	.no_dead_strip	_analogix_dp_bridge_mode_set
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.analogix_dp_bridge_mode_set
l_switch.table.analogix_dp_bridge_mode_set:
	.quad	_COLOR_6
	.quad	_COLOR_8
	.quad	_COLOR_8
	.quad	_COLOR_8
	.quad	_COLOR_10
	.quad	_COLOR_8
	.quad	_COLOR_12

.subsections_via_symbols
