	.file	"extr_mxfenc.c_mxf_write_generic_sound_common.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"the number of audio channels shall be 4 or 8 : the output will not comply to MXF D-10 specs, use -d10_channelcount to fix this\n"
	.align 8
.LC1:
	.string	"d10_channelcount < actual number of audio channels : some channels will be discarded\n"
	.align 8
.LC2:
	.string	"d10_channelcount shall be set to 4 or 8 : the output will not comply to MXF D-10 specs\n"
	.text
	.p2align 4
	.type	mxf_write_generic_sound_common, @function
mxf_write_generic_sound_common:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR 8[rdi]
	mov	rbp, QWORD PTR 16[rdi]
	mov	eax, DWORD PTR 12[r14]
	mov	DWORD PTR 12[rsp], eax
	call	mxf_write_generic_desc@PLT
	mov	r13d, eax
	lea	rax, ff_mxf_opatom_muxer[rip]
	cmp	QWORD PTR [r12], rax
	je	.L18
.L2:
	mov	edx, 15618
	mov	esi, 1
	mov	rdi, rbp
	call	mxf_write_local_tag@PLT
	mov	esi, 1
	mov	rdi, rbp
	lea	r15, ff_mxf_d10_muxer[rip]
	call	avio_w8@PLT
	mov	edx, 15619
	mov	esi, 8
	mov	rdi, rbp
	call	mxf_write_local_tag@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax]
	call	avio_wb32@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	avio_wb32@PLT
	cmp	QWORD PTR [r12], r15
	je	.L19
.L3:
	mov	esi, 4
	mov	edx, 15623
	mov	rdi, rbp
	call	mxf_write_local_tag@PLT
	mov	esi, DWORD PTR 8[r14]
	cmp	esi, -1
	je	.L20
	cmp	QWORD PTR [r12], r15
	je	.L21
	mov	rax, QWORD PTR [rbx]
	mov	esi, DWORD PTR 4[rax]
.L16:
	mov	rdi, rbp
	call	avio_wb32@PLT
	mov	edx, 15617
	mov	esi, 4
	mov	rdi, rbp
	call	mxf_write_local_tag@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR 8[rax]
	call	av_get_bits_per_sample@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	avio_wb32@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	jne	.L16
	mov	rax, QWORD PTR [rbx]
	cmp	esi, DWORD PTR 4[rax]
	jl	.L22
