	.file	"extr_asf_writer.c_asf_write_object.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Header Extension Data Size"
.LC1:
	.string	"Object ID"
.LC2:
	.string	"Object Name: %s"
.LC3:
	.string	"Object Size"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"object %s appears to be corrupted"
	.text
	.p2align 4
	.type	asf_write_object, @function
asf_write_object:
.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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rcx, QWORD PTR asf_object_list[rip]
	mov	rax, QWORD PTR [rcx]
	test	rax, rax
	je	.L3
	mov	r13, rdi
	mov	rbx, rsi
	xor	edx, edx
	xor	ebp, ebp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	lea	eax, 1[rdx]
	mov	rdx, rax
	lea	rax, [rax+rax*2]
	lea	rbp, 0[0+rax*8]
	mov	rax, QWORD PTR [rcx+rax*8]
	test	rax, rax
	je	.L3
.L2:
	cmp	rbx, rax
	jne	.L4
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, r13
	xor	r15d, r15d
	mov	r14, QWORD PTR [rax]
	lea	r12, 4[r14]
	mov	rsi, r12
	call	vc_container_writer_extraio_enable@PLT
	test	eax, eax
	je	.L20
.L10:
	mov	rsi, r12
	mov	rdi, r13
	call	vc_container_writer_extraio_disable@PLT
	cmp	QWORD PTR ASF_OBJECT_TYPE_HEADER_EXT_INTERNAL[rip], rbx
	je	.L21
	mov	rax, QWORD PTR asf_object_list[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, r13
	mov	esi, DWORD PTR 20[rax+rbp]
	call	WRITE_GUID@PLT
	mov	r12, QWORD PTR VC_CONTAINER_ERROR_EOS[rip]
	cmp	eax, 4
	je	.L22
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L20:
	.cfi_restore_state
	mov	rax, QWORD PTR asf_object_list[rip]
	mov	rdi, r13
	call	[QWORD PTR 8[rax+rbp]]
	mov	rdi, r13
	call	STREAM_POSITION@PLT
	mov	r15, rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	xor	edi, edi
	call	vc_container_assert@PLT
	mov	r12, QWORD PTR VC_CONTAINER_ERROR_CORRUPTED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rax, QWORD PTR asf_object_list[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	mov	edx, DWORD PTR 16[rax+rbp]
	call	LOG_FORMAT@PLT
	mov	rsi, QWORD PTR ASF_OBJECT_HEADER_SIZE[rip]
	lea	rdx, .LC3[rip]
	mov	rdi, r13
	add	rsi, r15
	call	WRITE_U64@PLT
	mov	rax, QWORD PTR asf_object_list[rip]
	add	DWORD PTR [r14], 1
	mov	rdi, r13
	call	[QWORD PTR 8[rax+rbp]]
	sub	DWORD PTR [r14], 1
	cmp	QWORD PTR VC_CONTAINER_SUCCESS[rip], rax
	mov	r12, rax
	je	.L1
	mov	rax, QWORD PTR asf_object_list[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, r13
	mov	edx, DWORD PTR 16[rax+rbp]
	call	LOG_DEBUG@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, r13
	mov	rsi, r15
	lea	rdx, .LC0[rip]
	call	WRITE_U32@PLT
	mov	rax, QWORD PTR asf_object_list[rip]
	mov	rdi, r13
	mov	rax, QWORD PTR 8[rax+rbp]
	add	rsp, 8
	.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
	jmp	rax
	.cfi_endproc
.LFE0:
	.size	asf_write_object, .-asf_write_object
	.comm	asf_object_list,8,8
	.comm	VC_CONTAINER_SUCCESS,8,8
	.comm	VC_CONTAINER_ERROR_EOS,8,8
	.comm	VC_CONTAINER_ERROR_CORRUPTED,8,8
	.comm	ASF_OBJECT_TYPE_HEADER_EXT_INTERNAL,8,8
	.comm	ASF_OBJECT_HEADER_SIZE,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_asf_writer.c_asf_write_object.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Header Extension Data Size\000"
	.align	2
.LC1:
	.ascii	"Object ID\000"
	.align	2
.LC2:
	.ascii	"Object Name: %s\000"
	.align	2
.LC3:
	.ascii	"Object Size\000"
	.align	2
.LC4:
	.ascii	"object %s appears to be corrupted\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	asf_write_object, %function
asf_write_object:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L20
	ldr	r2, [r7]
	ldr	r3, [r2]
	cmp	r3, #0
	movne	r6, r0
	movne	r5, r1
	movne	r4, #0
	bne	.L2
	b	.L3
.L4:
	add	r4, r4, #16
	ldr	r3, [r2, r4]
	cmp	r3, #0
	beq	.L3
.L2:
	cmp	r5, r3
	bne	.L4
	ldr	r3, [r6]
	mov	r0, r6
	ldr	r8, [r3]
	add	r10, r8, #4
	mov	r1, r10
	bl	vc_container_writer_extraio_enable
	cmp	r0, #0
	movne	r9, #0
	beq	.L18
.L10:
	mov	r1, r10
	mov	r0, r6
	bl	vc_container_writer_extraio_disable
	ldr	r3, .L20+4
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L19
	ldr	r3, [r7]
	mov	r0, r6
	add	r3, r3, r4
	ldr	r2, .L20+8
	ldr	r1, [r3, #12]
	bl	WRITE_GUID
	cmp	r0, #4
	beq	.L7
	ldr	r3, .L20+12
	ldr	r5, [r3]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	ldr	r3, [r7]
	mov	r0, r6
	add	r3, r3, r4
	ldr	r3, [r3, #4]
	blx	r3
	mov	r0, r6
	bl	STREAM_POSITION
	mov	r9, r0
	b	.L10
.L3:
	mov	r0, #0
	bl	vc_container_assert
	ldr	r3, .L20+16
	ldr	r5, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	ldr	r3, [r7]
	ldr	r1, .L20+20
	add	r3, r3, r4
	ldr	r2, [r3, #8]
	mov	r0, r6
	bl	LOG_FORMAT
	ldr	r3, .L20+24
	ldr	r2, .L20+28
	ldr	r1, [r3]
	mov	r0, r6
	add	r1, r9, r1
	bl	WRITE_U64
	ldr	r2, [r8]
	ldr	r3, [r7]
	add	r2, r2, #1
	add	r3, r3, r4
	ldr	r3, [r3, #4]
	str	r2, [r8]
	mov	r0, r6
	blx	r3
	ldr	r2, .L20+32
	ldr	r3, [r8]
	ldr	r2, [r2]
	sub	r3, r3, #1
	cmp	r2, r0
	mov	r5, r0
	str	r3, [r8]
	beq	.L1
	ldr	r3, [r7]
	mov	r0, r6
	add	r4, r3, r4
	ldr	r2, [r4, #8]
	ldr	r1, .L20+36
	bl	LOG_DEBUG
	b	.L1
.L19:
	mov	r1, r9
	mov	r0, r6
	ldr	r2, .L20+40
	bl	WRITE_U32
	ldr	r3, [r7]
	mov	r0, r6
	add	r4, r3, r4
	ldr	r3, [r4, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	bx	r3
.L21:
	.align	2
.L20:
	.word	asf_object_list
	.word	ASF_OBJECT_TYPE_HEADER_EXT_INTERNAL
	.word	.LC1
	.word	VC_CONTAINER_ERROR_EOS
	.word	VC_CONTAINER_ERROR_CORRUPTED
	.word	.LC2
	.word	ASF_OBJECT_HEADER_SIZE
	.word	.LC3
	.word	VC_CONTAINER_SUCCESS
	.word	.LC4
	.word	.LC0
	.size	asf_write_object, .-asf_write_object
	.comm	asf_object_list,4,4
	.comm	VC_CONTAINER_SUCCESS,4,4
	.comm	VC_CONTAINER_ERROR_EOS,4,4
	.comm	VC_CONTAINER_ERROR_CORRUPTED,4,4
	.comm	ASF_OBJECT_TYPE_HEADER_EXT_INTERNAL,4,4
	.comm	ASF_OBJECT_HEADER_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
