	.file	"extr_viewfinder.c_test_video_render_create.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"couldn't create video render"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"video render doesn't have input ports"
	.align 8
.LC2:
	.string	"could not set video render display properties (%u)"
	.align 8
.LC3:
	.string	"failed to set zero copy on render input"
	.section	.rodata.str1.1
.LC4:
	.string	"enabled zero copy on render"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"video render component couldn't be enabled (%u)"
	.text
	.p2align 4
	.type	test_video_render_create, @function
test_video_render_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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, rsi
	sub	rsp, 112
	.cfi_def_cfa_offset 144
	mov	edi, DWORD PTR MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	lea	rsi, 8[rsp]
	mov	QWORD PTR 8[rsp], 0
	call	mmal_component_create@PLT
	mov	DWORD PTR [rbx], eax
	cmp	eax, DWORD PTR MMAL_SUCCESS[rip]
	jne	.L22
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR 8[rax]
	test	edx, edx
	je	.L23
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR 24[rbp]
	cmp	QWORD PTR 16[rbp], 0
	mov	r12, QWORD PTR [rax]
	mov	eax, DWORD PTR MMAL_PARAMETER_DISPLAYREGION[rip]
	mov	DWORD PTR 52[rsp], 48
	mov	DWORD PTR 88[rsp], edx
	mov	DWORD PTR 56[rsp], eax
	mov	eax, DWORD PTR MMAL_DISPLAY_SET_LAYER[rip]
	mov	DWORD PTR 48[rsp], eax
	je	.L5
	cmp	QWORD PTR 8[rbp], 0
	je	.L5
	or	eax, DWORD PTR MMAL_DISPLAY_SET_DEST_RECT[rip]
	or	eax, DWORD PTR MMAL_DISPLAY_SET_FULLSCREEN[rip]
	mov	QWORD PTR 80[rsp], 0
	movdqu	xmm0, XMMWORD PTR 8[rbp]
	mov	DWORD PTR 48[rsp], eax
	movaps	XMMWORD PTR 64[rsp], xmm0
.L5:
	lea	rsi, 52[rsp]
	mov	rdi, r12
	call	mmal_port_parameter_set@PLT
	mov	DWORD PTR [rbx], eax
	cmp	eax, DWORD PTR MMAL_SUCCESS[rip]
	je	.L6
	cmp	eax, DWORD PTR MMAL_ENOSYS[rip]
	jne	.L24
.L6:
	xor	eax, eax
	call	enable_zero_copy@PLT
	test	rax, rax
	jne	.L25
.L7:
	cmp	QWORD PTR 0[rbp], 0
	jne	.L26
.L9:
	mov	rdi, QWORD PTR 8[rsp]
	call	mmal_component_enable@PLT
	mov	esi, eax
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 8[rsp]
	test	esi, esi
	jne	.L27
