	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k4ecgx_init_v4l2_ctrls
_s5k4ecgx_init_v4l2_ctrls:              ## @s5k4ecgx_init_v4l2_ctrls
	.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), %r12
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_v4l2_ctrl_handler_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_s5k4ecgx_ctrl_ops@GOTPCREL(%rip), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$-208, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$-127, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_SATURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$-127, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_SHARPNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SHARPNESS_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-32704, %eax                   ## imm = 0x8040
	cltd
	idivl	%esi
	movl	%eax, %ecx
	movl	$24612, %eax                    ## imm = 0x6024
	xorl	%edx, %edx
	idivl	%esi
	movl	$2, (%rsp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_4
LBB0_3:
	movq	%r12, (%r14)
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s5k4ecgx_ctrl_ops,4,2          ## @s5k4ecgx_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_SHARPNESS,4,2         ## @V4L2_CID_SHARPNESS
	.comm	_SHARPNESS_DIV,4,2              ## @SHARPNESS_DIV
	.no_dead_strip	_s5k4ecgx_init_v4l2_ctrls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k4ecgx_init_v4l2_ctrls
_s5k4ecgx_init_v4l2_ctrls:              ; @s5k4ecgx_init_v4l2_ctrls
	.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
	mov	x0, x19
	mov	w1, #4
	bl	_v4l2_ctrl_handler_init
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x21, _s5k4ecgx_ctrl_ops@GOTPAGE
Lloh4:
	ldr	x21, [x21, _s5k4ecgx_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #-208
	mov	w4, #127
	mov	w5, #1
	mov	w6, #0
	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, #-127
	mov	w4, #127
	mov	w5, #1
	mov	w6, #0
	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, #-127
	mov	w4, #127
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh11:
	adrp	x8, _V4L2_CID_SHARPNESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_CID_SHARPNESS@GOTPAGEOFF]
Lloh13:
	adrp	x9, _SHARPNESS_DIV@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SHARPNESS_DIV@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	ldr	w8, [x9]
	mov	w9, #-32704
	sdiv	w3, w9, w8
	mov	w9, #24612
	sdiv	w4, w9, w8
	mov	x0, x19
	mov	x1, x21
	mov	w5, #1
	mov	w6, #2
	bl	_v4l2_ctrl_new_std
	ldr	w21, [x19]
	cbz	w21, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_v4l2_ctrl_handler_free
	b	LBB0_4
LBB0_3:
	str	x19, [x20]
LBB0_4:
	mov	x0, x21
	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	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_s5k4ecgx_ctrl_ops,4,2          ; @s5k4ecgx_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_SHARPNESS,4,2         ; @V4L2_CID_SHARPNESS
	.comm	_SHARPNESS_DIV,4,2              ; @SHARPNESS_DIV
	.no_dead_strip	_s5k4ecgx_init_v4l2_ctrls
.subsections_via_symbols
