	.file	"extr_konicawc.c_konicawc_set_camera_size.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	konicawc_set_camera_size, @function
konicawc_set_camera_size:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ecx, 8
	mov	esi, 2
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR 8[rdi]
	mov	rdx, QWORD PTR camera_sizes[rip]
	mov	rax, QWORD PTR [rbx]
	lea	rax, [rax+rax*2]
	lea	rax, [rdx+rax*4]
	mov	edx, DWORD PTR 8[rax]
	call	konicawc_set_misc@PLT
	mov	rax, QWORD PTR [rbx]
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR camera_sizes[rip]
	lea	rax, [rax+rdx*4]
	mov	edi, DWORD PTR [rax]
	mov	esi, DWORD PTR 4[rax]
	mov	eax, edi
	mov	DWORD PTR 8[rbx], edi
	imul	eax, esi
	mov	DWORD PTR 12[rbx], esi
	lea	ecx, [rax+rax*2]
	mov	DWORD PTR 16[rbx], eax
	mov	edx, ecx
	shr	edx, 31
	add	edx, ecx
	sar	edx
	test	eax, eax
	mov	DWORD PTR 20[rbx], edx
	lea	edx, 255[rax]
	cmovs	eax, edx
	sar	eax, 8
	mov	DWORD PTR 24[rbx], eax
	call	VIDEOSIZE@PLT
	mov	DWORD PTR 0[rbp], eax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	konicawc_set_camera_size, .-konicawc_set_camera_size
	.comm	camera_sizes,8,8
	.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_konicawc.c_konicawc_set_camera_size.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	konicawc_set_camera_size, %function
konicawc_set_camera_size:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0, #4]
	ldr	r6, .L4
	ldr	r3, [r4]
	ldr	r2, [r6]
	add	r3, r3, r3, lsl #1
	add	r3, r2, r3, lsl #2
	ldr	r2, [r3, #8]
	mov	r1, #2
	mov	r3, #8
	mov	r5, r0
	bl	konicawc_set_misc
	ldr	r3, [r4]
	ldr	r2, [r6]
	add	r3, r3, r3, lsl #1
	add	r1, r2, r3, lsl #2
	ldr	lr, [r1, #4]
	ldr	r0, [r2, r3, lsl #2]
	mov	r1, lr
	mul	r2, lr, r0
	cmp	r2, #0
	add	ip, r2, #255
	movge	ip, r2
	add	r3, r2, r2, lsl #1
	add	r3, r3, r3, lsr #31
	asr	r3, r3, #1
	asr	ip, ip, #8
	stmib	r4, {r0, lr}
	str	r2, [r4, #12]
	str	r3, [r4, #16]
	str	ip, [r4, #20]
	bl	VIDEOSIZE
	str	r0, [r5]
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	camera_sizes
	.size	konicawc_set_camera_size, .-konicawc_set_camera_size
	.comm	camera_sizes,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
