	.file	"240608.c"
	.intel_syntax noprefix
	.text
	.globl	x
	.bss
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.text
	.globl	TSL
	.type	TSL, @function
TSL:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 1
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	TSL, .-TSL
	.section	.rodata
.LC0:
	.string	"Thread %ld: oi!"
	.text
	.globl	threadBody
	.type	threadBody, @function
threadBody:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	TSL
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR x[rip]
	add	eax, 1
	mov	DWORD PTR x[rip], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -28[rbp], 1
.L4:
	cmp	DWORD PTR -28[rbp], 9
	jle	.L5
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE7:
	.size	threadBody, .-threadBody
	.section	.rodata
	.align 8
.LC1:
	.string	"\nInvoluntarias: %5ld \nVoluntarias: %5ld"
.LC2:
	.string	"\n\nValor final de x: %02d\n\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, 304
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -273[rbp], 0
	mov	QWORD PTR -272[rbp], 0
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -272[rbp]
	sal	rax, 4
	add	rax, rbp
	lea	rdx, -80[rax]
	mov	rax, QWORD PTR -272[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -272[rbp]
	sal	rax, 4
	add	rax, rbp
	lea	rdx, -72[rax]
	lea	rax, -273[rbp]
	mov	QWORD PTR [rdx], rax
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -272[rbp]
	sal	rax, 3
	lea	rdi, [rdx+rax]
	lea	rax, -80[rbp]
	mov	rcx, rax
	lea	rdx, threadBody[rip]
	mov	esi, 0
	call	pthread_create@PLT
	cdqe
	mov	QWORD PTR -264[rbp], rax
	add	QWORD PTR -272[rbp], 1
.L9:
	cmp	QWORD PTR -272[rbp], 3
	jle	.L10
	mov	QWORD PTR -272[rbp], 0
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -272[rbp]
	mov	rax, QWORD PTR -112[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	cdqe
	mov	QWORD PTR -264[rbp], rax
	add	QWORD PTR -272[rbp], 1
.L11:
	cmp	QWORD PTR -272[rbp], 3
	jle	.L12
	lea	rax, -256[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	getrusage@PLT
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR x[rip]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.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	"240608.c"
	.text
	.global	x
	.bss
	.align	2
	.type	x, %object
	.size	x, 4
x:
	.space	4
	.text
	.align	2
	.global	TSL
	.syntax unified
	.arm
	.fpu softvfp
	.type	TSL, %function
TSL:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	TSL, .-TSL
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Thread %ld: oi!\000"
	.text
	.align	2
	.global	threadBody
	.syntax unified
	.arm
	.fpu softvfp
	.type	threadBody, %function
threadBody:
	@ 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]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L4
.L6:
	ldr	r1, [fp, #-8]
	ldr	r0, .L8
	bl	printf
.L5:
	ldr	r0, [fp, #-12]
	bl	TSL
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L8+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L8+4
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L4:
	ldr	r3, [fp, #-20]
	cmp	r3, #9
	ble	.L5
	mov	r0, #0
	bl	pthread_exit
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	x
	.size	threadBody, .-threadBody
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012Involuntarias: %5ld \012Voluntarias: %5ld\000"
	.align	2
.LC2:
	.ascii	"\012\012Valor final de x: %02d\012\012\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 = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-137]
	mov	r3, #0
	str	r3, [fp, #-136]
	b	.L11
.L12:
	ldr	r3, [fp, #-136]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-136]
	str	r2, [r3, #-36]
	ldr	r3, [fp, #-136]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r2, fp, #137
	str	r2, [r3, #-32]
	sub	r2, fp, #56
	ldr	r3, [fp, #-136]
	lsl	r3, r3, #2
	add	r0, r2, r3
	sub	r3, fp, #40
	ldr	r2, .L16+4
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
.L11:
	ldr	r3, [fp, #-136]
	cmp	r3, #3
	ble	.L12
	mov	r3, #0
	str	r3, [fp, #-136]
	b	.L13
.L14:
	ldr	r3, [fp, #-136]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-52]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
.L13:
	ldr	r3, [fp, #-136]
	cmp	r3, #3
	ble	.L14
	sub	r3, fp, #128
	mov	r1, r3
	mov	r0, #0
	bl	getrusage
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-64]
	mov	r1, r3
	ldr	r0, .L16+8
	bl	printf
	ldr	r3, .L16+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+16
	bl	printf
	mov	r0, #0
	bl	pthread_exit
.L17:
	.align	2
.L16:
	.word	.LC3
	.word	threadBody
	.word	.LC1
	.word	x
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
