	.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	%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, %rbx
	leaq	32(%rdi), %r15
	movq	%r15, 24(%rdi)
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, (%rsp)
	movq	_sd_ctrl_ops@GOTPCREL(%rip), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	$32, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 8(%rbx)
	movq	_V4L2_CID_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$127, (%rsp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 64(%rbx)
	movq	_V4L2_CID_SATURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$127, (%rsp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 56(%rbx)
	movq	_V4L2_CID_WHITE_BALANCE_TEMPERATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$55, (%rsp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 48(%rbx)
	movq	_V4L2_CID_RED_BALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PAC7302_RGB_BALANCE_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PAC7302_RGB_BALANCE_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %r8d
	movq	_PAC7302_RGB_BALANCE_DEFAULT@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 40(%rbx)
	movq	_V4L2_CID_BLUE_BALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PAC7302_RGB_BALANCE_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r14), %r8d
	movl	(%r12), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 32(%rbx)
	movq	_V4L2_CID_AUTOGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	%r15, %rdi
	movq	%r13, %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	_PAC7302_EXPOSURE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	$1023, %r8d                     ## imm = 0x3FF
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 16(%rbx)
	movq	_V4L2_CID_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PAC7302_GAIN_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	$62, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 8(%rbx)
	movq	_V4L2_CID_HFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, (%rbx)
	movq	_V4L2_CID_VFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 24(%rbx)
	movq	_V4L2_CID_SHARPNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, (%rsp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	$15, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 16(%rbx)
	cmpl	$0, 32(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	(%r15), %eax
	jmp	LBB0_3
LBB0_2:
	leaq	8(%rbx), %rsi
	movl	$2, %edi
	callq	_v4l2_ctrl_cluster
	movl	$3, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_v4l2_ctrl_auto_cluster
	movl	$2, %edi
	movq	%rbx, %rsi
	callq	_v4l2_ctrl_cluster
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_V4L2_CID_CONTRAST,4,2          ## @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_SATURATION,4,2        ## @V4L2_CID_SATURATION
	.comm	_V4L2_CID_WHITE_BALANCE_TEMPERATURE,4,2 ## @V4L2_CID_WHITE_BALANCE_TEMPERATURE
	.comm	_V4L2_CID_RED_BALANCE,4,2       ## @V4L2_CID_RED_BALANCE
	.comm	_PAC7302_RGB_BALANCE_MIN,4,2    ## @PAC7302_RGB_BALANCE_MIN
	.comm	_PAC7302_RGB_BALANCE_MAX,4,2    ## @PAC7302_RGB_BALANCE_MAX
	.comm	_PAC7302_RGB_BALANCE_DEFAULT,4,2 ## @PAC7302_RGB_BALANCE_DEFAULT
	.comm	_V4L2_CID_BLUE_BALANCE,4,2      ## @V4L2_CID_BLUE_BALANCE
	.comm	_V4L2_CID_AUTOGAIN,4,2          ## @V4L2_CID_AUTOGAIN
	.comm	_V4L2_CID_EXPOSURE,4,2          ## @V4L2_CID_EXPOSURE
	.comm	_PAC7302_EXPOSURE_DEFAULT,4,2   ## @PAC7302_EXPOSURE_DEFAULT
	.comm	_V4L2_CID_GAIN,4,2              ## @V4L2_CID_GAIN
	.comm	_PAC7302_GAIN_DEFAULT,4,2       ## @PAC7302_GAIN_DEFAULT
	.comm	_V4L2_CID_HFLIP,4,2             ## @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ## @V4L2_CID_VFLIP
	.comm	_V4L2_CID_SHARPNESS,4,2         ## @V4L2_CID_SHARPNESS
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	add	x20, x0, #32
	str	x20, [x0, #24]
	mov	x0, x20
	mov	w1, #12
	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	x22, _sd_ctrl_ops@GOTPAGE
Lloh4:
	ldr	x22, [x22, _sd_ctrl_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	w4, #32
	mov	w5, #1
	mov	w6, #16
	bl	_v4l2_ctrl_new_std
	mov	x21, x19
	str	x0, [x21, #8]!
Lloh5:
	adrp	x8, _V4L2_CID_CONTRAST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_CID_CONTRAST@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #127
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #64]
Lloh8:
	adrp	x8, _V4L2_CID_SATURATION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_CID_SATURATION@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #127
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #56]
Lloh11:
	adrp	x8, _V4L2_CID_WHITE_BALANCE_TEMPERATURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_CID_WHITE_BALANCE_TEMPERATURE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #55
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #48]
Lloh14:
	adrp	x8, _V4L2_CID_RED_BALANCE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_CID_RED_BALANCE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x23, _PAC7302_RGB_BALANCE_MIN@GOTPAGE
Lloh18:
	ldr	x23, [x23, _PAC7302_RGB_BALANCE_MIN@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh19:
	adrp	x24, _PAC7302_RGB_BALANCE_MAX@GOTPAGE
Lloh20:
	ldr	x24, [x24, _PAC7302_RGB_BALANCE_MAX@GOTPAGEOFF]
	ldr	w4, [x24]
Lloh21:
	adrp	x25, _PAC7302_RGB_BALANCE_DEFAULT@GOTPAGE
Lloh22:
	ldr	x25, [x25, _PAC7302_RGB_BALANCE_DEFAULT@GOTPAGEOFF]
	ldr	w6, [x25]
	mov	x0, x20
	mov	x1, x22
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #40]
Lloh23:
	adrp	x8, _V4L2_CID_BLUE_BALANCE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _V4L2_CID_BLUE_BALANCE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	ldr	w3, [x23]
	ldr	w4, [x24]
	ldr	w6, [x25]
	mov	x0, x20
	mov	x1, x22
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #32]
Lloh26:
	adrp	x8, _V4L2_CID_AUTOGAIN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _V4L2_CID_AUTOGAIN@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
	str	x0, [x19]
Lloh29:
	adrp	x8, _V4L2_CID_EXPOSURE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _V4L2_CID_EXPOSURE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x8, _PAC7302_EXPOSURE_DEFAULT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PAC7302_EXPOSURE_DEFAULT@GOTPAGEOFF]
Lloh34:
	ldr	w6, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	w4, #1023
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #16]
Lloh35:
	adrp	x8, _V4L2_CID_GAIN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _V4L2_CID_GAIN@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x8, _PAC7302_GAIN_DEFAULT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PAC7302_GAIN_DEFAULT@GOTPAGEOFF]
Lloh40:
	ldr	w6, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	w4, #62
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
	str	x0, [x21]
Lloh41:
	adrp	x8, _V4L2_CID_HFLIP@GOTPAGE
Lloh42:
	ldr	x8, [x8, _V4L2_CID_HFLIP@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x19]
Lloh44:
	adrp	x8, _V4L2_CID_VFLIP@GOTPAGE
Lloh45:
	ldr	x8, [x8, _V4L2_CID_VFLIP@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #24]
Lloh47:
	adrp	x8, _V4L2_CID_SHARPNESS@GOTPAGE
Lloh48:
	ldr	x8, [x8, _V4L2_CID_SHARPNESS@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	w4, #15
	mov	w5, #1
	mov	w6, #8
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #16]
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_2
; %bb.1:
Lloh50:
	adrp	x0, l_.str@PAGE
Lloh51:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	w0, [x20]
	b	LBB0_3
LBB0_2:
	mov	w0, #2
	mov	x1, x21
	bl	_v4l2_ctrl_cluster
	mov	w0, #3
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	bl	_v4l2_ctrl_auto_cluster
	mov	w0, #2
	mov	x1, x19
	bl	_v4l2_ctrl_cluster
	mov	w0, #0
LBB0_3:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.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 AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.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_WHITE_BALANCE_TEMPERATURE,4,2 ; @V4L2_CID_WHITE_BALANCE_TEMPERATURE
	.comm	_V4L2_CID_RED_BALANCE,4,2       ; @V4L2_CID_RED_BALANCE
	.comm	_PAC7302_RGB_BALANCE_MIN,4,2    ; @PAC7302_RGB_BALANCE_MIN
	.comm	_PAC7302_RGB_BALANCE_MAX,4,2    ; @PAC7302_RGB_BALANCE_MAX
	.comm	_PAC7302_RGB_BALANCE_DEFAULT,4,2 ; @PAC7302_RGB_BALANCE_DEFAULT
	.comm	_V4L2_CID_BLUE_BALANCE,4,2      ; @V4L2_CID_BLUE_BALANCE
	.comm	_V4L2_CID_AUTOGAIN,4,2          ; @V4L2_CID_AUTOGAIN
	.comm	_V4L2_CID_EXPOSURE,4,2          ; @V4L2_CID_EXPOSURE
	.comm	_PAC7302_EXPOSURE_DEFAULT,4,2   ; @PAC7302_EXPOSURE_DEFAULT
	.comm	_V4L2_CID_GAIN,4,2              ; @V4L2_CID_GAIN
	.comm	_PAC7302_GAIN_DEFAULT,4,2       ; @PAC7302_GAIN_DEFAULT
	.comm	_V4L2_CID_HFLIP,4,2             ; @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ; @V4L2_CID_VFLIP
	.comm	_V4L2_CID_SHARPNESS,4,2         ; @V4L2_CID_SHARPNESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not initialize controls\n"

	.no_dead_strip	_sd_init_controls
.subsections_via_symbols
