	.file	"extr_thr-windows.c_YabThreadWait.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	YabThreadWait
	.type	YabThreadWait, @function
YabThreadWait:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edi, edi
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rax, QWORD PTR thread_handle[rip]
	lea	rbx, [rdi+rdi*2]
	sal	rbx, 3
	mov	rdi, QWORD PTR 16[rax+rbx]
	test	rdi, rdi
	je	.L1
	mov	esi, DWORD PTR INFINITE[rip]
	call	WaitForSingleObject@PLT
	mov	rax, QWORD PTR thread_handle[rip]
	mov	rdi, QWORD PTR 16[rax+rbx]
	call	CloseHandle@PLT
	add	rbx, QWORD PTR thread_handle[rip]
	mov	rdi, QWORD PTR [rbx]
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 8[rbx], 0
	test	rdi, rdi
	je	.L1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	CloseHandle@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	YabThreadWait, .-YabThreadWait
	.comm	thread_handle,8,8
	.comm	INFINITE,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_thr-windows.c_YabThreadWait.c"
	.text
	.align	2
	.global	YabThreadWait
	.syntax unified
	.arm
	.fpu softvfp
	.type	YabThreadWait, %function
YabThreadWait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L10
	add	r0, r0, r0, lsl #1
	ldr	r2, [r4]
	lsl	r5, r0, #2
	add	r0, r2, r0, lsl #2
	ldr	r0, [r0, #8]
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L10+4
	ldr	r1, [r3]
	bl	WaitForSingleObject
	ldr	r3, [r4]
	add	r3, r3, r5
	ldr	r0, [r3, #8]
	bl	CloseHandle
	mov	r2, #0
	ldr	r3, [r4]
	ldr	r0, [r3, r5]
	add	r3, r3, r5
	cmp	r0, r2
	str	r2, [r3, #8]
	str	r2, [r3, #4]
	popeq	{r4, r5, r6, pc}
	pop	{r4, r5, r6, lr}
	b	CloseHandle
.L11:
	.align	2
.L10:
	.word	thread_handle
	.word	INFINITE
	.size	YabThreadWait, .-YabThreadWait
	.comm	thread_handle,4,4
	.comm	INFINITE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
