	.file	"1236072.c"
	.intel_syntax noprefix
	.text
	.globl	global
	.bss
	.align 4
	.type	global, @object
	.size	global, 4
global:
	.zero	4
	.globl	gm
	.align 32
	.type	gm, @object
	.size	gm, 40
gm:
	.zero	40
	.text
	.globl	bad
	.type	bad, @function
bad:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR global[rip]
	add	eax, 1
	mov	DWORD PTR global[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	bad, .-bad
	.globl	good
	.type	good, @function
good:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, gm[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR global[rip]
	add	eax, 1
	mov	DWORD PTR global[rip], eax
	lea	rdi, gm[rip]
	call	pthread_mutex_unlock@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	good, .-good
	.globl	f
	.section	.data.rel.local,"aw"
	.align 8
	.type	f, @object
	.size	f, 8
f:
	.quad	good
	.globl	fm
	.bss
	.align 32
	.type	fm, @object
	.size	fm, 40
fm:
	.zero	40
	.text
	.globl	t_fun
	.type	t_fun, @function
t_fun:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, fm[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR f[rip]
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, fm[rip]
	call	pthread_mutex_unlock@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, 0
	call	rdx
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	t_fun, .-t_fun
	.section	.rodata
.LC0:
	.string	"global: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.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	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, fm[rip]
	call	pthread_mutex_lock@PLT
	lea	rax, bad[rip]
	mov	QWORD PTR f[rip], rax
	lea	rdi, fm[rip]
	call	pthread_mutex_unlock@PLT
	lea	rdi, gm[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR global[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, gm[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"1236072.c"
	.text
	.comm	global,4,4
	.global	gm
	.bss
	.align	2
	.type	gm, %object
	.size	gm, 24
gm:
	.space	24
	.text
	.align	2
	.global	bad
	.syntax unified
	.arm
	.fpu softvfp
	.type	bad, %function
bad:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L2
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L2
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	global
	.size	bad, .-bad
	.align	2
	.global	good
	.syntax unified
	.arm
	.fpu softvfp
	.type	good, %function
good:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L5
	bl	pthread_mutex_lock
	ldr	r3, .L5+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L5+4
	str	r3, [r2]
	ldr	r0, .L5
	bl	pthread_mutex_unlock
	nop
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	gm
	.word	global
	.size	good, .-good
	.global	f
	.data
	.align	2
	.type	f, %object
	.size	f, 4
f:
	.word	good
	.global	fm
	.bss
	.align	2
	.type	fm, %object
	.size	fm, 24
fm:
	.space	24
	.text
	.align	2
	.global	t_fun
	.syntax unified
	.arm
	.fpu softvfp
	.type	t_fun, %function
t_fun:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, .L9
	bl	pthread_mutex_lock
	ldr	r3, .L9+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r0, .L9
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	blx	r3
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	fm
	.word	f
	.size	t_fun, .-t_fun
	.section	.rodata
	.align	2
.LC0:
	.ascii	"global: %d\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L14+4
	mov	r1, #0
	bl	pthread_create
	ldr	r0, .L14+8
	bl	pthread_mutex_lock
	ldr	r3, .L14+12
	ldr	r2, .L14+16
	str	r2, [r3]
	ldr	r0, .L14+8
	bl	pthread_mutex_unlock
	ldr	r0, .L14+20
	bl	pthread_mutex_lock
	ldr	r3, .L14+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+28
	bl	printf
	ldr	r0, .L14+20
	bl	pthread_mutex_unlock
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	t_fun
	.word	fm
	.word	f
	.word	bad
	.word	gm
	.word	global
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
