	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcsi2_parse_v4l2
_rcsi2_parse_v4l2:                      ## @rcsi2_parse_v4l2
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 32(%rsi)
	jne	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	cmpq	$0, 24(%rsi)
	je	LBB0_3
LBB0_2:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
LBB0_18:
	subl	(%rax), %r12d
LBB0_19:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %r14
	movq	(%r15), %rdx
	movq	_V4L2_MBUS_CSI2_DPHY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_4
## %bb.5:
	movl	8(%r15), %edx
	movl	%edx, (%r14)
	cmpl	$4, %edx
	ja	LBB0_7
## %bb.6:
	movl	$22, %eax
	btl	%edx, %eax
	jae	LBB0_7
## %bb.8:
	movq	8(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jae	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %eax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%ebx, %eax
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r14), %rdi
	movl	%eax, (%rdi,%rbx,4)
	addl	$-5, %eax
	cmpl	$-5, %eax
	jbe	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_12
	jmp	LBB0_19
LBB0_4:
	movl	16(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_17
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_7:
	movl	16(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_17
LBB0_16:
	movl	16(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_V4L2_MBUS_CSI2_DPHY,8,3        ## @V4L2_MBUS_CSI2_DPHY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported bus: %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported number of data-lanes: %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"data-lanes must be in 1-4 range\n"

	.no_dead_strip	_rcsi2_parse_v4l2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcsi2_parse_v4l2
_rcsi2_parse_v4l2:                      ; @rcsi2_parse_v4l2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x8, [x1, #32]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x20, x1
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #64
	ret
LBB0_5:
	mov	x19, x0
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _V4L2_MBUS_CSI2_DPHY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_MBUS_CSI2_DPHY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.6:
	ldr	w8, [x20, #8]
	str	w8, [x19]
	cmp	w8, #4
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #22
	and	w9, w9, w10
	ccmp	w9, #0, #4, ls
	b.eq	LBB0_15
; %bb.7:
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_4
; %bb.8:
	mov	x21, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	x21, x8
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x21, lsl #2]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, x21
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x19, #8]
	str	w8, [x0, x21, lsl #2]
	sub	w8, w8, #5
	cmn	w8, #5
	b.ls	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	mov	x8, x0
	mov	w0, #0
	cmp	x21, w8, uxtw
	b.lo	LBB0_9
	b	LBB0_4
LBB0_14:
	ldr	w0, [x19, #16]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_17
LBB0_15:
	ldr	w0, [x19, #16]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_16:
	ldr	w0, [x19, #16]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_17:
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_V4L2_MBUS_CSI2_DPHY,8,3        ; @V4L2_MBUS_CSI2_DPHY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported bus: %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported number of data-lanes: %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"data-lanes must be in 1-4 range\n"

	.no_dead_strip	_rcsi2_parse_v4l2
.subsections_via_symbols
