	.file	"267499.c"
	.intel_syntax noprefix
	.text
	.globl	mutex
	.bss
	.align 8
	.type	mutex, @object
	.size	mutex, 8
mutex:
	.zero	8
	.globl	mutexAttribute
	.align 4
	.type	mutexAttribute, @object
	.size	mutexAttribute, 4
mutexAttribute:
	.zero	4
	.globl	ptr
	.align 8
	.type	ptr, @object
	.size	ptr, 8
ptr:
	.zero	8
	.section	.rodata
.LC0:
	.string	"petti_klisch"
	.text
	.globl	exit_handler
	.type	exit_handler, @function
exit_handler:
.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	DWORD PTR -4[rbp], edi
	lea	rdi, .LC0[rip]
	call	shm_unlink@PLT
	test	eax, eax
	je	.L2
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR ptr[rip]
	mov	esi, 4096
	mov	rdi, rax
	call	munmap@PLT
	test	eax, eax
	je	.L3
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	exit_handler, .-exit_handler
	.section	.rodata
.LC1:
	.string	"%d, pid : %d, "
.LC2:
	.string	"birth : %s, "
.LC3:
	.string	"elapsed : %d s %.4f ms, %s\n"
	.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, 208
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -196[rbp], 1
	jle	.L5
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rax, -160[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, exit_handler[rip]
	mov	QWORD PTR -160[rbp], rax
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 15
	call	sigaction@PLT
	test	eax, eax
	je	.L6
	mov	edi, 1
	call	exit@PLT
.L6:
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	test	eax, eax
	je	.L7
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	edx, 432
	mov	esi, 66
	lea	rdi, .LC0[rip]
	call	shm_open@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], -1
	jne	.L8
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, 4096
	mov	edi, eax
	call	ftruncate@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], -1
	jne	.L9
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR -176[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	esi, 4096
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR ptr[rip], rax
	mov	rax, QWORD PTR ptr[rip]
	test	rax, rax
	jne	.L10
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR ptr[rip]
	mov	QWORD PTR mutex[rip], rax
	lea	rdi, mutexAttribute[rip]
	call	pthread_mutexattr_init@PLT
	mov	esi, 1
	lea	rdi, mutexAttribute[rip]
	call	pthread_mutexattr_setpshared@PLT
	mov	rax, QWORD PTR mutex[rip]
	lea	rsi, mutexAttribute[rip]
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	mov	DWORD PTR -184[rbp], 1
.L14:
	mov	edi, 1
	call	sleep@PLT
	mov	DWORD PTR -180[rbp], 1
	jmp	.L11
.L13:
	mov	rdx, QWORD PTR ptr[rip]
	mov	eax, DWORD PTR -180[rbp]
	sal	eax, 6
	cdqe
	add	rax, rdx
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L12
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -184[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 8
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -168[rbp]
	lea	rdx, 33[rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR 44[rax]
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
.L12:
	add	DWORD PTR -180[rbp], 1
.L11:
	cmp	DWORD PTR -180[rbp], 63
	jle	.L13
	add	DWORD PTR -184[rbp], 1
	jmp	.L14
	.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	"267499.c"
	.text
	.comm	mutex,4,4
	.comm	mutexAttribute,4,4
	.comm	ptr,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"petti_klisch\000"
	.text
	.align	2
	.global	exit_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	exit_handler, %function
exit_handler:
	@ 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, .L4
	bl	shm_unlink
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r1, #4096
	mov	r0, r3
	bl	munmap
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	mov	r0, #1
	bl	exit
.L3:
	mov	r0, #0
	bl	exit
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	ptr
	.size	exit_handler, .-exit_handler
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d, pid : %d, \000"
	.align	2
.LC2:
	.ascii	"birth : %s, \000"
	.align	2
.LC3:
	.ascii	"elapsed : %d s %.4f ms, %s\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #184
	str	r0, [fp, #-176]
	str	r1, [fp, #-180]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-176]
	cmp	r3, #1
	ble	.L7
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L18+4
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #15
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	mov	r0, #1
	bl	exit
.L8:
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	mov	r0, #1
	bl	exit
.L9:
	mov	r2, #432
	mov	r1, #66
	ldr	r0, .L18+8
	bl	shm_open
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmn	r3, #1
	bne	.L10
	mov	r0, #1
	bl	exit
.L10:
	mov	r1, #4096
	ldr	r0, [fp, #-160]
	bl	ftruncate
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmn	r3, #1
	bne	.L11
	mov	r0, #1
	bl	exit
.L11:
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-160]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r1, #4096
	mov	r0, #0
	bl	mmap
	mov	r3, r0
	ldr	r2, .L18+12
	str	r3, [r2]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, .L18+12
	ldr	r3, [r3]
	ldr	r2, .L18+16
	str	r3, [r2]
	ldr	r0, .L18+20
	bl	pthread_mutexattr_init
	mov	r1, #1
	ldr	r0, .L18+20
	bl	pthread_mutexattr_setpshared
	ldr	r3, .L18+16
	ldr	r3, [r3]
	ldr	r1, .L18+20
	mov	r0, r3
	bl	pthread_mutex_init
	mov	r3, #1
	str	r3, [fp, #-168]
.L16:
	mov	r0, #1
	bl	sleep
	mov	r3, #1
	str	r3, [fp, #-164]
	b	.L13
.L15:
	ldr	r3, .L18+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-164]
	lsl	r2, r2, #6
	add	r3, r3, r2
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-152]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-152]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r1, [fp, #-168]
	ldr	r0, .L18+24
	bl	printf
	ldr	r3, [fp, #-152]
	add	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L18+28
	bl	printf
	ldr	r3, [fp, #-152]
	ldr	r0, [r3, #44]
	ldr	r3, [fp, #-152]
	add	r3, r3, #48
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-152]
	add	r1, r1, #33
	str	r1, [sp]
	mov	r1, r0
	ldr	r0, .L18+32
	bl	printf
.L14:
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
.L13:
	ldr	r3, [fp, #-164]
	cmp	r3, #63
	ble	.L15
	ldr	r3, [fp, #-168]
	add	r3, r3, #1
	str	r3, [fp, #-168]
	b	.L16
.L19:
	.align	2
.L18:
	.word	.LC4
	.word	exit_handler
	.word	.LC0
	.word	ptr
	.word	mutex
	.word	mutexAttribute
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
