	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cio2_csi2_calc_timing
_cio2_csi2_calc_timing:                 ## @cio2_csi2_calc_timing
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r12
	movq	$0, -56(%rbp)
	movq	_V4L2_CID_LINK_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, -44(%rbp)
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rdx, %r14
	movl	(%rax), %edi
	callq	_v4l2_ctrl_find
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	callq	_v4l2_ctrl_g_ctrl
	movl	%eax, -48(%rbp)
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_v4l2_querymenu
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_10
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EPIPE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	-56(%rbp), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.9:
	movq	_CIO2_CSIRX_DLY_CNT_TERMEN_CLANE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CIO2_CSIRX_DLY_CNT_TERMEN_CLANE_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CIO2_CSIRX_DLY_CNT_TERMEN_DEFAULT@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r15, %rdx
	callq	_cio2_rx_timing
	movq	%rax, 24(%r14)
	movq	_CIO2_CSIRX_DLY_CNT_SETTLE_CLANE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CIO2_CSIRX_DLY_CNT_SETTLE_CLANE_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CIO2_CSIRX_DLY_CNT_SETTLE_DEFAULT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r15, %rdx
	callq	_cio2_rx_timing
	movq	%rax, 16(%r14)
	movq	_CIO2_CSIRX_DLY_CNT_TERMEN_DLANE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CIO2_CSIRX_DLY_CNT_TERMEN_DLANE_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movq	%r15, %rdx
	callq	_cio2_rx_timing
	movq	%rax, 8(%r14)
	movq	_CIO2_CSIRX_DLY_CNT_SETTLE_DLANE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CIO2_CSIRX_DLY_CNT_SETTLE_DLANE_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movq	%r15, %rdx
	callq	_cio2_rx_timing
	movq	%rax, (%r14)
	movq	24(%r14), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movq	16(%r14), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movq	8(%r14), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movq	(%r14), %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CID_LINK_FREQ,4,2         ## @V4L2_CID_LINK_FREQ
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find LINK_FREQ\n"

	.comm	_EPIPE,4,2                      ## @EPIPE
L_.str.1:                               ## @.str.1
	.asciz	"failed to get menu item\n"

L_.str.2:                               ## @.str.2
	.asciz	"error invalid link_freq\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CIO2_CSIRX_DLY_CNT_TERMEN_CLANE_A,4,2 ## @CIO2_CSIRX_DLY_CNT_TERMEN_CLANE_A
	.comm	_CIO2_CSIRX_DLY_CNT_TERMEN_CLANE_B,4,2 ## @CIO2_CSIRX_DLY_CNT_TERMEN_CLANE_B
	.comm	_CIO2_CSIRX_DLY_CNT_TERMEN_DEFAULT,4,2 ## @CIO2_CSIRX_DLY_CNT_TERMEN_DEFAULT
	.comm	_CIO2_CSIRX_DLY_CNT_SETTLE_CLANE_A,4,2 ## @CIO2_CSIRX_DLY_CNT_SETTLE_CLANE_A
	.comm	_CIO2_CSIRX_DLY_CNT_SETTLE_CLANE_B,4,2 ## @CIO2_CSIRX_DLY_CNT_SETTLE_CLANE_B
	.comm	_CIO2_CSIRX_DLY_CNT_SETTLE_DEFAULT,4,2 ## @CIO2_CSIRX_DLY_CNT_SETTLE_DEFAULT
	.comm	_CIO2_CSIRX_DLY_CNT_TERMEN_DLANE_A,4,2 ## @CIO2_CSIRX_DLY_CNT_TERMEN_DLANE_A
	.comm	_CIO2_CSIRX_DLY_CNT_TERMEN_DLANE_B,4,2 ## @CIO2_CSIRX_DLY_CNT_TERMEN_DLANE_B
	.comm	_CIO2_CSIRX_DLY_CNT_SETTLE_DLANE_A,4,2 ## @CIO2_CSIRX_DLY_CNT_SETTLE_DLANE_A
	.comm	_CIO2_CSIRX_DLY_CNT_SETTLE_DLANE_B,4,2 ## @CIO2_CSIRX_DLY_CNT_SETTLE_DLANE_B
L_.str.3:                               ## @.str.3
	.asciz	"freq ct value is %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"freq cs value is %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"freq dt value is %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"freq ds value is %d\n"

	.no_dead_strip	_cio2_csi2_calc_timing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cio2_csi2_calc_timing
_cio2_csi2_calc_timing:                 ; @cio2_csi2_calc_timing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	ldr	x19, [x0]
	str	xzr, [sp]
