	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_init_controls
_sd_init_controls:                      ## @sd_init_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_SENSOR_OV971x@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.1:
	movq	_SENSOR_OV361x@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.2:
	movq	%rdi, %rbx
	leaq	24(%rdi), %r15
	movq	%r15, 16(%rdi)
	movq	%r15, %rdi
	movl	$7, %esi
	callq	_v4l2_ctrl_handler_init
	movq	(%rbx), %rax
	movq	_SENSOR_OV562x@GOTPCREL(%rip), %rcx
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	$0, (%rsp)
	movq	_sd_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movl	$-90, %ecx
	movl	$90, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	cmpl	$0, (%r15)
	jne	LBB0_6
	jmp	LBB0_7
LBB0_4:
	movl	$7, (%rsp)
	movq	_sd_ctrl_ops@GOTPCREL(%rip), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$15, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$3, (%rsp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$15, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_SATURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$2, (%rsp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$4, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_SHARPNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, (%rsp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$-1, %ecx
	movl	$4, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_AUTOGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, (%rbx)
	movq	_V4L2_CID_EXPOSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$3, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 8(%rbx)
	movq	_V4L2_CID_POWER_LINE_FREQUENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_V4L2_CID_POWER_LINE_FREQUENCY_60HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_v4l2_ctrl_new_std_menu
	movl	$3, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_v4l2_ctrl_auto_cluster
	cmpl	$0, (%r15)
	je	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	(%r15), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SENSOR_OV971x,8,3              ## @SENSOR_OV971x
	.comm	_SENSOR_OV361x,8,3              ## @SENSOR_OV361x
	.comm	_SENSOR_OV562x,8,3              ## @SENSOR_OV562x
	.comm	_sd_ctrl_ops,4,2                ## @sd_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ## @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ## @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_SATURATION,4,2        ## @V4L2_CID_SATURATION
	.comm	_V4L2_CID_SHARPNESS,4,2         ## @V4L2_CID_SHARPNESS
	.comm	_V4L2_CID_AUTOGAIN,4,2          ## @V4L2_CID_AUTOGAIN
	.comm	_V4L2_CID_EXPOSURE,4,2          ## @V4L2_CID_EXPOSURE
	.comm	_V4L2_CID_POWER_LINE_FREQUENCY,4,2 ## @V4L2_CID_POWER_LINE_FREQUENCY
	.comm	_V4L2_CID_POWER_LINE_FREQUENCY_60HZ,4,2 ## @V4L2_CID_POWER_LINE_FREQUENCY_60HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not initialize controls\n"

	.no_dead_strip	_sd_init_controls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_init_controls
_sd_init_controls:                      ; @sd_init_controls
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	x8, [x19], #24
Lloh0:
	adrp	x9, _SENSOR_OV971x@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SENSOR_OV971x@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SENSOR_OV361x@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SENSOR_OV361x@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	mov	x20, x0
	str	x19, [x0, #16]
	mov	x0, x19
	mov	w1, #7
	bl	_v4l2_ctrl_handler_init
Lloh6:
	adrp	x8, _SENSOR_OV562x@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SENSOR_OV562x@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x10, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x10]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x1, _sd_ctrl_ops@GOTPAGE
Lloh13:
	ldr	x1, [x1, _sd_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	w3, #-90
	mov	w4, #90
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	ldr	w8, [x19]
	cbnz	w8, LBB0_5
	b	LBB0_1
LBB0_4:
Lloh14:
	adrp	x21, _sd_ctrl_ops@GOTPAGE
Lloh15:
	ldr	x21, [x21, _sd_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #15
	mov	w5, #1
	mov	w6, #7
	bl	_v4l2_ctrl_new_std
Lloh16:
	adrp	x8, _V4L2_CID_CONTRAST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V4L2_CID_CONTRAST@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #15
	mov	w5, #1
	mov	w6, #3
	bl	_v4l2_ctrl_new_std
Lloh19:
	adrp	x8, _V4L2_CID_SATURATION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_CID_SATURATION@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #4
	mov	w5, #1
	mov	w6, #2
	bl	_v4l2_ctrl_new_std
Lloh22:
	adrp	x8, _V4L2_CID_SHARPNESS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _V4L2_CID_SHARPNESS@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #-1
	mov	w4, #4
	mov	w5, #1
	mov	w6, #-1
	bl	_v4l2_ctrl_new_std
Lloh25:
	adrp	x8, _V4L2_CID_AUTOGAIN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _V4L2_CID_AUTOGAIN@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
	str	x0, [x20]
Lloh28:
	adrp	x8, _V4L2_CID_EXPOSURE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _V4L2_CID_EXPOSURE@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #3
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #8]
Lloh31:
	adrp	x8, _V4L2_CID_POWER_LINE_FREQUENCY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _V4L2_CID_POWER_LINE_FREQUENCY@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x8, _V4L2_CID_POWER_LINE_FREQUENCY_60HZ@GOTPAGE
Lloh35:
	ldr	x8, [x8, _V4L2_CID_POWER_LINE_FREQUENCY_60HZ@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w4, #0
	mov	w5, #0
	bl	_v4l2_ctrl_new_std_menu
	mov	w0, #3
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_v4l2_ctrl_auto_cluster
	ldr	w8, [x19]
	cbz	w8, LBB0_1
LBB0_5:
Lloh37:
	adrp	x0, l_.str@PAGE
Lloh38:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	w0, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_SENSOR_OV971x,8,3              ; @SENSOR_OV971x
	.comm	_SENSOR_OV361x,8,3              ; @SENSOR_OV361x
	.comm	_SENSOR_OV562x,8,3              ; @SENSOR_OV562x
	.comm	_sd_ctrl_ops,4,2                ; @sd_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ; @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ; @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_SATURATION,4,2        ; @V4L2_CID_SATURATION
	.comm	_V4L2_CID_SHARPNESS,4,2         ; @V4L2_CID_SHARPNESS
	.comm	_V4L2_CID_AUTOGAIN,4,2          ; @V4L2_CID_AUTOGAIN
	.comm	_V4L2_CID_EXPOSURE,4,2          ; @V4L2_CID_EXPOSURE
	.comm	_V4L2_CID_POWER_LINE_FREQUENCY,4,2 ; @V4L2_CID_POWER_LINE_FREQUENCY
	.comm	_V4L2_CID_POWER_LINE_FREQUENCY_60HZ,4,2 ; @V4L2_CID_POWER_LINE_FREQUENCY_60HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not initialize controls\n"

	.no_dead_strip	_sd_init_controls
.subsections_via_symbols
