	.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, %r12
	leaq	32(%rdi), %r14
	movq	%r14, 24(%rdi)
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_EXPOSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$78, (%rsp)
	movq	_sd_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	$1, %ecx
	movl	$220, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, (%r12)
	movq	_SENSOR_CX0342@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_V4L2_CID_RED_BALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$256, (%rsp)                    ## imm = 0x100
	movq	_sd_ctrl_ops@GOTPCREL(%rip), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movl	$4095, %r8d                     ## imm = 0xFFF
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 48(%r12)
	movq	_V4L2_CID_BLUE_BALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$256, (%rsp)                    ## imm = 0x100
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movl	$4095, %r8d                     ## imm = 0xFFF
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 40(%r12)
	movq	(%r12), %rax
LBB0_2:
	movq	_SENSOR_SOI763A@GOTPCREL(%rip), %r15
	movq	_V4L2_CID_GAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.3:
	movl	$3, (%rsp)
	movq	_sd_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	$15, %r8d
	jmp	LBB0_5
LBB0_4:
	movl	$256, (%rsp)                    ## imm = 0x100
	movq	_sd_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	$4095, %r8d                     ## imm = 0xFFF
LBB0_5:
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 16(%r12)
	movq	_V4L2_CID_SHARPNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$2, (%rsp)
	movq	_sd_ctrl_ops@GOTPCREL(%rip), %rsi
	movl	$1, %ebx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	$3, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 32(%r12)
	movq	_V4L2_CID_GAMMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NGAMMA@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	decl	%r8d
	movq	(%r12), %rax
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.6:
	movq	8(%r12), %rax
	movq	_BRIDGE_TP6800@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	setne	%bl
LBB0_7:
	movl	%ebx, (%rsp)
	movq	_sd_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 24(%r12)
	leaq	8(%r12), %r15
	movq	8(%r12), %rax
	movq	_BRIDGE_TP6810@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_9
## %bb.8:
	movq	_V4L2_CID_AUTOGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	_sd_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, (%r15)
LBB0_9:
	movq	(%r12), %rcx
	movq	_SENSOR_SOI763A@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.10:
	movq	_V4L2_CID_JPEG_COMPRESSION_QUALITY@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%r13), %rax
	movl	(%rcx), %edx
	movl	$13, %eax
	cmovel	%esi, %eax
	movl	%eax, (%rsp)
	movq	_sd_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	$15, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 16(%r12)
LBB0_11:
	cmpl	$0, (%r14)
	je	LBB0_13
## %bb.12:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	(%r14), %ebx
	jmp	LBB0_16
LBB0_13:
	cmpq	$0, (%r15)
	je	LBB0_15
## %bb.14:
	xorl	%ebx, %ebx
	movl	$3, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_v4l2_ctrl_auto_cluster
	jmp	LBB0_16