.L1:
	mov	rcx, QWORD PTR 104[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L28
	add	rsp, 112
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L22:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	LOG_ERROR@PLT
.L3:
	mov	rax, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L1
	mov	rdi, rax
	call	mmal_component_destroy@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rax, QWORD PTR [r12]
	mov	edx, DWORD PTR MMAL_ENCODING_OPAQUE[rip]
	mov	DWORD PTR [rax], edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, eax
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	LOG_ERROR@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	LOG_ERROR@PLT
	mov	eax, DWORD PTR MMAL_EINVAL[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L25:
	mov	eax, DWORD PTR MMAL_PARAMETER_ZERO_COPY[rip]
	lea	rsi, 20[rsp]
	mov	rdi, r12
	mov	QWORD PTR 24[rsp], 0
	mov	DWORD PTR 32[rsp], 0
	mov	DWORD PTR 16[rsp], eax
	mov	DWORD PTR 20[rsp], 1
	call	mmal_port_parameter_set@PLT
	mov	DWORD PTR [rbx], eax
	cmp	eax, DWORD PTR MMAL_SUCCESS[rip]
	je	.L8
	cmp	eax, DWORD PTR MMAL_ENOSYS[rip]
	jne	.L29
.L8:
	lea	rdi, .LC4[rip]
	call	LOG_INFO@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	LOG_ERROR@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	LOG_ERROR@PLT
	jmp	.L3
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_video_render_create, .-test_video_render_create
	.comm	MMAL_SUCCESS,4,4
	.comm	MMAL_PARAMETER_ZERO_COPY,4,4
	.comm	MMAL_PARAMETER_DISPLAYREGION,4,4
	.comm	MMAL_ENOSYS,4,4
	.comm	MMAL_ENCODING_OPAQUE,4,4
	.comm	MMAL_EINVAL,4,4
	.comm	MMAL_DISPLAY_SET_LAYER,4,4
	.comm	MMAL_DISPLAY_SET_FULLSCREEN,4,4
	.comm	MMAL_DISPLAY_SET_DEST_RECT,4,4
	.comm	MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER,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_viewfinder.c_test_video_render_create.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"couldn't create video render\000"
	.align	2
.LC1:
	.ascii	"video render doesn't have input ports\000"
	.align	2
.LC2:
	.ascii	"could not set video render display properties (%u)\000"
	.align	2
.LC3:
	.ascii	"failed to set zero copy on render input\000"
	.align	2
.LC4:
	.ascii	"enabled zero copy on render\000"
	.align	2
.LC5:
	.ascii	"video render component couldn't be enabled (%u)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_video_render_create, %function
test_video_render_create:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, #0
	ldr	r3, .L37
	sub	sp, sp, #56
	mov	r5, r0
	ldr	r0, [r3]
	ldr	r3, .L37+4
	mov	r4, r1
	mov	r1, sp
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	str	r7, [sp]
	bl	mmal_component_create
	ldr	r6, .L37+8
	str	r0, [r4]
	ldr	r3, [r6]
	cmp	r0, r3
	bne	.L30
	ldr	r3, [sp]
	ldr	r2, [r3, #4]
	cmp	r2, #0
	beq	.L31
	mov	r1, #28
	ldr	r2, .L37+12
	ldr	r0, .L37+16
	ldr	ip, [r3]
	ldr	r2, [r2]
	ldr	r3, [r0]
	ldr	r0, [r5, #8]
	ldr	r8, [ip]
	str	r2, [sp, #32]
	ldr	r2, [r5, #12]
	cmp	r0, #0
	str	r3, [sp, #24]
	str	r1, [sp, #28]
	str	r2, [sp, #48]
	beq	.L5
	ldr	r2, [r5, #4]
	cmp	r2, #0
	beq	.L5
	ldmib	r5, {r0, r1}
	ldr	r2, .L37+20
	str	r7, [sp, #44]
	ldr	ip, [r2]
	ldr	r2, .L37+24
	orr	r3, r3, ip
	ldr	ip, [r2]
	add	r2, sp, #36
	stm	r2, {r0, r1}
	orr	r3, r3, ip
	str	r3, [sp, #24]
.L5:
	mov	r0, r8
	add	r1, sp, #28
	bl	mmal_port_parameter_set
	str	r0, [r4]
	ldr	r3, [r6]
	cmp	r0, r3
	beq	.L6
	ldr	r3, .L37+28
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L32
.L6:
	bl	enable_zero_copy
	cmp	r0, #0
	bne	.L33
.L7:
	ldr	r3, [r5]
	ldr	r0, [sp]
	cmp	r3, #0
	ldrne	r2, .L37+32
	ldrne	r3, [r8]
	ldrne	r2, [r2]
	strne	r2, [r3]
	bl	mmal_component_enable
	cmp	r0, #0
	str	r0, [r4]
	ldreq	r0, [sp]
	bne	.L34
.L1:
	ldr	r3, .L37+4
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L30:
	ldr	r0, .L37+36
	bl	LOG_ERROR
.L3:
	ldr	r0, [sp]
	cmp	r0, #0
	beq	.L1
	bl	mmal_component_destroy
	mov	r0, #0
	b	.L1
.L32:
	mov	r1, r0
	ldr	r0, .L37+40
	bl	LOG_ERROR
	b	.L3
.L31:
	ldr	r0, .L37+44
	bl	LOG_ERROR
	ldr	r3, .L37+48
	ldr	r3, [r3]
	str	r3, [r4]
	b	.L3
.L33:
	mov	r1, #1
	mov	r3, #0
	ldr	r2, .L37+52
	str	r1, [sp, #8]
	ldr	r2, [r2]
	mov	r0, r8
	add	r1, sp, #8
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	str	r3, [sp, #20]
	str	r2, [sp, #4]
	bl	mmal_port_parameter_set
	str	r0, [r4]
	ldr	r3, [r6]
	cmp	r0, r3
	beq	.L8
	ldr	r3, .L37+28
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L36
.L8:
	ldr	r0, .L37+56
	bl	LOG_INFO
	b	.L7
.L34:
	mov	r1, r0
	ldr	r0, .L37+60
	bl	LOG_ERROR
	b	.L3
.L36:
	ldr	r0, .L37+64
	bl	LOG_ERROR
	b	.L3
.L35:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER
	.word	.LC6
	.word	MMAL_SUCCESS
	.word	MMAL_PARAMETER_DISPLAYREGION
	.word	MMAL_DISPLAY_SET_LAYER
	.word	MMAL_DISPLAY_SET_DEST_RECT
	.word	MMAL_DISPLAY_SET_FULLSCREEN
	.word	MMAL_ENOSYS
	.word	MMAL_ENCODING_OPAQUE
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.word	MMAL_EINVAL
	.word	MMAL_PARAMETER_ZERO_COPY
	.word	.LC4
	.word	.LC5
	.word	.LC3
	.size	test_video_render_create, .-test_video_render_create
	.comm	MMAL_SUCCESS,4,4
	.comm	MMAL_PARAMETER_ZERO_COPY,4,4
	.comm	MMAL_PARAMETER_DISPLAYREGION,4,4
	.comm	MMAL_ENOSYS,4,4
	.comm	MMAL_ENCODING_OPAQUE,4,4
	.comm	MMAL_EINVAL,4,4
	.comm	MMAL_DISPLAY_SET_LAYER,4,4
	.comm	MMAL_DISPLAY_SET_FULLSCREEN,4,4
	.comm	MMAL_DISPLAY_SET_DEST_RECT,4,4
	.comm	MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
