	.file	"1175358.c"
	.intel_syntax noprefix
	.text
	.local	global
	.comm	global,4,4
	.section	.rodata
.LC0:
	.string	"%p\t%p\t%p\t%p\n"
	.text
	.globl	print_addr
	.type	print_addr, @function
print_addr:
.LFB0:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rsi, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	print_addr, .-print_addr
	.globl	worker
	.type	worker, @function
worker:
.LFB1:
	.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
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, thread_static.1[rip]
	mov	rsi, rax
	lea	rdi, global[rip]
	call	print_addr
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE1:
	.size	worker, .-worker
	.section	.rodata
	.align 8
.LC1:
	.string	"global\t\tmain\t\tthread\t\tthread-static"
.LC2:
	.string	"WTF?"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	ecx, 0
	mov	edx, 0
	lea	rsi, main[rip]
	lea	rdi, global[rip]
	call	print_addr
	mov	DWORD PTR -44[rbp], 0
	jmp	.L5
.L8:
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rcx, main_static.0[rip]
	lea	rdx, worker[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L6
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L11
.L6:
	add	DWORD PTR -44[rbp], 1
.L5:
	cmp	DWORD PTR -44[rbp], 2
	jle	.L8
	mov	DWORD PTR -40[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	rax, QWORD PTR -32[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	pthread_jion@PLT
	add	DWORD PTR -40[rbp], 1
.L9:
	cmp	DWORD PTR -40[rbp], 2
	jle	.L10
	mov	eax, 0
.L11:
	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
.LFE2:
	.size	main, .-main
	.local	thread_static.1
	.comm	thread_static.1,4,4
	.local	main_static.0
	.comm	main_static.0,4,4
	.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	"1175358.c"
	.text
	.local	global
	.comm	global,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%p\011%p\011%p\011%p\012\000"
	.text
	.align	2
	.global	print_addr
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_addr, %function
print_addr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, .L2
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	print_addr, .-print_addr
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	worker
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker, %function
worker:
	@ 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	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r2, fp, #12
	ldr	r3, .L6+4
	ldr	r1, [fp, #-16]
	ldr	r0, .L6+8
	bl	print_addr
	mov	r0, #0
	bl	pthread_exit
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	thread_static.6192
	.word	global
	.size	worker, .-worker
	.section	.rodata
	.align	2
.LC2:
	.ascii	"global\011\011main\011\011thread\011\011thread-stat"
	.ascii	"ic\000"
	.align	2
.LC3:
	.ascii	"WTF?\000"
	.align	2
.LC4:
	.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, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L17+4
	bl	puts
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L17+8
	ldr	r0, .L17+12
	bl	print_addr
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L9
.L12:
	sub	r2, fp, #20
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, .L17+16
	ldr	r2, .L17+20
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L17+24
	bl	printf
	mvn	r3, #0
	b	.L15
.L10:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L9:
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	ble	.L12
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L13
.L14:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_jion
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L13:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	ble	.L14
	mov	r3, #0
.L15:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC4
	.word	.LC2
	.word	main
	.word	global
	.word	main_static.6197
	.word	worker
	.word	.LC3
	.size	main, .-main
	.local	thread_static.6192
	.comm	thread_static.6192,4,4
	.local	main_static.6197
	.comm	main_static.6197,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
