	.file	"48575703.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC1:
	.string	"Enter the parameters of Bin(n,p):"
.LC2:
	.string	"%d%f"
.LC3:
	.string	"Enter the value of x:"
.LC4:
	.string	"%d"
.LC6:
	.string	"P(X=%d) = %f\nP(X<=%d) = %f\n"
	.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
	push	r12
	push	rbx
	sub	rsp, 48
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	movss	DWORD PTR -32[rbp], xmm0
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdx, -40[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -44[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	fact
	mov	ebx, eax
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	fact
	mov	r12d, eax
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, DWORD PTR -44[rbp]
	sub	eax, edx
	mov	edi, eax
	call	fact
	mov	edx, r12d
	imul	edx, eax
	mov	ecx, edx
	mov	eax, ebx
	cdq
	idiv	ecx
	pxor	xmm4, xmm4
	cvtsi2sd	xmm4, eax
	movsd	QWORD PTR -56[rbp], xmm4
	mov	eax, DWORD PTR -44[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movss	xmm1, DWORD PTR -40[rbp]
	pxor	xmm5, xmm5
	cvtss2sd	xmm5, xmm1
	movq	rax, xmm5
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	mulsd	xmm0, QWORD PTR -56[rbp]
	movsd	QWORD PTR -56[rbp], xmm0
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, DWORD PTR -44[rbp]
	sub	eax, edx
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movss	xmm1, DWORD PTR -40[rbp]
	movss	xmm0, DWORD PTR .LC5[rip]
	subss	xmm0, xmm1
	pxor	xmm6, xmm6
	cvtss2sd	xmm6, xmm0
	movq	rax, xmm6
	movapd	xmm1, xmm2
	movq	xmm0, rax
	call	pow@PLT
	mulsd	xmm0, QWORD PTR -56[rbp]
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -28[rbp], xmm0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	fact
	mov	ebx, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	fact
	mov	r12d, eax
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	fact
	mov	edx, r12d
	imul	edx, eax
	mov	esi, edx
	mov	eax, ebx
	cdq
	idiv	esi
	pxor	xmm7, xmm7
	cvtsi2sd	xmm7, eax
	movsd	QWORD PTR -56[rbp], xmm7
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -36[rbp]
	movss	xmm1, DWORD PTR -40[rbp]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm1
	movq	rax, xmm3
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	mulsd	xmm0, QWORD PTR -56[rbp]
	movsd	QWORD PTR -56[rbp], xmm0
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, DWORD PTR -36[rbp]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movss	xmm1, DWORD PTR -40[rbp]
	movss	xmm0, DWORD PTR .LC5[rip]
	subss	xmm0, xmm1
	pxor	xmm5, xmm5
	cvtss2sd	xmm5, xmm0
	movq	rax, xmm5
	movapd	xmm1, xmm2
	movq	xmm0, rax
	call	pow@PLT
	movsd	xmm1, QWORD PTR -56[rbp]
	mulsd	xmm1, xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -32[rbp]
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -32[rbp], xmm0
	add	DWORD PTR -36[rbp], 1
.L2:
	mov	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -36[rbp], eax
	jle	.L3
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -44[rbp]
	pxor	xmm6, xmm6
	cvtss2sd	xmm6, DWORD PTR -28[rbp]
	movq	rcx, xmm6
	mov	eax, DWORD PTR -44[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 2
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	add	rsp, 48
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	fact
	.type	fact, @function
fact:
.LFB1:
	.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 -4[rbp], 1
	mov	DWORD PTR -8[rbp], 1
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L7:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L8
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	fact, .-fact
	.section	.rodata
	.align 4
.LC5:
	.long	1065353216
	.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	"48575703.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the parameters of Bin(n,p):\000"
	.align	2
.LC1:
	.ascii	"%d%f\000"
	.align	2
.LC2:
	.ascii	"Enter the value of x:\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.global	__aeabi_idiv
	.global	__aeabi_i2d
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_fsub
	.global	__aeabi_d2f
	.global	__aeabi_dadd
	.align	2
.LC4:
	.ascii	"P(X=%d) = %f\012P(X<=%d) = %f\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #48
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]	@ float
	ldr	r0, .L6+4
	bl	puts
	sub	r2, fp, #40
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L6+8
	bl	__isoc99_scanf
	ldr	r0, .L6+12
	bl	puts
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L6+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	fact
	mov	r5, r0
	ldr	r3, [fp, #-44]
	mov	r0, r3
	bl	fact
	mov	r4, r0
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	mov	r0, r3
	bl	fact
	mov	r3, r0
	mul	r3, r4, r3
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-40]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r6, r0
	mov	r7, r1
	ldr	r3, [fp, #-44]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-40]	@ float
	mov	r1, r3
	mov	r0, #1065353216
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-28]	@ float
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L2
.L3:
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	fact
	mov	r5, r0
	ldr	r0, [fp, #-36]
	bl	fact
	mov	r4, r0
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	mov	r0, r3
	bl	fact
	mov	r3, r0
	mul	r3, r4, r3
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-40]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-40]	@ float
	mov	r1, r3
	mov	r0, #1065353216
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L2:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	ble	.L3
	ldr	r7, [fp, #-44]
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r6, [fp, #-44]
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	str	r6, [sp]
	mov	r2, r4
	mov	r3, r5
	mov	r1, r7
	ldr	r0, .L6+20
	bl	printf
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.align	2
	.global	fact
	.syntax unified
	.arm
	.fpu softvfp
	.type	fact, %function
fact:
	@ 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, #1
	str	r3, [fp, #-8]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L9
.L10:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L10
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	fact, .-fact
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