Lloh0:
	adrp	x8, _V4L2_CID_LINK_FREQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CID_LINK_FREQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	str	w1, [sp, #12]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x2
	ldr	w0, [x8]
	bl	_v4l2_ctrl_find
	cbz	x0, LBB0_5
; %bb.2:
	bl	_v4l2_ctrl_g_ctrl
	str	w0, [sp, #8]
	ldr	x8, [x21]
	ldr	w0, [x8]
	mov	x1, sp
	bl	_v4l2_querymenu
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_4:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh9:
	adrp	x8, _EPIPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	x21, [sp]
	cbz	x21, LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _CIO2_CSIRX_DLY_CNT_TERMEN_CLANE_A@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CIO2_CSIRX_DLY_CNT_TERMEN_CLANE_A@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _CIO2_CSIRX_DLY_CNT_TERMEN_CLANE_B@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CIO2_CSIRX_DLY_CNT_TERMEN_CLANE_B@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x22, _CIO2_CSIRX_DLY_CNT_TERMEN_DEFAULT@GOTPAGE
Lloh18:
	ldr	x22, [x22, _CIO2_CSIRX_DLY_CNT_TERMEN_DEFAULT@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x2, x21
	bl	_cio2_rx_timing
	str	x0, [x20, #24]
Lloh19:
	adrp	x8, _CIO2_CSIRX_DLY_CNT_SETTLE_CLANE_A@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CIO2_CSIRX_DLY_CNT_SETTLE_CLANE_A@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _CIO2_CSIRX_DLY_CNT_SETTLE_CLANE_B@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CIO2_CSIRX_DLY_CNT_SETTLE_CLANE_B@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x23, _CIO2_CSIRX_DLY_CNT_SETTLE_DEFAULT@GOTPAGE
Lloh26:
	ldr	x23, [x23, _CIO2_CSIRX_DLY_CNT_SETTLE_DEFAULT@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x2, x21
	bl	_cio2_rx_timing
Lloh27:
	adrp	x8, _CIO2_CSIRX_DLY_CNT_TERMEN_DLANE_A@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CIO2_CSIRX_DLY_CNT_TERMEN_DLANE_A@GOTPAGEOFF]
	str	x0, [x20, #16]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _CIO2_CSIRX_DLY_CNT_TERMEN_DLANE_B@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CIO2_CSIRX_DLY_CNT_TERMEN_DLANE_B@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w3, [x22]
	mov	x2, x21
	bl	_cio2_rx_timing
Lloh33:
	adrp	x8, _CIO2_CSIRX_DLY_CNT_SETTLE_DLANE_A@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CIO2_CSIRX_DLY_CNT_SETTLE_DLANE_A@GOTPAGEOFF]
	str	x0, [x20, #8]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x8, _CIO2_CSIRX_DLY_CNT_SETTLE_DLANE_B@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CIO2_CSIRX_DLY_CNT_SETTLE_DLANE_B@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	w3, [x23]
	mov	x2, x21
	bl	_cio2_rx_timing
	str	x0, [x20]
	ldr	x2, [x20, #24]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x2, [x20, #16]
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x2, [x20, #8]
Lloh43:
	adrp	x1, l_.str.5@PAGE
Lloh44:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x2, [x20]
Lloh45:
	adrp	x1, l_.str.6@PAGE
Lloh46:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w21, #0
	b	LBB0_10
LBB0_8:
Lloh47:
	adrp	x1, l_.str.2@PAGE
Lloh48:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh49:
	adrp	x8, _EINVAL@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CID_LINK_FREQ,4,2         ; @V4L2_CID_LINK_FREQ
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find LINK_FREQ\n"

	.comm	_EPIPE,4,2                      ; @EPIPE
l_.str.1:                               ; @.str.1
	.asciz	"failed to get menu item\n"

l_.str.2:                               ; @.str.2
	.asciz	"error invalid link_freq\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CIO2_CSIRX_DLY_CNT_TERMEN_CLANE_A,4,2 ; @CIO2_CSIRX_DLY_CNT_TERMEN_CLANE_A
	.comm	_CIO2_CSIRX_DLY_CNT_TERMEN_CLANE_B,4,2 ; @CIO2_CSIRX_DLY_CNT_TERMEN_CLANE_B
	.comm	_CIO2_CSIRX_DLY_CNT_TERMEN_DEFAULT,4,2 ; @CIO2_CSIRX_DLY_CNT_TERMEN_DEFAULT
	.comm	_CIO2_CSIRX_DLY_CNT_SETTLE_CLANE_A,4,2 ; @CIO2_CSIRX_DLY_CNT_SETTLE_CLANE_A
	.comm	_CIO2_CSIRX_DLY_CNT_SETTLE_CLANE_B,4,2 ; @CIO2_CSIRX_DLY_CNT_SETTLE_CLANE_B
	.comm	_CIO2_CSIRX_DLY_CNT_SETTLE_DEFAULT,4,2 ; @CIO2_CSIRX_DLY_CNT_SETTLE_DEFAULT
	.comm	_CIO2_CSIRX_DLY_CNT_TERMEN_DLANE_A,4,2 ; @CIO2_CSIRX_DLY_CNT_TERMEN_DLANE_A
	.comm	_CIO2_CSIRX_DLY_CNT_TERMEN_DLANE_B,4,2 ; @CIO2_CSIRX_DLY_CNT_TERMEN_DLANE_B
	.comm	_CIO2_CSIRX_DLY_CNT_SETTLE_DLANE_A,4,2 ; @CIO2_CSIRX_DLY_CNT_SETTLE_DLANE_A
	.comm	_CIO2_CSIRX_DLY_CNT_SETTLE_DLANE_B,4,2 ; @CIO2_CSIRX_DLY_CNT_SETTLE_DLANE_B
l_.str.3:                               ; @.str.3
	.asciz	"freq ct value is %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"freq cs value is %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"freq dt value is %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"freq ds value is %d\n"

	.no_dead_strip	_cio2_csi2_calc_timing
.subsections_via_symbols
