	.file	"494959.c"
	.intel_syntax noprefix
	.text
	.globl	glob
	.bss
	.align 4
	.type	glob, @object
	.size	glob, 4
glob:
	.zero	4
	.globl	m
	.align 32
	.type	m, @object
	.size	m, 40
m:
	.zero	40
	.globl	n
	.align 32
	.type	n, @object
	.size	n, 40
n:
	.zero	40
	.text
	.globl	t_fun
	.type	t_fun, @function
t_fun:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, n[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR glob[rip]
	add	eax, 1
	mov	DWORD PTR glob[rip], eax
	lea	rdi, n[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	t_fun, .-t_fun
	.section	.rodata
.LC0:
	.string	"Do the work? "
.LC1:
	.string	"Now we do the work.."
.LC2:
	.string	"Work is completed..."
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, t_fun[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -20[rbp], 0
	je	.L4
	lea	rdi, m[rip]
	call	pthread_mutex_lock@PLT
.L4:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	cmp	DWORD PTR -20[rbp], 0
	je	.L5
	mov	eax, DWORD PTR glob[rip]
	add	eax, 1
	mov	DWORD PTR glob[rip], eax
.L5:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -20[rbp], 0
	je	.L6
	lea	rdi, m[rip]
	call	pthread_mutex_unlock@PLT
.L6:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"494959.c"
	.text
	.comm	glob,4,4
	.global	m
	.bss
	.align	2
	.type	m, %object
	.size	m, 24
m:
	.space	24
	.global	n
	.align	2
	.type	n, %object
	.size	n, 24
n:
	.space	24
	.text
	.align	2
	.global	t_fun
	.syntax unified
	.arm
	.fpu softvfp
	.type	t_fun, %function
t_fun:
	@ 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, .L3
	bl	pthread_mutex_lock
	ldr	r3, .L3+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L3+4
	str	r3, [r2]
	ldr	r0, .L3
	bl	pthread_mutex_unlock
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	n
	.word	glob
	.size	t_fun, .-t_fun
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Do the work? \000"
	.align	2
.LC1:
	.ascii	"Now we do the work..\000"
	.align	2
.LC2:
	.ascii	"Work is completed...\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L11+4
	mov	r1, #0
	bl	pthread_create
	ldr	r0, .L11+8
	bl	printf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L6
	ldr	r0, .L11+12
	bl	pthread_mutex_lock
.L6:
	ldr	r0, .L11+16
	bl	puts
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L11+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11+20
	str	r3, [r2]
.L7:
	ldr	r0, .L11+24
	bl	printf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L11+12
	bl	pthread_mutex_unlock
.L8:
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	t_fun
	.word	.LC0
	.word	m
	.word	.LC1
	.word	glob
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
