	.file	"31387449.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"thread1"
.LC1:
	.string	"thread1 stacksize:%zu\n"
.LC2:
	.string	"Get Memory!!!"
	.text
	.globl	thread1
	.type	thread1, @function
thread1:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	sub	rsp, 112
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	QWORD PTR -136[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	call	pthread_self@PLT
	mov	rdx, rax
	lea	rax, -96[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	pthread_getattr_np@PLT
	lea	rdx, -120[rbp]
	lea	rax, -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_attr_getstacksize@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	pthread_attr_destroy@PLT
	mov	DWORD PTR -124[rbp], 3145728
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -112[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -104[rbp], rax
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	thread1, .-thread1
	.section	.rodata
.LC3:
	.string	"thread2"
.LC4:
	.string	"thread2 stacksize:%zu\n"
	.text
	.globl	thread2
	.type	thread2, @function
thread2:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	call	pthread_self@PLT
	mov	rdx, rax
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	pthread_getattr_np@PLT
	lea	rdx, -72[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_attr_getstacksize@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_destroy@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE7:
	.size	thread2, .-thread2
	.section	.rodata
.LC5:
	.string	"failed to create thread1"
.LC6:
	.string	"failed to create thread2"
	.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -72[rbp], 4194304
	mov	QWORD PTR -88[rbp], 0
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_attr_setstacksize@PLT
	lea	rsi, -64[rbp]
	lea	rax, -88[rbp]
	mov	ecx, 0
	lea	rdx, thread1[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L9
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L9:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_destroy@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	QWORD PTR -80[rbp], 0
	lea	rax, -80[rbp]
	mov	ecx, 0
	lea	rdx, thread2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L10
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"31387449.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"thread1\000"
	.align	2
.LC1:
	.ascii	"thread1 stacksize:%zu\012\000"
	.align	2
.LC2:
	.ascii	"Get Memory!!!\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	thread1
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread1, %function
thread1:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L3+4
	bl	puts
	bl	pthread_self
	mov	r2, r0
	sub	r3, fp, #44
	mov	r1, r3
	mov	r0, r2
	bl	pthread_getattr_np
	sub	r2, fp, #60
	sub	r3, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	pthread_attr_getstacksize
	ldr	r3, [fp, #-60]
	mov	r1, r3
	ldr	r0, .L3+8
	bl	printf
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_destroy
	mov	r3, #3145728
	str	r3, [fp, #-56]
	ldr	ip, [fp, #-56]
	sub	r3, ip, #1
	str	r3, [fp, #-52]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	memset
	ldr	r0, .L3+12
	bl	puts
	mov	r0, #1
	bl	sleep
	mov	r0, #0
	bl	pthread_exit
.L4:
	.align	2
.L3:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	thread1, .-thread1
	.section	.rodata
	.align	2
.LC4:
	.ascii	"thread2\000"
	.align	2
.LC5:
	.ascii	"thread2 stacksize:%zu\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	thread2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread2, %function
thread2:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L7+4
	bl	puts
	bl	pthread_self
	mov	r2, r0
	sub	r3, fp, #44
	mov	r1, r3
	mov	r0, r2
	bl	pthread_getattr_np
	sub	r2, fp, #48
	sub	r3, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	pthread_attr_getstacksize
	ldr	r3, [fp, #-48]
	mov	r1, r3
	ldr	r0, .L7+8
	bl	printf
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_destroy
	mov	r0, #1
	bl	sleep
	mov	r0, #0
	bl	pthread_exit
.L8:
	.align	2
.L7:
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.size	thread2, .-thread2
	.section	.rodata
	.align	2
.LC7:
	.ascii	"failed to create thread1\000"
	.align	2
.LC8:
	.ascii	"failed to create thread2\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #4194304
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-56]
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_init
	sub	r3, fp, #44
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	pthread_attr_setstacksize
	sub	r1, fp, #44
	sub	r0, fp, #56
	mov	r3, #0
	ldr	r2, .L14+4
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L14+8
	bl	puts
	mvn	r0, #0
	bl	exit
.L10:
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_destroy
	mov	r0, #1
	bl	sleep
	mov	r3, #0
	str	r3, [fp, #-52]
	sub	r0, fp, #52
	mov	r3, #0
	ldr	r2, .L14+12
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L14+16
	bl	puts
	mvn	r0, #0
	bl	exit
.L11:
	ldr	r3, [fp, #-56]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-52]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	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	.LC9
	.word	thread1
	.word	.LC7
	.word	thread2
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
