	.file	"122014964.c"
	.intel_syntax noprefix
	.text
	.globl	num
	.bss
	.align 8
	.type	num, @object
	.size	num, 8
num:
	.zero	8
	.section	.rodata
.LC0:
	.string	"result : %lld \n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 848
	mov	DWORD PTR -836[rbp], edi
	mov	QWORD PTR -848[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -820[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -820[rbp]
	and	eax, 1
	test	eax, eax
	je	.L3
	lea	rdx, -816[rbp]
	mov	eax, DWORD PTR -820[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, thread_inc[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	jmp	.L4
.L3:
	lea	rdx, -816[rbp]
	mov	eax, DWORD PTR -820[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, thread_des[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
.L4:
	add	DWORD PTR -820[rbp], 1
.L2:
	cmp	DWORD PTR -820[rbp], 99
	jle	.L5
	mov	DWORD PTR -820[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -820[rbp]
	cdqe
	mov	rax, QWORD PTR -816[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -820[rbp], 1
.L6:
	cmp	DWORD PTR -820[rbp], 99
	jle	.L7
	mov	rax, QWORD PTR num[rip]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	thread_inc
	.type	thread_inc, @function
thread_inc:
.LFB7:
	.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	DWORD PTR -4[rbp], 0
	jmp	.L11
.L12:
	mov	rax, QWORD PTR num[rip]
	add	rax, 1
	mov	QWORD PTR num[rip], rax
	add	DWORD PTR -4[rbp], 1
.L11:
	cmp	DWORD PTR -4[rbp], 499999
	jle	.L12
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	thread_inc, .-thread_inc
	.globl	thread_des
	.type	thread_des, @function
thread_des:
.LFB8:
	.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	DWORD PTR -4[rbp], 0
	jmp	.L15
.L16:
	mov	rax, QWORD PTR num[rip]
	sub	rax, 1
	mov	QWORD PTR num[rip], rax
	add	DWORD PTR -4[rbp], 1
.L15:
	cmp	DWORD PTR -4[rbp], 499999
	jle	.L16
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	thread_des, .-thread_des
	.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	"122014964.c"
	.text
	.global	num
	.bss
	.align	3
	.type	num, %object
	.size	num, 8
num:
	.space	8
	.section	.rodata
	.align	2
.LC0:
	.ascii	"result : %lld \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 = 416
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #416
	str	r0, [fp, #-416]
	str	r1, [fp, #-420]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-412]
	b	.L2
.L5:
	ldr	r3, [fp, #-412]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L3
	sub	r2, fp, #408
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #2
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L10+4
	mov	r1, #0
	bl	pthread_create
	b	.L4
.L3:
	sub	r2, fp, #408
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #2
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L10+8
	mov	r1, #0
	bl	pthread_create
.L4:
	ldr	r3, [fp, #-412]
	add	r3, r3, #1
	str	r3, [fp, #-412]
.L2:
	ldr	r3, [fp, #-412]
	cmp	r3, #99
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-412]
	b	.L6
.L7:
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-412]
	add	r3, r3, #1
	str	r3, [fp, #-412]
.L6:
	ldr	r3, [fp, #-412]
	cmp	r3, #99
	ble	.L7
	ldr	r3, .L10+12
	ldmia	r3, {r2-r3}
	ldr	r0, .L10+16
	bl	printf
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	thread_inc
	.word	thread_des
	.word	num
	.word	.LC0
	.size	main, .-main
	.align	2
	.global	thread_inc
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_inc, %function
thread_inc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, fp}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L13
.L14:
	ldr	r3, .L16
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	ldr	r3, .L16
	stm	r3, {r4-r5}
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L13:
	ldr	r3, [fp, #-16]
	ldr	r2, .L16+4
	cmp	r3, r2
	blt	.L14
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, r5, fp}
	bx	lr
.L17:
	.align	2
.L16:
	.word	num
	.word	500000
	.size	thread_inc, .-thread_inc
	.align	2
	.global	thread_des
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_des, %function
thread_des:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, fp}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L19
.L20:
	ldr	r3, .L22
	ldmia	r3, {r2-r3}
	subs	r4, r2, #1
	sbc	r5, r3, #0
	ldr	r3, .L22
	stm	r3, {r4-r5}
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L19:
	ldr	r3, [fp, #-16]
	ldr	r2, .L22+4
	cmp	r3, r2
	blt	.L20
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, r5, fp}
	bx	lr
.L23:
	.align	2
.L22:
	.word	num
	.word	500000
	.size	thread_des, .-thread_des
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
