	.file	"extr_android_camera.c_android_camera_read_header.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to allocate input queue, error: %s.\n"
	.align 8
.LC1:
	.string	"Failed to create Android camera manager.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Failed to open camera.\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Failed to open android_camera.\n"
	.text
	.p2align 4
	.type	android_camera_read_header, @function
android_camera_read_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR [rdi]
	lea	rdi, 16[rbx]
	call	atomic_init@PLT
	xor	esi, esi
	lea	rdi, 12[rbx]
	call	atomic_init@PLT
	mov	esi, DWORD PTR 4[rbx]
	lea	rdi, 8[rbx]
	mov	edx, 4
	call	av_thread_message_queue_alloc@PLT
	test	eax, eax
	js	.L10
	xor	eax, eax
	call	ACameraManager_create@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	je	.L11
	mov	rdi, rbp
	call	open_camera@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L12
	mov	rdi, rbp
	call	get_sensor_orientation@PLT
	mov	rdi, rbp
	call	match_video_size@PLT
	mov	rdi, rbp
	call	match_framerate@PLT
	mov	rdi, rbp
	call	create_image_reader@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L3
	mov	rdi, rbp
	call	create_capture_session@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L3
	mov	rdi, rbp
	call	add_video_stream@PLT
	mov	r12d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, rbp
	call	av_log@PLT
	mov	r12d, DWORD PTR AVERROR_EXTERNAL[rip]
.L5:
	test	r12d, r12d
	js	.L3
	mov	eax, r12d
	pop	rbx
	.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
.L10:
	.cfi_restore_state
	mov	edi, eax
	mov	r12d, eax
	call	av_err2str@PLT
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	mov	ecx, eax
	xor	eax, eax
	call	av_log@PLT
.L3:
	mov	rdi, rbp
	call	android_camera_read_close@PLT
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	rdi, rbp
	xor	eax, eax
	lea	rdx, .LC3[rip]
	call	av_log@PLT
	mov	eax, r12d
	pop	rbx
	.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
.L12:
	.cfi_restore_state
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	av_log@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	android_camera_read_header, .-android_camera_read_header
	.comm	AV_LOG_ERROR,4,4
	.comm	AVERROR_EXTERNAL,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_android_camera.c_android_camera_read_header.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to allocate input queue, error: %s.\012\000"
	.align	2
.LC1:
	.ascii	"Failed to create Android camera manager.\012\000"
	.align	2
.LC2:
	.ascii	"Failed to open camera.\012\000"
	.align	2
.LC3:
	.ascii	"Failed to open android_camera.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	android_camera_read_header, %function
android_camera_read_header:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0]
	mov	r1, #0
	mov	r5, r0
	add	r0, r6, #16
	bl	atomic_init
	mov	r1, #0
	add	r0, r6, #12
	bl	atomic_init
	mov	r2, #4
	ldr	r1, [r6, #4]
	add	r0, r6, #8
	bl	av_thread_message_queue_alloc
	subs	r4, r0, #0
	blt	.L15
	bl	ACameraManager_create
	cmp	r0, #0
	str	r0, [r6]
	beq	.L16
	mov	r0, r5
	bl	open_camera
	subs	r4, r0, #0
	blt	.L17
	mov	r0, r5
	bl	get_sensor_orientation
	mov	r0, r5
	bl	match_video_size
	mov	r0, r5
	bl	match_framerate
	mov	r0, r5
	bl	create_image_reader
	subs	r4, r0, #0
	blt	.L13
	mov	r0, r5
	bl	create_capture_session
	subs	r4, r0, #0
	blt	.L13
	mov	r0, r5
	bl	add_video_stream
	mov	r4, r0
	b	.L5
.L16:
	ldr	r6, .L18
	mov	r0, r5
	ldr	r2, .L18+4
	ldr	r1, [r6]
	bl	av_log
	ldr	r3, .L18+8
	ldr	r4, [r3]
.L5:
	cmp	r4, #0
	blt	.L13
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r6, .L18
.L3:
	mov	r0, r5
	bl	android_camera_read_close
	mov	r0, r5
	ldr	r1, [r6]
	ldr	r2, .L18+12
	bl	av_log
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r6, .L18
	ldr	r7, [r6]
	bl	av_err2str
	mov	r1, r7
	mov	r3, r0
	ldr	r2, .L18+16
	mov	r0, r5
	bl	av_log
	b	.L3
.L17:
	ldr	r6, .L18
	mov	r0, r5
	ldr	r2, .L18+20
	ldr	r1, [r6]
	bl	av_log
	b	.L3
.L19:
	.align	2
.L18:
	.word	AV_LOG_ERROR
	.word	.LC1
	.word	AVERROR_EXTERNAL
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.size	android_camera_read_header, .-android_camera_read_header
	.comm	AV_LOG_ERROR,4,4
	.comm	AVERROR_EXTERNAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
