	.file	"860990.c"
	.intel_syntax noprefix
	.text
	.globl	s
	.bss
	.type	s, @object
	.size	s, 1
s:
	.zero	1
	.section	.rodata
.LC0:
	.string	"Inbit 4 is %d "
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -4[rbp], 0
	mov	BYTE PTR -9[rbp], 3
	movzx	eax, BYTE PTR -9[rbp]
	shr	al, 3
	and	eax, 1
	and	eax, 1
	mov	edx, eax
	movzx	eax, BYTE PTR s[rip]
	and	eax, -2
	or	eax, edx
	mov	BYTE PTR s[rip], al
	movzx	eax, BYTE PTR s[rip]
	and	eax, 1
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -9[rbp]
	mov	edi, eax
	call	printport
	mov	DWORD PTR -8[rbp], 1
	jmp	.L2
.L3:
	call	random_inport
	mov	BYTE PTR -9[rbp], al
	movzx	eax, BYTE PTR -9[rbp]
	mov	edi, eax
	call	printport
	mov	edi, 5
	call	f_delay
	add	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 9
	jle	.L3
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	f_delay
	.type	f_delay, @function
f_delay:
.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	DWORD PTR -36[rbp], edi
	call	clock@PLT
	mov	QWORD PTR -16[rbp], rax
.L8:
	mov	QWORD PTR -24[rbp], 0
	jmp	.L6
.L7:
	add	QWORD PTR -24[rbp], 1
.L6:
	cmp	QWORD PTR -24[rbp], 9999999
	jle	.L7
	call	clock@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	imul	rax, rax, 100000
	cmp	rdx, rax
	jl	.L8
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	f_delay, .-f_delay
	.globl	random_inport
	.type	random_inport, @function
random_inport:
.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, 16
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	call	rand@PLT
	cdq
	shr	edx, 24
	add	eax, edx
	movzx	eax, al
	sub	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	shr	eax, 3
	and	eax, 1
	and	eax, 1
	mov	edx, eax
	movzx	eax, BYTE PTR s[rip]
	and	eax, -2
	or	eax, edx
	mov	BYTE PTR s[rip], al
	movzx	eax, BYTE PTR s[rip]
	and	eax, 1
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR s[rip]
	and	eax, 1
	test	al, al
	je	.L11
	mov	eax, DWORD PTR -8[rbp]
	add	eax, eax
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -8[rbp]
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	random_inport, .-random_inport
	.section	.rodata
.LC1:
	.string	"  %d"
.LC2:
	.string	" --------Porten value = %d  \n"
	.text
	.globl	printport
	.type	printport, @function
printport:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 0
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -60[rbp], eax
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -52[rbp], edx
	mov	edx, DWORD PTR -60[rbp]
	mov	ecx, edx
	sar	ecx, 31
	shr	ecx, 31
	add	edx, ecx
	and	edx, 1
	sub	edx, ecx
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -60[rbp], eax
.L14:
	cmp	DWORD PTR -60[rbp], 0
	jne	.L15
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -52[rbp], edx
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], 0
.L16:
	cmp	DWORD PTR -52[rbp], 7
	jle	.L17
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 1
	mov	DWORD PTR -56[rbp], eax
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -56[rbp], 1
.L18:
	cmp	DWORD PTR -56[rbp], 0
	jns	.L19
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	printport, .-printport
	.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	"860990.c"
	.text
	.comm	s,1,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Inbit 4 is %d \000"
	.text
	.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
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #3
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #255
	and	r3, r3, #1
	and	r1, r3, #255
	ldr	r2, .L5
	ldrb	r3, [r2]
	and	r1, r1, #1
	bic	r3, r3, #1
	orr	r3, r1, r3
	strb	r3, [r2]
	ldr	r3, .L5
	ldrb	r3, [r3]
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L5+4
	bl	printf
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r0, r3
	bl	printport
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L3:
	bl	random_inport
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r0, r3
	bl	printport
	mov	r0, #5
	bl	f_delay
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L3
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	s
	.word	.LC0
	.size	main, .-main
	.align	2
	.global	f_delay
	.syntax unified
	.arm
	.fpu softvfp
	.type	f_delay, %function
f_delay:
	@ 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]
	bl	clock
	str	r0, [fp, #-12]
.L10:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L8
.L9:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L8:
	ldr	r3, [fp, #-16]
	ldr	r2, .L12
	cmp	r3, r2
	ble	.L9
	bl	clock
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r1, .L12+4
	mul	r3, r1, r3
	cmp	r2, r3
	blt	.L10
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	9999999
	.word	100000
	.size	f_delay, .-f_delay
	.align	2
	.global	random_inport
	.syntax unified
	.arm
	.fpu softvfp
	.type	random_inport, %function
random_inport:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #255
	and	r2, r2, #255
	rsbpl	r3, r2, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsr	r3, r3, #3
	and	r3, r3, #1
	and	r1, r3, #255
	ldr	r2, .L17
	ldrb	r3, [r2]
	and	r1, r1, #1
	bic	r3, r3, #1
	orr	r3, r1, r3
	strb	r3, [r2]
	ldr	r3, .L17
	ldrb	r3, [r3]
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L17+4
	bl	printf
	ldr	r3, .L17
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	b	.L16
.L15:
	ldr	r3, [fp, #-12]
	and	r3, r3, #255
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	s
	.word	.LC0
	.size	random_inport, .-random_inport
	.section	.rodata
	.align	2
.LC1:
	.ascii	"  %d\000"
	.align	2
.LC2:
	.ascii	" --------Porten value = %d  \012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printport
	.syntax unified
	.arm
	.fpu softvfp
	.type	printport, %function
printport:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-52]
	b	.L20
.L21:
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	str	r2, [fp, #-44]
	ldr	r2, [fp, #-52]
	cmp	r2, #0
	and	r2, r2, #1
	rsblt	r2, r2, #0
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-36]
	ldr	r3, [fp, #-52]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-52]
.L20:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L21
	b	.L22
.L23:
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	str	r2, [fp, #-44]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-36]
.L22:
	ldr	r3, [fp, #-44]
	cmp	r3, #7
	ble	.L23
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L24
.L25:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	mov	r1, r3
	ldr	r0, .L28+4
	bl	printf
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
.L24:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L25
	ldr	r1, [fp, #-56]
	ldr	r0, .L28+8
	bl	printf
	nop
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	printport, .-printport
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
