	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_lvds_get_lvds_mode
_rcar_lvds_get_lvds_mode:               ## @rcar_lvds_get_lvds_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$0, 8(%rdi)
	je	LBB0_7
## %bb.1:
	cmpl	$0, 28(%rdi)
	je	LBB0_8
## %bb.2:
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movl	(%rax), %edx
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	jae	LBB0_9
## %bb.4:
	cltq
	leaq	l_switch.table.rcar_lvds_get_lvds_mode(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_DRM_BUS_FLAG_DATA_LSB_TO_MSB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	24(%rdi), %ecx
	je	LBB0_6
## %bb.5:
	movq	_RCAR_LVDS_MODE_MIRROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	orl	(%rax), %ecx
	movl	%ecx, (%rdi)
LBB0_7:
	popq	%rbp
	retq
LBB0_8:
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_9:
	movl	4(%rdi), %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no LVDS bus format reported\n"

	.comm	_RCAR_LVDS_MODE_JEIDA,4,2       ## @RCAR_LVDS_MODE_JEIDA
	.comm	_RCAR_LVDS_MODE_VESA,4,2        ## @RCAR_LVDS_MODE_VESA
L_.str.1:                               ## @.str.1
	.asciz	"unsupported LVDS bus format 0x%04x\n"

	.comm	_DRM_BUS_FLAG_DATA_LSB_TO_MSB,4,2 ## @DRM_BUS_FLAG_DATA_LSB_TO_MSB
	.comm	_RCAR_LVDS_MODE_MIRROR,4,2      ## @RCAR_LVDS_MODE_MIRROR
	.no_dead_strip	_rcar_lvds_get_lvds_mode
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.rcar_lvds_get_lvds_mode
l_switch.table.rcar_lvds_get_lvds_mode:
	.quad	_RCAR_LVDS_MODE_VESA
	.quad	_RCAR_LVDS_MODE_JEIDA
	.quad	_RCAR_LVDS_MODE_JEIDA

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_lvds_get_lvds_mode
_rcar_lvds_get_lvds_mode:               ; @rcar_lvds_get_lvds_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_7
; %bb.1:
	ldr	w8, [x0, #28]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w8, [x8]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hs	LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, l_switch.table.rcar_lvds_get_lvds_mode@PAGE
Lloh1:
	add	x8, x8, l_switch.table.rcar_lvds_get_lvds_mode@PAGEOFF
	ldr	x8, [x8, w9, sxtw #3]
	ldr	w8, [x8]
	ldr	w9, [x0, #24]
Lloh2:
	adrp	x10, _DRM_BUS_FLAG_DATA_LSB_TO_MSB@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DRM_BUS_FLAG_DATA_LSB_TO_MSB@GOTPAGEOFF]
Lloh4:
	adrp	x11, _RCAR_LVDS_MODE_MIRROR@GOTPAGE
Lloh5:
	ldr	x11, [x11, _RCAR_LVDS_MODE_MIRROR@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
Lloh7:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w8, w9, w8
	str	w8, [x0]
	b	LBB0_7
LBB0_5:
	ldr	w0, [x0, #4]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_dev_err
LBB0_6:
	ldr	w0, [x0, #4]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no LVDS bus format reported\n"

	.comm	_RCAR_LVDS_MODE_JEIDA,4,2       ; @RCAR_LVDS_MODE_JEIDA
	.comm	_RCAR_LVDS_MODE_VESA,4,2        ; @RCAR_LVDS_MODE_VESA
l_.str.1:                               ; @.str.1
	.asciz	"unsupported LVDS bus format 0x%04x\n"

	.comm	_DRM_BUS_FLAG_DATA_LSB_TO_MSB,4,2 ; @DRM_BUS_FLAG_DATA_LSB_TO_MSB
	.comm	_RCAR_LVDS_MODE_MIRROR,4,2      ; @RCAR_LVDS_MODE_MIRROR
	.no_dead_strip	_rcar_lvds_get_lvds_mode
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.rcar_lvds_get_lvds_mode
l_switch.table.rcar_lvds_get_lvds_mode:
	.quad	_RCAR_LVDS_MODE_VESA
	.quad	_RCAR_LVDS_MODE_JEIDA
	.quad	_RCAR_LVDS_MODE_JEIDA

.subsections_via_symbols
