	.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, %rbx
	leaq	32(%rdi), %r14
	movq	%r14, 24(%rdi)
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PAC207_BRIGHTNESS_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PAC207_BRIGHTNESS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_PAC207_BRIGHTNESS_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	_sd_ctrl_ops@GOTPCREL(%rip), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, (%rbx)
	movq	_V4L2_CID_AUTOGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	xorl	%r15d, %r15d
	movq	%r14, %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
	movq	_PAC207_EXPOSURE_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PAC207_EXPOSURE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_PAC207_EXPOSURE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 16(%rbx)
	movq	_V4L2_CID_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PAC207_GAIN_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PAC207_GAIN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_PAC207_GAIN_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 8(%rbx)
	cmpl	$0, 32(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	(%r14), %r15d
	jmp	LBB0_3
LBB0_2:
	movl	$3, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_v4l2_ctrl_auto_cluster
LBB0_3:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sd_ctrl_ops,4,2                ## @sd_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ## @V4L2_CID_BRIGHTNESS
	.comm	_PAC207_BRIGHTNESS_MIN,4,2      ## @PAC207_BRIGHTNESS_MIN
	.comm	_PAC207_BRIGHTNESS_MAX,4,2      ## @PAC207_BRIGHTNESS_MAX
	.comm	_PAC207_BRIGHTNESS_DEFAULT,4,2  ## @PAC207_BRIGHTNESS_DEFAULT
	.comm	_V4L2_CID_AUTOGAIN,4,2          ## @V4L2_CID_AUTOGAIN
	.comm	_V4L2_CID_EXPOSURE,4,2          ## @V4L2_CID_EXPOSURE
	.comm	_PAC207_EXPOSURE_MIN,4,2        ## @PAC207_EXPOSURE_MIN
	.comm	_PAC207_EXPOSURE_MAX,4,2        ## @PAC207_EXPOSURE_MAX
	.comm	_PAC207_EXPOSURE_DEFAULT,4,2    ## @PAC207_EXPOSURE_DEFAULT
	.comm	_V4L2_CID_GAIN,4,2              ## @V4L2_CID_GAIN
	.comm	_PAC207_GAIN_MIN,4,2            ## @PAC207_GAIN_MIN
	.comm	_PAC207_GAIN_MAX,4,2            ## @PAC207_GAIN_MAX
	.comm	_PAC207_GAIN_DEFAULT,4,2        ## @PAC207_GAIN_DEFAULT
	.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	x20, x0
	add	x19, x0, #32
	str	x19, [x0, #24]
	mov	x0, x19
	mov	w1, #4
	bl	_v4l2_ctrl_handler_init
Lloh0:
	adrp	x8, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _PAC207_BRIGHTNESS_MIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAC207_BRIGHTNESS_MIN@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _PAC207_BRIGHTNESS_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAC207_BRIGHTNESS_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _PAC207_BRIGHTNESS_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PAC207_BRIGHTNESS_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x8]
Lloh12:
	adrp	x21, _sd_ctrl_ops@GOTPAGE
Lloh13:
	ldr	x21, [x21, _sd_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
	str	x0, [x20]
Lloh14:
	adrp	x8, _V4L2_CID_AUTOGAIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_CID_AUTOGAIN@GOTPAGEOFF]
Lloh16:
	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]
Lloh17:
	adrp	x8, _V4L2_CID_EXPOSURE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_CID_EXPOSURE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _PAC207_EXPOSURE_MIN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PAC207_EXPOSURE_MIN@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
Lloh23:
	adrp	x8, _PAC207_EXPOSURE_MAX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PAC207_EXPOSURE_MAX@GOTPAGEOFF]
Lloh25:
	ldr	w4, [x8]
Lloh26:
	adrp	x8, _PAC207_EXPOSURE_DEFAULT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PAC207_EXPOSURE_DEFAULT@GOTPAGEOFF]
Lloh28:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #16]
Lloh29:
	adrp	x8, _V4L2_CID_GAIN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _V4L2_CID_GAIN@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x8, _PAC207_GAIN_MIN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PAC207_GAIN_MIN@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
Lloh35:
	adrp	x8, _PAC207_GAIN_MAX@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PAC207_GAIN_MAX@GOTPAGEOFF]
Lloh37:
	ldr	w4, [x8]
Lloh38:
	adrp	x8, _PAC207_GAIN_DEFAULT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PAC207_GAIN_DEFAULT@GOTPAGEOFF]
Lloh40:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #8]
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_2
; %bb.1:
Lloh41:
	adrp	x0, l_.str@PAGE
Lloh42:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	w0, [x19]
	b	LBB0_3
LBB0_2:
	mov	w0, #3
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_v4l2_ctrl_auto_cluster
	mov	w0, #0
LBB0_3:
	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	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_sd_ctrl_ops,4,2                ; @sd_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ; @V4L2_CID_BRIGHTNESS
	.comm	_PAC207_BRIGHTNESS_MIN,4,2      ; @PAC207_BRIGHTNESS_MIN
	.comm	_PAC207_BRIGHTNESS_MAX,4,2      ; @PAC207_BRIGHTNESS_MAX
	.comm	_PAC207_BRIGHTNESS_DEFAULT,4,2  ; @PAC207_BRIGHTNESS_DEFAULT
	.comm	_V4L2_CID_AUTOGAIN,4,2          ; @V4L2_CID_AUTOGAIN
	.comm	_V4L2_CID_EXPOSURE,4,2          ; @V4L2_CID_EXPOSURE
	.comm	_PAC207_EXPOSURE_MIN,4,2        ; @PAC207_EXPOSURE_MIN
	.comm	_PAC207_EXPOSURE_MAX,4,2        ; @PAC207_EXPOSURE_MAX
	.comm	_PAC207_EXPOSURE_DEFAULT,4,2    ; @PAC207_EXPOSURE_DEFAULT
	.comm	_V4L2_CID_GAIN,4,2              ; @V4L2_CID_GAIN
	.comm	_PAC207_GAIN_MIN,4,2            ; @PAC207_GAIN_MIN
	.comm	_PAC207_GAIN_MAX,4,2            ; @PAC207_GAIN_MAX
	.comm	_PAC207_GAIN_DEFAULT,4,2        ; @PAC207_GAIN_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not initialize controls\n"

	.no_dead_strip	_sd_init_controls
.subsections_via_symbols
