	.file	"755024.c"
	.intel_syntax noprefix
	.text
	.globl	jrgba
	.data
	.align 32
	.type	jrgba, @object
	.size	jrgba, 40
jrgba:
	.ascii	"\001\002\003\377\004\005\006\377\007\b\t\377\n\013\f\377\r\016"
	.ascii	"\017\377\020\021\022\377\023\024\025\377\026\027\030\377\031"
	.ascii	"\032\033\377\034\035\036\377"
	.globl	jrgb
	.bss
	.align 16
	.type	jrgb, @object
	.size	jrgb, 30
jrgb:
	.zero	30
	.globl	running_threads
	.align 4
	.type	running_threads, @object
	.size	running_threads, 4
running_threads:
	.zero	4
	.globl	running_mutex
	.align 32
	.type	running_mutex, @object
	.size	running_mutex, 40
running_mutex:
	.zero	40
	.text
	.globl	stripe_thread
	.type	stripe_thread, @function
stripe_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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -28[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -28[rbp], 3
	add	DWORD PTR -32[rbp], 4
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L3
	lea	rdi, running_mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR running_threads[rip]
	sub	eax, 1
	mov	DWORD PTR running_threads[rip], eax
	lea	rdi, running_mutex[rip]
	call	pthread_mutex_unlock@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	stripe_thread, .-stripe_thread
	.section	.rodata
.LC0:
	.string	"Thread creation"
.LC1:
	.string	"%3d "
	.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -164[rbp], 0
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 5
	add	rax, rbp
	sub	rax, 112
	lea	rdx, jrgba[rip]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 5
	add	rax, rbp
	sub	rax, 104
	mov	DWORD PTR [rax], 40
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 5
	add	rax, rbp
	sub	rax, 96
	lea	rdx, jrgb[rip]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 5
	add	rax, rbp
	sub	rax, 88
	mov	DWORD PTR [rax], 30
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 5
	add	rax, rbp
	lea	rdx, -84[rax]
	mov	eax, DWORD PTR -164[rbp]
	mov	DWORD PTR [rdx], eax
	lea	rdx, -112[rbp]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 5
	add	rdx, rax
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, stripe_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L6
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	lea	rdi, running_mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR running_threads[rip]
	add	eax, 1
	mov	DWORD PTR running_threads[rip], eax
	lea	rdi, running_mutex[rip]
	call	pthread_mutex_unlock@PLT
	add	DWORD PTR -164[rbp], 1
.L5:
	cmp	DWORD PTR -164[rbp], 2
	jle	.L7
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 100000000
	jmp	.L8
.L10:
	lea	rax, -160[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	nanosleep@PLT
	test	eax, eax
	js	.L18
.L8:
	mov	eax, DWORD PTR running_threads[rip]
	test	eax, eax
	jg	.L10
	jmp	.L9
.L18:
	nop
.L9:
	mov	eax, DWORD PTR running_threads[rip]
	test	eax, eax
	jg	.L11
	mov	DWORD PTR -164[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	mov	rax, QWORD PTR -144[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -164[rbp], 1
.L12:
	cmp	DWORD PTR -164[rbp], 2
	jle	.L13
.L11:
	mov	DWORD PTR -164[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	lea	rdx, jrgb[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -164[rbp], 1
.L14:
	mov	eax, DWORD PTR -164[rbp]
	cmp	eax, 29
	jbe	.L15
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"755024.c"
	.text
	.global	jrgba
	.data
	.align	2
	.type	jrgba, %object
	.size	jrgba, 40
jrgba:
	.ascii	"\001\002\003\377\004\005\006\377\007\010\011\377\012"
	.ascii	"\013\014\377\015\016\017\377\020\021\022\377\023\024"
	.ascii	"\025\377\026\027\030\377\031\032\033\377\034\035\036"
	.ascii	"\377"
	.comm	jrgb,30,4
	.global	running_threads
	.bss
	.align	2
	.type	running_threads, %object
	.size	running_threads, 4
running_threads:
	.space	4
	.global	running_mutex
	.align	2
	.type	running_mutex, %object
	.size	running_mutex, 24
running_mutex:
	.space	24
	.text
	.align	2
	.global	stripe_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	stripe_thread, %function
stripe_thread:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-20]
	b	.L2
.L3:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L3
	ldr	r0, .L4
	bl	pthread_mutex_lock
	ldr	r3, .L4+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L4+4
	str	r3, [r2]
	ldr	r0, .L4
	bl	pthread_mutex_unlock
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	running_mutex
	.word	running_threads
	.size	stripe_thread, .-stripe_thread
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Thread creation\000"
	.align	2
.LC1:
	.ascii	"%3d \000"
	.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 = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L7
.L9:
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #64
	ldr	r2, .L21+4
	str	r2, [r3]
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #60
	mov	r2, #40
	str	r2, [r3]
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #56
	ldr	r2, .L21+8
	str	r2, [r3]
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #52
	mov	r2, #30
	str	r2, [r3]
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #48
	ldr	r2, [fp, #-92]
	str	r2, [r3]
	sub	r2, fp, #80
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	add	r0, r2, r3
	sub	r1, fp, #68
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, .L21+12
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L21+16
	bl	perror
	mov	r0, #1
	bl	exit
.L8:
	ldr	r0, .L21+20
	bl	pthread_mutex_lock
	ldr	r3, .L21+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L21+24
	str	r3, [r2]
	ldr	r0, .L21+20
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L7:
	ldr	r3, [fp, #-92]
	cmp	r3, #2
	ble	.L9
	mov	r3, #0
	str	r3, [fp, #-88]
	ldr	r3, .L21+28
	str	r3, [fp, #-84]
	b	.L10
.L12:
	sub	r3, fp, #88
	mov	r1, #0
	mov	r0, r3
	bl	nanosleep
	mov	r3, r0
	cmp	r3, #0
	blt	.L20
.L10:
	ldr	r3, .L21+24
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L12
	b	.L11
.L20:
	nop
.L11:
	ldr	r3, .L21+24
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L13
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L14
.L15:
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-76]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L14:
	ldr	r3, [fp, #-92]
	cmp	r3, #2
	ble	.L15
.L13:
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L16
.L17:
	ldr	r2, .L21+8
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L21+32
	bl	printf
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L16:
	ldr	r3, [fp, #-92]
	cmp	r3, #29
	bls	.L17
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC2
	.word	jrgba
	.word	jrgb
	.word	stripe_thread
	.word	.LC0
	.word	running_mutex
	.word	running_threads
	.word	100000000
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
