	.file	"43795.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"malloc"
.LC1:
	.string	"mmap"
.LC2:
	.string	"mincore"
.LC3:
	.string	"%s: %zu\n"
.LC5:
	.string	"%s: %.0f%%\n"
	.text
	.globl	show_incore
	.type	show_incore, @function
show_incore:
.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, 80
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -56[rbp], ecx
	mov	edi, 30
	call	sysconf@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	sub	rax, 1
	mov	edx, 0
	div	QWORD PTR -32[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	r9d, 0
	mov	r8d, edx
	mov	ecx, 1
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	jmp	.L5
.L4:
	mov	rcx, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	mincore@PLT
	test	eax, eax
	je	.L6
	lea	rdi, .LC2[rip]
	call	perror@PLT
	jmp	.L7
.L6:
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	jmp	.L8
.L9:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 1
	add	QWORD PTR -48[rbp], rax
	add	QWORD PTR -40[rbp], 1
.L8:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jb	.L9
	cmp	DWORD PTR -56[rbp], 0
	je	.L10
	mov	rax, QWORD PTR -48[rbp]
	imul	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L10:
	mov	rax, QWORD PTR -48[rbp]
	test	rax, rax
	js	.L11
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L12
.L11:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L12:
	movsd	xmm1, QWORD PTR .LC4[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	js	.L13
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L14
.L13:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L14:
	divsd	xmm1, xmm0
	movq	rdx, xmm1
	mov	rax, QWORD PTR -72[rbp]
	movq	xmm0, rdx
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
.L7:
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	show_incore, .-show_incore
	.section	.rodata
.LC6:
	.string	"-b"
.LC7:
	.string	"Usage: %s [-b] <filename>\n"
	.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, 208
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -176[rbp], 0
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -168[rbp], rax
	cmp	DWORD PTR -196[rbp], 1
	jle	.L17
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	sub	DWORD PTR -196[rbp], 1
	add	QWORD PTR -208[rbp], 8
	mov	DWORD PTR -176[rbp], 1
.L17:
	cmp	DWORD PTR -196[rbp], 1
	jg	.L18
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -168[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L19
.L18:
	mov	DWORD PTR -180[rbp], 1
	jmp	.L20
.L26:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 0
	jns	.L21
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	jmp	.L25
.L21:
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	je	.L23
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	jmp	.L25
.L23:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 32768
	jne	.L24
	mov	rax, QWORD PTR -112[rbp]
	test	rax, rax
	jle	.L24
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rsi, QWORD PTR -112[rbp]
	mov	ecx, DWORD PTR -176[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	show_incore
.L24:
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	close@PLT
.L25:
	add	DWORD PTR -180[rbp], 1
.L20:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jl	.L26
	mov	eax, 0
.L19:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.long	0
	.long	1079574528
	.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	"43795.c"
	.text
	.global	__aeabi_uidiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"malloc\000"
	.align	2
.LC1:
	.ascii	"mmap\000"
	.align	2
.LC2:
	.ascii	"mincore\000"
	.align	2
.LC3:
	.ascii	"%s: %zu\012\000"
	.global	__aeabi_ui2d
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.align	2
.LC4:
	.ascii	"%s: %.0f%%\012\000"
	.text
	.align	2
	.global	show_incore
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_incore, %function
show_incore:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L12
	bl	perror
	b	.L3
.L2:
	ldr	r1, [fp, #-44]
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-40]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #1
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L12+4
	bl	perror
	b	.L5
.L4:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	mincore
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r0, .L12+8
	bl	perror
	b	.L7
.L6:
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L8
.L9:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L8:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L9
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-28]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-48]
	ldr	r0, .L12+12
	bl	printf
	b	.L7
.L10:
	ldr	r0, [fp, #-36]
	bl	__aeabi_ui2d
	mov	r2, #0
	ldr	r3, .L12+16
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-24]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-48]
	ldr	r0, .L12+20
	bl	printf
.L7:
	ldr	r3, [fp, #-44]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	munmap
.L5:
	ldr	r0, [fp, #-20]
	bl	free
.L3:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	1079574528
	.word	.LC4
	.size	show_incore, .-show_incore
	.section	.rodata
	.align	2
.LC5:
	.ascii	"-b\000"
	.align	2
.LC6:
	.ascii	"Usage: %s [-b] <filename>\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-120]
	cmp	r3, #1
	ble	.L15
	ldr	r3, [fp, #-124]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L26+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-124]
	add	r3, r3, #4
	str	r3, [fp, #-124]
	mov	r3, #1
	str	r3, [fp, #-112]
.L15:
	ldr	r3, [fp, #-120]
	cmp	r3, #1
	bgt	.L16
	ldr	r3, .L26+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-108]
	ldr	r1, .L26+12
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L17
.L16:
	mov	r3, #1
	str	r3, [fp, #-116]
	b	.L18
.L24:
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #2048
	mov	r0, r3
	bl	open
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bge	.L19
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	b	.L23
.L19:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	b	.L23
.L21:
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #32768
	bne	.L22
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	ble	.L22
	ldr	r1, [fp, #-56]
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-112]
	ldr	r0, [fp, #-104]
	bl	show_incore
.L22:
	ldr	r0, [fp, #-104]
	bl	close
.L23:
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L18:
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	blt	.L24
	mov	r3, #0
.L17:
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC7
	.word	.LC5
	.word	stderr
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
