	.file	"extr_opensslthreadlock.c_thread_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	thread_setup
	.type	thread_setup, @function
thread_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xor	eax, eax
	call	CRYPTO_num_locks@PLT
	lea	edi, 0[0+rax*4]
	call	malloc@PLT
	mov	QWORD PTR mutex_buf[rip], rax
	test	rax, rax
	je	.L5
	xor	ebx, ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR mutex_buf[rip]
	mov	edi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	MUTEX_SETUP@PLT
.L3:
	xor	eax, eax
	call	CRYPTO_num_locks@PLT
	cmp	eax, ebx
	jg	.L4
	mov	edi, DWORD PTR id_function[rip]
	call	CRYPTO_set_id_callback@PLT
	mov	edi, DWORD PTR locking_function[rip]
	call	CRYPTO_set_locking_callback@PLT
	mov	eax, 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	thread_setup, .-thread_setup
	.comm	mutex_buf,8,8
	.comm	locking_function,4,4
	.comm	id_function,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_opensslthreadlock.c_thread_setup.c"
	.text
	.align	2
	.global	thread_setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_setup, %function
thread_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	CRYPTO_num_locks
	lsl	r0, r0, #2
	bl	malloc
	ldr	r5, .L8
	cmp	r0, #0
	str	r0, [r5]
	popeq	{r4, r5, r6, pc}
	mov	r4, #0
	b	.L3
.L4:
	ldr	r3, [r5]
	ldr	r0, [r3, r4, lsl #2]
	bl	MUTEX_SETUP
	add	r4, r4, #1
.L3:
	bl	CRYPTO_num_locks
	cmp	r0, r4
	bgt	.L4
	ldr	r3, .L8+4
	ldr	r0, [r3]
	bl	CRYPTO_set_id_callback
	ldr	r3, .L8+8
	ldr	r0, [r3]
	bl	CRYPTO_set_locking_callback
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	mutex_buf
	.word	id_function
	.word	locking_function
	.size	thread_setup, .-thread_setup
	.comm	mutex_buf,4,4
	.comm	locking_function,4,4
	.comm	id_function,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
