	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isc_ctrl_init
_isc_ctrl_init:                         ## @isc_ctrl_init
	.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, %rbx
	leaq	28(%rdi), %r14
	movq	_HIST_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	callq	_isc_reset_awb_ctrls
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_v4l2_ctrl_handler_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	$0, 16(%rbx)
	movl	$256, 8(%rbx)                   ## imm = 0x100
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_isc_ctrl_ops@GOTPCREL(%rip), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$-1024, %ecx                    ## imm = 0xFC00
	movl	$1023, %r8d                     ## imm = 0x3FF
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$256, (%rsp)                    ## imm = 0x100
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$-2048, %ecx                    ## imm = 0xF800
	movl	$2047, %r8d                     ## imm = 0x7FF
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_GAMMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GAMMA_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$2, (%rsp)
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_AUTO_WHITE_BALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_DO_WHITE_BALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_v4l2_ctrl_new_std
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_v4l2_ctrl_activate
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_setup
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %r15d
	jmp	LBB0_5
LBB0_3:
	movl	(%r14), %r15d
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_free
LBB0_5:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_isc_ctrl_ops,4,2               ## @isc_ctrl_ops
	.comm	_HIST_INIT,4,2                  ## @HIST_INIT
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ## @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ## @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_GAMMA,4,2             ## @V4L2_CID_GAMMA
	.comm	_GAMMA_MAX,4,2                  ## @GAMMA_MAX
	.comm	_V4L2_CID_AUTO_WHITE_BALANCE,4,2 ## @V4L2_CID_AUTO_WHITE_BALANCE
	.comm	_V4L2_CID_DO_WHITE_BALANCE,4,2  ## @V4L2_CID_DO_WHITE_BALANCE
	.no_dead_strip	_isc_ctrl_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isc_ctrl_init
_isc_ctrl_init:                         ; @isc_ctrl_init
	.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, #28
Lloh0:
	adrp	x8, _HIST_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIST_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	bl	_isc_reset_awb_ctrls
	mov	x0, x19
	mov	w1, #5
	bl	_v4l2_ctrl_handler_init
	tbnz	w0, #31, LBB0_3
; %bb.1:
	str	xzr, [x20, #16]
	mov	w8, #256
	str	w8, [x20, #8]
Lloh3:
	adrp	x8, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x21, _isc_ctrl_ops@GOTPAGE
Lloh7:
	ldr	x21, [x21, _isc_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #-1024
	mov	w4, #1023
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh8:
	adrp	x8, _V4L2_CID_CONTRAST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_CID_CONTRAST@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #-2048
	mov	w4, #2047
	mov	w5, #1
	mov	w6, #256
	bl	_v4l2_ctrl_new_std
Lloh11:
	adrp	x8, _V4L2_CID_GAMMA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_CID_GAMMA@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _GAMMA_MAX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GAMMA_MAX@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w5, #1
	mov	w6, #2
	bl	_v4l2_ctrl_new_std
Lloh17:
	adrp	x8, _V4L2_CID_AUTO_WHITE_BALANCE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_CID_AUTO_WHITE_BALANCE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
Lloh20:
	adrp	x8, _V4L2_CID_DO_WHITE_BALANCE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V4L2_CID_DO_WHITE_BALANCE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	w0, [x20]
	cbz	w0, LBB0_4
; %bb.2:
	mov	w1, #0
	bl	_v4l2_ctrl_activate
	mov	x0, x19
	bl	_v4l2_ctrl_handler_setup
	mov	w21, #0
	b	LBB0_5
LBB0_3:
	mov	x21, x0
	b	LBB0_5
LBB0_4:
	ldr	w21, [x19]
	mov	x0, x19
	bl	_v4l2_ctrl_handler_free
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_isc_ctrl_ops,4,2               ; @isc_ctrl_ops
	.comm	_HIST_INIT,4,2                  ; @HIST_INIT
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ; @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ; @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_GAMMA,4,2             ; @V4L2_CID_GAMMA
	.comm	_GAMMA_MAX,4,2                  ; @GAMMA_MAX
	.comm	_V4L2_CID_AUTO_WHITE_BALANCE,4,2 ; @V4L2_CID_AUTO_WHITE_BALANCE
	.comm	_V4L2_CID_DO_WHITE_BALANCE,4,2  ; @V4L2_CID_DO_WHITE_BALANCE
	.no_dead_strip	_isc_ctrl_init
.subsections_via_symbols
