	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function monitor_exposure
LCPI0_0:
	.long	30                              ## 0x1e
	.long	4                               ## 0x4
	.long	9                               ## 0x9
	.long	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_monitor_exposure:                      ## @monitor_exposure
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CPIA_COMMAND_ReadVPRegs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movzbl	%al, %ecx
	sarl	$8, %eax
	movl	%eax, -80(%rbp)
	movl	%ecx, -76(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [30,4,9,8]
	movups	%xmm0, -72(%rbp)
	movq	$8, -56(%rbp)
	movq	96(%rdi), %rax
	movl	88(%rdi), %edi
	leaq	-80(%rbp), %rsi
	leaq	-112(%rbp), %rdx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_LOG
	jmp	LBB0_62
LBB0_2:
	movl	-112(%rbp), %eax
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	movl	-108(%rbp), %r14d
	leaq	24(%r13), %rdi
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	callq	_mutex_lock
	movl	32(%r13), %r9d
	movl	80(%r13), %eax
	movq	_TC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	addl	$-50, %eax
	movq	_EXP_ACC_LIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	cmpl	$255, %ecx
	movl	$255, %ebx
	cmovll	%ecx, %ebx
	movq	_EXP_ACC_DARK@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	xorl	%r15d, %r15d
	testl	%eax, %eax
	cmovgl	%eax, %r15d
	movl	%r15d, %r12d
	shrl	%r12d
	shll	$8, %r9d
	addl	36(%r13), %r9d
	cmpl	$0, 76(%r13)
	je	LBB0_7
## %bb.3:
	movq	_MAX_EXP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	movl	-124(%rbp), %ecx                ## 4-byte Reload
	jl	LBB0_9
## %bb.4:
	cmpl	%r15d, %ecx
	jl	LBB0_5
LBB0_9:
	movq	_LOW_EXP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	jle	LBB0_11
## %bb.10:
	cmpl	%ebx, %ecx
	jle	LBB0_24
	jmp	LBB0_11
LBB0_7:
	movl	%r9d, -128(%rbp)                ## 4-byte Spill
	movl	$1, %edi
	movl	$2, %esi
	callq	_FIRMWARE_VERSION
	testq	%rax, %rax
	jne	LBB0_15
## %bb.8:
	movq	_HIGH_COMP_102@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_MAX_COMP@GOTPCREL(%rip), %rax
LBB0_16:
	movl	-124(%rbp), %ecx                ## 4-byte Reload
	subl	$-128, %r14d
	cmpl	(%rax), %r14d
	movl	-128(%rbp), %r9d                ## 4-byte Reload
	jl	LBB0_22
## %bb.17:
	cmpl	%r15d, %ecx
	jge	LBB0_22
LBB0_5:
	movq	(%r13), %rax
	cmpl	%r12d, %ecx
	jge	LBB0_6
## %bb.19:
	movq	_EXPOSURE_VERY_DARK@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_6:
	movq	_EXPOSURE_DARK@GOTPCREL(%rip), %rcx
LBB0_20:
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	movq	-120(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_14
LBB0_21:
	incl	8(%r13)
	jmp	LBB0_25
LBB0_22:
	movq	_LOW_EXP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	jle	LBB0_11
## %bb.23:
	cmpl	%ebx, %ecx
	jg	LBB0_11
LBB0_24:
	movq	_EXPOSURE_NORMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	-120(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_25
LBB0_11:
	movq	_VERY_LOW_EXP@GOTPCREL(%rip), %rcx
	movq	(%r13), %rax
	cmpl	(%rcx), %r9d
	movq	-120(%rbp), %r14                ## 8-byte Reload
	jle	LBB0_32
## %bb.12:
	movq	_EXPOSURE_LIGHT@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_32:
	movq	_EXPOSURE_VERY_LIGHT@GOTPCREL(%rip), %rcx
LBB0_13:
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_21
LBB0_14:
	movq	%rcx, (%r13)
	movl	$1, 8(%r13)
	movq	%rcx, %rax
LBB0_25:
	movl	12(%r13), %edx
	leal	-31(%rdx), %ecx
	cmpl	$-30, %ecx
	movl	$1, %ecx
	cmovael	%edx, %ecx
	movq	_EXPOSURE_VERY_DARK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%bl
	movq	_EXPOSURE_DARK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%dl
	orb	%bl, %dl
	cmpl	$0, 76(%r13)
	je	LBB0_39
## %bb.26:
	testb	%dl, %dl
	je	LBB0_33
## %bb.27:
	movq	_DARK_TIME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	%ecx, %edx
	cmpl	%edx, 8(%r13)
	jl	LBB0_33
## %bb.28:
	movl	56(%r13), %edx
	cmpl	$2, %edx
	jg	LBB0_33
## %bb.29:
	incl	%edx
	movl	%edx, 56(%r13)
	movq	_COMMAND_SETSENSORFPS@GOTPCREL(%rip), %rcx
	movl	28(%r13), %eax
	orl	(%rcx), %eax
	movl	%eax, 28(%r13)
	movq	40(%r13), %rcx
	testq	%rcx, %rcx
	jle	LBB0_52
## %bb.30:
	leaq	28(%r13), %r8
	decq	%rcx
	movq	%rcx, 40(%r13)
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_59
LBB0_33:
	movq	_EXPOSURE_VERY_LIGHT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_35
## %bb.34:
	movq	_EXPOSURE_LIGHT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_61
LBB0_35:
	movq	_LIGHT_TIME@GOTPCREL(%rip), %rax
	imull	(%rax), %ecx
	cmpl	%ecx, 8(%r13)
	jl	LBB0_61
## %bb.36:
	movl	56(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_61
## %bb.37:
	decl	%eax
	movl	%eax, 56(%r13)
	movq	_COMMAND_SETSENSORFPS@GOTPCREL(%rip), %rcx
	movl	28(%r13), %eax
	orl	(%rcx), %eax
	movl	%eax, 28(%r13)
	movq	40(%r13), %rcx
	movslq	48(%r13), %rdx
	decq	%rdx
	cmpq	%rdx, %rcx
	jge	LBB0_51
## %bb.38:
	leaq	28(%r13), %r8
	incq	%rcx
	movq	%rcx, 40(%r13)
	jmp	LBB0_58
LBB0_39:
	testb	%dl, %dl
	je	LBB0_45
## %bb.40:
	movq	_DARK_TIME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	%ecx, %edx
	cmpl	%edx, 8(%r13)
	jl	LBB0_45
## %bb.41:
	movslq	56(%r13), %rdx
	cmpq	$2, %rdx
	jg	LBB0_45
## %bb.42:
	leaq	1(%rdx), %rax
	movl	%eax, 56(%r13)
	movq	_COMMAND_SETSENSORFPS@GOTPCREL(%rip), %rcx
	movl	28(%r13), %eax
	orl	(%rcx), %eax
	leaq	28(%r13), %r8
	movq	_flicker_jumps@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	16(%r13), %rsi
	movq	(%rcx,%rsi,8), %rcx
	movq	64(%r13), %rsi
	movq	(%rcx,%rsi,8), %rcx
	movl	8(%rcx,%rdx,8), %edx
	movl	%edx, 72(%r13)
	movq	_COMMAND_SETFLICKERCTRL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r9d, %edi
	shrl	$31, %edi
	addl	%r9d, %edi
	sarl	%edi
	movl	$-1, %esi
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	addl	%edx, %esi
	cmpl	%edi, %esi
	jl	LBB0_43
## %bb.44:
	movzbl	%sil, %ecx
	movl	%ecx, 36(%r13)
	sarl	$8, %esi
	movl	%esi, 32(%r13)
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_59
LBB0_45:
	movq	_EXPOSURE_VERY_LIGHT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_47
## %bb.46:
	movq	_EXPOSURE_LIGHT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_61
LBB0_47:
	movq	_LIGHT_TIME@GOTPCREL(%rip), %rax
	imull	(%rax), %ecx
	cmpl	%ecx, 8(%r13)
	jl	LBB0_61
## %bb.48:
	cmpl	$0, 56(%r13)
	jle	LBB0_61
## %bb.49:
	movl	%r9d, %ebx
	movl	$1, %edi
	movl	$2, %esi
	callq	_FIRMWARE_VERSION
	testq	%rax, %rax
	jne	LBB0_53
## %bb.50:
	movq	_MAX_EXP@GOTPCREL(%rip), %rax
	jmp	LBB0_54
LBB0_51:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_60
LBB0_52:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_60
LBB0_53:
	movq	_MAX_EXP_102@GOTPCREL(%rip), %rax
LBB0_54:
	movl	%ebx, %edx
	movl	(%rax), %r9d
	movslq	56(%r13), %rcx
	leaq	-1(%rcx), %rax
	movl	%eax, 56(%r13)
	movq	_COMMAND_SETSENSORFPS@GOTPCREL(%rip), %rsi
	movl	28(%r13), %eax
	orl	(%rsi), %eax
	movq	_flicker_jumps@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	16(%r13), %rdi
	movq	(%rsi,%rdi,8), %rsi
	movq	64(%r13), %rdi
	movq	(%rsi,%rdi,8), %rsi
	movl	-8(%rsi,%rcx,8), %esi
	movl	%esi, 72(%r13)
	movq	_COMMAND_SETFLICKERCTRL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	leaq	28(%r13), %r8
	addl	%ebx, %edx
	leal	(%rsi,%rsi), %edi
	movl	$-1, %ecx
	.p2align	4, 0x90
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rsi,%rcx), %ebx
	cmpl	%edx, %ebx
	jge	LBB0_57
## %bb.56:                              ##   in Loop: Header=BB0_55 Depth=1
	addl	%edi, %ecx
	cmpl	%r9d, %ecx
	movl	%ebx, %ecx
	jl	LBB0_55
LBB0_57:
	movzbl	%bl, %ecx
	movl	%ecx, 36(%r13)
	sarl	$8, %ebx
	movl	%ebx, 32(%r13)
LBB0_58:
	leaq	L_.str.2(%rip), %rdi
LBB0_59:
	movq	_COMMAND_SETEXPOSURE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r8)
LBB0_60:
	movq	_EXPOSURE_NORMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	xorl	%eax, %eax
	callq	_LOG
LBB0_61:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_62:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_64
## %bb.63:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_64:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CPIA_COMMAND_ReadVPRegs,4,2    ## @CPIA_COMMAND_ReadVPRegs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ReadVPRegs(30,4,9,8) - failed, retval=%d\n"

	.comm	_TC,4,2                         ## @TC
	.comm	_EXP_ACC_LIGHT,4,2              ## @EXP_ACC_LIGHT
	.comm	_EXP_ACC_DARK,4,2               ## @EXP_ACC_DARK
	.comm	_MAX_COMP,4,2                   ## @MAX_COMP
	.comm	_HIGH_COMP_102,4,2              ## @HIGH_COMP_102
	.comm	_EXPOSURE_VERY_DARK,8,3         ## @EXPOSURE_VERY_DARK
	.comm	_EXPOSURE_DARK,8,3              ## @EXPOSURE_DARK
	.comm	_LOW_EXP,4,2                    ## @LOW_EXP
	.comm	_VERY_LOW_EXP,4,2               ## @VERY_LOW_EXP
	.comm	_EXPOSURE_VERY_LIGHT,8,3        ## @EXPOSURE_VERY_LIGHT
	.comm	_EXPOSURE_LIGHT,8,3             ## @EXPOSURE_LIGHT
	.comm	_EXPOSURE_NORMAL,8,3            ## @EXPOSURE_NORMAL
	.comm	_MAX_EXP,4,2                    ## @MAX_EXP
	.comm	_DARK_TIME,4,2                  ## @DARK_TIME
	.comm	_COMMAND_SETSENSORFPS,4,2       ## @COMMAND_SETSENSORFPS
	.comm	_flicker_jumps,8,3              ## @flicker_jumps
	.comm	_COMMAND_SETFLICKERCTRL,4,2     ## @COMMAND_SETFLICKERCTRL
	.comm	_COMMAND_SETEXPOSURE,4,2        ## @COMMAND_SETEXPOSURE
L_.str.1:                               ## @.str.1
	.asciz	"Automatically decreasing sensor_fps\n"

	.comm	_LIGHT_TIME,4,2                 ## @LIGHT_TIME
	.comm	_MAX_EXP_102,4,2                ## @MAX_EXP_102
L_.str.2:                               ## @.str.2
	.asciz	"Automatically increasing sensor_fps\n"

	.no_dead_strip	_monitor_exposure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function monitor_exposure
lCPI0_0:
	.long	30                              ; 0x1e
	.long	4                               ; 0x4
	.long	9                               ; 0x9
	.long	8                               ; 0x8
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	8                               ; 0x8
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_monitor_exposure:                      ; @monitor_exposure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x8, _CPIA_COMMAND_ReadVPRegs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPIA_COMMAND_ReadVPRegs@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w9, w8, #8
	and	w8, w8, #0xff
	stp	w9, w8, [sp, #40]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [sp, #48]
Lloh8:
	adrp	x8, lCPI0_1@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #64]
	ldr	x8, [x0, #96]
	ldr	x8, [x8]
	ldr	w0, [x0, #88]
	add	x1, sp, #40
	add	x2, sp, #8
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_2
; %bb.1:
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG
	b	LBB0_54
LBB0_2:
	ldp	w24, w26, [sp, #8]
	add	x20, x19, #24
	mov	x0, x20
	bl	_mutex_lock
Lloh12:
	adrp	x8, _TC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldp	w10, w9, [x19, #76]
	add	w8, w9, w8
	sub	w8, w8, #50
Lloh15:
	adrp	x9, _EXP_ACC_LIGHT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EXP_ACC_LIGHT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	add	w9, w8, w9
	mov	w11, #255
	cmp	w9, #255
	csel	w25, w9, w11, lt
Lloh18:
	adrp	x9, _EXP_ACC_DARK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EXP_ACC_DARK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	sub	w8, w8, w9
	cmp	w8, #0
	csel	w28, w8, wzr, gt
	lsr	w27, w28, #1
	ldp	w8, w9, [x19, #32]
	add	w21, w9, w8, lsl #8
Lloh21:
	adrp	x23, _EXPOSURE_VERY_DARK@GOTPAGE
Lloh22:
	ldr	x23, [x23, _EXPOSURE_VERY_DARK@GOTPAGEOFF]
Lloh23:
	adrp	x22, _EXPOSURE_DARK@GOTPAGE
Lloh24:
	ldr	x22, [x22, _EXPOSURE_DARK@GOTPAGEOFF]
	cbz	w10, LBB0_4
; %bb.3:
Lloh25:
	adrp	x8, _MAX_EXP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MAX_EXP@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ge	LBB0_5
	b	LBB0_9
LBB0_4:
	mov	w0, #1
	mov	w1, #2
	bl	_FIRMWARE_VERSION
Lloh28:
	adrp	x8, _MAX_COMP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MAX_COMP@GOTPAGEOFF]
Lloh30:
	adrp	x9, _HIGH_COMP_102@GOTPAGE
Lloh31:
	ldr	x9, [x9, _HIGH_COMP_102@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	add	w9, w26, #128
	cmp	w9, w8
	b.lt	LBB0_9
LBB0_5:
	cmp	w24, w28
	b.ge	LBB0_9
; %bb.6:
	ldr	x8, [x19]
	cmp	w24, w27
	b.ge	LBB0_14
; %bb.7:
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_17
LBB0_8:
	str	x9, [x19]
	mov	w8, #1
	str	w8, [x19, #8]
	mov	x8, x9
	b	LBB0_18
LBB0_9:
Lloh32:
	adrp	x8, _LOW_EXP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LOW_EXP@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w21, w8
	b.le	LBB0_12
; %bb.10:
	cmp	w24, w25
	b.gt	LBB0_12
; %bb.11:
Lloh35:
	adrp	x8, _EXPOSURE_NORMAL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EXPOSURE_NORMAL@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_18
LBB0_12:
Lloh38:
	adrp	x8, _VERY_LOW_EXP@GOTPAGE
Lloh39:
	ldr	x8, [x8, _VERY_LOW_EXP@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x8]
	ldr	x8, [x19]
	cmp	w21, w9
	b.le	LBB0_15
; %bb.13:
Lloh41:
	adrp	x9, _EXPOSURE_LIGHT@GOTPAGE
Lloh42:
	ldr	x9, [x9, _EXPOSURE_LIGHT@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_8
	b	LBB0_17
LBB0_15:
Lloh43:
	adrp	x9, _EXPOSURE_VERY_LIGHT@GOTPAGE
Lloh44:
	ldr	x9, [x9, _EXPOSURE_VERY_LIGHT@GOTPAGEOFF]
LBB0_16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_17:
	ldr	w9, [x19, #8]
	add	w9, w9, #1
	str	w9, [x19, #8]
LBB0_18:
	ldr	w9, [x19, #12]
	sub	w10, w9, #31
	cmn	w10, #30
	csinc	w9, w9, wzr, hs
	ldr	w11, [x19, #76]
	ldr	x10, [x23]
	cmp	x8, x10
	ldr	x10, [x22]
	ccmp	x8, x10, #4, ne
	cset	w10, eq
	cbz	w11, LBB0_30
; %bb.19:
	cbz	w10, LBB0_24
; %bb.20:
	ldr	w10, [x19, #8]
Lloh45:
	adrp	x11, _DARK_TIME@GOTPAGE
Lloh46:
	ldr	x11, [x11, _DARK_TIME@GOTPAGEOFF]
Lloh47:
	ldr	w11, [x11]
	mul	w11, w11, w9
	cmp	w10, w11
	b.lt	LBB0_24
; %bb.21:
	ldr	w10, [x19, #56]
	cmp	w10, #2
	b.gt	LBB0_24
; %bb.22:
	add	w9, w10, #1
	mov	x8, x19
	ldr	w10, [x8, #28]!
Lloh48:
	adrp	x11, _COMMAND_SETSENSORFPS@GOTPAGE
Lloh49:
	ldr	x11, [x11, _COMMAND_SETSENSORFPS@GOTPAGEOFF]
	str	w9, [x8, #28]
Lloh50:
	ldr	w9, [x11]
	orr	w9, w10, w9
	str	w9, [x8]
	ldur	x10, [x8, #12]
	subs	x10, x10, #1
	b.lt	LBB0_56
; %bb.23:
	str	x10, [x19, #40]
	b	LBB0_50
LBB0_24:
Lloh51:
	adrp	x10, _EXPOSURE_VERY_LIGHT@GOTPAGE
Lloh52:
	ldr	x10, [x10, _EXPOSURE_VERY_LIGHT@GOTPAGEOFF]
Lloh53:
	ldr	x10, [x10]
	cmp	x8, x10
	b.eq	LBB0_26
; %bb.25:
Lloh54:
	adrp	x10, _EXPOSURE_LIGHT@GOTPAGE
Lloh55:
	ldr	x10, [x10, _EXPOSURE_LIGHT@GOTPAGEOFF]
Lloh56:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_53
LBB0_26:
	ldr	w8, [x19, #8]
Lloh57:
	adrp	x10, _LIGHT_TIME@GOTPAGE
Lloh58:
	ldr	x10, [x10, _LIGHT_TIME@GOTPAGEOFF]
Lloh59:
	ldr	w10, [x10]
	mul	w9, w10, w9
	cmp	w8, w9
	b.lt	LBB0_53
; %bb.27:
	ldr	w8, [x19, #56]
	subs	w9, w8, #1
	b.lt	LBB0_53
; %bb.28:
	mov	x8, x19
	ldr	w10, [x8, #28]!
	str	w9, [x8, #28]
Lloh60:
	adrp	x9, _COMMAND_SETSENSORFPS@GOTPAGE
Lloh61:
	ldr	x9, [x9, _COMMAND_SETSENSORFPS@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	orr	w9, w10, w9
	str	w9, [x8]
	ldur	x10, [x8, #12]
	ldrsw	x11, [x8, #20]
	sub	x11, x11, #1
	cmp	x10, x11
	b.ge	LBB0_46
; %bb.29:
	add	x10, x10, #1
	str	x10, [x19, #40]
	b	LBB0_45
LBB0_30:
	cbz	w10, LBB0_38
; %bb.31:
	ldr	w10, [x19, #8]
Lloh63:
	adrp	x11, _DARK_TIME@GOTPAGE
Lloh64:
	ldr	x11, [x11, _DARK_TIME@GOTPAGEOFF]
Lloh65:
	ldr	w11, [x11]
	mul	w11, w11, w9
	cmp	w10, w11
	b.lt	LBB0_38
; %bb.32:
	ldr	w10, [x19, #56]
	cmp	w10, #2
	b.gt	LBB0_38
; %bb.33:
	mov	x8, x19
	ldr	w9, [x8, #28]!
Lloh66:
	adrp	x11, _flicker_jumps@GOTPAGE
Lloh67:
	ldr	x11, [x11, _flicker_jumps@GOTPAGEOFF]
Lloh68:
	ldr	x11, [x11]
	ldur	x12, [x8, #-12]
	ldr	x11, [x11, x12, lsl #3]
	ldur	x12, [x8, #36]
	ldr	x11, [x11, x12, lsl #3]
	add	w13, w10, #1
	ldr	x10, [x11, w13, sxtw #3]
	cmp	w21, #0
	cinc	w11, w21, lt
	subs	w12, w10, #1
	asr	w11, w11, #1
	csinc	w14, w10, wzr, hi
	cmp	w11, w12
	csel	w15, w11, w12, gt
	add	w15, w15, #1
	cmp	w15, w10
	cinc	w16, w10, ne
	sub	w16, w15, w16
	cmp	w15, w10
	str	w13, [x8, #28]
Lloh69:
	adrp	x13, _COMMAND_SETSENSORFPS@GOTPAGE
Lloh70:
	ldr	x13, [x13, _COMMAND_SETSENSORFPS@GOTPAGEOFF]
Lloh71:
	ldr	w13, [x13]
	orr	w9, w9, w13
	str	w10, [x8, #44]
Lloh72:
	adrp	x13, _COMMAND_SETFLICKERCTRL@GOTPAGE
Lloh73:
	ldr	x13, [x13, _COMMAND_SETFLICKERCTRL@GOTPAGEOFF]
Lloh74:
	ldr	w13, [x13]
	orr	w9, w13, w9
	udiv	w13, w16, w14
	cinc	w13, w13, ne
	add	w14, w13, #1
	mov	x13, x12
	cmp	w14, #4
	b.lo	LBB0_47
; %bb.34:
	mov	w16, #0
	and	w15, w14, #0xfffffffc
	madd	w13, w15, w10, w12
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	add	w16, w16, #4
	cmp	w16, w15
	b.ne	LBB0_35
; %bb.36:
	cmp	w14, w15
	b.ne	LBB0_47
; %bb.37:
	sub	w11, w15, #1
	mul	w10, w11, w10
	add	w12, w12, w10
	b	LBB0_49
LBB0_38:
Lloh75:
	adrp	x10, _EXPOSURE_VERY_LIGHT@GOTPAGE
Lloh76:
	ldr	x10, [x10, _EXPOSURE_VERY_LIGHT@GOTPAGEOFF]
Lloh77:
	ldr	x10, [x10]
	cmp	x8, x10
	b.eq	LBB0_40
; %bb.39:
Lloh78:
	adrp	x10, _EXPOSURE_LIGHT@GOTPAGE
Lloh79:
	ldr	x10, [x10, _EXPOSURE_LIGHT@GOTPAGEOFF]
Lloh80:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_53
LBB0_40:
	ldr	w8, [x19, #8]
Lloh81:
	adrp	x10, _LIGHT_TIME@GOTPAGE
Lloh82:
	ldr	x10, [x10, _LIGHT_TIME@GOTPAGEOFF]
Lloh83:
	ldr	w10, [x10]
	mul	w9, w10, w9
	cmp	w8, w9
	b.lt	LBB0_53
; %bb.41:
	ldr	w8, [x19, #56]
	cmp	w8, #1
	b.lt	LBB0_53
; %bb.42:
	mov	w0, #1
	mov	w1, #2
	bl	_FIRMWARE_VERSION
Lloh84:
	adrp	x8, _MAX_EXP_102@GOTPAGE
Lloh85:
	ldr	x8, [x8, _MAX_EXP_102@GOTPAGEOFF]
Lloh86:
	adrp	x9, _MAX_EXP@GOTPAGE
Lloh87:
	ldr	x9, [x9, _MAX_EXP@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w10, [x8]
	mov	x8, x19
	ldr	w9, [x8, #28]!
	ldrsw	x11, [x8, #28]
	sub	x11, x11, #1
	str	w11, [x8, #28]
Lloh88:
	adrp	x12, _COMMAND_SETSENSORFPS@GOTPAGE
Lloh89:
	ldr	x12, [x12, _COMMAND_SETSENSORFPS@GOTPAGEOFF]
Lloh90:
	ldr	w12, [x12]
Lloh91:
	adrp	x13, _flicker_jumps@GOTPAGE
Lloh92:
	ldr	x13, [x13, _flicker_jumps@GOTPAGEOFF]
	orr	w9, w9, w12
Lloh93:
	ldr	x12, [x13]
	ldur	x13, [x8, #-12]
	ldr	x12, [x12, x13, lsl #3]
	ldur	x13, [x8, #36]
	ldr	x12, [x12, x13, lsl #3]
	ldr	x11, [x12, x11, lsl #3]
Lloh94:
	adrp	x12, _COMMAND_SETFLICKERCTRL@GOTPAGE
Lloh95:
	ldr	x12, [x12, _COMMAND_SETFLICKERCTRL@GOTPAGEOFF]
	str	w11, [x8, #44]
Lloh96:
	ldr	w12, [x12]
	orr	w9, w12, w9
	lsl	w12, w21, #1
	lsl	w13, w11, #1
	mov	w15, #-1
LBB0_43:                                ; =>This Inner Loop Header: Depth=1
	add	w16, w13, w15
	add	w14, w11, w15
	cmp	w14, w12
	ccmp	w16, w10, #0, lt
	mov	x15, x14
	b.lt	LBB0_43
; %bb.44:
	and	w10, w14, #0xff
	asr	w11, w14, #8
	stp	w11, w10, [x19, #32]
LBB0_45:
Lloh97:
	adrp	x0, l_.str.2@PAGE
Lloh98:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_51
LBB0_46:
Lloh99:
	adrp	x0, l_.str.2@PAGE
Lloh100:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_52
LBB0_47:
	sub	w12, w13, w10
LBB0_48:                                ; =>This Inner Loop Header: Depth=1
	add	w12, w12, w10
	cmp	w12, w11
	b.lt	LBB0_48
LBB0_49:
	and	w10, w12, #0xff
	asr	w11, w12, #8
	stp	w11, w10, [x19, #32]
LBB0_50:
Lloh101:
	adrp	x0, l_.str.1@PAGE
Lloh102:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_51:
Lloh103:
	adrp	x10, _COMMAND_SETEXPOSURE@GOTPAGE
Lloh104:
	ldr	x10, [x10, _COMMAND_SETEXPOSURE@GOTPAGEOFF]
Lloh105:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_52:
Lloh106:
	adrp	x8, _EXPOSURE_NORMAL@GOTPAGE
Lloh107:
	ldr	x8, [x8, _EXPOSURE_NORMAL@GOTPAGEOFF]
Lloh108:
	ldr	x8, [x8]
	str	x8, [x19]
	bl	_LOG
LBB0_53:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_54:
	ldr	x8, [sp, #72]
Lloh109:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh110:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh111:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_57
; %bb.55:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_56:
Lloh112:
	adrp	x0, l_.str.1@PAGE
Lloh113:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_52
LBB0_57:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpAdd	Lloh112, Lloh113
	.cfi_endproc
                                        ; -- End function
	.comm	_CPIA_COMMAND_ReadVPRegs,4,2    ; @CPIA_COMMAND_ReadVPRegs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ReadVPRegs(30,4,9,8) - failed, retval=%d\n"

	.comm	_TC,4,2                         ; @TC
	.comm	_EXP_ACC_LIGHT,4,2              ; @EXP_ACC_LIGHT
	.comm	_EXP_ACC_DARK,4,2               ; @EXP_ACC_DARK
	.comm	_MAX_COMP,4,2                   ; @MAX_COMP
	.comm	_HIGH_COMP_102,4,2              ; @HIGH_COMP_102
	.comm	_EXPOSURE_VERY_DARK,8,3         ; @EXPOSURE_VERY_DARK
	.comm	_EXPOSURE_DARK,8,3              ; @EXPOSURE_DARK
	.comm	_LOW_EXP,4,2                    ; @LOW_EXP
	.comm	_VERY_LOW_EXP,4,2               ; @VERY_LOW_EXP
	.comm	_EXPOSURE_VERY_LIGHT,8,3        ; @EXPOSURE_VERY_LIGHT
	.comm	_EXPOSURE_LIGHT,8,3             ; @EXPOSURE_LIGHT
	.comm	_EXPOSURE_NORMAL,8,3            ; @EXPOSURE_NORMAL
	.comm	_MAX_EXP,4,2                    ; @MAX_EXP
	.comm	_DARK_TIME,4,2                  ; @DARK_TIME
	.comm	_COMMAND_SETSENSORFPS,4,2       ; @COMMAND_SETSENSORFPS
	.comm	_flicker_jumps,8,3              ; @flicker_jumps
	.comm	_COMMAND_SETFLICKERCTRL,4,2     ; @COMMAND_SETFLICKERCTRL
	.comm	_COMMAND_SETEXPOSURE,4,2        ; @COMMAND_SETEXPOSURE
l_.str.1:                               ; @.str.1
	.asciz	"Automatically decreasing sensor_fps\n"

	.comm	_LIGHT_TIME,4,2                 ; @LIGHT_TIME
	.comm	_MAX_EXP_102,4,2                ; @MAX_EXP_102
l_.str.2:                               ; @.str.2
	.asciz	"Automatically increasing sensor_fps\n"

	.no_dead_strip	_monitor_exposure
.subsections_via_symbols
