	.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, %r14
	leaq	8(%rdi), %rbx
	movq	%rbx, (%rdi)
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$15, (%rsp)
	movq	_mars_ctrl_ops@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$30, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 40(%r14)
	movq	_V4L2_CID_SATURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$200, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 32(%r14)
	movq	_V4L2_CID_GAMMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$3, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 24(%r14)
	movq	_V4L2_CID_SHARPNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$2, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 16(%r14)
	movq	_V4L2_CID_ILLUMINATORS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, (%r14)
	movq	_V4L2_CTRL_FLAG_UPDATE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	%ecx, (%rax)
	movq	_V4L2_CID_ILLUMINATORS_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 8(%r14)
	movl	(%r13), %ecx
	orl	%ecx, (%rax)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	(%rbx), %r15d
	jmp	LBB0_3
LBB0_2:
	movl	$2, %edi
	movq	%r14, %rsi
	callq	_v4l2_ctrl_cluster
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mars_ctrl_ops,4,2              ## @mars_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ## @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_SATURATION,4,2        ## @V4L2_CID_SATURATION
	.comm	_V4L2_CID_GAMMA,4,2             ## @V4L2_CID_GAMMA
	.comm	_V4L2_CID_SHARPNESS,4,2         ## @V4L2_CID_SHARPNESS
	.comm	_V4L2_CID_ILLUMINATORS_1,4,2    ## @V4L2_CID_ILLUMINATORS_1
	.comm	_V4L2_CTRL_FLAG_UPDATE,4,2      ## @V4L2_CTRL_FLAG_UPDATE
	.comm	_V4L2_CID_ILLUMINATORS_2,4,2    ## @V4L2_CID_ILLUMINATORS_2
	.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, #8
	str	x19, [x0]
	mov	x0, x19
	mov	w1, #6
	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	x21, _mars_ctrl_ops@GOTPAGE
Lloh4:
	ldr	x21, [x21, _mars_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #30
	mov	w5, #1
	mov	w6, #15
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #40]
Lloh5:
	adrp	x8, _V4L2_CID_SATURATION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_CID_SATURATION@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #200
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #32]
Lloh8:
	adrp	x8, _V4L2_CID_GAMMA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_CID_GAMMA@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #3
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #24]
Lloh11:
	adrp	x8, _V4L2_CID_SHARPNESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_CID_SHARPNESS@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #2
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #16]
Lloh14:
	adrp	x8, _V4L2_CID_ILLUMINATORS_1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_CID_ILLUMINATORS_1@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x20]
Lloh17:
	adrp	x22, _V4L2_CTRL_FLAG_UPDATE@GOTPAGE
Lloh18:
	ldr	x22, [x22, _V4L2_CTRL_FLAG_UPDATE@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh19:
	adrp	x8, _V4L2_CID_ILLUMINATORS_2@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_CID_ILLUMINATORS_2@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #8]
	ldr	w8, [x22]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	cbz	w0, LBB0_2
; %bb.1:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	w0, [x19]
	b	LBB0_3
LBB0_2:
	mov	w0, #2
	mov	x1, x20
	bl	_v4l2_ctrl_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	Lloh19, Lloh20, Lloh21
	.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	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_mars_ctrl_ops,4,2              ; @mars_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ; @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_SATURATION,4,2        ; @V4L2_CID_SATURATION
	.comm	_V4L2_CID_GAMMA,4,2             ; @V4L2_CID_GAMMA
	.comm	_V4L2_CID_SHARPNESS,4,2         ; @V4L2_CID_SHARPNESS
	.comm	_V4L2_CID_ILLUMINATORS_1,4,2    ; @V4L2_CID_ILLUMINATORS_1
	.comm	_V4L2_CTRL_FLAG_UPDATE,4,2      ; @V4L2_CTRL_FLAG_UPDATE
	.comm	_V4L2_CID_ILLUMINATORS_2,4,2    ; @V4L2_CID_ILLUMINATORS_2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not initialize controls\n"

	.no_dead_strip	_sd_init_controls
.subsections_via_symbols
