	.file	"extr_cpia2_core.c_reset_camera_struct.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	reset_camera_struct, @function
reset_camera_struct:
.LFB0:
	.cfi_startproc
	endbr64
	mov	esi, DWORD PTR NEVER_FLICKER[rip]
	mov	rcx, QWORD PTR DEFAULT_BRIGHTNESS[rip]
	mov	QWORD PTR 104[rdi], 0
	mov	rax, QWORD PTR DEFAULT_CONTRAST[rip]
	mov	rdx, QWORD PTR DEFAULT_SATURATION[rip]
	mov	DWORD PTR 140[rdi], 60
	mov	DWORD PTR 144[rdi], esi
	mov	esi, DWORD PTR CPIA2_VC_VC_JPEG_OPT_DEFAULT[rip]
	mov	QWORD PTR 64[rdi], rcx
	mov	r8, QWORD PTR CPIA2_VP_SENSOR_FLAGS_500[rip]
	mov	DWORD PTR 136[rdi], esi
	mov	esi, DWORD PTR DEFAULT_TARGET_KB[rip]
	mov	QWORD PTR 48[rdi], rax
	mov	r10, QWORD PTR DEVICE_STV_672[rip]
	mov	DWORD PTR 120[rdi], esi
	mov	rsi, QWORD PTR 72[rdi]
	mov	QWORD PTR 56[rdi], rdx
	mov	DWORD PTR 124[rdi], 2
	mov	QWORD PTR 128[rdi], 20
	mov	QWORD PTR 96[rdi], 0
	mov	QWORD PTR 88[rdi], 0
	cmp	QWORD PTR 112[rdi], r10
	je	.L8
	mov	r9, QWORD PTR CPIA2_VP_FRAMERATE_30[rip]
	mov	QWORD PTR 80[rdi], r9
	cmp	r8, rsi
	je	.L4
.L5:
	mov	esi, DWORD PTR CPIA2_SENSOR_410[rip]
	mov	r8d, DWORD PTR STV_IMAGE_CIF_COLS[rip]
	mov	DWORD PTR 172[rdi], esi
	mov	esi, DWORD PTR VIDEOSIZE_CIF[rip]
	mov	DWORD PTR 44[rdi], r8d
	mov	DWORD PTR 168[rdi], esi
	mov	esi, DWORD PTR STV_IMAGE_CIF_ROWS[rip]
	mov	DWORD PTR 40[rdi], esi
.L6:
	mov	r9, QWORD PTR VIDEO_PALETTE_RGB24[rip]
	sal	ecx, 8
	sal	edx, 8
	mov	DWORD PTR 16[rdi], esi
	sal	eax, 8
	mov	DWORD PTR 156[rdi], ecx
	mov	DWORD PTR 152[rdi], r9d
	mov	DWORD PTR 160[rdi], edx
	mov	DWORD PTR 164[rdi], eax
	mov	QWORD PTR 32[rdi], 0
	mov	QWORD PTR 24[rdi], 0
	mov	DWORD PTR 20[rdi], r8d
	mov	QWORD PTR 8[rdi], 0
	mov	QWORD PTR [rdi], 0
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, QWORD PTR CPIA2_VP_FRAMERATE_15[rip]
	mov	QWORD PTR 80[rdi], rsi
.L4:
	mov	esi, DWORD PTR CPIA2_SENSOR_500[rip]
	mov	r8d, DWORD PTR STV_IMAGE_VGA_COLS[rip]
	mov	DWORD PTR 172[rdi], esi
	mov	esi, DWORD PTR VIDEOSIZE_VGA[rip]
	mov	DWORD PTR 44[rdi], r8d
	mov	DWORD PTR 168[rdi], esi
	mov	esi, DWORD PTR STV_IMAGE_VGA_ROWS[rip]
	mov	DWORD PTR 40[rdi], esi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	r8, rsi
	je	.L9
	mov	rsi, QWORD PTR CPIA2_VP_FRAMERATE_30[rip]
	mov	QWORD PTR 80[rdi], rsi
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	reset_camera_struct, .-reset_camera_struct
	.comm	VIDEO_PALETTE_RGB24,8,8
	.comm	VIDEOSIZE_VGA,4,4
	.comm	VIDEOSIZE_CIF,4,4
	.comm	STV_IMAGE_VGA_ROWS,4,4
	.comm	STV_IMAGE_VGA_COLS,4,4
	.comm	STV_IMAGE_CIF_ROWS,4,4
	.comm	STV_IMAGE_CIF_COLS,4,4
	.comm	NEVER_FLICKER,4,4
	.comm	DEVICE_STV_672,8,8
	.comm	DEFAULT_TARGET_KB,4,4
	.comm	DEFAULT_SATURATION,8,8
	.comm	DEFAULT_CONTRAST,8,8
	.comm	DEFAULT_BRIGHTNESS,8,8
	.comm	CPIA2_VP_SENSOR_FLAGS_500,8,8
	.comm	CPIA2_VP_FRAMERATE_30,8,8
	.comm	CPIA2_VP_FRAMERATE_15,8,8
	.comm	CPIA2_VC_VC_JPEG_OPT_DEFAULT,4,4
	.comm	CPIA2_SENSOR_500,4,4
	.comm	CPIA2_SENSOR_410,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_cpia2_core.c_reset_camera_struct.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reset_camera_struct, %function
