	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv748x_parse_csi2_lanes
_adv748x_parse_csi2_lanes:              ## @adv748x_parse_csi2_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_ADV748X_PORT_TXA@GOTPCREL(%rip), %rbx
	movq	_ADV748X_PORT_TXB@GOTPCREL(%rip), %r15
	cmpl	%esi, (%rbx)
	je	LBB0_2
## %bb.1:
	cmpl	%esi, (%r15)
	je	LBB0_2
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_2:
	movq	_V4L2_MBUS_CSI2_DPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	%rdx, %rdi
	callq	_of_fwnode_handle
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_v4l2_fwnode_endpoint_parse
	testl	%eax, %eax
	je	LBB0_3
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %r14d
	cmpl	(%rbx), %eax
	jne	LBB0_9
## %bb.4:
	cmpl	$4, %r14d
	ja	LBB0_6
## %bb.5:
	movl	$22, %eax
	btl	%r14d, %eax
	jae	LBB0_6
## %bb.8:
	movl	%r14d, 4(%r12)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_adv_dbg
	movl	-48(%rbp), %eax
LBB0_9:
	cmpl	(%r15), %eax
	jne	LBB0_13
## %bb.10:
	cmpl	$1, %r14d
	jne	LBB0_11
## %bb.12:
	movl	$1, (%r12)
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_adv_dbg
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
LBB0_7:
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_adv_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV748X_PORT_TXA,4,2           ## @ADV748X_PORT_TXA
	.comm	_ADV748X_PORT_TXB,4,2           ## @ADV748X_PORT_TXB
	.comm	_V4L2_MBUS_CSI2_DPHY,4,2        ## @V4L2_MBUS_CSI2_DPHY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TXA: Invalid number (%u) of lanes\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"TXA: using %u lanes\n"

L_.str.2:                               ## @.str.2
	.asciz	"TXB: Invalid number (%u) of lanes\n"

L_.str.3:                               ## @.str.3
	.asciz	"TXB: using %u lanes\n"

	.no_dead_strip	_adv748x_parse_csi2_lanes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv748x_parse_csi2_lanes
_adv748x_parse_csi2_lanes:              ; @adv748x_parse_csi2_lanes
	.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
Lloh0:
	adrp	x22, _ADV748X_PORT_TXA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ADV748X_PORT_TXA@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x21, _ADV748X_PORT_TXB@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ADV748X_PORT_TXB@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w1
	ccmp	w9, w1, #4, ne
	b.ne	LBB0_9
; %bb.1:
	mov	x19, x0
Lloh4:
	adrp	x8, _V4L2_MBUS_CSI2_DPHY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_MBUS_CSI2_DPHY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	x0, x2
	bl	_of_fwnode_handle
	mov	x1, sp
	bl	_v4l2_fwnode_endpoint_parse
	cbnz	w0, LBB0_10
; %bb.2:
	ldp	w8, w20, [sp]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.3:
	cmp	w20, #4
	b.hi	LBB0_12
; %bb.4:
	mov	w8, #1
	lsl	w8, w8, w20
	mov	w9, #22
	tst	w8, w9
	b.eq	LBB0_12
; %bb.5:
	str	w20, [x19, #4]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_adv_dbg
	ldr	w8, [sp]
LBB0_6:
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.7:
	cmp	w20, #1
	b.ne	LBB0_11
; %bb.8:
	mov	w8, #1
	str	w8, [x19]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_adv_dbg
LBB0_9:
	mov	w0, #0
LBB0_10:
	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_11:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
LBB0_13:
	mov	x0, x19
	mov	x2, x20
	bl	_adv_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV748X_PORT_TXA,4,2           ; @ADV748X_PORT_TXA
	.comm	_ADV748X_PORT_TXB,4,2           ; @ADV748X_PORT_TXB
	.comm	_V4L2_MBUS_CSI2_DPHY,4,2        ; @V4L2_MBUS_CSI2_DPHY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TXA: Invalid number (%u) of lanes\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"TXA: using %u lanes\n"

l_.str.2:                               ; @.str.2
	.asciz	"TXB: Invalid number (%u) of lanes\n"

l_.str.3:                               ; @.str.3
	.asciz	"TXB: using %u lanes\n"

	.no_dead_strip	_adv748x_parse_csi2_lanes
.subsections_via_symbols
