	.file	"extr_pthread_mutex.c_pthread_mutex_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pthread_mutex_init
	.type	pthread_mutex_init, @function
pthread_mutex_init:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L18
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	mov	esi, 40
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	edi, 1
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	calloc@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR ENOMEM[rip]
	test	rbx, rbx
	je	.L5
	mov	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 24[rbx], 0
	test	r12, r12
	je	.L6
	mov	rax, QWORD PTR [r12]
	test	rax, rax
	je	.L6
	mov	eax, DWORD PTR [rax]
.L7:
	mov	DWORD PTR 16[rbx], eax
	mov	rsi, rbx
	xor	edi, edi
	mov	QWORD PTR 8[rbx], 0
	call	pte_osSemaphoreCreate@PLT
	xor	eax, eax
.L5:
	mov	QWORD PTR 0[rbp], rbx
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	mov	eax, DWORD PTR EINVAL[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	mov	eax, DWORD PTR PTHREAD_MUTEX_DEFAULT[rip]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	pthread_mutex_init, .-pthread_mutex_init
	.comm	PTHREAD_MUTEX_DEFAULT,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_pthread_mutex.c_pthread_mutex_init.c"
	.text
	.align	2
	.global	pthread_mutex_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	pthread_mutex_init, %function
pthread_mutex_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r6, r0, #0
	beq	.L17
	mov	r5, r1
	mov	r0, #1
	mov	r1, #20
	bl	calloc
	subs	r4, r0, #0
	ldreq	r3, .L18
	ldreq	r0, [r3]
	beq	.L5
	mov	r3, #0
	cmp	r5, r3
	str	r3, [r4, #16]
	str	r3, [r4, #12]
	beq	.L6
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L6
.L15:
	mov	r5, #0
	ldr	r3, [r3]
	mov	r0, r5
	mov	r1, r4
	str	r3, [r4, #8]
	str	r5, [r4, #4]
	bl	pte_osSemaphoreCreate
	mov	r0, r5
.L5:
	str	r4, [r6]
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L18+4
	b	.L15
.L17:
	ldr	r3, .L18+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L19:
	.align	2
.L18:
	.word	ENOMEM
	.word	PTHREAD_MUTEX_DEFAULT
	.word	EINVAL
	.size	pthread_mutex_init, .-pthread_mutex_init
	.comm	PTHREAD_MUTEX_DEFAULT,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
