	.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, %r14
	leaq	8(%rdi), %rbx
	movq	%rbx, (%rdi)
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$127, (%rsp)
	movq	_sd_ctrl_ops@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$31, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$63, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_SATURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$31, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$63, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	cmpl	$0, 8(%r14)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	(%rbx), %r15d
LBB0_2:
	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	_V4L2_CID_CONTRAST,4,2          ## @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_SATURATION,4,2        ## @V4L2_CID_SATURATION
	.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, #3
	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, _sd_ctrl_ops@GOTPAGE
Lloh4:
	ldr	x21, [x21, _sd_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #127
	bl	_v4l2_ctrl_new_std
Lloh5:
	adrp	x8, _V4L2_CID_CONTRAST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_CID_CONTRAST@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #63
	mov	w5, #1
	mov	w6, #31
	bl	_v4l2_ctrl_new_std
Lloh8:
	adrp	x8, _V4L2_CID_SATURATION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_CID_SATURATION@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #63
	mov	w5, #1
	mov	w6, #31
	bl	_v4l2_ctrl_new_std
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	w0, [x19]
	b	LBB0_3
LBB0_2:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not initialize controls\n"

	.no_dead_strip	_sd_init_controls
.subsections_via_symbols
