	.file	"extr_ov519.c_setbrightness.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	setbrightness, @function
setbrightness:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR [rdi]
	cmp	eax, 131
	je	.L2
	jg	.L3
	cmp	eax, 130
	jne	.L10
	mov	rdi, rsi
	call	ov7670_abs_to_sm@PLT
	mov	esi, DWORD PTR OV7670_R55_BRIGHT[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	rdx, rax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	i2c_w@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	cmp	eax, 127
	jg	.L5
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	sub	eax, 132
	cmp	eax, 7
	ja	.L1
.L5:
	mov	esi, DWORD PTR OV7610_REG_BRT[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdx, r12
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	i2c_w@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, brit_7660.1975[rip]
	call	ARRAY_SIZE@PLT
	imul	rsi, r12, 392
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	lea	r12, brit_7660.1975[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	edx, eax
	add	rsi, r12
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	write_i2c_regvals@PLT
	.cfi_endproc
.LFE0:
	.size	setbrightness, .-setbrightness
	.section	.rodata
	.align 32
	.type	brit_7660.1975, @object
	.size	brit_7660.1975, 2744
brit_7660.1975:
	.long	15
	.long	106
	.zero	48
	.long	36
	.long	64
	.zero	48
	.long	37
	.long	43
	.zero	48
	.long	38
	.long	144
	.zero	48
	.long	39
	.long	224
	.zero	48
	.long	40
	.long	224
	.zero	48
	.long	44
	.long	224
	.zero	48
	.long	15
	.long	106
	.zero	48
	.long	36
	.long	80
	.zero	48
	.long	37
	.long	64
	.zero	48
	.long	38
	.long	161
	.zero	48
	.long	39
	.long	192
	.zero	48
	.long	40
	.long	192
	.zero	48
	.long	44
	.long	192
	.zero	48
	.long	15
	.long	106
	.zero	48
	.long	36
	.long	104
	.zero	48
	.long	37
	.long	88
	.zero	48
	.long	38
	.long	194
	.zero	48
	.long	39
	.long	160
	.zero	48
	.long	40
	.long	160
	.zero	48
	.long	44
	.long	160
	.zero	48
	.long	15
	.long	106
	.zero	48
	.long	36
	.long	112
	.zero	48
	.long	37
	.long	104
	.zero	48
	.long	38
	.long	211
	.zero	48
	.long	39
	.long	128
	.zero	48
	.long	40
	.long	128
	.zero	48
	.long	44
	.long	128
	.zero	48
	.long	15
	.long	106
	.zero	48
	.long	36
	.long	128
	.zero	48
	.long	37
	.long	112
	.zero	48
	.long	38
	.long	211
	.zero	48
	.long	39
	.long	32
	.zero	48
	.long	40
	.long	32
	.zero	48
	.long	44
	.long	32
	.zero	48
	.long	15
	.long	106
	.zero	48
	.long	36
	.long	136
	.zero	48
	.long	37
	.long	120
	.zero	48
	.long	38
	.long	211
	.zero	48
	.long	39
	.long	64
	.zero	48
	.long	40
	.long	64
	.zero	48
	.long	44
	.long	64
	.zero	48
	.long	15
	.long	106
	.zero	48
	.long	36
	.long	144
	.zero	48
	.long	37
	.long	128
	.zero	48
	.long	38
	.long	212
	.zero	48
	.long	39
	.long	96
	.zero	48
	.long	40
	.long	96
	.zero	48
	.long	44
	.long	96
	.zero	48
	.comm	OV7670_R55_BRIGHT,4,4
	.comm	OV7610_REG_BRT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ov519.c_setbrightness.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setbrightness, %function
setbrightness:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	sub	r3, r3, #128
	mov	r5, r0
	mov	r4, r1
	cmp	r3, #11
	ldrls	pc, [pc, r3, asl #2]
	b	.L1
.L4:
	.word	.L3
	.word	.L3
	.word	.L6
	.word	.L5
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
.L3:
	ldr	r3, .L9
	mov	r2, r1
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	i2c_w
.L5:
	ldr	r6, .L9+4
	rsb	r4, r4, r4, lsl #3
	mov	r0, r6
	bl	ARRAY_SIZE
	rsb	r4, r4, r4, lsl #3
	mov	r2, r0
	add	r1, r6, r4, lsl #3
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	write_i2c_regvals
.L6:
	ldr	r3, .L9+8
	mov	r0, r1
	ldr	r4, [r3]
	bl	ov7670_abs_to_sm
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	i2c_w
.L1:
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	OV7610_REG_BRT
	.word	.LANCHOR0
	.word	OV7670_R55_BRIGHT
	.size	setbrightness, .-setbrightness
	.comm	OV7670_R55_BRIGHT,4,4
	.comm	OV7610_REG_BRT,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	brit_7660.4259, %object
	.size	brit_7660.4259, 2744
brit_7660.4259:
	.word	15
	.word	106
	.space	48
	.word	36
	.word	64
	.space	48
	.word	37
	.word	43
	.space	48
	.word	38
	.word	144
	.space	48
	.word	39
	.word	224
	.space	48
	.word	40
	.word	224
	.space	48
	.word	44
	.word	224
	.space	48
	.word	15
	.word	106
	.space	48
	.word	36
	.word	80
	.space	48
	.word	37
	.word	64
	.space	48
	.word	38
	.word	161
	.space	48
	.word	39
	.word	192
	.space	48
	.word	40
	.word	192
	.space	48
	.word	44
	.word	192
	.space	48
	.word	15
	.word	106
	.space	48
	.word	36
	.word	104
	.space	48
	.word	37
	.word	88
	.space	48
	.word	38
	.word	194
	.space	48
	.word	39
	.word	160
	.space	48
	.word	40
	.word	160
	.space	48
	.word	44
	.word	160
	.space	48
	.word	15
	.word	106
	.space	48
	.word	36
	.word	112
	.space	48
	.word	37
	.word	104
	.space	48
	.word	38
	.word	211
	.space	48
	.word	39
	.word	128
	.space	48
	.word	40
	.word	128
	.space	48
	.word	44
	.word	128
	.space	48
	.word	15
	.word	106
	.space	48
	.word	36
	.word	128
	.space	48
	.word	37
	.word	112
	.space	48
	.word	38
	.word	211
	.space	48
	.word	39
	.word	32
	.space	48
	.word	40
	.word	32
	.space	48
	.word	44
	.word	32
	.space	48
	.word	15
	.word	106
	.space	48
	.word	36
	.word	136
	.space	48
	.word	37
	.word	120
	.space	48
	.word	38
	.word	211
	.space	48
	.word	39
	.word	64
	.space	48
	.word	40
	.word	64
	.space	48
	.word	44
	.word	64
	.space	48
	.word	15
	.word	106
	.space	48
	.word	36
	.word	144
	.space	48
	.word	37
	.word	128
	.space	48
	.word	38
	.word	212
	.space	48
	.word	39
	.word	96
	.space	48
	.word	40
	.word	96
	.space	48
	.word	44
	.word	96
	.space	48
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
