	.file	"178264283.c"
	.intel_syntax noprefix
	.text
	.globl	camaz_initialized
	.bss
	.align 4
	.type	camaz_initialized, @object
	.size	camaz_initialized, 4
camaz_initialized:
	.zero	4
	.text
	.globl	frame_next
	.type	frame_next, @function
frame_next:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	DWORD PTR -48[rbp], ecx
	mov	DWORD PTR -52[rbp], r8d
	mov	DWORD PTR -56[rbp], r9d
	movsd	QWORD PTR -64[rbp], xmm0
	movsd	xmm1, QWORD PTR -64[rbp]
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	neg	eax
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	sub	eax, 1
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	neg	eax
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	imul	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jle	.L2
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L3
.L2:
	mov	eax, 0
	jmp	.L4
.L3:
	cmp	DWORD PTR -12[rbp], 0
	jle	.L5
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jle	.L6
.L5:
	mov	eax, 0
	jmp	.L4
.L6:
	mov	eax, 0
	call	azcam_open@PLT
	test	eax, eax
	je	.L7
	mov	eax, 0
	jmp	.L4
.L7:
	mov	eax, DWORD PTR camaz_initialized[rip]
	test	eax, eax
	jne	.L8
	mov	eax, 0
	call	azcam_geo2a@PLT
	test	eax, eax
	je	.L9
	mov	eax, 0
	jmp	.L4
.L9:
	mov	DWORD PTR camaz_initialized[rip], 1
.L8:
	mov	r8d, DWORD PTR -8[rbp]
	mov	edi, DWORD PTR -12[rbp]
	mov	ecx, DWORD PTR -56[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	edi, eax
	mov	eax, 0
	call	azcam_geo2b@PLT
	test	eax, eax
	je	.L10
	mov	eax, 0
	jmp	.L4
.L10:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	mov	eax, 0
	call	azcam_light@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	mov	eax, 0
	call	azcam_frame_read@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rax
	mov	rsi, rax
	mov	rdi, QWORD PTR 16[rbp]
	mov	eax, 0
	call	azcam_readdata@PLT
	test	eax, eax
	jne	.L11
	mov	eax, 0
	jmp	.L4
.L11:
	mov	eax, 0
	call	azcam_close@PLT
	mov	eax, 1
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	frame_next, .-frame_next
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1083129856
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"178264283.c"
	.text
	.global	camaz_initialized
	.bss
	.align	2
	.type	camaz_initialized, %object
	.size	camaz_initialized, 4
camaz_initialized:
	.space	4
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.text
	.align	2
	.global	frame_next
	.syntax unified
	.arm
	.fpu softvfp
	.type	frame_next, %function
frame_next:
	@ args = 20, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r2, #0
	ldr	r3, .L12
	add	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	rsb	r3, r3, #0
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	rsb	r3, r3, #0
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-44]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L2
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L3
.L2:
	mov	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L5
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	ble	.L6
.L5:
	mov	r3, #0
	b	.L4
.L6:
	bl	azcam_open
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	mov	r3, #0
	b	.L4
.L7:
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	bl	azcam_geo2a
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	mov	r3, #0
	b	.L4
.L9:
	ldr	r3, .L12+4
	mov	r2, #1
	str	r2, [r3]
.L8:
	ldr	r3, [fp, #-12]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #4]
	bl	azcam_geo2b
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	mov	r3, #0
	b	.L4
.L10:
	ldr	r0, [fp, #-28]
	bl	azcam_light
	ldr	r0, [fp, #-8]
	bl	azcam_frame_read
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #20]
	bl	azcam_readdata
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	mov	r3, #0
	b	.L4
.L11:
	bl	azcam_close
	mov	r3, #1
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	1083129856
	.word	camaz_initialized
	.size	frame_next, .-frame_next
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
