	.file	"extr_thread_act.c_thread_release.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"thread %p over-resumed"
	.text
	.p2align 4
	.globl	thread_release
	.type	thread_release, @function
thread_release:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	cmp	QWORD PTR [rdi], 0
	mov	rbp, rdi
	lea	rsi, .LC0[rip]
	setg	dil
	mov	rdx, rbp
	movzx	edi, dil
	call	assertf@PLT
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	je	.L1
	sub	rax, 1
	mov	QWORD PTR 0[rbp], rax
	jne	.L1
	mov	eax, DWORD PTR 16[rbp]
	test	eax, eax
	je	.L8
	cmp	QWORD PTR 8[rbp], 0
	jne	.L9
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR FALSE[rip]
	mov	rsi, rbp
	mov	rdi, rbp
	mov	QWORD PTR 8[rbp], rax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	thread_wakeup_thread@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	thread_start@PLT
	.cfi_endproc
.LFE0:
	.size	thread_release, .-thread_release
	.comm	FALSE,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_act.c_thread_release.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"thread %p over-resumed\000"
	.text
	.align	2
	.global	thread_release
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_release, %function
thread_release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, [r0]
	mov	r2, r4
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	ldr	r1, .L12
	bl	assertf
	ldr	r3, [r4]
	cmp	r3, #0
	popeq	{r4, pc}
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r4]
	popne	{r4, pc}
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [r4, #4]
	cmp	r3, #0
	popeq	{r4, pc}
	ldr	r3, .L12+4
	mov	r1, r4
	ldr	r3, [r3]
	mov	r0, r4
	str	r3, [r4, #4]
	pop	{r4, lr}
	b	thread_wakeup_thread
.L11:
	mov	r0, r4
	pop	{r4, lr}
	b	thread_start
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	FALSE
	.size	thread_release, .-thread_release
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
