	.file	"extr_thread.c_vlc_join.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vlc_join
	.type	vlc_join, @function
vlc_join:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	.p2align 4,,10
	.p2align 3
.L2:
	xor	eax, eax
	call	vlc_testcancel@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR SEM_INDEFINITE_WAIT[rip]
	call	vlc_WaitForSingleObject@PLT
	cmp	QWORD PTR ERROR_INTERRUPT[rip], rax
	je	.L2
	test	rbx, rbx
	je	.L3
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR [rbx], rax
.L3:
	mov	edi, DWORD PTR 8[rbp]
	call	DosCloseEventSem@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	DosCloseEventSem@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	soclose@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.cfi_endproc
.LFE0:
	.size	vlc_join, .-vlc_join
	.comm	SEM_INDEFINITE_WAIT,4,4
	.comm	ERROR_INTERRUPT,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_thread.c_vlc_join.c"
	.text
	.align	2
	.global	vlc_join
	.syntax unified
	.arm
	.fpu softvfp
	.type	vlc_join, %function
vlc_join:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r7, r1
	ldr	r6, .L10
	ldr	r5, .L10+4
.L2:
	bl	vlc_testcancel
	ldr	r1, [r6]
	ldr	r0, [r4, #4]
	bl	vlc_WaitForSingleObject
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L2
	cmp	r7, #0
	ldrne	r3, [r4, #12]
	ldr	r0, [r4, #8]
	strne	r3, [r7]
	bl	DosCloseEventSem
	ldr	r0, [r4, #4]
	bl	DosCloseEventSem
	ldr	r0, [r4]
	bl	soclose
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	free
.L11:
	.align	2
.L10:
	.word	SEM_INDEFINITE_WAIT
	.word	ERROR_INTERRUPT
	.size	vlc_join, .-vlc_join
	.comm	SEM_INDEFINITE_WAIT,4,4
	.comm	ERROR_INTERRUPT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
