	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_hlcdc_connector_output_mode
_atmel_hlcdc_connector_output_mode:     ## @atmel_hlcdc_connector_output_mode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rax
	movq	(%rdi), %rdi
	movq	8(%rax), %rbx
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
LBB0_2:
	callq	_atmel_hlcdc_encoder_get_bus_fmt
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_3
## %bb.35:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_11:
	movq	_ATMEL_HLCDC_RGB888_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_34
LBB0_3:
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movl	8(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_5
## %bb.6:
	movq	16(%rbx), %rcx
	movq	_ATMEL_HLCDC_RGB888_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_ATMEL_HLCDC_RGB666_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_ATMEL_HLCDC_RGB565_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_ATMEL_HLCDC_RGB444_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	$1, %r8d
	jne	LBB0_13
## %bb.7:
	xorl	%edx, %edx
	xorl	%eax, %eax
LBB0_27:
	testb	$1, %r8b
	je	LBB0_34
## %bb.28:
	movl	(%rcx,%rdx,4), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_34
## %bb.29:
	leaq	LJTI0_3(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_30:
	orl	%r9d, %eax
	jmp	LBB0_34
LBB0_10:
	movq	_ATMEL_HLCDC_RGB666_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_34
LBB0_9:
	movq	_ATMEL_HLCDC_RGB565_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_34
LBB0_8:
	movq	_ATMEL_HLCDC_RGB444_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_34
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_34
LBB0_5:
	xorl	%eax, %eax
LBB0_34:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%edx, %edx
	leaq	LJTI0_2(%rip), %r15
	leaq	LJTI0_1(%rip), %rdi
	xorl	%eax, %eax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_14 Depth=1
	orl	%r14d, %eax
LBB0_26:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	je	LBB0_27
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %ebx
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movslq	(%rdi,%rbx,4), %rbx
	addq	%rdi, %rbx
	jmpq	*%rbx
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	orl	%r9d, %eax
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	orl	%r11d, %eax
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	orl	%r14d, %eax
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	orl	%r10d, %eax
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	4(%rcx,%rdx,4), %ebx
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	movslq	(%r15,%rbx,4), %rbx
	addq	%r15, %rbx
	jmpq	*%rbx
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=1
	orl	%r9d, %eax
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=1
	orl	%r11d, %eax
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=1
	orl	%r10d, %eax
	jmp	LBB0_26
LBB0_31:
	orl	%r10d, %eax
	jmp	LBB0_34
LBB0_32:
	orl	%r11d, %eax
	jmp	LBB0_34
LBB0_33:
	orl	%r14d, %eax
	jmp	LBB0_34
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_8
.set L0_1_set_19, LBB0_19-LJTI0_1
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_16, LBB0_16-LJTI0_1
LJTI0_1:
	.long	L0_1_set_19
	.long	L0_1_set_18
	.long	L0_1_set_17
	.long	L0_1_set_16
.set L0_2_set_22, LBB0_22-LJTI0_2
.set L0_2_set_23, LBB0_23-LJTI0_2
.set L0_2_set_24, LBB0_24-LJTI0_2
.set L0_2_set_25, LBB0_25-LJTI0_2
LJTI0_2:
	.long	L0_2_set_22
	.long	L0_2_set_23
	.long	L0_2_set_24
	.long	L0_2_set_25
.set L0_3_set_30, LBB0_30-LJTI0_3
.set L0_3_set_31, LBB0_31-LJTI0_3
.set L0_3_set_32, LBB0_32-LJTI0_3
.set L0_3_set_33, LBB0_33-LJTI0_3
LJTI0_3:
	.long	L0_3_set_30
	.long	L0_3_set_31
	.long	L0_3_set_32
	.long	L0_3_set_33
	.end_data_region
                                        ## -- End function
	.comm	_ATMEL_HLCDC_RGB444_OUTPUT,4,2  ## @ATMEL_HLCDC_RGB444_OUTPUT
	.comm	_ATMEL_HLCDC_RGB565_OUTPUT,4,2  ## @ATMEL_HLCDC_RGB565_OUTPUT
	.comm	_ATMEL_HLCDC_RGB666_OUTPUT,4,2  ## @ATMEL_HLCDC_RGB666_OUTPUT
	.comm	_ATMEL_HLCDC_RGB888_OUTPUT,4,2  ## @ATMEL_HLCDC_RGB888_OUTPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_atmel_hlcdc_connector_output_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_hlcdc_connector_output_mode
_atmel_hlcdc_connector_output_mode:     ; @atmel_hlcdc_connector_output_mode
	.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
	ldp	x0, x19, [x0]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19]
LBB0_2:
	bl	_atmel_hlcdc_encoder_get_bus_fmt
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh2:
	adrp	x8, _ATMEL_HLCDC_RGB888_OUTPUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATMEL_HLCDC_RGB888_OUTPUT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_20
LBB0_5:
	cbnz	w0, LBB0_18
; %bb.6:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.7:
	mov	w0, #0
	ldr	x9, [x19, #16]
Lloh5:
	adrp	x10, _ATMEL_HLCDC_RGB888_OUTPUT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ATMEL_HLCDC_RGB888_OUTPUT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _ATMEL_HLCDC_RGB666_OUTPUT@GOTPAGE
Lloh9:
	ldr	x11, [x11, _ATMEL_HLCDC_RGB666_OUTPUT@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
Lloh11:
	adrp	x12, _ATMEL_HLCDC_RGB565_OUTPUT@GOTPAGE
Lloh12:
	ldr	x12, [x12, _ATMEL_HLCDC_RGB565_OUTPUT@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
Lloh14:
	adrp	x13, _ATMEL_HLCDC_RGB444_OUTPUT@GOTPAGE
Lloh15:
	ldr	x13, [x13, _ATMEL_HLCDC_RGB444_OUTPUT@GOTPAGEOFF]
Lloh16:
	ldr	w13, [x13]
Lloh17:
	adrp	x14, lJTI0_1@PAGE
Lloh18:
	add	x14, x14, lJTI0_1@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	orr	w0, w10, w0
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x9, #4
	subs	x8, x8, #1
	b.eq	LBB0_20
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x9]
	sub	w15, w15, #128
	cmp	w15, #3
	b.hi	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	adr	x16, LBB0_8
	ldrb	w17, [x14, x15]
	add	x16, x16, x17, lsl #2
	br	x16
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	orr	w0, w11, w0
	b	LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	orr	w0, w12, w0
	b	LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	orr	w0, w13, w0
	b	LBB0_9
LBB0_15:
Lloh19:
	adrp	x8, _ATMEL_HLCDC_RGB666_OUTPUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ATMEL_HLCDC_RGB666_OUTPUT@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	b	LBB0_20
LBB0_16:
Lloh22:
	adrp	x8, _ATMEL_HLCDC_RGB565_OUTPUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ATMEL_HLCDC_RGB565_OUTPUT@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	b	LBB0_20
LBB0_17:
Lloh25:
	adrp	x8, _ATMEL_HLCDC_RGB444_OUTPUT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ATMEL_HLCDC_RGB444_OUTPUT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	b	LBB0_20
LBB0_18:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_19:
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
lJTI0_1:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
                                        ; -- End function
	.comm	_ATMEL_HLCDC_RGB444_OUTPUT,4,2  ; @ATMEL_HLCDC_RGB444_OUTPUT
	.comm	_ATMEL_HLCDC_RGB565_OUTPUT,4,2  ; @ATMEL_HLCDC_RGB565_OUTPUT
	.comm	_ATMEL_HLCDC_RGB666_OUTPUT,4,2  ; @ATMEL_HLCDC_RGB666_OUTPUT
	.comm	_ATMEL_HLCDC_RGB888_OUTPUT,4,2  ; @ATMEL_HLCDC_RGB888_OUTPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_atmel_hlcdc_connector_output_mode
.subsections_via_symbols
