	.file	"463721.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: factor n   (2 <= n < 2**31)"
.LC1:
	.string	"2 is a prime"
.LC2:
	.string	"%ld is a prime\n"
.LC3:
	.string	"%ld\n"
.LC4:
	.string	"%ld "
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -16[rbp], 0
	cmp	DWORD PTR -36[rbp], 2
	jne	.L2
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	atol@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 1
	jg	.L3
.L2:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	cmp	QWORD PTR -24[rbp], 2
	jne	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	first
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L5
	cmp	QWORD PTR -16[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	edi, 0
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	cqo
	idiv	QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 1
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	first
	.type	first, @function
first:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 2
	jne	.L9
	mov	eax, 0
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -24[rbp]
	and	eax, 1
	test	rax, rax
	jne	.L11
	mov	eax, 2
	jmp	.L10
.L11:
	mov	QWORD PTR -8[rbp], 3
	jmp	.L12
.L14:
	mov	rax, QWORD PTR -24[rbp]
	cqo
	idiv	QWORD PTR -8[rbp]
	mov	rax, rdx
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L10
.L13:
	add	QWORD PTR -8[rbp], 2
.L12:
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 6148914691236517206
	mov	rax, rcx
	imul	rdx
	sar	rcx, 63
	mov	rax, rdx
	sub	rax, rcx
	cmp	QWORD PTR -8[rbp], rax
	jle	.L14
	mov	eax, 0
.L10:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	first, .-first
	.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	"463721.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: factor n   (2 <= n < 2**31)\000"
	.align	2
.LC1:
	.ascii	"2 is a prime\000"
	.align	2
.LC2:
	.ascii	"%ld is a prime\012\000"
	.align	2
.LC3:
	.ascii	"%ld\012\000"
	.align	2
.LC4:
	.ascii	"%ld \000"
	.global	__aeabi_idiv
	.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
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bne	.L2
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bgt	.L3
.L2:
	ldr	r0, .L8
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L4
	ldr	r0, .L8+4
	bl	puts
	mov	r0, #0
	bl	exit
.L4:
	ldr	r0, [fp, #-16]
	bl	first
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L6
	ldr	r1, [fp, #-16]
	ldr	r0, .L8+8
	bl	printf
	b	.L7
.L6:
	ldr	r1, [fp, #-16]
	ldr	r0, .L8+12
	bl	printf
.L7:
	mov	r0, #0
	bl	exit
.L5:
	ldr	r1, [fp, #-8]
	ldr	r0, .L8+16
	bl	printf
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L4
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.global	__aeabi_idivmod
	.align	2
	.global	first
	.syntax unified
	.arm
	.fpu softvfp
	.type	first, %function
first:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L11
	mov	r3, #0
	b	.L12
.L11:
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L13
	mov	r3, #2
	b	.L12
.L13:
	mov	r3, #3
	str	r3, [fp, #-8]
	b	.L14
.L16:
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-8]
	b	.L12
.L15:
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	str	r3, [fp, #-8]
.L14:
	ldr	r3, [fp, #-16]
	ldr	r2, .L17
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L16
	mov	r3, #0
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	1431655766
	.size	first, .-first
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
