	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_hlcdc_of_bus_fmt
_atmel_hlcdc_of_bus_fmt:                ## @atmel_hlcdc_of_bus_fmt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	leaq	L_.str(%rip), %rsi
	leaq	-4(%rbp), %rdx
	callq	_of_property_read_u32
	movl	%eax, %ecx
	movq	_EINVAL@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	xorl	%edx, %edx
	subl	(%rsi), %edx
	cmpl	%edx, %ecx
	je	LBB0_10
## %bb.1:
	movl	%ecx, %eax
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.2:
	movl	-4(%rbp), %eax
	addl	$-12, %eax
	rorl	%eax
	cmpl	$6, %eax
	ja	LBB0_3
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	movl	%edx, %eax
	jmpq	*%rsi
LBB0_5:
	movq	_MEDIA_BUS_FMT_RGB444_1X12@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_MEDIA_BUS_FMT_RGB565_1X16@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_MEDIA_BUS_FMT_RGB666_1X18@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_MEDIA_BUS_FMT_RGB888_1X24@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_3:
	movl	%edx, %eax
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bus-width"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MEDIA_BUS_FMT_RGB444_1X12,4,2  ## @MEDIA_BUS_FMT_RGB444_1X12
	.comm	_MEDIA_BUS_FMT_RGB565_1X16,4,2  ## @MEDIA_BUS_FMT_RGB565_1X16
	.comm	_MEDIA_BUS_FMT_RGB666_1X18,4,2  ## @MEDIA_BUS_FMT_RGB666_1X18
	.comm	_MEDIA_BUS_FMT_RGB888_1X24,4,2  ## @MEDIA_BUS_FMT_RGB888_1X24
	.no_dead_strip	_atmel_hlcdc_of_bus_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_hlcdc_of_bus_fmt
_atmel_hlcdc_of_bus_fmt:                ; @atmel_hlcdc_of_bus_fmt
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #4
	bl	_of_property_read_u32
	mov	x8, x0
	mov	w0, #0
Lloh2:
	adrp	x9, _EINVAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmn	w8, w9
	b.eq	LBB0_9
; %bb.1:
	mov	x0, x8
	cbnz	w8, LBB0_9
; %bb.2:
	neg	w0, w9
	ldur	w8, [x29, #-4]
	sub	w8, w8, #12
	ror	w8, w8, #1
	cmp	w8, #6
	b.hi	LBB0_9
; %bb.3:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh7:
	adrp	x8, _MEDIA_BUS_FMT_RGB444_1X12@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB444_1X12@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x8, _MEDIA_BUS_FMT_RGB565_1X16@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB565_1X16@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _MEDIA_BUS_FMT_RGB666_1X18@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB666_1X18@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _MEDIA_BUS_FMT_RGB888_1X24@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB888_1X24@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bus-width"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MEDIA_BUS_FMT_RGB444_1X12,4,2  ; @MEDIA_BUS_FMT_RGB444_1X12
	.comm	_MEDIA_BUS_FMT_RGB565_1X16,4,2  ; @MEDIA_BUS_FMT_RGB565_1X16
	.comm	_MEDIA_BUS_FMT_RGB666_1X18,4,2  ; @MEDIA_BUS_FMT_RGB666_1X18
	.comm	_MEDIA_BUS_FMT_RGB888_1X24,4,2  ; @MEDIA_BUS_FMT_RGB888_1X24
	.no_dead_strip	_atmel_hlcdc_of_bus_fmt
.subsections_via_symbols
