	.file	"extr_container_reader.c_mmal_component_create_writer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"mmal module"
	.text
	.p2align 4
	.type	mmal_component_create_writer, @function
mmal_component_create_writer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, QWORD PTR MMAL_ENOMEM[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	MMAL_PARAM_UNUSED@PLT
	lea	rsi, .LC0[rip]
	mov	edi, 4
	call	vcos_malloc@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR 8[rax], rbx
	test	rbx, rbx
	je	.L15
	mov	edx, 4
	xor	esi, esi
	mov	rdi, rbx
	call	memset@PLT
	mov	rdx, QWORD PTR container_component_destroy@GOTPCREL[rip]
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rbp
	mov	DWORD PTR [rbx], 1
	mov	esi, DWORD PTR WRITER_PORTS_NUM[rip]
	mov	ecx, 4
	mov	QWORD PTR [rax], rdx
	mov	edx, DWORD PTR MMAL_PORT_TYPE_INPUT[rip]
	call	mmal_ports_alloc@PLT
	mov	QWORD PTR 16[rbp], rax
	test	rax, rax
	je	.L4
	mov	edx, DWORD PTR WRITER_PORTS_NUM[rip]
	xor	r12d, r12d
	mov	DWORD PTR 0[rbp], edx
	test	edx, edx
	jne	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	xor	edi, edi
	call	vc_container_format_create@PLT
	mov	DWORD PTR [r14], eax
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR [rax+rbx*8]
	mov	rdx, QWORD PTR [rdx]
	mov	rdx, QWORD PTR [rdx]
	mov	edx, DWORD PTR [rdx]
	test	edx, edx
	je	.L4
	add	r12d, 1
	cmp	DWORD PTR 0[rbp], r12d
	jbe	.L6
.L5:
	mov	ebx, r12d
	mov	edx, DWORD PTR container_port_enable[rip]
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 24[rax], edx
	mov	edx, DWORD PTR container_port_disable[rip]
	mov	r14, QWORD PTR [rax]
	mov	DWORD PTR 20[rax], edx
	mov	edx, DWORD PTR container_port_flush[rip]
	mov	DWORD PTR 16[rax], edx
	mov	edx, DWORD PTR container_port_send[rip]
	mov	DWORD PTR 12[rax], edx
	mov	edx, DWORD PTR container_port_set_format[rip]
	mov	DWORD PTR 8[rax], edx
	xor	eax, eax
	call	mmal_queue_create@PLT
	mov	DWORD PTR 4[r14], eax
	mov	rax, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	rax, QWORD PTR [rax]
	mov	r14, QWORD PTR [rax]
	mov	ecx, DWORD PTR 4[r14]
	test	ecx, ecx
	jne	.L16
.L4:
	mov	rdi, rbp
	call	container_component_destroy@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	r13, QWORD PTR MMAL_ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	rax, r13
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR writer_parameter_set[rip]
	mov	rdi, rbp
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR [rax], edx
	mov	esi, DWORD PTR writer_do_processing[rip]
	call	mmal_component_action_register@PLT
	cmp	QWORD PTR MMAL_SUCCESS[rip], rax
	mov	r13, rax
	jne	.L4
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mmal_component_create_writer, .-mmal_component_create_writer
	.comm	writer_parameter_set,4,4
	.comm	writer_do_processing,4,4
	.comm	container_port_set_format,4,4
	.comm	container_port_send,4,4
	.comm	container_port_flush,4,4
	.comm	container_port_enable,4,4
	.comm	container_port_disable,4,4
	.comm	WRITER_PORTS_NUM,4,4
	.comm	MMAL_SUCCESS,8,8
	.comm	MMAL_PORT_TYPE_INPUT,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_container_reader.c_mmal_component_create_writer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mmal module\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmal_component_create_writer, %function
mmal_component_create_writer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L22
	sub	sp, sp, #12
	ldr	r3, [r5]
	mov	r4, r1
	str	r3, [sp, #4]
	bl	MMAL_PARAM_UNUSED
	mov	r0, #4
	ldr	r1, .L22+4
	bl	vcos_malloc
	ldr	r3, [r4, #12]
	cmp	r0, #0
	str	r0, [r3, #4]
	beq	.L20
	mov	r1, #1
	ldr	ip, .L22+8
	ldr	r2, .L22+12
	ldr	r5, .L22+16
	str	r1, [r0]
	ldr	r2, [r2]
	ldr	r1, [r5]
	mov	r0, r4
	str	ip, [r3]
	mov	r3, #4
	bl	mmal_ports_alloc
	cmp	r0, #0
	mov	r3, r0
	str	r0, [r4, #8]
	beq	.L4
	ldr	r2, [r5]
	cmp	r2, #0
	str	r2, [r4]
	beq	.L6
	mov	fp, #0
	ldr	r9, .L22+20
	ldr	r8, .L22+24
	ldr	r7, .L22+28
	ldr	r6, .L22+32
	ldr	r5, .L22+36
	b	.L5
.L21:
	mov	r0, #0
	bl	vc_container_format_create
	ldr	r3, [r4, #8]
	str	r0, [r10]
	ldr	r2, [r3, fp, lsl #2]
	add	fp, fp, #1
	ldr	r2, [r2]
	ldr	r2, [r2]
	ldr	r2, [r2]
	cmp	r2, #0
	beq	.L4
	ldr	r2, [r4]
	cmp	r2, fp
	bls	.L6
.L5:
	ldr	r3, [r3, fp, lsl #2]
	ldr	r2, [r9]
	ldr	r3, [r3]
	ldr	ip, [r8]
	str	r2, [r3, #20]
	ldr	r0, [r7]
	ldr	r1, [r6]
	ldr	r2, [r5]
	str	ip, [r3, #16]
	str	r0, [r3, #12]
	str	r1, [r3, #8]
	str	r2, [r3, #4]
	ldr	r10, [r3]
	bl	mmal_queue_create
	ldr	r3, [r4, #8]
	str	r0, [r10, #4]
	ldr	r3, [r3, fp, lsl #2]
	ldr	r3, [r3]
	ldr	r10, [r3]
	ldr	r3, [r10, #4]
	cmp	r3, #0
	bne	.L21
.L4:
	mov	r0, r4
	bl	container_component_destroy
.L1:
	ldr	r0, [sp, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r3, [r5]
	str	r3, [sp, #4]
	ldr	r0, [sp, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r3, [r4, #4]
	ldr	r2, .L22+40
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L22+44
	str	r1, [r2]
	ldr	r1, [r3]
	bl	mmal_component_action_register
	ldr	r3, .L22+48
	str	r0, [sp, #4]
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L4
	b	.L1
.L23:
	.align	2
.L22:
	.word	MMAL_ENOMEM
	.word	.LC0
	.word	container_component_destroy
	.word	MMAL_PORT_TYPE_INPUT
	.word	WRITER_PORTS_NUM
	.word	container_port_enable
	.word	container_port_disable
	.word	container_port_flush
	.word	container_port_send
	.word	container_port_set_format
	.word	writer_parameter_set
	.word	writer_do_processing
	.word	MMAL_SUCCESS
	.size	mmal_component_create_writer, .-mmal_component_create_writer
	.comm	writer_parameter_set,4,4
	.comm	writer_do_processing,4,4
	.comm	container_port_set_format,4,4
	.comm	container_port_send,4,4
	.comm	container_port_flush,4,4
	.comm	container_port_enable,4,4
	.comm	container_port_disable,4,4
	.comm	WRITER_PORTS_NUM,4,4
	.comm	MMAL_SUCCESS,4,4
	.comm	MMAL_PORT_TYPE_INPUT,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
