	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun6i_csi_is_format_supported  ## -- Begin function sun6i_csi_is_format_supported
	.p2align	4, 0x90
_sun6i_csi_is_format_supported:         ## @sun6i_csi_is_format_supported
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_sun6i_csi_to_dev
	movq	8(%rax), %rcx
	movq	_V4L2_MBUS_PARALLEL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.1:
	movq	_V4L2_MBUS_BT656@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
LBB0_2:
	cmpl	$16, 16(%rax)
	jne	LBB0_6
## %bb.3:
	leal	-129(%rbx), %ecx
	cmpl	$25, %ecx
	ja	LBB0_12
## %bb.4:
	movl	$49283085, %edx                 ## imm = 0x2F0000D
	btl	%ecx, %edx
	jae	LBB0_12
## %bb.5:
	leal	-156(%r14), %edx
	cmpl	$7, %edx
	jb	LBB0_9
	jmp	LBB0_10
LBB0_6:
	leal	-128(%rbx), %ecx
	cmpl	$26, %ecx
	ja	LBB0_12
## %bb.7:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_8:
	leal	-155(%r14), %edx
	cmpl	$7, %edx
	jae	LBB0_10
LBB0_9:
	movb	$1, %cl
	movl	$85, %esi
	btl	%edx, %esi
	jb	LBB0_34
LBB0_10:
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
LBB0_11:
	callq	_dev_dbg
	xorl	%ecx, %ecx
	jmp	LBB0_34
LBB0_12:
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	jmp	LBB0_11
LBB0_13:
	cmpl	$155, %r14d
	jmp	LBB0_33
LBB0_14:
	cmpl	$157, %r14d
	jmp	LBB0_33
LBB0_15:
	cmpl	$159, %r14d
	jmp	LBB0_33
LBB0_16:
	cmpl	$161, %r14d
	jmp	LBB0_33
LBB0_17:
	movq	_MEDIA_BUS_FMT_SRGGB8_1X8@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_18:
	movq	_MEDIA_BUS_FMT_SRGGB12_1X12@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_19:
	movq	_MEDIA_BUS_FMT_SRGGB10_1X10@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_20:
	movq	_MEDIA_BUS_FMT_SGRBG8_1X8@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_21:
	movq	_MEDIA_BUS_FMT_SGRBG12_1X12@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_22:
	movq	_MEDIA_BUS_FMT_SGRBG10_1X10@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_23:
	movq	_MEDIA_BUS_FMT_SGBRG8_1X8@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_24:
	movq	_MEDIA_BUS_FMT_SGBRG12_1X12@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_25:
	movq	_MEDIA_BUS_FMT_SGBRG10_1X10@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_26:
	movq	_MEDIA_BUS_FMT_SBGGR8_1X8@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_27:
	movq	_MEDIA_BUS_FMT_SBGGR12_1X12@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_28:
	movq	_MEDIA_BUS_FMT_SBGGR10_1X10@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_29:
	movq	_MEDIA_BUS_FMT_RGB565_2X8_BE@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_30:
	movq	_MEDIA_BUS_FMT_RGB565_2X8_LE@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_31:
	movq	_MEDIA_BUS_FMT_JPEG_1X8@GOTPCREL(%rip), %rax
LBB0_32:
	cmpl	%r14d, (%rax)
LBB0_33:
	sete	%cl
