	.file	"742381.c"
	.intel_syntax noprefix
	.text
	.globl	orig
	.section	.rodata
	.align 32
	.type	orig, @object
	.size	orig, 1041
orig:
	.string	"buffer"
	.zero	1017
	.string	"in_the_coal_mine"
	.globl	temp
	.bss
	.align 32
	.type	temp, @object
	.size	temp, 1041
temp:
	.zero	1041
	.section	.rodata
.LC0:
	.string	"in_the_coal_mine"
	.text
	.globl	thread
	.type	thread, @function
thread:
.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, 1120
	mov	QWORD PTR -1112[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L5:
	mov	QWORD PTR -1080[rbp], 991
	mov	rdx, QWORD PTR -1080[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 48
	mov	rdi, rax
	call	memset@PLT
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1080[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rdx, temp[rip]
	lea	rax, orig[rip]
	mov	ecx, 130
	mov	rdi, rdx
	mov	rsi, rax
	rep movsq
	mov	rax, rsi
	mov	rdx, rdi
	movzx	ecx, BYTE PTR [rax]
	mov	BYTE PTR [rdx], cl
	lea	rcx, -1096[rbp]
	lea	rdx, -1088[rbp]
	lea	rsi, -1072[rbp]
	lea	rax, -1040[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 1024
	lea	rdx, temp[rip]
	mov	rdi, rax
	call	gethostbyname_r@PLT
	mov	DWORD PTR -1092[rbp], eax
	lea	rsi, .LC0[rip]
	lea	rdi, temp[rip+1024]
	call	strcmp@PLT
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 46
	call	putc@PLT
.L2:
	cmp	DWORD PTR -1092[rbp], 34
	jne	.L3
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	jmp	.L7
.L3:
	mov	edi, 1
	call	sleep@PLT
	jmp	.L5
.L7:
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	thread, .-thread
	.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, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -148[rbp], 0
	jmp	.L9
.L10:
	lea	rdx, -144[rbp]
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -148[rbp], 1
.L9:
	cmp	DWORD PTR -148[rbp], 15
	jle	.L10
	mov	DWORD PTR -148[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	rax, QWORD PTR -144[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -148[rbp], 1
.L11:
	cmp	DWORD PTR -148[rbp], 15
	jle	.L12
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"742381.c"
	.text
	.global	orig
	.section	.rodata
	.align	2
	.type	orig, %object
	.size	orig, 1041
orig:
	.ascii	"buffer\000"
	.space	1017
	.ascii	"in_the_coal_mine\000"
	.comm	temp,1041,4
	.align	2
.LC0:
	.ascii	"in_the_coal_mine\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread, %function
thread:
	@ args = 0, pretend = 0, frame = 1072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1072
	sub	sp, sp, #8
	str	r0, [fp, #-1072]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L5:
	ldr	r3, .L8+4
	str	r3, [fp, #-1060]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1060]
	mov	r1, #48
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1060]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, .L8+8
	ldr	r3, .L8+12
	mov	r0, r2
	mov	r1, r3
	ldr	r3, .L8+16
	mov	r2, r3
	bl	memcpy
	sub	r1, fp, #1040
	sub	r1, r1, #4
	sub	r1, r1, #8
	sub	r0, fp, #1024
	sub	r0, r0, #4
	sub	r0, r0, #4
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp, #4]
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #8
	str	r3, [sp]
	mov	r3, #1024
	ldr	r2, .L8+8
	bl	gethostbyname_r
	str	r0, [fp, #-1056]
	ldr	r1, .L8+20
	ldr	r0, .L8+24
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L8+28
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #46
	bl	putc
.L2:
	ldr	r3, [fp, #-1056]
	cmp	r3, #34
	bne	.L3
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	b	.L7
.L3:
	mov	r0, #1
	bl	sleep
	b	.L5
.L7:
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	999
	.word	temp
	.word	orig
	.word	1041
	.word	.LC0
	.word	temp+1024
	.word	stderr
	.size	thread, .-thread
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L11
.L12:
	sub	r2, fp, #72
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L17+4
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L11:
	ldr	r3, [fp, #-76]
	cmp	r3, #15
	ble	.L12
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L13
.L14:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-68]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L13:
	ldr	r3, [fp, #-76]
	cmp	r3, #15
	ble	.L14
	mov	r3, #0
	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	.LC2
	.word	thread
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
