	.file	"1005267.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\nIs the value a multiple of 7, 11, or 13?"
	.align 8
.LC1:
	.string	"\nIs the sum of the digits odd or even?"
.LC2:
	.string	"\nIs the value a prime number?"
.LC3:
	.string	"\n\nEnter a number "
.LC4:
	.string	"%d"
.LC5:
	.string	"\nYes"
.LC6:
	.string	"\nNo"
.LC7:
	.string	"\nOdd"
.LC8:
	.string	"\nEven"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -24[rbp]
	lea	rcx, -12[rbp]
	lea	rdx, -16[rbp]
	lea	rsi, -20[rbp]
	mov	edi, eax
	call	check
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 1
	jne	.L2
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 1
	jne	.L4
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L4:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	jne	.L6
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L9
.L6:
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L9:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	check
	.type	check, @function
check:
.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rax, edx
	imul	rax, rax, -1840700269
	shr	rax, 32
	add	eax, edx
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 3
	sub	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	je	.L11
	mov	ecx, DWORD PTR -4[rbp]
	movsx	rax, ecx
	imul	rax, rax, 780903145
	shr	rax, 32
	sar	eax
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, edx
	mov	edx, ecx
	sub	edx, eax
	test	edx, edx
	je	.L11
	mov	ecx, DWORD PTR -4[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1321528399
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	add	eax, edx
	mov	edx, ecx
	sub	edx, eax
	test	edx, edx
	jne	.L12
.L11:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 1
.L12:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	digits_odd
	test	eax, eax
	je	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], 1
.L13:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	isprime
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 1
.L15:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	check, .-check
	.globl	digits_odd
	.type	digits_odd, @function
digits_odd:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -8[rbp], 0
	cmp	DWORD PTR -20[rbp], 0
	jne	.L19
	mov	DWORD PTR -8[rbp], 0
	jmp	.L18
.L20:
	mov	edx, DWORD PTR -20[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -4[rbp], edx
	mov	eax, DWORD PTR -4[rbp]
	add	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -20[rbp], eax
.L19:
	cmp	DWORD PTR -20[rbp], 0
	jg	.L20
.L18:
	mov	eax, DWORD PTR -8[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L21
	mov	eax, 0
	jmp	.L22
.L21:
	mov	eax, 1
.L22:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	digits_odd, .-digits_odd
	.globl	isprime
	.type	isprime, @function
isprime:
.LFB3:
	.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	DWORD PTR -4[rbp], 1
	mov	DWORD PTR -8[rbp], 2
	jmp	.L24
.L27:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L25
	mov	DWORD PTR -4[rbp], 0
	jmp	.L26
.L25:
	add	DWORD PTR -8[rbp], 1
.L24:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -8[rbp]
	movsd	QWORD PTR -32[rbp], xmm1
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -20[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	movq	xmm3, rax
	comisd	xmm3, QWORD PTR -32[rbp]
	jnb	.L27
.L26:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	isprime, .-isprime
	.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	"1005267.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Is the value a multiple of 7, 11, or 13?\000"
	.align	2
.LC1:
	.ascii	"\012Is the sum of the digits odd or even?\000"
	.align	2
.LC2:
	.ascii	"\012Is the value a prime number?\000"
	.align	2
.LC3:
	.ascii	"\012\012Enter a number \000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"\012Yes\000"
	.align	2
.LC6:
	.ascii	"\012No\000"
	.align	2
.LC7:
	.ascii	"\012Odd\000"
	.align	2
.LC8:
	.ascii	"\012Even\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	printf
	ldr	r0, .L10+8
	bl	printf
	ldr	r0, .L10+12
	bl	printf
	ldr	r0, .L10+16
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L10+20
	bl	__isoc99_scanf
	ldr	r0, [fp, #-24]
	sub	r3, fp, #12
	sub	r2, fp, #16
	sub	r1, fp, #20
	bl	check
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L2
	ldr	r0, .L10+24
	bl	printf
	b	.L3
.L2:
	ldr	r0, .L10+28
	bl	printf
.L3:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L4
	ldr	r0, .L10+32
	bl	printf
	b	.L5
.L4:
	ldr	r0, .L10+36
	bl	printf
.L5:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L6
	ldr	r0, .L10+24
	bl	puts
	b	.L9
.L6:
	ldr	r0, .L10+28
	bl	puts
.L9:
	nop
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.align	2
	.global	check
	.syntax unified
	.arm
	.fpu softvfp
	.type	check, %function
check:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	ldr	r3, .L18
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	sub	r1, r2, r3
	cmp	r1, #0
	beq	.L13
	ldr	r1, [fp, #-8]
	ldr	r3, .L18+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	beq	.L13
	ldr	r1, [fp, #-8]
	ldr	r3, .L18+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L14
.L13:
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3]
.L14:
	ldr	r0, [fp, #-8]
	bl	digits_odd
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3]
.L15:
	ldr	r0, [fp, #-8]
	bl	isprime
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-20]
	mov	r2, #1
	str	r2, [r3]
.L17:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	-1840700269
	.word	780903145
	.word	1321528399
	.size	check, .-check
	.align	2
	.global	digits_odd
	.syntax unified
	.arm
	.fpu softvfp
	.type	digits_odd, %function
digits_odd:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L23
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L22
.L24:
	ldr	r2, [fp, #-16]
	ldr	r3, .L27
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r2, .L27
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-16]
.L23:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L24
.L22:
	ldr	r3, [fp, #-12]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L25
	mov	r3, #0
	b	.L26
.L25:
	mov	r3, #1
.L26:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L28:
	.align	2
.L27:
	.word	1717986919
	.size	digits_odd, .-digits_odd
	.global	__aeabi_idivmod
	.global	__aeabi_i2d
	.global	__aeabi_dcmple
	.align	2
	.global	isprime
	.syntax unified
	.arm
	.fpu softvfp
	.type	isprime, %function
isprime:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L30
.L33:
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L31
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L32
.L31:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L30:
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
.L32:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	isprime, .-isprime
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
