	.file	"892535.c"
	.intel_syntax noprefix
	.text
	.globl	mtx_init
	.type	mtx_init, @function
mtx_init:
.LFB0:
	.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	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L2
	cmp	DWORD PTR -28[rbp], 2
	jne	.L3
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	test	eax, eax
	jne	.L4
	mov	eax, 0
	jmp	.L5
.L4:
	mov	eax, 2
	jmp	.L5
.L3:
	cmp	DWORD PTR -28[rbp], 1
	je	.L6
	cmp	DWORD PTR -28[rbp], 3
	jne	.L7
.L6:
	mov	DWORD PTR -16[rbp], 2
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	pthread_mutexattr_init@PLT
	test	eax, eax
	jne	.L13
	lea	rax, -12[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_mutexattr_settype@PLT
	test	eax, eax
	jne	.L14
	lea	rdx, -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	test	eax, eax
	jne	.L15
	mov	DWORD PTR -16[rbp], 0
	jmp	.L11
.L14:
	nop
	jmp	.L11
.L15:
	nop
.L11:
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	pthread_mutexattr_destroy@PLT
	jmp	.L9
.L13:
	nop
.L9:
	mov	eax, DWORD PTR -16[rbp]
	jmp	.L5
.L7:
	mov	eax, 2
.L5:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	mtx_init, .-mtx_init
	.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	"892535.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mtx_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	mtx_init, %function
mtx_init:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	bne	.L3
.L2:
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	pthread_mutex_init
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	mov	r3, #0
	b	.L5
.L4:
	mov	r3, #2
	b	.L5
.L3:
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	beq	.L6
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	bne	.L7
.L6:
	mov	r3, #2
	str	r3, [fp, #-16]
	sub	r3, fp, #12
	mov	r0, r3
	bl	pthread_mutexattr_init
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	sub	r3, fp, #12
	mov	r1, #1
	mov	r0, r3
	bl	pthread_mutexattr_settype
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	pthread_mutex_init
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L11
.L14:
	nop
	b	.L11
.L15:
	nop
.L11:
	sub	r3, fp, #12
	mov	r0, r3
	bl	pthread_mutexattr_destroy
	b	.L9
.L13:
	nop
.L9:
	ldr	r3, [fp, #-16]
	b	.L5
.L7:
	mov	r3, #2
.L5:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.size	mtx_init, .-mtx_init
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
