	.file	"299247.c"
	.intel_syntax noprefix
	.text
	.globl	lock
	.bss
	.align 32
	.type	lock, @object
	.size	lock, 40
lock:
	.zero	40
	.globl	deposito
	.data
	.align 4
	.type	deposito, @object
	.size	deposito, 4
deposito:
	.long	100
	.section	.rodata
	.align 8
.LC0:
	.string	"Hello World! It's me, thread #%ld!\n"
.LC1:
	.string	"Another print"
	.text
	.globl	PrintHello
	.type	PrintHello, @function
PrintHello:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR deposito[rip]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 100
	mov	DWORD PTR deposito[rip], eax
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	PrintHello, .-PrintHello
	.section	.rodata
.LC2:
	.string	"In main: creating thread %ld\n"
	.align 8
.LC3:
	.string	"ERROR; return code from pthread_create() is %d\n"
	.align 8
.LC4:
	.string	"ERROR; return code from pthread_join() is %d\n"
.LC5:
	.string	"mi dinero es %d \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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -56[rbp], 0
	jmp	.L3
.L5:
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	lea	rcx, -48[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	sal	rdx, 3
	lea	rdi, [rcx+rdx]
	mov	rcx, rax
	lea	rdx, PrintHello[rip]
	mov	esi, 0
	call	pthread_create@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	je	.L4
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L4:
	add	QWORD PTR -56[rbp], 1
.L3:
	cmp	QWORD PTR -56[rbp], 4
	jle	.L5
	mov	QWORD PTR -56[rbp], 0
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	je	.L7
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L7:
	add	QWORD PTR -56[rbp], 1
.L6:
	cmp	QWORD PTR -56[rbp], 4
	jle	.L8
	mov	eax, DWORD PTR deposito[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	pthread_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	"299247.c"
	.text
	.comm	lock,24,4
	.global	deposito
	.data
	.align	2
	.type	deposito, %object
	.size	deposito, 4
deposito:
	.word	100
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Hello World! It's me, thread #%ld!\012\000"
	.align	2
.LC1:
	.ascii	"Another print\000"
	.text
	.align	2
	.global	PrintHello
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintHello, %function
PrintHello:
	@ 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, .L2
	bl	pthread_mutex_lock
	ldr	r3, .L2+4
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L2+8
	bl	printf
	ldr	r0, .L2+12
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #100
	ldr	r2, .L2+4
	str	r3, [r2]
	ldr	r0, .L2
	bl	pthread_mutex_unlock
	mov	r0, #0
	bl	pthread_exit
.L3:
	.align	2
.L2:
	.word	lock
	.word	deposito
	.word	.LC0
	.word	.LC1
	.size	PrintHello, .-PrintHello
	.section	.rodata
	.align	2
.LC2:
	.ascii	"In main: creating thread %ld\012\000"
	.align	2
.LC3:
	.ascii	"ERROR; return code from pthread_create() is %d\012\000"
	.align	2
.LC4:
	.ascii	"ERROR; return code from pthread_join() is %d\012\000"
	.align	2
.LC5:
	.ascii	"mi dinero es %d \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 = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L5
.L7:
	ldr	r1, [fp, #-36]
	ldr	r0, .L12+4
	bl	printf
	sub	r2, fp, #28
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, [fp, #-36]
	ldr	r2, .L12+8
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L6
	ldr	r1, [fp, #-32]
	ldr	r0, .L12+12
	bl	printf
	mvn	r0, #0
	bl	exit
.L6:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L5:
	ldr	r3, [fp, #-36]
	cmp	r3, #4
	ble	.L7
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L8
.L10:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-24]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L9
	ldr	r1, [fp, #-32]
	ldr	r0, .L12+16
	bl	printf
	mvn	r0, #0
	bl	exit
.L9:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L8:
	ldr	r3, [fp, #-36]
	cmp	r3, #4
	ble	.L10
	ldr	r3, .L12+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+24
	bl	printf
	mov	r0, #0
	bl	pthread_exit
.L13:
	.align	2
.L12:
	.word	.LC6
	.word	.LC2
	.word	PrintHello
	.word	.LC3
	.word	.LC4
	.word	deposito
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
