	.file	"126440.c"
	.intel_syntax noprefix
	.text
	.local	pthread_create_orig
	.comm	pthread_create_orig,8,8
	.section	.rodata
.LC0:
	.string	"pthread_create"
	.align 8
.LC1:
	.string	"pthreads: using profiling hooks for gprof\n"
.LC2:
	.string	"pthread_create is NULL"
.LC3:
	.string	"%s\n"
	.text
	.globl	wooinit
	.type	wooinit, @function
wooinit:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rsi, .LC0[rip]
	mov	rdi, -1
	call	dlsym@PLT
	mov	QWORD PTR pthread_create_orig[rip], rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR pthread_create_orig[rip]
	test	rax, rax
	jne	.L4
	call	dlerror@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
	lea	rax, .LC2[rip]
	mov	QWORD PTR -8[rbp], rax
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	wooinit, .-wooinit
	.section	.init_array,"aw"
	.align 8
	.quad	wooinit
	.text
	.type	wrapper_routine, @function
wrapper_routine:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 104
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	setitimer@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 16
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 56
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 16
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	wrapper_routine, .-wrapper_routine
	.globl	pthread_create
	.type	pthread_create, @function
pthread_create:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -168[rbp], rdi
	mov	QWORD PTR -176[rbp], rsi
	mov	QWORD PTR -184[rbp], rdx
	mov	QWORD PTR -192[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR -136[rbp], rax
	lea	rax, -144[rbp]
	add	rax, 104
	mov	rsi, rax
	mov	edi, 2
	call	getitimer@PLT
	lea	rax, -144[rbp]
	add	rax, 56
	mov	esi, 0
	mov	rdi, rax
	call	pthread_cond_init@PLT
	lea	rax, -144[rbp]
	add	rax, 16
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	lea	rax, -144[rbp]
	add	rax, 16
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	r8, QWORD PTR pthread_create_orig[rip]
	lea	rdx, -144[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rcx, rdx
	lea	rdx, wrapper_routine[rip]
	mov	rdi, rax
	call	r8
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], 0
	jne	.L8
	lea	rax, -144[rbp]
	lea	rdx, 16[rax]
	lea	rax, -144[rbp]
	add	rax, 56
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_cond_wait@PLT
.L8:
	lea	rax, -144[rbp]
	add	rax, 16
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	lea	rax, -144[rbp]
	add	rax, 16
	mov	rdi, rax
	call	pthread_mutex_destroy@PLT
	lea	rax, -144[rbp]
	add	rax, 56
	mov	rdi, rax
	call	pthread_cond_destroy@PLT
	mov	eax, DWORD PTR -148[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	pthread_create, .-pthread_create
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"126440.c"
	.text
	.local	pthread_create_orig
	.comm	pthread_create_orig,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"pthread_create\000"
	.align	2
.LC1:
	.ascii	"pthreads: using profiling hooks for gprof\012\000"
	.align	2
.LC2:
	.ascii	"pthread_create is NULL\000"
	.align	2
.LC3:
	.ascii	"%s\012\000"
	.text
	.align	2
	.global	wooinit
	.syntax unified
	.arm
	.fpu softvfp
	.type	wooinit, %function
wooinit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L5
	mvn	r0, #0
	bl	dlsym
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L5+4
	str	r2, [r3]
	ldr	r3, .L5+8
	ldr	r3, [r3]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L5+12
	bl	fwrite
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	bl	dlerror
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L5+16
	str	r3, [fp, #-8]
.L3:
	ldr	r3, .L5+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L5+20
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	pthread_create_orig
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	wooinit, .-wooinit
	.section	.init_array,"aw",%init_array
	.align	2
	.word	wooinit(target1)
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wrapper_routine, %function
wrapper_routine:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #80
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	setitimer
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-16]
	add	r3, r3, #32
	mov	r0, r3
	bl	pthread_cond_signal
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-12]
	ldr	r0, [fp, #-8]
	blx	r3
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	wrapper_routine, .-wrapper_routine
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pthread_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	pthread_create, %function
pthread_create:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #132
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	str	r2, [fp, #-136]
	str	r3, [fp, #-140]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-136]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-140]
	str	r3, [fp, #-112]
	sub	r3, fp, #116
	add	r3, r3, #80
	mov	r1, r3
	mov	r0, #2
	bl	getitimer
	sub	r3, fp, #116
	add	r3, r3, #32
	mov	r1, #0
	mov	r0, r3
	bl	pthread_cond_init
	sub	r3, fp, #116
	add	r3, r3, #8
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	sub	r3, fp, #116
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, .L13+4
	ldr	r4, [r3]
	sub	r3, fp, #116
	ldr	r2, .L13+8
	ldr	r1, [fp, #-132]
	ldr	r0, [fp, #-128]
	blx	r4
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L10
	sub	r3, fp, #116
	add	r2, r3, #8
	sub	r3, fp, #116
	add	r3, r3, #32
	mov	r1, r2
	mov	r0, r3
	bl	pthread_cond_wait
.L10:
	sub	r3, fp, #116
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_unlock
	sub	r3, fp, #116
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_destroy
	sub	r3, fp, #116
	add	r3, r3, #32
	mov	r0, r3
	bl	pthread_cond_destroy
	ldr	r3, [fp, #-120]
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	pthread_create_orig
	.word	wrapper_routine
	.size	pthread_create, .-pthread_create
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
