	.file	"extr_spdif.c_mmal_component_create_spdif.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"mmal module"
	.text
	.p2align 4
	.type	mmal_component_create_spdif, @function
mmal_component_create_spdif:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, QWORD PTR MMAL_ENOMEM[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	MMAL_PARAM_UNUSED@PLT
	mov	edi, 4
	lea	rsi, .LC0[rip]
	call	vcos_malloc@PLT
	mov	rdi, rax
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR 8[rax], rdi
	test	rdi, rdi
	je	.L13
	mov	edx, 4
	xor	esi, esi
	call	memset@PLT
	mov	rdx, QWORD PTR spdif_component_destroy@GOTPCREL[rip]
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rbp
	mov	ecx, 4
	mov	esi, 1
	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	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR spdif_port_enable[rip]
	mov	DWORD PTR 0[rbp], 1
	mov	rdx, QWORD PTR 24[rdx]
	mov	QWORD PTR 40[rdx], rcx
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR spdif_port_disable[rip]
	mov	rdx, QWORD PTR 24[rdx]
	mov	QWORD PTR 32[rdx], rcx
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR spdif_port_flush[rip]
	mov	rdx, QWORD PTR 24[rdx]
	mov	QWORD PTR 24[rdx], rcx
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR spdif_port_send[rip]
	mov	rdx, QWORD PTR 24[rdx]
	mov	QWORD PTR 16[rdx], rcx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR spdif_input_port_format_commit[rip]
	mov	rax, QWORD PTR 24[rax]
	mov	DWORD PTR 8[rax], edx
	mov	rbx, QWORD PTR [rax]
	xor	eax, eax
	call	mmal_queue_create@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rax], 0
	je	.L4
	mov	edx, DWORD PTR MMAL_PORT_TYPE_OUTPUT[rip]
	mov	ecx, 4
	mov	esi, 1
	mov	rdi, rbp
	call	mmal_ports_alloc@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L4
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR spdif_port_enable[rip]
	mov	DWORD PTR 4[rbp], 1
	mov	rdx, QWORD PTR 24[rdx]
	mov	QWORD PTR 40[rdx], rcx
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR spdif_port_disable[rip]
	mov	rdx, QWORD PTR 24[rdx]
	mov	QWORD PTR 32[rdx], rcx
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR spdif_port_flush[rip]
	mov	rdx, QWORD PTR 24[rdx]
	mov	QWORD PTR 24[rdx], rcx
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR spdif_port_send[rip]
	mov	rdx, QWORD PTR 24[rdx]
	mov	QWORD PTR 16[rdx], rcx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR spdif_output_port_format_commit[rip]
	mov	rax, QWORD PTR 24[rax]
	mov	DWORD PTR 8[rax], edx
	mov	rbx, QWORD PTR [rax]
	xor	eax, eax
	call	mmal_queue_create@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rax], 0
	je	.L4
	mov	esi, DWORD PTR spdif_do_processing_loop[rip]
	mov	rdi, rbp
	call	mmal_component_action_register@PLT
	cmp	QWORD PTR MMAL_SUCCESS[rip], rax
	mov	r12, rax
	jne	.L4
	mov	rax, QWORD PTR 16[rbp]
	mov	rcx, QWORD PTR MMAL_ES_TYPE_AUDIO[rip]
	movabs	rbx, 68719476738
	mov	rdx, QWORD PTR [rax]
	mov	rdx, QWORD PTR 16[rdx]
	mov	QWORD PTR 8[rdx], rcx
	mov	rsi, QWORD PTR [rax]
	mov	rdx, QWORD PTR MMAL_ENCODING_AC3[rip]
	mov	rsi, QWORD PTR 16[rsi]
	mov	QWORD PTR [rsi], rdx
	mov	esi, DWORD PTR INPUT_MIN_BUFFER_SIZE[rip]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 8[rax], esi
	mov	DWORD PTR 12[rax], esi
	mov	esi, DWORD PTR INPUT_MIN_BUFFER_NUM[rip]
	mov	DWORD PTR [rax], esi
	mov	DWORD PTR 4[rax], esi
	mov	rax, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	rsi, QWORD PTR 16[rsi]
	mov	QWORD PTR 16[rsi], rcx
	mov	rcx, QWORD PTR [rax]
	mov	rcx, QWORD PTR 16[rcx]
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR [rdx], rbx
	mov	edx, DWORD PTR OUTPUT_MIN_BUFFER_SIZE[rip]
	mov	DWORD PTR 8[rax], edx
	mov	DWORD PTR 12[rax], edx
	mov	edx, DWORD PTR OUTPUT_MIN_BUFFER_NUM[rip]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR 4[rax], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbp
	call	spdif_component_destroy@PLT
