	.file	"extr_sigev_thread.c_sigev_thread_create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sigev_thread_create, @function
sigev_thread_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	edi, edi
	je	.L2
	cmp	QWORD PTR sigev_default_thread[rip], 0
	jne	.L14
.L2:
	mov	edi, 24
	mov	rbp, rsp
	lea	r13, 4[rsp]
	call	malloc@PLT
	xor	esi, esi
	mov	r12, rax
	mov	QWORD PTR 16[rax], 0
	movabs	rax, -4294967295
	mov	QWORD PTR [r12], rax
	lea	rbx, 8[r12]
	mov	rdi, rbx
	call	_pthread_cond_init@PLT
	xor	eax, eax
	call	__sigev_list_lock@PLT
	mov	edx, DWORD PTR tn_link[rip]
	mov	rsi, r12
	lea	rdi, sigev_threads[rip]
	call	LIST_INSERT_HEAD@PLT
	xor	eax, eax
	call	__sigev_list_unlock@PLT
	mov	rdi, rbp
	call	sigfillset@PLT
	mov	esi, DWORD PTR SIGBUS[rip]
	mov	rdi, rbp
	call	sigdelset@PLT
	mov	esi, DWORD PTR SIGILL[rip]
	mov	rdi, rbp
	call	sigdelset@PLT
	mov	esi, DWORD PTR SIGFPE[rip]
	mov	rdi, rbp
	call	sigdelset@PLT
	mov	esi, DWORD PTR SIGSEGV[rip]
	mov	rdi, rbp
	call	sigdelset@PLT
	mov	esi, DWORD PTR SIGTRAP[rip]
	mov	rdi, rbp
	call	sigdelset@PLT
	mov	edi, DWORD PTR SIG_SETMASK[rip]
	mov	rsi, rbp
	mov	rdx, r13
	call	_sigprocmask@PLT
	mov	edx, DWORD PTR sigev_service_loop[rip]
	mov	rcx, r12
	lea	rdi, 12[r12]
	lea	rsi, sigev_default_attr[rip]
	call	_pthread_create@PLT
	mov	edi, DWORD PTR SIG_SETMASK[rip]
	xor	edx, edx
	mov	rsi, r13
	mov	ebp, eax
	call	_sigprocmask@PLT
	xor	eax, eax
	test	ebp, ebp
	jne	.L15
	call	__sigev_list_lock@PLT
	cmp	DWORD PTR 4[r12], -1
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR sigev_list_mtx[rip]
	mov	rdi, rbx
	call	_pthread_cond_wait@PLT
	cmp	DWORD PTR 4[r12], -1
	je	.L6
.L5:
	xor	eax, eax
	call	__sigev_list_unlock@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	call	__sigev_list_lock@PLT
	mov	rax, QWORD PTR sigev_default_thread[rip]
	add	DWORD PTR [rax], 1
	xor	eax, eax
	call	__sigev_list_unlock@PLT
	mov	r12, QWORD PTR sigev_default_thread[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	call	__sigev_list_lock@PLT
	mov	esi, DWORD PTR tn_link[rip]
	mov	rdi, r12
	call	LIST_REMOVE@PLT
	xor	eax, eax
	call	__sigev_list_unlock@PLT
	mov	rdi, r12
	xor	r12d, r12d
	call	free@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sigev_thread_create, .-sigev_thread_create
	.comm	tn_link,4,4
	.comm	sigev_threads,4,4
	.comm	sigev_service_loop,4,4
	.comm	sigev_list_mtx,4,4
	.comm	sigev_default_thread,8,8
	.comm	sigev_default_attr,4,4
	.comm	SIG_SETMASK,4,4
	.comm	SIGTRAP,4,4
	.comm	SIGSEGV,4,4
	.comm	SIGILL,4,4
	.comm	SIGFPE,4,4
	.comm	SIGBUS,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_sigev_thread.c_sigev_thread_create.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigev_thread_create, %function
sigev_thread_create:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L21
	sub	sp, sp, #20
	cmp	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L2
	ldr	r4, .L21+4
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L18
.L2:
	mov	r0, #20
	bl	malloc
	mov	r6, #0
	mov	r3, #1
	mvn	r2, #0
	mov	r5, r0
	mov	r4, r0
	str	r2, [r0, #4]
	str	r6, [r0, #16]
	ldr	r9, .L21+8
	str	r3, [r5], #8
	mov	r1, r6
	mov	r0, r5
	bl	_pthread_cond_init
	bl	__sigev_list_lock
	ldr	r2, [r9]
	mov	r1, r4
	ldr	r0, .L21+12
	bl	LIST_INSERT_HEAD
	bl	__sigev_list_unlock
	add	r0, sp, #4
	bl	sigfillset
	ldr	r3, .L21+16
	add	r0, sp, #4
	ldr	r1, [r3]
	bl	sigdelset
	ldr	r3, .L21+20
	add	r0, sp, #4
	ldr	r1, [r3]
	bl	sigdelset
	ldr	r3, .L21+24
	add	r0, sp, #4
	ldr	r1, [r3]
	bl	sigdelset
	ldr	r3, .L21+28
	add	r0, sp, #4
	ldr	r1, [r3]
	bl	sigdelset
	ldr	r3, .L21+32
	ldr	r8, .L21+36
	ldr	r1, [r3]
	add	r0, sp, #4
	bl	sigdelset
	add	r1, sp, #4
	add	r2, sp, #8
	ldr	r0, [r8]
	bl	_sigprocmask
	ldr	r2, .L21+40
	mov	r3, r4
	ldr	r2, [r2]
	ldr	r1, .L21+44
	add	r0, r4, #12
	bl	_pthread_create
	mov	r7, r0
	mov	r2, r6
	ldr	r0, [r8]
	add	r1, sp, #8
	bl	_sigprocmask
	cmp	r7, r6
	bne	.L19
	bl	__sigev_list_lock
	ldr	r3, [r4, #4]
	cmn	r3, #1
	bne	.L5
	ldr	r6, .L21+48
.L6:
	mov	r0, r5
	ldr	r1, [r6]
	bl	_pthread_cond_wait
	ldr	r3, [r4, #4]
	cmn	r3, #1
	beq	.L6
.L5:
	bl	__sigev_list_unlock
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L18:
	bl	__sigev_list_lock
	ldr	r2, [r4]
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
	bl	__sigev_list_unlock
	ldr	r4, [r4]
	b	.L1
.L19:
	bl	__sigev_list_lock
	ldr	r1, [r9]
	mov	r0, r4
	bl	LIST_REMOVE
	bl	__sigev_list_unlock
	mov	r0, r4
	bl	free
	mov	r4, r6
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	sigev_default_thread
	.word	tn_link
	.word	sigev_threads
	.word	SIGBUS
	.word	SIGILL
	.word	SIGFPE
	.word	SIGSEGV
	.word	SIGTRAP
	.word	SIG_SETMASK
	.word	sigev_service_loop
	.word	sigev_default_attr
	.word	sigev_list_mtx
	.size	sigev_thread_create, .-sigev_thread_create
	.comm	tn_link,4,4
	.comm	sigev_threads,4,4
	.comm	sigev_service_loop,4,4
	.comm	sigev_list_mtx,4,4
	.comm	sigev_default_thread,4,4
	.comm	sigev_default_attr,4,4
	.comm	SIG_SETMASK,4,4
	.comm	SIGTRAP,4,4
	.comm	SIGSEGV,4,4
	.comm	SIGILL,4,4
	.comm	SIGFPE,4,4
	.comm	SIGBUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
