	.file	"extr_threads.c_ThreadUnlock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ThreadUnlock
	.type	ThreadUnlock, @function
ThreadUnlock:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR threaded[rip]
	test	eax, eax
	jne	.L8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	lea	rdi, global_lock[rip+8]
	call	pthread_mutex_lock@PLT
	sub	QWORD PTR global_lock[rip], 1
	je	.L9
	lea	rdi, global_lock[rip+8]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	pthread_mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rdi, global_lock[rip+12]
	mov	QWORD PTR global_lock[rip+16], 0
	call	pthread_cond_signal@PLT
	lea	rdi, global_lock[rip+8]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	pthread_mutex_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	ThreadUnlock, .-ThreadUnlock
	.comm	threaded,4,4
	.comm	global_lock,24,16
	.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_threads.c_ThreadUnlock.c"
	.text
	.align	2
	.global	ThreadUnlock
	.syntax unified
	.arm
	.fpu softvfp
	.type	ThreadUnlock, %function
ThreadUnlock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, #0
	bxeq	lr
	push	{r4, lr}
	ldr	r4, .L9+4
	mov	r0, r4
	bl	pthread_mutex_lock
	ldr	r3, [r4, #-4]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r4, #-4]
	beq	.L8
	pop	{r4, lr}
	ldr	r0, .L9+4
	b	pthread_mutex_unlock
.L8:
	add	r0, r4, #4
	str	r3, [r4, #8]
	bl	pthread_cond_signal
	pop	{r4, lr}
	ldr	r0, .L9+4
	b	pthread_mutex_unlock
.L10:
	.align	2
.L9:
	.word	threaded
	.word	global_lock+4
	.size	ThreadUnlock, .-ThreadUnlock
	.comm	threaded,4,4
	.comm	global_lock,16,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