reset_camera_struct:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	ip, #60
	mov	r4, #20
	mov	r3, #0
	mov	r6, #2
	ldr	r2, .L12
	ldr	r1, .L12+4
	ldr	lr, [r2]
	ldr	r2, .L12+8
	ldr	r5, [r1]
	ldr	r1, [r2]
	ldr	r2, .L12+12
	str	r5, [r0, #92]
	ldr	r5, [r2]
	ldr	r2, .L12+16
	str	ip, [r0, #88]
	str	r1, [r0, #84]
	ldr	ip, [r2]
	ldr	r1, .L12+20
	ldr	r2, .L12+24
	str	r4, [r0, #76]
	ldr	r4, [r0, #64]
	ldr	r2, [r2]
	ldr	r1, [r1]
	cmp	r4, lr
	ldr	lr, .L12+28
	str	r3, [r0, #60]
	str	r3, [r0, #80]
	str	r3, [r0, #56]
	str	r3, [r0, #52]
	ldr	lr, [lr]
	ldr	r3, [r0, #44]
	str	r6, [r0, #72]
	str	r5, [r0, #68]
	str	ip, [r0, #40]
	str	r2, [r0, #32]
	str	r1, [r0, #36]
	beq	.L10
	ldr	r4, .L12+32
	cmp	lr, r3
	ldr	r3, [r4]
	str	r3, [r0, #48]
	beq	.L4
.L5:
	ldr	r5, .L12+36
	ldr	r3, .L12+40
	ldr	r4, .L12+44
	ldr	lr, .L12+48
.L8:
	ldr	r3, [r3]
	ldr	r5, [r5]
	ldr	r4, [r4]
	ldr	lr, [lr]
	str	r3, [r0, #112]
	mov	r3, #0
	str	r5, [r0, #116]
	ldr	r5, .L12+52
	lsl	ip, ip, #8
	ldr	r5, [r5]
	lsl	r1, r1, #8
	lsl	r2, r2, #8
	str	r4, [r0, #28]
	str	lr, [r0, #24]
	str	ip, [r0, #100]
	str	r1, [r0, #104]
	str	r2, [r0, #108]
	str	r4, [r0, #12]
	str	lr, [r0, #8]
	str	r5, [r0, #96]
	str	r3, [r0, #20]
	str	r3, [r0, #16]
	str	r3, [r0, #4]
	str	r3, [r0]
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L12+56
	ldr	r3, [r3]
	str	r3, [r0, #48]
.L4:
	ldr	r5, .L12+60
	ldr	r3, .L12+64
	ldr	r4, .L12+68
	ldr	lr, .L12+72
	b	.L8
.L10:
	cmp	lr, r3
	beq	.L11
	ldr	r3, .L12+32
	ldr	r3, [r3]
	str	r3, [r0, #48]
	b	.L5
.L13:
	.align	2
.L12:
	.word	DEVICE_STV_672
	.word	NEVER_FLICKER
	.word	CPIA2_VC_VC_JPEG_OPT_DEFAULT
	.word	DEFAULT_TARGET_KB
	.word	DEFAULT_BRIGHTNESS
	.word	DEFAULT_SATURATION
	.word	DEFAULT_CONTRAST
	.word	CPIA2_VP_SENSOR_FLAGS_500
	.word	CPIA2_VP_FRAMERATE_30
	.word	CPIA2_SENSOR_410
	.word	VIDEOSIZE_CIF
	.word	STV_IMAGE_CIF_COLS
	.word	STV_IMAGE_CIF_ROWS
	.word	VIDEO_PALETTE_RGB24
	.word	CPIA2_VP_FRAMERATE_15
	.word	CPIA2_SENSOR_500
	.word	VIDEOSIZE_VGA
	.word	STV_IMAGE_VGA_COLS
	.word	STV_IMAGE_VGA_ROWS
	.size	reset_camera_struct, .-reset_camera_struct
	.comm	VIDEO_PALETTE_RGB24,4,4
	.comm	VIDEOSIZE_VGA,4,4
	.comm	VIDEOSIZE_CIF,4,4
	.comm	STV_IMAGE_VGA_ROWS,4,4
	.comm	STV_IMAGE_VGA_COLS,4,4
	.comm	STV_IMAGE_CIF_ROWS,4,4
	.comm	STV_IMAGE_CIF_COLS,4,4
	.comm	NEVER_FLICKER,4,4
	.comm	DEVICE_STV_672,4,4
	.comm	DEFAULT_TARGET_KB,4,4
	.comm	DEFAULT_SATURATION,4,4
	.comm	DEFAULT_CONTRAST,4,4
	.comm	DEFAULT_BRIGHTNESS,4,4
	.comm	CPIA2_VP_SENSOR_FLAGS_500,4,4
	.comm	CPIA2_VP_FRAMERATE_30,4,4
	.comm	CPIA2_VP_FRAMERATE_15,4,4
	.comm	CPIA2_VC_VC_JPEG_OPT_DEFAULT,4,4
	.comm	CPIA2_SENSOR_500,4,4
	.comm	CPIA2_SENSOR_410,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