.L1:
	mov	rax, r12
	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
.L13:
	.cfi_restore_state
	mov	r12, QWORD PTR MMAL_ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mmal_component_create_spdif, .-mmal_component_create_spdif
	.comm	spdif_port_send,8,8
	.comm	spdif_port_flush,8,8
	.comm	spdif_port_enable,8,8
	.comm	spdif_port_disable,8,8
	.comm	spdif_output_port_format_commit,4,4
	.comm	spdif_input_port_format_commit,4,4
	.comm	spdif_do_processing_loop,4,4
	.comm	OUTPUT_MIN_BUFFER_SIZE,4,4
	.comm	OUTPUT_MIN_BUFFER_NUM,4,4
	.comm	MMAL_SUCCESS,8,8
	.comm	MMAL_PORT_TYPE_OUTPUT,4,4
	.comm	MMAL_PORT_TYPE_INPUT,4,4
	.comm	MMAL_ES_TYPE_AUDIO,8,8
	.comm	MMAL_ENOMEM,8,8
	.comm	MMAL_ENCODING_AC3,8,8
	.comm	INPUT_MIN_BUFFER_SIZE,4,4
	.comm	INPUT_MIN_BUFFER_NUM,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_spdif.c_mmal_component_create_spdif.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_spdif, %function
mmal_component_create_spdif:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, .L19
	mov	r4, r1
	ldr	r5, [r6]
	bl	MMAL_PARAM_UNUSED
	mov	r0, #4
	ldr	r1, .L19+4
	bl	vcos_malloc
	ldr	r3, [r4, #16]
	cmp	r0, #0
	ldreq	r5, [r6]
	str	r0, [r3, #4]
	beq	.L1
	mov	r3, #0
	strb	r3, [r0]
	strb	r3, [r0, #1]
	strb	r3, [r0, #2]
	strb	r3, [r0, #3]
	ldr	r2, [r4, #16]
	ldr	r1, .L19+8
	ldr	r3, .L19+12
	str	r1, [r2]
	mov	r0, r4
	ldr	r2, [r3]
	mov	r1, #1
	mov	r3, #4
	bl	mmal_ports_alloc
	cmp	r0, #0
	str	r0, [r4, #12]
	beq	.L4
	mov	r10, #1
	ldr	r3, [r0]
	ldr	r9, .L19+16
	ldr	r3, [r3, #20]
	ldr	r2, [r9]
	str	r10, [r4]
	str	r2, [r3, #20]
	ldr	r3, [r0]
	ldr	r8, .L19+20
	ldr	r3, [r3, #20]
	ldr	r2, [r8]
	ldr	r7, .L19+24
	str	r2, [r3, #16]
	ldr	r3, [r0]
	ldr	r2, [r7]
	ldr	r3, [r3, #20]
	ldr	r6, .L19+28
	str	r2, [r3, #12]
	ldr	r3, [r0]
	ldr	r1, [r6]
	ldr	r3, [r3, #20]
	ldr	r2, .L19+32
	str	r1, [r3, #8]
	ldr	r3, [r0]
	ldr	r2, [r2]
	ldr	r3, [r3, #20]
	str	r2, [r3, #4]
	ldr	fp, [r3]
	bl	mmal_queue_create
	ldr	r3, [r4, #12]
	str	r0, [fp]
	ldr	r3, [r3]
	ldr	r3, [r3, #20]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r2, .L19+36
	mov	r3, #4
	mov	r1, r10
	mov	r0, r4
	ldr	r2, [r2]
	bl	mmal_ports_alloc
	cmp	r0, #0
	str	r0, [r4, #8]
	beq	.L4
	ldr	r3, [r0]
	ldr	r2, [r9]
	ldr	r3, [r3, #20]
	str	r10, [r4, #4]
	str	r2, [r3, #20]
	ldr	r3, [r0]
	ldr	r2, [r8]
	ldr	r3, [r3, #20]
	ldr	ip, [r7]
	str	r2, [r3, #16]
	ldr	r3, [r0]
	ldr	r1, [r6]
	ldr	r3, [r3, #20]
	ldr	r2, .L19+40
	str	ip, [r3, #12]
	ldr	r3, [r0]
	ldr	r2, [r2]
	ldr	r3, [r3, #20]
	str	r1, [r3, #8]
	ldr	r3, [r0]
	ldr	r3, [r3, #20]
	str	r2, [r3, #4]
	ldr	r6, [r3]
	bl	mmal_queue_create
	ldr	r3, [r4, #8]
	str	r0, [r6]
	ldr	r3, [r3]
	ldr	r3, [r3, #20]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L19+44
	mov	r0, r4
	ldr	r1, [r3]
	bl	mmal_component_action_register
	ldr	r3, .L19+48
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L4
	mov	r6, #2
	mov	lr, #16
	ldr	r3, [r4, #12]
	ldr	r1, .L19+52
	ldr	r2, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2, #16]
	ldr	r0, .L19+56
	str	r1, [r2, #4]
	ldr	r2, [r3]
	ldr	r0, [r0]
	ldr	ip, [r2, #16]
	ldr	r2, [r4, #8]
	str	r0, [ip]
	ldr	ip, .L19+60
	ldr	r3, [r3]
	ldr	r4, [ip]
	ldr	ip, .L19+64
	str	r4, [r3, #8]
	str	r4, [r3, #12]
	ldr	r4, [r2]
	ldr	ip, [ip]
	ldr	r4, [r4, #16]
	str	ip, [r3]
	str	ip, [r3, #4]
	str	r1, [r4, #8]
	ldr	r3, [r2]
	ldr	r1, .L19+68
	ldr	r3, [r3, #16]
	ldr	r1, [r1]
	str	r0, [r3, #4]
	ldr	r3, [r2]
	ldr	r2, .L19+72
	ldr	r0, [r3, #16]
	ldr	r2, [r2]
	ldr	r0, [r0]
	stm	r0, {r6, lr}
	str	r1, [r3, #8]
	str	r1, [r3, #12]
	str	r2, [r3]
	str	r2, [r3, #4]
	b	.L1
.L4:
	mov	r0, r4
	bl	spdif_component_destroy
.L1:
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	.align	2
.L19:
	.word	MMAL_ENOMEM
	.word	.LC0
	.word	spdif_component_destroy
	.word	MMAL_PORT_TYPE_INPUT
	.word	spdif_port_enable
	.word	spdif_port_disable
	.word	spdif_port_flush
	.word	spdif_port_send
	.word	spdif_input_port_format_commit
	.word	MMAL_PORT_TYPE_OUTPUT
	.word	spdif_output_port_format_commit
	.word	spdif_do_processing_loop
	.word	MMAL_SUCCESS
	.word	MMAL_ES_TYPE_AUDIO
	.word	MMAL_ENCODING_AC3
	.word	INPUT_MIN_BUFFER_SIZE
	.word	INPUT_MIN_BUFFER_NUM
	.word	OUTPUT_MIN_BUFFER_SIZE
	.word	OUTPUT_MIN_BUFFER_NUM
	.size	mmal_component_create_spdif, .-mmal_component_create_spdif
	.comm	spdif_port_send,4,4
	.comm	spdif_port_flush,4,4
	.comm	spdif_port_enable,4,4
	.comm	spdif_port_disable,4,4
	.comm	spdif_output_port_format_commit,4,4
	.comm	spdif_input_port_format_commit,4,4
	.comm	spdif_do_processing_loop,4,4
	.comm	OUTPUT_MIN_BUFFER_SIZE,4,4
	.comm	OUTPUT_MIN_BUFFER_NUM,4,4
	.comm	MMAL_SUCCESS,4,4
	.comm	MMAL_PORT_TYPE_OUTPUT,4,4
	.comm	MMAL_PORT_TYPE_INPUT,4,4
	.comm	MMAL_ES_TYPE_AUDIO,4,4
	.comm	MMAL_ENOMEM,4,4
	.comm	MMAL_ENCODING_AC3,4,4
	.comm	INPUT_MIN_BUFFER_SIZE,4,4
	.comm	INPUT_MIN_BUFFER_NUM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
