	.file	"193893450.c"
	.intel_syntax noprefix
	.text
	.local	mtx
	.comm	mtx,40,32
	.section	.rodata
	.align 8
.LC0:
	.string	"[original owner] Setting lock..."
	.align 8
.LC1:
	.string	"[original owner] Locked. Now exiting without unlocking."
	.text
	.type	original_owner_thread, @function
original_owner_thread:
.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
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, mtx[rip]
	call	pthread_mutex_lock@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	original_owner_thread, .-original_owner_thread
	.section	.rodata
	.align 8
.LC2:
	.string	"[main thread] Attempting to lock the robust mutex."
	.align 8
.LC3:
	.string	"[main thread] pthread_mutex_lock() returned EOWNERDEAD"
	.align 8
.LC4:
	.string	"[main thread] Now make the mutex consistent"
.LC5:
	.string	"pthread_mutex_consistent"
	.align 8
.LC6:
	.string	"[main thread] Mutex is now consistent; unlocking"
.LC7:
	.string	"pthread_mutex_unlock"
	.align 8
.LC8:
	.string	"[main thread] pthread_mutex_lock() unexpectedly succeeded"
	.align 8
.LC9:
	.string	"[main thread] pthread_mutex_lock() unexpectedly failed"
.LC10:
	.string	"pthread_mutex_lock"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	pthread_mutexattr_init@PLT
	lea	rax, -12[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_mutexattr_setrobust@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, mtx[rip]
	call	pthread_mutex_init@PLT
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, original_owner_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	edi, 2
	call	sleep@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, mtx[rip]
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 130
	jne	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, mtx[rip]
	call	pthread_mutex_consistent@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L4
	call	__errno_location@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, mtx[rip]
	call	pthread_mutex_unlock@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L5
	call	__errno_location@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	edi, 0
	call	exit@PLT
.L3:
	cmp	DWORD PTR -28[rbp], 0
	jne	.L6
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	call	__errno_location@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	main, .-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	"193893450.c"
	.text
	.local	mtx
	.comm	mtx,24,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[original owner] Setting lock...\000"
	.align	2
.LC1:
	.ascii	"[original owner] Locked. Now exiting without unlock"
	.ascii	"ing.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	original_owner_thread, %function
original_owner_thread:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L2
	bl	puts
	ldr	r0, .L2+4
	bl	pthread_mutex_lock
	ldr	r0, .L2+8
	bl	puts
	mov	r0, #0
	bl	pthread_exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	mtx
	.word	.LC1
	.size	original_owner_thread, .-original_owner_thread
	.section	.rodata
	.align	2
.LC2:
	.ascii	"[main thread] Attempting to lock the robust mutex.\000"
	.align	2
.LC3:
	.ascii	"[main thread] pthread_mutex_lock() returned EOWNERD"
	.ascii	"EAD\000"
	.align	2
.LC4:
	.ascii	"[main thread] Now make the mutex consistent\000"
	.align	2
.LC5:
	.ascii	"pthread_mutex_consistent\000"
	.align	2
.LC6:
	.ascii	"[main thread] Mutex is now consistent; unlocking\000"
	.align	2
.LC7:
	.ascii	"pthread_mutex_unlock\000"
	.align	2
.LC8:
	.ascii	"[main thread] pthread_mutex_lock() unexpectedly suc"
	.ascii	"ceeded\000"
	.align	2
.LC9:
	.ascii	"[main thread] pthread_mutex_lock() unexpectedly fai"
	.ascii	"led\000"
	.align	2
.LC10:
	.ascii	"pthread_mutex_lock\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r0, r3
	bl	pthread_mutexattr_init
	sub	r3, fp, #12
	mov	r1, #1
	mov	r0, r3
	bl	pthread_mutexattr_setrobust
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L10+4
	bl	pthread_mutex_init
	sub	r0, fp, #20
	mov	r3, #0
	ldr	r2, .L10+8
	mov	r1, #0
	bl	pthread_create
	mov	r0, #2
	bl	sleep
	ldr	r0, .L10+12
	bl	puts
	ldr	r0, .L10+4
	bl	pthread_mutex_lock
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #130
	bne	.L5
	ldr	r0, .L10+16
	bl	puts
	ldr	r0, .L10+20
	bl	puts
	ldr	r0, .L10+4
	bl	pthread_mutex_consistent
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L6
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	ldr	r0, .L10+24
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	ldr	r0, .L10+28
	bl	puts
	ldr	r0, .L10+4
	bl	pthread_mutex_unlock
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L7
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	ldr	r0, .L10+32
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	mov	r0, #0
	bl	exit
.L5:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L10+36
	bl	puts
	mov	r0, #1
	bl	exit
.L8:
	ldr	r0, .L10+40
	bl	puts
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	ldr	r0, .L10+44
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	.align	2
.L10:
	.word	.LC11
	.word	mtx
	.word	original_owner_thread
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