LBB0_34:
	movzbl	%cl, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_25
	.long	L0_0_set_26
	.long	L0_0_set_27
	.long	L0_0_set_28
	.long	L0_0_set_29
	.long	L0_0_set_30
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_31
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_MBUS_PARALLEL,8,3         ## @V4L2_MBUS_PARALLEL
	.comm	_V4L2_MBUS_BT656,8,3            ## @V4L2_MBUS_BT656
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported mbus code: 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unsupported pixformat: 0x%x\n"

	.comm	_MEDIA_BUS_FMT_SBGGR8_1X8,4,2   ## @MEDIA_BUS_FMT_SBGGR8_1X8
	.comm	_MEDIA_BUS_FMT_SGBRG8_1X8,4,2   ## @MEDIA_BUS_FMT_SGBRG8_1X8
	.comm	_MEDIA_BUS_FMT_SGRBG8_1X8,4,2   ## @MEDIA_BUS_FMT_SGRBG8_1X8
	.comm	_MEDIA_BUS_FMT_SRGGB8_1X8,4,2   ## @MEDIA_BUS_FMT_SRGGB8_1X8
	.comm	_MEDIA_BUS_FMT_SBGGR10_1X10,4,2 ## @MEDIA_BUS_FMT_SBGGR10_1X10
	.comm	_MEDIA_BUS_FMT_SGBRG10_1X10,4,2 ## @MEDIA_BUS_FMT_SGBRG10_1X10
	.comm	_MEDIA_BUS_FMT_SGRBG10_1X10,4,2 ## @MEDIA_BUS_FMT_SGRBG10_1X10
	.comm	_MEDIA_BUS_FMT_SRGGB10_1X10,4,2 ## @MEDIA_BUS_FMT_SRGGB10_1X10
	.comm	_MEDIA_BUS_FMT_SBGGR12_1X12,4,2 ## @MEDIA_BUS_FMT_SBGGR12_1X12
	.comm	_MEDIA_BUS_FMT_SGBRG12_1X12,4,2 ## @MEDIA_BUS_FMT_SGBRG12_1X12
	.comm	_MEDIA_BUS_FMT_SGRBG12_1X12,4,2 ## @MEDIA_BUS_FMT_SGRBG12_1X12
	.comm	_MEDIA_BUS_FMT_SRGGB12_1X12,4,2 ## @MEDIA_BUS_FMT_SRGGB12_1X12
	.comm	_MEDIA_BUS_FMT_RGB565_2X8_LE,4,2 ## @MEDIA_BUS_FMT_RGB565_2X8_LE
	.comm	_MEDIA_BUS_FMT_RGB565_2X8_BE,4,2 ## @MEDIA_BUS_FMT_RGB565_2X8_BE
	.comm	_MEDIA_BUS_FMT_JPEG_1X8,4,2     ## @MEDIA_BUS_FMT_JPEG_1X8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun6i_csi_is_format_supported  ; -- Begin function sun6i_csi_is_format_supported
	.p2align	2
_sun6i_csi_is_format_supported:         ; @sun6i_csi_is_format_supported
	.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, x2
	mov	x20, x1
	bl	_sun6i_csi_to_dev
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _V4L2_MBUS_PARALLEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_MBUS_PARALLEL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _V4L2_MBUS_BT656@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_MBUS_BT656@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x0, #16]
	cmp	w8, #16
	b.ne	LBB0_5
; %bb.2:
	sub	w8, w20, #129
	cmp	w8, #25
	b.hi	LBB0_12
; %bb.3:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #13
	movk	w9, #752, lsl #16
	tst	w8, w9
	b.eq	LBB0_12
; %bb.4:
	sub	w8, w19, #156
	cmp	w8, #7
	b.lo	LBB0_8
	b	LBB0_9
LBB0_5:
	sub	w8, w20, #128
	cmp	w8, #26
	b.hi	LBB0_12
; %bb.6:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	sub	w8, w19, #155
	cmp	w8, #7
	b.hs	LBB0_9
LBB0_8:
	mov	w9, #85
	lsr	w8, w9, w8
	tbnz	w8, #0, LBB0_11
LBB0_9:
	ldr	w0, [x0]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
LBB0_10:
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_34
LBB0_11:
	mov	w0, #1
	b	LBB0_34
LBB0_12:
	ldr	w0, [x0]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	b	LBB0_10
LBB0_13:
	cmp	w19, #155
	b	LBB0_33
LBB0_14:
	cmp	w19, #157
	b	LBB0_33
LBB0_15:
	cmp	w19, #159
	b	LBB0_33
LBB0_16:
	cmp	w19, #161
	b	LBB0_33
LBB0_17:
Lloh12:
	adrp	x8, _MEDIA_BUS_FMT_SRGGB8_1X8@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MEDIA_BUS_FMT_SRGGB8_1X8@GOTPAGEOFF]
	b	LBB0_32
LBB0_18:
Lloh14:
	adrp	x8, _MEDIA_BUS_FMT_SRGGB12_1X12@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MEDIA_BUS_FMT_SRGGB12_1X12@GOTPAGEOFF]
	b	LBB0_32
LBB0_19:
Lloh16:
	adrp	x8, _MEDIA_BUS_FMT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x8, [x8, _MEDIA_BUS_FMT_SBGGR12_1X12@GOTPAGEOFF]
	b	LBB0_32
LBB0_28:
Lloh34:
	adrp	x8, _MEDIA_BUS_FMT_SBGGR10_1X10@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MEDIA_BUS_FMT_SBGGR10_1X10@GOTPAGEOFF]
	b	LBB0_32
