	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csi2tx_check_lanes
_csi2tx_check_lanes:                    ## @csi2tx_check_lanes
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_of_graph_get_endpoint_by_regs
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_of_fwnode_handle
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_v4l2_fwnode_endpoint_parse
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	16(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_4:
	movq	-48(%rbp), %rdx
	movq	_V4L2_MBUS_CSI2_DPHY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.7:
	movl	-40(%rbp), %eax
	movl	%eax, (%r15)
	cmpl	4(%r15), %eax
	jle	LBB0_8
## %bb.16:
	movq	16(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_5:
	movq	16(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_14:
	movq	%r14, %rdi
	callq	_of_node_put
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-32(%rbp), %rsi
	testl	%eax, %eax
	jle	LBB0_13
## %bb.9:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdx,4), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_10
LBB0_13:
	movl	8(%r15), %edi
	movl	$4, %edx
	callq	_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_11:
	movq	16(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not parse v4l2 endpoint\n"

	.comm	_V4L2_MBUS_CSI2_DPHY,8,3        ## @V4L2_MBUS_CSI2_DPHY
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported media bus type: 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Current configuration uses more lanes than supported\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid lane[%d] number: %u\n"

	.no_dead_strip	_csi2tx_check_lanes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csi2tx_check_lanes
_csi2tx_check_lanes:                    ; @csi2tx_check_lanes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
	stp	xzr, xzr, [sp, #24]
	str	xzr, [sp, #40]
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #0
	bl	_of_graph_get_endpoint_by_regs
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_of_fwnode_handle
	add	x1, sp, #24
	bl	_v4l2_fwnode_endpoint_parse
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	x0, [x20, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_4:
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, _V4L2_MBUS_CSI2_DPHY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_MBUS_CSI2_DPHY@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [sp, #32]
	str	w8, [x20]
	ldr	w9, [x20, #4]
	cmp	w8, w9
	b.le	LBB0_11
; %bb.6:
	ldr	x0, [x20, #16]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	x0, [x20, #16]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x19
	bl	_of_node_put
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	ldr	x1, [sp, #40]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.12:
	mov	x9, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x1, x9, lsl #2]
	cmp	w10, #0
	b.le	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_15:
	ldr	w0, [x20, #8]
	mov	w2, #4
	bl	_memcpy
	mov	w21, #0
	b	LBB0_9
LBB0_16:
	ldr	x0, [x20, #16]
	stp	x9, x10, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not parse v4l2 endpoint\n"

	.comm	_V4L2_MBUS_CSI2_DPHY,8,3        ; @V4L2_MBUS_CSI2_DPHY
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported media bus type: 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Current configuration uses more lanes than supported\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid lane[%d] number: %u\n"

	.no_dead_strip	_csi2tx_check_lanes
.subsections_via_symbols
