	.file	"extr_vcos_pthreads.c_vcos_term.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vcos_term, @function
vcos_term:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ebx, edi
	test	DWORD PTR VCOS_INIT_MSGQ[rip], edi
	jne	.L13
	test	DWORD PTR VCOS_INIT_MAIN_SEM[rip], ebx
	jne	.L14
.L3:
	test	DWORD PTR VCOS_INIT_NAMED_SEM[rip], ebx
	jne	.L15
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xor	eax, eax
	call	vcos_msgq_deinit@PLT
	test	DWORD PTR VCOS_INIT_MAIN_SEM[rip], ebx
	je	.L3
.L14:
	lea	rdi, vcos_thread_main[rip]
	call	vcos_semaphore_delete@PLT
	test	DWORD PTR VCOS_INIT_NAMED_SEM[rip], ebx
	je	.L1
.L15:
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	_vcos_named_semaphore_deinit@PLT
	.cfi_endproc
.LFE0:
	.size	vcos_term, .-vcos_term
	.comm	vcos_thread_main,4,4
	.comm	printf_lock,4,4
	.comm	VCOS_INIT_PRINTF_LOCK,4,4
	.comm	VCOS_INIT_NAMED_SEM,4,4
	.comm	VCOS_INIT_MSGQ,4,4
	.comm	VCOS_INIT_MAIN_SEM,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_vcos_pthreads.c_vcos_term.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vcos_term, %function
vcos_term:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	push	{r4, lr}
	ldr	r3, [r3]
	mov	r4, r0
	tst	r0, r3
	bne	.L13
.L2:
	ldr	r3, .L15+4
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L14
.L3:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	tst	r4, r3
	popeq	{r4, pc}
	pop	{r4, lr}
	b	_vcos_named_semaphore_deinit
.L14:
	ldr	r0, .L15+12
	bl	vcos_semaphore_delete
	b	.L3
.L13:
	bl	vcos_msgq_deinit
	b	.L2
.L16:
	.align	2
.L15:
	.word	VCOS_INIT_MSGQ
	.word	VCOS_INIT_MAIN_SEM
	.word	VCOS_INIT_NAMED_SEM
	.word	vcos_thread_main
	.size	vcos_term, .-vcos_term
	.comm	vcos_thread_main,4,4
	.comm	printf_lock,4,4
	.comm	VCOS_INIT_PRINTF_LOCK,4,4
	.comm	VCOS_INIT_NAMED_SEM,4,4
	.comm	VCOS_INIT_MSGQ,4,4
	.comm	VCOS_INIT_MAIN_SEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