.L9:
	lea	eax, -4[rsi]
	and	eax, -5
	je	.L16
	mov	esi, DWORD PTR AV_LOG_WARNING[rip]
	lea	rdx, .LC2[rip]
	mov	rdi, r12
	call	av_log@PLT
	mov	esi, DWORD PTR 8[r14]
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR 4[rax]
	test	edx, edx
	jne	.L16
	cmp	QWORD PTR [r12], r15
	jne	.L16
	lea	eax, -4[rsi]
	and	eax, -5
	je	.L16
	mov	esi, DWORD PTR AV_LOG_WARNING[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r12
	call	av_log@PLT
	mov	rax, QWORD PTR [rbx]
	mov	esi, DWORD PTR 4[rax]
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbp
	mov	edx, 12290
	mov	esi, 8
	call	mxf_write_local_tag@PLT
	mov	eax, DWORD PTR [r14]
	mov	rdi, rbp
	cdq
	idiv	DWORD PTR 4[r14]
	mov	esi, eax
	call	avio_wb64@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, rbp
	mov	edx, 15620
	mov	esi, 1
	call	mxf_write_local_tag@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	avio_w8@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L22:
	mov	esi, DWORD PTR AV_LOG_WARNING[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, r12
	call	av_log@PLT
	mov	esi, DWORD PTR 8[r14]
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	mxf_write_generic_sound_common, .-mxf_write_generic_sound_common
	.comm	ff_mxf_opatom_muxer,4,4
	.comm	ff_mxf_d10_muxer,4,4
	.comm	AV_LOG_WARNING,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_mxfenc.c_mxf_write_generic_sound_common.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"the number of audio channels shall be 4 or 8 : the "
	.ascii	"output will not comply to MXF D-10 specs, use -d10_"
	.ascii	"channelcount to fix this\012\000"
	.align	2
.LC1:
	.ascii	"d10_channelcount < actual number of audio channels "
	.ascii	": some channels will be discarded\012\000"
	.align	2
.LC2:
	.ascii	"d10_channelcount shall be set to 4 or 8 : the outpu"
	.ascii	"t will not comply to MXF D-10 specs\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mxf_write_generic_sound_common, %function
mxf_write_generic_sound_common:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r8, [r0, #4]
	mov	r6, r1
	ldr	r4, [r0, #8]
	ldr	r10, [r8, #12]
	bl	mxf_write_generic_desc
	ldr	r2, [r5]
	ldr	r3, .L23
	mov	r7, r0
	cmp	r2, r3
	beq	.L17
.L2:
	ldr	r2, .L23+4
	mov	r1, #1
	mov	r0, r4
	bl	mxf_write_local_tag
	mov	r1, #1
	mov	r0, r4
	bl	avio_w8
	ldr	r2, .L23+8
	mov	r1, #8
	mov	r0, r4
	bl	mxf_write_local_tag
	ldr	r3, [r6]
	mov	r0, r4
	ldr	r1, [r3]
	bl	avio_wb32
	mov	r1, #1
	mov	r0, r4
	bl	avio_wb32
	ldr	r9, .L23+12
	ldr	r3, [r5]
	cmp	r3, r9
	beq	.L18
.L3:
	mov	r1, #4
	mov	r0, r4
	ldr	r2, .L23+16
	bl	mxf_write_local_tag
	ldr	r1, [r8, #8]
	cmn	r1, #1
	beq	.L19
	ldr	r3, [r5]
	cmp	r3, r9
	beq	.L20
	ldr	r3, [r6]
	mov	r0, r4
	ldr	r1, [r3, #4]
	bl	avio_wb32
.L6:
	ldr	r2, .L23+20
	mov	r1, #4
	mov	r0, r4
	bl	mxf_write_local_tag
	ldr	r3, [r6]
	ldr	r0, [r3, #8]
	bl	av_get_bits_per_sample
	mov	r1, r0
	mov	r0, r4
	bl	avio_wb32
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	cmp	r10, #0
	bne	.L8
	ldr	r3, [r6]
	ldr	r3, [r3, #4]
	cmp	r1, r3
	blt	.L21
.L9:
	sub	r3, r1, #4
	bics	r3, r3, #4
	bne	.L22
.L8:
	mov	r0, r4
	bl	avio_wb32
	b	.L6
.L19:
	ldr	r3, [r6]
	cmp	r10, #0
	ldr	r1, [r3, #4]
	bne	.L8
	ldr	r3, [r5]
	cmp	r3, r9
	bne	.L8
	sub	r3, r1, #4
	bics	r3, r3, #4
	beq	.L8
	ldr	r3, .L23+24
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, .L23+28
	bl	av_log
	ldr	r3, [r6]
	ldr	r1, [r3, #4]
	b	.L8
.L17:
	ldr	r2, .L23+32
	mov	r1, #8
	mov	r0, r4
	bl	mxf_write_local_tag
	ldm	r8, {r0, r1}
	bl	__aeabi_idiv
	mov	r1, r0
	mov	r0, r4
	bl	avio_wb64
	b	.L2
.L18:
	mov	r1, #1
	mov	r0, r4
	ldr	r2, .L23+36
	bl	mxf_write_local_tag
	mov	r1, #0
	mov	r0, r4
	bl	avio_w8
	b	.L3
.L21:
	ldr	r3, .L23+24
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, .L23+40
	bl	av_log
	ldr	r1, [r8, #8]
	b	.L9
.L22:
	ldr	r3, .L23+24
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, .L23+44
	bl	av_log
	ldr	r1, [r8, #8]
	b	.L8
.L24:
	.align	2
.L23:
	.word	ff_mxf_opatom_muxer
	.word	15618
	.word	15619
	.word	ff_mxf_d10_muxer
	.word	15623
	.word	15617
	.word	AV_LOG_WARNING
	.word	.LC0
	.word	12290
	.word	15620
	.word	.LC1
	.word	.LC2
	.size	mxf_write_generic_sound_common, .-mxf_write_generic_sound_common
	.comm	ff_mxf_opatom_muxer,4,4
	.comm	ff_mxf_d10_muxer,4,4
	.comm	AV_LOG_WARNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