LBB0_29:
Lloh36:
	adrp	x8, _MEDIA_BUS_FMT_RGB565_2X8_BE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB565_2X8_BE@GOTPAGEOFF]
	b	LBB0_32
LBB0_30:
Lloh38:
	adrp	x8, _MEDIA_BUS_FMT_RGB565_2X8_LE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB565_2X8_LE@GOTPAGEOFF]
	b	LBB0_32
LBB0_31:
Lloh40:
	adrp	x8, _MEDIA_BUS_FMT_JPEG_1X8@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MEDIA_BUS_FMT_JPEG_1X8@GOTPAGEOFF]
LBB0_32:
	ldr	w8, [x8]
	cmp	w8, w19
LBB0_33:
	cset	w0, eq
LBB0_34:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_17-LBB0_7)>>2
	.byte	(LBB0_18-LBB0_7)>>2
	.byte	(LBB0_19-LBB0_7)>>2
	.byte	(LBB0_20-LBB0_7)>>2
	.byte	(LBB0_21-LBB0_7)>>2
	.byte	(LBB0_22-LBB0_7)>>2
	.byte	(LBB0_23-LBB0_7)>>2
	.byte	(LBB0_24-LBB0_7)>>2
	.byte	(LBB0_25-LBB0_7)>>2
	.byte	(LBB0_26-LBB0_7)>>2
	.byte	(LBB0_27-LBB0_7)>>2
	.byte	(LBB0_28-LBB0_7)>>2
	.byte	(LBB0_29-LBB0_7)>>2
	.byte	(LBB0_30-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_31-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
                                        ; -- End function
	.comm	_V4L2_MBUS_PARALLEL,8,3         ; @V4L2_MBUS_PARALLEL
	.comm	_V4L2_MBUS_BT656,8,3            ; @V4L2_MBUS_BT656
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported mbus code: 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unsupported pixformat: 0x%x\n"

	.comm	_MEDIA_BUS_FMT_SBGGR8_1X8,4,2   ; @MEDIA_BUS_FMT_SBGGR8_1X8
	.comm	_MEDIA_BUS_FMT_SGBRG8_1X8,4,2   ; @MEDIA_BUS_FMT_SGBRG8_1X8
	.comm	_MEDIA_BUS_FMT_SGRBG8_1X8,4,2   ; @MEDIA_BUS_FMT_SGRBG8_1X8
	.comm	_MEDIA_BUS_FMT_SRGGB8_1X8,4,2   ; @MEDIA_BUS_FMT_SRGGB8_1X8
	.comm	_MEDIA_BUS_FMT_SBGGR10_1X10,4,2 ; @MEDIA_BUS_FMT_SBGGR10_1X10
	.comm	_MEDIA_BUS_FMT_SGBRG10_1X10,4,2 ; @MEDIA_BUS_FMT_SGBRG10_1X10
	.comm	_MEDIA_BUS_FMT_SGRBG10_1X10,4,2 ; @MEDIA_BUS_FMT_SGRBG10_1X10
	.comm	_MEDIA_BUS_FMT_SRGGB10_1X10,4,2 ; @MEDIA_BUS_FMT_SRGGB10_1X10
	.comm	_MEDIA_BUS_FMT_SBGGR12_1X12,4,2 ; @MEDIA_BUS_FMT_SBGGR12_1X12
	.comm	_MEDIA_BUS_FMT_SGBRG12_1X12,4,2 ; @MEDIA_BUS_FMT_SGBRG12_1X12
	.comm	_MEDIA_BUS_FMT_SGRBG12_1X12,4,2 ; @MEDIA_BUS_FMT_SGRBG12_1X12
	.comm	_MEDIA_BUS_FMT_SRGGB12_1X12,4,2 ; @MEDIA_BUS_FMT_SRGGB12_1X12
	.comm	_MEDIA_BUS_FMT_RGB565_2X8_LE,4,2 ; @MEDIA_BUS_FMT_RGB565_2X8_LE
	.comm	_MEDIA_BUS_FMT_RGB565_2X8_BE,4,2 ; @MEDIA_BUS_FMT_RGB565_2X8_BE
	.comm	_MEDIA_BUS_FMT_JPEG_1X8,4,2     ; @MEDIA_BUS_FMT_JPEG_1X8
.subsections_via_symbols
