	.file	"894944.c"
	.intel_syntax noprefix
	.text
	.globl	addr
	.bss
	.align 8
	.type	addr, @object
	.size	addr, 8
addr:
	.zero	8
	.globl	addr2
	.data
	.align 8
	.type	addr2, @object
	.size	addr2, 8
addr2:
	.quad	234
	.globl	mutex
	.bss
	.align 32
	.type	mutex, @object
	.size	mutex, 32
mutex:
	.zero	32
	.section	.rodata
.LC0:
	.string	"malloc: %ld\n"
	.text
	.globl	pfunc
	.type	pfunc, @function
pfunc:
.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
	call	pthread_self@PLT
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR addr[rip], rax
	lea	rdi, mutex[rip]
	call	sem_post@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	pfunc, .-pfunc
	.section	.rodata
.LC1:
	.string	"HHHHHHHHHHHHHH"
.LC2:
	.string	"free: %ld\n"
	.align 8
.LC3:
	.string	"intArray: %d intArray[0]: %d intArray[1]: %d intArray[100]: %d intArray[1000]: %d\n\n"
	.text
	.globl	pfunc2
	.type	pfunc2, @function
pfunc2:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, mutex[rip]
	call	sem_wait@PLT
	mov	rax, QWORD PTR addr[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 5
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	DWORD PTR [rax], 8
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 400
	mov	DWORD PTR [rax], 100
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4000
	mov	DWORD PTR [rax], 1000
	call	pthread_self@PLT
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4000
	mov	edi, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 400
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -8[rbp]
	mov	r10d, ecx
	mov	r9d, edi
	mov	r8d, esi
	mov	ecx, edx
	mov	edx, eax
	mov	esi, r10d
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pfunc2, .-pfunc2
	.section	.rodata
.LC4:
	.string	"main: %ld\n"
.LC5:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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
	call	pthread_self@PLT
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 0
	mov	esi, 0
	lea	rdi, mutex[rip]
	call	sem_init@PLT
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, pfunc[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, pfunc2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	esi, 8
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"894944.c"
	.text
	.comm	addr,4,4
	.global	addr2
	.data
	.align	2
	.type	addr2, %object
	.size	addr2, 4
addr2:
	.word	234
	.comm	mutex,16,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"malloc: %ld\012\000"
	.text
	.align	2
	.global	pfunc
	.syntax unified
	.arm
	.fpu softvfp
	.type	pfunc, %function
pfunc:
	@ 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]
	bl	pthread_self
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L3
	bl	printf
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L3+4
	str	r2, [r3]
	ldr	r0, .L3+8
	bl	sem_post
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	addr
	.word	mutex
	.size	pfunc, .-pfunc
	.section	.rodata
	.align	2
.LC1:
	.ascii	"HHHHHHHHHHHHHH\000"
	.align	2
.LC2:
	.ascii	"free: %ld\012\000"
	.align	2
.LC3:
	.ascii	"intArray: %d intArray[0]: %d intArray[1]: %d intArr"
	.ascii	"ay[100]: %d intArray[1000]: %d\012\012\000"
	.text
	.align	2
	.global	pfunc2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pfunc2, %function
pfunc2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r0, .L6
	bl	puts
	ldr	r0, .L6+4
	bl	sem_wait
	ldr	r3, .L6+8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #5
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r2, #8
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #400
	mov	r2, #100
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4000
	mov	r2, #1000
	str	r2, [r3]
	bl	pthread_self
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L6+12
	bl	printf
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	ip, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #400
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	add	r2, r2, #4000
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L6+16
	bl	printf
	ldr	r0, [fp, #-8]
	bl	free
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	mutex
	.word	addr
	.word	.LC2
	.word	.LC3
	.size	pfunc2, .-pfunc2
	.section	.rodata
	.align	2
.LC4:
	.ascii	"main: %ld\012\000"
	.align	2
.LC5:
	.ascii	"%ld\012\000"
	.align	2
.LC6:
	.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, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	pthread_self
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+4
	bl	printf
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L11+8
	bl	sem_init
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L11+12
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L11+16
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r1, #4
	ldr	r0, .L11+20
	bl	printf
	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	.LC6
	.word	.LC4
	.word	mutex
	.word	pfunc
	.word	pfunc2
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
