	.file	"extr_aiffenc.c_put_id3v2_tags.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	put_id3v2_tags, @function
put_id3v2_tags:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR 8[rdi]
	mov	rbx, QWORD PTR 8[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 4[rdi]
	mov	DWORD PTR 4[rsp], 0
	test	eax, eax
	jne	.L2
	test	rbx, rbx
	je	.L22
.L2:
	mov	ecx, 32
	mov	edx, 51
	mov	esi, 68
	mov	edi, 73
	call	MKTAG@PLT
	mov	rdi, r12
	lea	r14, 4[rsp]
	mov	esi, eax
	call	avio_wl32@PLT
	xor	esi, esi
	mov	rdi, r12
	call	avio_wb32@PLT
	mov	rdi, r12
	call	avio_tell@PLT
	mov	edx, DWORD PTR [r15]
	mov	rsi, r12
	mov	rdi, r14
	mov	ecx, DWORD PTR ID3v2_DEFAULT_MAGIC[rip]
	mov	r13d, eax
	call	ff_id3v2_start@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	ff_id3v2_write_metadata@PLT
	test	rbx, rbx
	jne	.L5
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rbx, QWORD PTR [rbx]
	test	rbx, rbx
	je	.L4
.L5:
	lea	rdx, 8[rbx]
	mov	rsi, r14
	mov	rdi, rbp
	call	ff_id3v2_write_apic@PLT
	test	eax, eax
	jns	.L24
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L25
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L4:
	.cfi_restore_state
	mov	edx, DWORD PTR 0[rbp]
	mov	rsi, r12
	mov	rdi, r14
	call	ff_id3v2_finish@PLT
	mov	rdi, r12
	call	avio_tell@PLT
	mov	edx, DWORD PTR SEEK_SET[rip]
	lea	esi, -4[r13]
	mov	rdi, r12
	mov	ebx, eax
	mov	ebp, eax
	call	avio_seek@PLT
	sub	ebx, r13d
	mov	rdi, r12
	mov	esi, ebx
	call	avio_wb32@PLT
	mov	edx, DWORD PTR SEEK_SET[rip]
	mov	esi, ebp
	mov	rdi, r12
	call	avio_seek@PLT
	and	ebx, 1
	je	.L22
	xor	esi, esi
	mov	rdi, r12
	call	avio_w8@PLT
.L22:
	xor	eax, eax
	jmp	.L1
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	put_id3v2_tags, .-put_id3v2_tags
	.comm	SEEK_SET,4,4
	.comm	ID3v2_DEFAULT_MAGIC,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_aiffenc.c_put_id3v2_tags.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	put_id3v2_tags, %function
put_id3v2_tags:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, #0
	ldr	r4, [r1, #4]
	ldr	r3, [r0, #4]
	ldr	r2, .L20
	sub	sp, sp, #8
	orrs	r3, r4, r3
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ldr	r6, [r0, #8]
	str	r8, [sp]
	beq	.L16
	mov	r3, #32
	mov	r2, #51
	mov	r7, r1
	mov	r5, r0
	mov	r1, #68
	mov	r0, #73
	bl	MKTAG
	mov	r1, r0
	mov	r0, r6
	bl	avio_wl32
	mov	r1, r8
	mov	r0, r6
	bl	avio_wb32
	mov	r0, r6
	bl	avio_tell
	mov	ip, r0
	ldr	r3, .L20+4
	ldr	r2, [r7]
	mov	r1, r6
	ldr	r3, [r3]
	mov	r0, sp
	mov	r7, ip
	bl	ff_id3v2_start
	mov	r1, sp
	mov	r0, r5
	bl	ff_id3v2_write_metadata
	cmp	r4, #0
	bne	.L5
	b	.L4
.L18:
	ldr	r4, [r4]
	cmp	r4, #0
	beq	.L4
.L5:
	mov	r1, sp
	mov	r0, r5
	add	r2, r4, #4
	bl	ff_id3v2_write_apic
	cmp	r0, #0
	bge	.L18
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r2, [r5]
	mov	r1, r6
	mov	r0, sp
	bl	ff_id3v2_finish
	mov	r0, r6
	bl	avio_tell
	mov	r4, r0
	ldr	r8, .L20+8
	sub	r5, r0, r7
	ldr	r2, [r8]
	sub	r1, r7, #4
	mov	r0, r6
	bl	avio_seek
	mov	r1, r5
	mov	r0, r6
	bl	avio_wb32
	mov	r1, r4
	mov	r0, r6
	ldr	r2, [r8]
	bl	avio_seek
	tst	r5, #1
	beq	.L16
	mov	r0, r6
	mov	r1, #0
	bl	avio_w8
.L16:
	mov	r0, #0
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	ID3v2_DEFAULT_MAGIC
	.word	SEEK_SET
	.size	put_id3v2_tags, .-put_id3v2_tags
	.comm	SEEK_SET,4,4
	.comm	ID3v2_DEFAULT_MAGIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
