	.file	"162643639.c"
	.intel_syntax noprefix
	.text
	.globl	attr
	.bss
	.align 32
	.type	attr, @object
	.size	attr, 56
attr:
	.zero	56
	.section	.rodata
	.align 8
.LC0:
	.string	"thread %li: stack size %li bytes\n"
	.text
	.globl	dowork
	.type	dowork, @function
dowork:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, attr[rip]
	call	pthread_attr_getstacksize@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	dowork, .-dowork
	.section	.rodata
.LC1:
	.string	"default stack size = %li\n"
	.align 8
.LC2:
	.string	"amount of stack needed per thread = %li\n"
	.align 8
.LC3:
	.string	"creating thread with the stack size = %li bytes\n"
	.align 8
.LC4:
	.string	"ERROR; return code from pthread_create() is %lud\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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, attr[rip]
	call	pthread_attr_init@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, attr[rip]
	call	pthread_attr_getstacksize@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -32[rbp], 9000000
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, attr[rip]
	call	pthread_attr_setdetachstate@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -40[rbp]
	mov	rcx, rdx
	lea	rdx, dowork[rip]
	lea	rsi, attr[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	cdqe
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L4:
	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	"162643639.c"
	.text
	.comm	attr,36,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"thread %li: stack size %li bytes\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dowork
	.syntax unified
	.arm
	.fpu softvfp
	.type	dowork, %function
dowork:
	@ 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, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L3+4
	bl	pthread_attr_getstacksize
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L3+8
	bl	printf
	mov	r0, #0
	bl	pthread_exit
.L4:
	.align	2
.L3:
	.word	.LC1
	.word	attr
	.word	.LC0
	.size	dowork, .-dowork
	.section	.rodata
	.align	2
.LC2:
	.ascii	"default stack size = %li\012\000"
	.align	2
.LC3:
	.ascii	"amount of stack needed per thread = %li\012\000"
	.align	2
.LC4:
	.ascii	"creating thread with the stack size = %li bytes\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"ERROR; return code from pthread_create() is %lud\012"
	.ascii	"\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
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L8+4
	bl	pthread_attr_init
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L8+4
	bl	pthread_attr_getstacksize
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L8+8
	bl	printf
	ldr	r3, .L8+12
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L8+16
	bl	printf
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L8+4
	bl	pthread_attr_setdetachstate
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L8+20
	bl	printf
	ldr	r3, [fp, #-16]
	sub	r0, fp, #24
	ldr	r2, .L8+24
	ldr	r1, .L8+4
	bl	pthread_create
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L6
	ldr	r1, [fp, #-12]
	ldr	r0, .L8+28
	bl	printf
	mvn	r0, #0
	bl	exit
.L6:
	mov	r0, #0
	bl	pthread_exit
.L9:
	.align	2
.L8:
	.word	.LC6
	.word	attr
	.word	.LC2
	.word	9000000
	.word	.LC3
	.word	.LC4
	.word	dowork
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