LBB0_15:
	movl	$2, %edi
	movq	%r12, %rsi
	callq	_v4l2_ctrl_cluster
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	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_EXPOSURE,4,2          ## @V4L2_CID_EXPOSURE
	.comm	_SENSOR_CX0342,8,3              ## @SENSOR_CX0342
	.comm	_V4L2_CID_RED_BALANCE,4,2       ## @V4L2_CID_RED_BALANCE
	.comm	_V4L2_CID_BLUE_BALANCE,4,2      ## @V4L2_CID_BLUE_BALANCE
	.comm	_SENSOR_SOI763A,8,3             ## @SENSOR_SOI763A
	.comm	_V4L2_CID_GAIN,4,2              ## @V4L2_CID_GAIN
	.comm	_V4L2_CID_SHARPNESS,4,2         ## @V4L2_CID_SHARPNESS
	.comm	_V4L2_CID_GAMMA,4,2             ## @V4L2_CID_GAMMA
	.comm	_NGAMMA,4,2                     ## @NGAMMA
	.comm	_BRIDGE_TP6800,8,3              ## @BRIDGE_TP6800
	.comm	_BRIDGE_TP6810,8,3              ## @BRIDGE_TP6810
	.comm	_V4L2_CID_AUTOGAIN,4,2          ## @V4L2_CID_AUTOGAIN
	.comm	_V4L2_CID_JPEG_COMPRESSION_QUALITY,4,2 ## @V4L2_CID_JPEG_COMPRESSION_QUALITY
	.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	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	x19, x0
	add	x20, x0, #32
	str	x20, [x0, #24]
	mov	x0, x20
	mov	w1, #4
	bl	_v4l2_ctrl_handler_init
Lloh0:
	adrp	x8, _V4L2_CID_EXPOSURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CID_EXPOSURE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, _sd_ctrl_ops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _sd_ctrl_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	w3, #1
	mov	w4, #220
	mov	w5, #1
	mov	w6, #78
	bl	_v4l2_ctrl_new_std
	str	x0, [x19]
Lloh5:
	adrp	x8, _SENSOR_CX0342@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SENSOR_CX0342@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _V4L2_CID_RED_BALANCE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_CID_RED_BALANCE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x21, _sd_ctrl_ops@GOTPAGE
Lloh12:
	ldr	x21, [x21, _sd_ctrl_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	w4, #4095
	mov	w5, #1
	mov	w6, #256
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #48]
Lloh13:
	adrp	x8, _V4L2_CID_BLUE_BALANCE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_CID_BLUE_BALANCE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	w4, #4095
	mov	w5, #1
	mov	w6, #256
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #40]
	ldr	x0, [x19]
LBB0_2:
Lloh16:
	adrp	x22, _SENSOR_SOI763A@GOTPAGE
Lloh17:
	ldr	x22, [x22, _SENSOR_SOI763A@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh18:
	adrp	x9, _V4L2_CID_GAIN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _V4L2_CID_GAIN@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x9]
Lloh21:
	adrp	x1, _sd_ctrl_ops@GOTPAGE
Lloh22:
	ldr	x1, [x1, _sd_ctrl_ops@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w3, #0
	mov	w4, #15
	mov	w5, #1
	mov	w6, #3
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	w3, #0
	mov	w4, #4095
	mov	w5, #1
	mov	w6, #256
LBB0_5:
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #16]
Lloh23:
	adrp	x8, _V4L2_CID_SHARPNESS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _V4L2_CID_SHARPNESS@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x1, _sd_ctrl_ops@GOTPAGE
Lloh27:
	ldr	x1, [x1, _sd_ctrl_ops@GOTPAGEOFF]
	mov	w21, #1
	mov	x0, x20
	mov	w3, #0
	mov	w4, #3
	mov	w5, #1
	mov	w6, #2
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #32]
Lloh28:
	adrp	x8, _V4L2_CID_GAMMA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _V4L2_CID_GAMMA@GOTPAGEOFF]
Lloh30:
	adrp	x9, _NGAMMA@GOTPAGE
Lloh31:
	ldr	x9, [x9, _NGAMMA@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
Lloh33:
	ldr	w8, [x9]
	sub	w4, w8, #1
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
Lloh34:
	adrp	x9, _BRIDGE_TP6800@GOTPAGE
Lloh35:
	ldr	x9, [x9, _BRIDGE_TP6800@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w21, ne
LBB0_7:
Lloh37:
	adrp	x1, _sd_ctrl_ops@GOTPAGE
Lloh38:
	ldr	x1, [x1, _sd_ctrl_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	w3, #0
	mov	w5, #1
	mov	x6, x21
	bl	_v4l2_ctrl_new_std
	mov	x8, x0
	mov	x21, x19
	ldr	x0, [x21, #8]!
	str	x8, [x21, #16]
Lloh39:
	adrp	x23, _BRIDGE_TP6810@GOTPAGE
Lloh40:
	ldr	x23, [x23, _BRIDGE_TP6810@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:
Lloh41:
	adrp	x8, _V4L2_CID_AUTOGAIN@GOTPAGE
Lloh42:
	ldr	x8, [x8, _V4L2_CID_AUTOGAIN@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
Lloh44:
	adrp	x1, _sd_ctrl_ops@GOTPAGE
Lloh45:
	ldr	x1, [x1, _sd_ctrl_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
	str	x0, [x21]
LBB0_9:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
Lloh46:
	adrp	x8, _V4L2_CID_JPEG_COMPRESSION_QUALITY@GOTPAGE
Lloh47:
	ldr	x8, [x8, _V4L2_CID_JPEG_COMPRESSION_QUALITY@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	ldr	x8, [x23]
	cmp	x0, x8
	mov	w8, #13
	csel	w6, wzr, w8, eq
Lloh49:
	adrp	x1, _sd_ctrl_ops@GOTPAGE
Lloh50:
	ldr	x1, [x1, _sd_ctrl_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	w3, #0
	mov	w4, #15
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #16]
LBB0_11:
	ldr	w8, [x20]
	cbz	w8, LBB0_13
; %bb.12:
Lloh51:
	adrp	x0, l_.str@PAGE
Lloh52:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	w0, [x20]
	b	LBB0_17
LBB0_13:
	ldr	x8, [x21]
	cbz	x8, LBB0_15
; %bb.14:
	mov	w0, #3
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	bl	_v4l2_ctrl_auto_cluster
	b	LBB0_16
LBB0_15:
	mov	w0, #2
	mov	x1, x19
	bl	_v4l2_ctrl_cluster
LBB0_16:
	mov	w0, #0
LBB0_17:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_sd_ctrl_ops,4,2                ; @sd_ctrl_ops
	.comm	_V4L2_CID_EXPOSURE,4,2          ; @V4L2_CID_EXPOSURE
	.comm	_SENSOR_CX0342,8,3              ; @SENSOR_CX0342
	.comm	_V4L2_CID_RED_BALANCE,4,2       ; @V4L2_CID_RED_BALANCE
	.comm	_V4L2_CID_BLUE_BALANCE,4,2      ; @V4L2_CID_BLUE_BALANCE
	.comm	_SENSOR_SOI763A,8,3             ; @SENSOR_SOI763A
	.comm	_V4L2_CID_GAIN,4,2              ; @V4L2_CID_GAIN
	.comm	_V4L2_CID_SHARPNESS,4,2         ; @V4L2_CID_SHARPNESS
	.comm	_V4L2_CID_GAMMA,4,2             ; @V4L2_CID_GAMMA
	.comm	_NGAMMA,4,2                     ; @NGAMMA
	.comm	_BRIDGE_TP6800,8,3              ; @BRIDGE_TP6800
	.comm	_BRIDGE_TP6810,8,3              ; @BRIDGE_TP6810
	.comm	_V4L2_CID_AUTOGAIN,4,2          ; @V4L2_CID_AUTOGAIN
	.comm	_V4L2_CID_JPEG_COMPRESSION_QUALITY,4,2 ; @V4L2_CID_JPEG_COMPRESSION_QUALITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not initialize controls\n"

	.no_dead_strip	_sd_init_controls
.subsections_via_symbols
