	.file	"1071812.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"pthread_mutexattr_init"
.LC1:
	.string	"pthread_mutexattr_settype"
.LC2:
	.string	"pthread_mutex_init"
.LC3:
	.string	"pthread_mutexattr_destroy"
.LC4:
	.string	"the_stack_data/1071812.c"
.LC5:
	.string	"err == 0"
.LC6:
	.string	"err == EDEADLK"
.LC7:
	.string	"err == EPERM"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -52[rbp]
	mov	rdi, rax
	call	pthread_mutexattr_init@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L2
	mov	DWORD PTR -120[rbp], 1
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR -116[rbp], eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -88[rbp], rax
	mov	rdx, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR -116[rbp]
	mov	eax, DWORD PTR -120[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L2:
	lea	rax, -52[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	pthread_mutexattr_settype@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L3
	mov	DWORD PTR -112[rbp], 1
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR -108[rbp], eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -80[rbp], rax
	mov	rdx, QWORD PTR -80[rbp]
	mov	ecx, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -112[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L3:
	lea	rdx, -52[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L4
	mov	DWORD PTR -104[rbp], 1
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR -100[rbp], eax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -72[rbp], rax
	mov	rdx, QWORD PTR -72[rbp]
	mov	ecx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L4:
	lea	rax, -52[rbp]
	mov	rdi, rax
	call	pthread_mutexattr_destroy@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L5
	mov	DWORD PTR -96[rbp], 1
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR -92[rbp], eax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -64[rbp], rax
	mov	rdx, QWORD PTR -64[rbp]
	mov	ecx, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L5:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 50
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L6:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 35
	je	.L7
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 53
	lea	rsi, .LC4[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L7:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 56
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L8:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 1
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 59
	lea	rsi, .LC4[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L9:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.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	"1071812.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"pthread_mutexattr_init\000"
	.align	2
.LC1:
	.ascii	"pthread_mutexattr_settype\000"
	.align	2
.LC2:
	.ascii	"pthread_mutex_init\000"
	.align	2
.LC3:
	.ascii	"pthread_mutexattr_destroy\000"
	.align	2
.LC4:
	.ascii	"the_stack_data/1071812.c\000"
	.align	2
.LC5:
	.ascii	"err == 0\000"
	.align	2
.LC6:
	.ascii	"err == EDEADLK\000"
	.align	2
.LC7:
	.ascii	"err == EPERM\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #36
	mov	r0, r3
	bl	pthread_mutexattr_init
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L2
	mov	r3, #1
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-80]
	ldr	r3, .L12+4
	str	r3, [fp, #-76]
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-80]
	ldr	r0, [fp, #-84]
	bl	error
	nop
.L2:
	sub	r3, fp, #36
	mov	r1, #2
	mov	r0, r3
	bl	pthread_mutexattr_settype
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L3
	mov	r3, #1
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-68]
	ldr	r3, .L12+8
	str	r3, [fp, #-64]
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-72]
	bl	error
	nop
.L3:
	sub	r2, fp, #36
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	pthread_mutex_init
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L4
	mov	r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-56]
	ldr	r3, .L12+12
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-60]
	bl	error
	nop
.L4:
	sub	r3, fp, #36
	mov	r0, r3
	bl	pthread_mutexattr_destroy
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L5
	mov	r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-44]
	ldr	r3, .L12+16
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	error
	nop
.L5:
	sub	r3, fp, #32
	mov	r0, r3
	bl	pthread_mutex_lock
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L12+20
	mov	r2, #50
	ldr	r1, .L12+24
	ldr	r0, .L12+28
	bl	__assert_fail
.L6:
	sub	r3, fp, #32
	mov	r0, r3
	bl	pthread_mutex_lock
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #35
	beq	.L7
	ldr	r3, .L12+20
	mov	r2, #53
	ldr	r1, .L12+24
	ldr	r0, .L12+32
	bl	__assert_fail
.L7:
	sub	r3, fp, #32
	mov	r0, r3
	bl	pthread_mutex_unlock
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L12+20
	mov	r2, #56
	ldr	r1, .L12+24
	ldr	r0, .L12+28
	bl	__assert_fail
.L8:
	sub	r3, fp, #32
	mov	r0, r3
	bl	pthread_mutex_unlock
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #1
	beq	.L9
	ldr	r3, .L12+20
	mov	r2, #59
	ldr	r1, .L12+24
	ldr	r0, .L12+36
	bl	__assert_fail
.L9:
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	__PRETTY_FUNCTION__.5090
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5090, %object
	.size	__PRETTY_FUNCTION__.5090, 5
__PRETTY_FUNCTION__.5090:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
