	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov2685_initialize_controls
_ov2685_initialize_controls:            ## @ov2685_initialize_controls
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	72(%rdi), %r14
	movq	64(%rdi), %r13
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_v4l2_ctrl_handler_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	leaq	56(%r12), %rax
	movq	%rax, 80(%r12)
	movq	_V4L2_CID_LINK_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_link_freq_menu_items@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_v4l2_ctrl_new_int_menu
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_V4L2_CTRL_FLAG_READ_ONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_3:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movq	_OV2685_LANES@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	addl	%eax, %eax
	movq	_OV2685_BITS_PER_SAMPLE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	_V4L2_CID_PIXEL_RATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movl	(%r13), %ecx
	subl	4(%r13), %ecx
	movq	_V4L2_CID_HBLANK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ecx, (%rsp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ecx, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 48(%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_V4L2_CTRL_FLAG_READ_ONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_5:
	movq	_V4L2_CID_VBLANK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r13), %ecx
	movl	12(%r13), %eax
	subl	%eax, %ecx
	movq	_OV2685_VTS_MAX@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	subl	%eax, %r8d
	movl	%ecx, (%rsp)
	movq	_ov2685_ctrl_ops@GOTPCREL(%rip), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 40(%r12)
	movl	8(%r13), %r8d
	movl	16(%r13), %eax
	addl	$-4, %r8d
	movq	_V4L2_CID_EXPOSURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_OV2685_EXPOSURE_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_OV2685_EXPOSURE_STEP@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_v4l2_ctrl_new_std
	movq	%rax, 32(%r12)
	movq	_V4L2_CID_ANALOGUE_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OV2685_GAIN_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_OV2685_GAIN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_OV2685_GAIN_STEP@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_OV2685_GAIN_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_v4l2_ctrl_new_std
	movq	%rax, 24(%r12)
	movq	_V4L2_CID_TEST_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ov2685_test_pattern_menu@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_ARRAY_SIZE
	leaq	-1(%rax), %rcx
	movl	(%r13), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_v4l2_ctrl_new_std_menu_items
	movl	%eax, 16(%r12)
	movl	72(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_8
LBB0_7:
	movq	%r14, (%r12)
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %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	_link_freq_menu_items,8,3       ## @link_freq_menu_items
	.comm	_V4L2_CTRL_FLAG_READ_ONLY,4,2   ## @V4L2_CTRL_FLAG_READ_ONLY
	.comm	_OV2685_LANES,4,2               ## @OV2685_LANES
	.comm	_OV2685_BITS_PER_SAMPLE,4,2     ## @OV2685_BITS_PER_SAMPLE
	.comm	_V4L2_CID_PIXEL_RATE,4,2        ## @V4L2_CID_PIXEL_RATE
	.comm	_V4L2_CID_HBLANK,4,2            ## @V4L2_CID_HBLANK
	.comm	_ov2685_ctrl_ops,4,2            ## @ov2685_ctrl_ops
	.comm	_V4L2_CID_VBLANK,4,2            ## @V4L2_CID_VBLANK
	.comm	_OV2685_VTS_MAX,4,2             ## @OV2685_VTS_MAX
	.comm	_V4L2_CID_EXPOSURE,4,2          ## @V4L2_CID_EXPOSURE
	.comm	_OV2685_EXPOSURE_MIN,4,2        ## @OV2685_EXPOSURE_MIN
	.comm	_OV2685_EXPOSURE_STEP,4,2       ## @OV2685_EXPOSURE_STEP
	.comm	_V4L2_CID_ANALOGUE_GAIN,4,2     ## @V4L2_CID_ANALOGUE_GAIN
	.comm	_OV2685_GAIN_MIN,4,2            ## @OV2685_GAIN_MIN
	.comm	_OV2685_GAIN_MAX,4,2            ## @OV2685_GAIN_MAX
	.comm	_OV2685_GAIN_STEP,4,2           ## @OV2685_GAIN_STEP
	.comm	_OV2685_GAIN_DEFAULT,4,2        ## @OV2685_GAIN_DEFAULT
	.comm	_V4L2_CID_TEST_PATTERN,4,2      ## @V4L2_CID_TEST_PATTERN
	.comm	_ov2685_test_pattern_menu,4,2   ## @ov2685_test_pattern_menu
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to init controls(%d)\n"

	.no_dead_strip	_ov2685_initialize_controls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov2685_initialize_controls
_ov2685_initialize_controls:            ; @ov2685_initialize_controls
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	add	x19, x0, #72
	ldr	x22, [x0, #64]
	mov	x0, x19
	mov	w1, #8
	bl	_v4l2_ctrl_handler_init
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.1:
	add	x8, x20, #56
	str	x8, [x20, #80]
Lloh0:
	adrp	x8, _V4L2_CID_LINK_FREQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CID_LINK_FREQ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x23, _link_freq_menu_items@GOTPAGE
Lloh4:
	ldr	x23, [x23, _link_freq_menu_items@GOTPAGEOFF]
	ldr	x5, [x23]
	mov	x0, x19
	mov	x1, #0
	mov	w3, #0
	mov	w4, #0
	bl	_v4l2_ctrl_new_int_menu
Lloh5:
	adrp	x21, _V4L2_CTRL_FLAG_READ_ONLY@GOTPAGE
Lloh6:
	ldr	x21, [x21, _V4L2_CTRL_FLAG_READ_ONLY@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x21]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_3:
	ldr	x8, [x23]
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _OV2685_LANES@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OV2685_LANES@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	mul	w8, w8, w9
Lloh10:
	adrp	x9, _OV2685_BITS_PER_SAMPLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _OV2685_BITS_PER_SAMPLE@GOTPAGEOFF]
	lsl	w8, w8, #1
Lloh12:
	ldr	w9, [x9]
	sdiv	w4, w8, w9
Lloh13:
	adrp	x8, _V4L2_CID_PIXEL_RATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_CID_PIXEL_RATE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w3, #0
	mov	w5, #1
	mov	x6, x4
	bl	_v4l2_ctrl_new_std
	ldp	w8, w9, [x22]
	sub	w3, w8, w9
Lloh16:
	adrp	x8, _V4L2_CID_HBLANK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V4L2_CID_HBLANK@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x4, x3
	mov	w5, #1
	mov	x6, x3
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #48]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x21]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_5:
Lloh19:
	adrp	x8, _V4L2_CID_VBLANK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_CID_VBLANK@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	ldp	w8, w9, [x22, #8]
	sub	w3, w8, w9
Lloh22:
	adrp	x8, _OV2685_VTS_MAX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OV2685_VTS_MAX@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	sub	w4, w8, w9
Lloh25:
	adrp	x21, _ov2685_ctrl_ops@GOTPAGE
Lloh26:
	ldr	x21, [x21, _ov2685_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	mov	w5, #1
	mov	x6, x3
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #40]
	ldr	w8, [x22, #8]
	sub	w4, w8, #4
Lloh27:
	adrp	x8, _V4L2_CID_EXPOSURE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _V4L2_CID_EXPOSURE@GOTPAGEOFF]
Lloh29:
	adrp	x9, _OV2685_EXPOSURE_MIN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _OV2685_EXPOSURE_MIN@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	ldr	w3, [x9]
Lloh33:
	adrp	x8, _OV2685_EXPOSURE_STEP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _OV2685_EXPOSURE_STEP@GOTPAGEOFF]
Lloh35:
	ldr	w5, [x8]
	ldr	w6, [x22, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #32]
Lloh36:
	adrp	x8, _V4L2_CID_ANALOGUE_GAIN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _V4L2_CID_ANALOGUE_GAIN@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
Lloh39:
	adrp	x8, _OV2685_GAIN_MIN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _OV2685_GAIN_MIN@GOTPAGEOFF]
Lloh41:
	ldr	w3, [x8]
Lloh42:
	adrp	x8, _OV2685_GAIN_MAX@GOTPAGE
Lloh43:
	ldr	x8, [x8, _OV2685_GAIN_MAX@GOTPAGEOFF]
Lloh44:
	ldr	w4, [x8]
Lloh45:
	adrp	x8, _OV2685_GAIN_STEP@GOTPAGE
Lloh46:
	ldr	x8, [x8, _OV2685_GAIN_STEP@GOTPAGEOFF]
Lloh47:
	ldr	w5, [x8]
Lloh48:
	adrp	x8, _OV2685_GAIN_DEFAULT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _OV2685_GAIN_DEFAULT@GOTPAGEOFF]
Lloh50:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #24]
Lloh51:
	adrp	x8, _V4L2_CID_TEST_PATTERN@GOTPAGE
Lloh52:
	ldr	x8, [x8, _V4L2_CID_TEST_PATTERN@GOTPAGEOFF]
Lloh53:
	ldr	w22, [x8]
Lloh54:
	adrp	x23, _ov2685_test_pattern_menu@GOTPAGE
Lloh55:
	ldr	x23, [x23, _ov2685_test_pattern_menu@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_ARRAY_SIZE
	sub	x3, x0, #1
	ldr	w6, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w4, #0
	mov	w5, #0
	bl	_v4l2_ctrl_new_std_menu_items
	str	w0, [x20, #16]
	ldr	w21, [x20, #72]
	cbz	w21, LBB0_7
; %bb.6:
	ldr	x0, [x20, #8]
Lloh56:
	adrp	x1, l_.str@PAGE
Lloh57:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	mov	x0, x19
	bl	_v4l2_ctrl_handler_free
	b	LBB0_8
LBB0_7:
	str	x19, [x20]
LBB0_8:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CID_LINK_FREQ,4,2         ; @V4L2_CID_LINK_FREQ
	.comm	_link_freq_menu_items,8,3       ; @link_freq_menu_items
	.comm	_V4L2_CTRL_FLAG_READ_ONLY,4,2   ; @V4L2_CTRL_FLAG_READ_ONLY
	.comm	_OV2685_LANES,4,2               ; @OV2685_LANES
	.comm	_OV2685_BITS_PER_SAMPLE,4,2     ; @OV2685_BITS_PER_SAMPLE
	.comm	_V4L2_CID_PIXEL_RATE,4,2        ; @V4L2_CID_PIXEL_RATE
	.comm	_V4L2_CID_HBLANK,4,2            ; @V4L2_CID_HBLANK
	.comm	_ov2685_ctrl_ops,4,2            ; @ov2685_ctrl_ops
	.comm	_V4L2_CID_VBLANK,4,2            ; @V4L2_CID_VBLANK
	.comm	_OV2685_VTS_MAX,4,2             ; @OV2685_VTS_MAX
	.comm	_V4L2_CID_EXPOSURE,4,2          ; @V4L2_CID_EXPOSURE
	.comm	_OV2685_EXPOSURE_MIN,4,2        ; @OV2685_EXPOSURE_MIN
	.comm	_OV2685_EXPOSURE_STEP,4,2       ; @OV2685_EXPOSURE_STEP
	.comm	_V4L2_CID_ANALOGUE_GAIN,4,2     ; @V4L2_CID_ANALOGUE_GAIN
	.comm	_OV2685_GAIN_MIN,4,2            ; @OV2685_GAIN_MIN
	.comm	_OV2685_GAIN_MAX,4,2            ; @OV2685_GAIN_MAX
	.comm	_OV2685_GAIN_STEP,4,2           ; @OV2685_GAIN_STEP
	.comm	_OV2685_GAIN_DEFAULT,4,2        ; @OV2685_GAIN_DEFAULT
	.comm	_V4L2_CID_TEST_PATTERN,4,2      ; @V4L2_CID_TEST_PATTERN
	.comm	_ov2685_test_pattern_menu,4,2   ; @ov2685_test_pattern_menu
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to init controls(%d)\n"

	.no_dead_strip	_ov2685_initialize_controls
.subsections_via_symbols
