	.file	"extr_RaspiTex.c_raspitex_configure_preview_port.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s port %p"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Failed to enable zero copy on camera preview port"
	.align 8
.LC2:
	.string	"camera viewfinder format couldn't be set"
	.align 8
.LC3:
	.string	"Creating buffer pool for GL renderer num %d size %d"
	.section	.rodata.str1.1
.LC4:
	.string	"Error allocating pool"
.LC5:
	.string	"Error allocating queue"
.LC6:
	.string	"Failed to camera preview port"
	.text
	.p2align 4
	.globl	raspitex_configure_preview_port
	.type	raspitex_configure_preview_port, @function
raspitex_configure_preview_port:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdx, rsi
	mov	r12, rdi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	mov	esi, DWORD PTR VCOS_FUNCTION[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	vcos_log_trace@PLT
	mov	edx, DWORD PTR MMAL_TRUE[rip]
	mov	esi, DWORD PTR MMAL_PARAMETER_ZERO_COPY[rip]
	mov	rdi, rbp
	call	mmal_port_parameter_set_boolean@PLT
	cmp	QWORD PTR MMAL_SUCCESS[rip], rax
	je	.L2
	lea	rdi, .LC1[rip]
	mov	rbx, rax
	call	vcos_log_error@PLT
	mov	rax, QWORD PTR MMAL_SUCCESS[rip]
.L3:
	cmp	rbx, rax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	setne	al
	pop	r12
	.cfi_def_cfa_offset 8
	movzx	eax, al
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	mmal_port_format_commit@PLT
	cmp	QWORD PTR MMAL_SUCCESS[rip], rax
	mov	rbx, rax
	je	.L4
	lea	rdi, .LC2[rip]
	call	vcos_log_error@PLT
	mov	rax, QWORD PTR MMAL_SUCCESS[rip]
	cmp	rbx, rax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	setne	al
	pop	r12
	.cfi_def_cfa_offset 8
	movzx	eax, al
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR 32[rbp]
	mov	rdx, QWORD PTR 24[rbp]
	mov	QWORD PTR 8[r12], rbp
	lea	rdi, .LC3[rip]
	mov	DWORD PTR 16[rbp], esi
	mov	QWORD PTR 8[rbp], rdx
	call	vcos_log_trace@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR 16[rbp]
	mov	rdi, rbp
	call	mmal_port_pool_create@PLT
	mov	DWORD PTR 4[r12], eax
	test	eax, eax
	je	.L10
	xor	eax, eax
	call	mmal_queue_create@PLT
	mov	DWORD PTR [r12], eax
	test	eax, eax
	je	.L11
	mov	QWORD PTR 0[rbp], r12
	mov	esi, DWORD PTR preview_output_cb[rip]
	mov	rdi, rbp
	call	mmal_port_enable@PLT
	cmp	QWORD PTR MMAL_SUCCESS[rip], rax
	mov	rbx, rax
	je	.L3
	lea	rdi, .LC6[rip]
	call	vcos_log_error@PLT
	mov	rax, QWORD PTR MMAL_SUCCESS[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC4[rip]
	call	vcos_log_error@PLT
	mov	rbx, QWORD PTR MMAL_ENOMEM[rip]
	mov	rax, QWORD PTR MMAL_SUCCESS[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, .LC5[rip]
	call	vcos_log_error@PLT
	mov	rbx, QWORD PTR MMAL_ENOMEM[rip]
	mov	rax, QWORD PTR MMAL_SUCCESS[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	raspitex_configure_preview_port, .-raspitex_configure_preview_port
	.comm	preview_output_cb,4,4
	.comm	VCOS_FUNCTION,4,4
	.comm	MMAL_TRUE,4,4
	.comm	MMAL_SUCCESS,8,8
	.comm	MMAL_PARAMETER_ZERO_COPY,4,4
	.comm	MMAL_ENOMEM,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_RaspiTex.c_raspitex_configure_preview_port.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s port %p\000"
	.align	2
.LC1:
	.ascii	"Failed to enable zero copy on camera preview port\000"
	.align	2
.LC2:
	.ascii	"camera viewfinder format couldn't be set\000"
	.align	2
.LC3:
	.ascii	"Creating buffer pool for GL renderer num %d size %d"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"Error allocating pool\000"
	.align	2
.LC5:
	.ascii	"Error allocating queue\000"
	.align	2
.LC6:
	.ascii	"Failed to camera preview port\000"
	.text
	.align	2
	.global	raspitex_configure_preview_port
	.syntax unified
	.arm
	.fpu softvfp
	.type	raspitex_configure_preview_port, %function
raspitex_configure_preview_port:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r3, .L12
	mov	r2, r1
	mov	r6, r0
	ldr	r1, [r3]
	ldr	r0, .L12+4
	bl	vcos_log_trace
	ldr	r3, .L12+8
	ldr	r2, .L12+12
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r2, [r2]
	bl	mmal_port_parameter_set_boolean
	ldr	r7, .L12+16
	ldr	r3, [r7]
	cmp	r3, r0
	beq	.L2
	mov	r5, r0
	ldr	r0, .L12+20
	bl	vcos_log_error
	ldr	r0, [r7]
.L3:
	subs	r0, r5, r0
	mvnne	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r4
	bl	mmal_port_format_commit
	ldr	r3, [r7]
	mov	r5, r0
	cmp	r3, r0
	beq	.L4
	ldr	r0, .L12+24
	bl	vcos_log_error
	ldr	r0, [r7]
	b	.L3
.L4:
	ldr	r1, [r4, #16]
	ldr	r2, [r4, #12]
	ldr	r0, .L12+28
	str	r4, [r6, #8]
	str	r1, [r4, #8]
	str	r2, [r4, #4]
	bl	vcos_log_trace
	mov	r0, r4
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #8]
	bl	mmal_port_pool_create
	cmp	r0, #0
	str	r0, [r6, #4]
	beq	.L10
	bl	mmal_queue_create
	cmp	r0, #0
	str	r0, [r6]
	beq	.L11
	ldr	r3, .L12+32
	mov	r0, r4
	ldr	r1, [r3]
	str	r6, [r4]
	bl	mmal_port_enable
	ldr	r3, [r7]
	mov	r5, r0
	cmp	r3, r0
	beq	.L3
	ldr	r0, .L12+36
	bl	vcos_log_error
	ldr	r0, [r7]
	b	.L3
.L10:
	ldr	r0, .L12+40
	bl	vcos_log_error
	ldr	r3, .L12+44
	ldr	r0, [r7]
	ldr	r5, [r3]
	b	.L3
.L11:
	ldr	r0, .L12+48
	bl	vcos_log_error
	ldr	r3, .L12+44
	ldr	r0, [r7]
	ldr	r5, [r3]
	b	.L3
.L13:
	.align	2
.L12:
	.word	VCOS_FUNCTION
	.word	.LC0
	.word	MMAL_PARAMETER_ZERO_COPY
	.word	MMAL_TRUE
	.word	MMAL_SUCCESS
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	preview_output_cb
	.word	.LC6
	.word	.LC4
	.word	MMAL_ENOMEM
	.word	.LC5
	.size	raspitex_configure_preview_port, .-raspitex_configure_preview_port
	.comm	preview_output_cb,4,4
	.comm	VCOS_FUNCTION,4,4
	.comm	MMAL_TRUE,4,4
	.comm	MMAL_SUCCESS,4,4
	.comm	MMAL_PARAMETER_ZERO_COPY,4,4
	.comm	MMAL_ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
