	.file	"extr_pblk-sysfs.c_pblk_sysfs_get_padding_dist.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d:0 "
.LC1:
	.string	"\n"
.LC2:
	.string	"%d:%lld%% "
.LC3:
	.string	"0:%lld%% "
	.text
	.p2align 4
	.type	pblk_sysfs_get_padding_dist, @function
pblk_sysfs_get_padding_dist:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	add	rdi, 24
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14d, DWORD PTR -24[rdi]
	lea	ebx, -1[r14]
	call	atomic64_read@PLT
	sub	rax, QWORD PTR 8[rbp]
	je	.L2
	mov	r13, rax
	test	ebx, ebx
	jle	.L20
	lea	eax, -2[r14]
	xor	ebx, ebx
	xor	r14d, r14d
	mov	QWORD PTR 8[rsp], rax
	lea	r15, 4[0+rax*4]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, QWORD PTR 16[rbp]
	add	rdi, r14
	add	r14, 4
	call	atomic64_read@PLT
	add	rbx, rax
	cmp	r14, r15
	jne	.L8
	mov	rdi, r13
	mov	rsi, r13
	lea	r15, .LC2[rip]
	xor	r14d, r14d
	sub	rdi, rbx
	call	bucket_percentage@PLT
	mov	rsi, QWORD PTR PAGE_SIZE[rip]
	lea	rdx, .LC3[rip]
	mov	rdi, r12
	mov	rcx, rax
	xor	eax, eax
	call	snprintf@PLT
	mov	ebx, eax
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 16[rbp]
	lea	rdi, [rax+r14*4]
	call	atomic64_read@PLT
	mov	rsi, r13
	mov	rdi, rax
	call	bucket_percentage@PLT
	movsx	rdi, ebx
	lea	ecx, 1[r14]
	mov	rdx, r15
	mov	rsi, QWORD PTR PAGE_SIZE[rip]
	mov	r8, rax
	xor	eax, eax
	sub	rsi, rdi
	add	rdi, r12
	call	snprintf@PLT
	lea	ecx, [rbx+rax]
	mov	rax, r14
	add	r14, 1
	movsx	rbx, ecx
	cmp	QWORD PTR 8[rsp], rax
	jne	.L10
.L11:
	mov	rsi, QWORD PTR PAGE_SIZE[rip]
	lea	rdi, [r12+rbx]
	lea	rdx, .LC1[rip]
	xor	eax, eax
	mov	DWORD PTR 8[rsp], ecx
	sub	rsi, rbx
	call	snprintf@PLT
	mov	ecx, DWORD PTR 8[rsp]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	add	eax, ecx
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	ebx, ebx
	js	.L12
	xor	r13d, r13d
	xor	r15d, r15d
	lea	rbp, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, QWORD PTR PAGE_SIZE[rip]
	movsx	rdi, r15d
	mov	ecx, r13d
	mov	rdx, rbp
	xor	eax, eax
	add	r13d, 1
	sub	rsi, rdi
	add	rdi, r12
	call	snprintf@PLT
	lea	ebx, [r15+rax]
	movsx	r15, ebx
	cmp	r14d, r13d
	jne	.L6
	add	r12, r15
.L5:
	mov	rsi, QWORD PTR PAGE_SIZE[rip]
	mov	rdi, r12
	lea	rdx, .LC1[rip]
	xor	eax, eax
	sub	rsi, r15
	call	snprintf@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	add	eax, ebx
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rsi, rax
	mov	rdi, rax
	call	bucket_percentage@PLT
	mov	rsi, QWORD PTR PAGE_SIZE[rip]
	lea	rdx, .LC3[rip]
	mov	rdi, r12
	mov	rcx, rax
	xor	eax, eax
	call	snprintf@PLT
	mov	rcx, rax
	movsx	rbx, eax
	jmp	.L11
.L12:
	xor	ebx, ebx
	xor	r15d, r15d
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	pblk_sysfs_get_padding_dist, .-pblk_sysfs_get_padding_dist
	.comm	PAGE_SIZE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pblk-sysfs.c_pblk_sysfs_get_padding_dist.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d:0 \000"
	.align	2
.LC1:
	.ascii	"\012\000"
	.align	2
.LC2:
	.ascii	"%d:%lld%% \000"
	.align	2
.LC3:
	.ascii	"0:%lld%% \000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pblk_sysfs_get_padding_dist, %function
pblk_sysfs_get_padding_dist:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	sub	sp, sp, #20
	ldr	r6, [r0], #20
	str	r1, [sp, #12]
	bl	atomic64_read
	add	r3, r7, #8
	ldmia	r3, {r2-r3}
	subs	fp, r0, r2
	sbc	r8, r1, r3
	cmp	r1, r3
	cmpeq	r0, r2
	sub	r5, r6, #1
	beq	.L2
	cmp	r5, #0
	movgt	r3, #0
	movgt	r4, r3
	movgt	r10, r4
	ble	.L20
.L8:
	ldr	r0, [r7, #16]
	mov	r6, r3
	add	r0, r0, r3, lsl #2
	bl	atomic64_read
	add	r3, r6, #1
	adds	r4, r4, r0
	adc	r10, r10, r1
	cmp	r5, r3
	bne	.L8
	subs	r0, fp, r4
	ldr	r9, .L21
	mov	r2, fp
	mov	r3, r8
	sbc	r1, r8, r10
	ldr	r4, [r9]
	bl	bucket_percentage
	ldr	r2, .L21+4
	stm	sp, {r0-r1}
	mov	r1, r4
	ldr	r0, [sp, #12]
	bl	snprintf
	mov	r4, #0
	mov	r5, r0
.L10:
	ldr	r0, [r7, #16]
	mov	r10, r4
	add	r0, r0, r4, lsl #2
	bl	atomic64_read
	mov	r2, fp
	mov	r3, r8
	bl	bucket_percentage
	ldr	r2, [r9]
	stm	sp, {r0-r1}
	ldr	r0, [sp, #12]
	add	r4, r4, #1
	sub	r1, r2, r5
	add	r0, r0, r5
	mov	r3, r4
	ldr	r2, .L21+8
	bl	snprintf
	cmp	r6, r10
	add	r5, r5, r0
	bne	.L10
.L11:
	ldr	r1, [r9]
	ldr	r3, [sp, #12]
	ldr	r2, .L21+12
	add	r0, r3, r5
	sub	r1, r1, r5
	bl	snprintf
	add	r0, r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	cmp	r5, #0
	blt	.L12
	mov	r5, #0
	mov	r4, r5
	ldr	r9, .L21
	ldr	r7, .L21+16
	ldr	r8, [sp, #12]
.L6:
	ldr	r1, [r9]
	mov	r3, r5
	sub	r1, r1, r4
	add	r0, r8, r4
	mov	r2, r7
	bl	snprintf
	add	r5, r5, #1
	cmp	r6, r5
	add	r4, r4, r0
	bne	.L6
	ldr	r3, [sp, #12]
	add	r3, r3, r4
	str	r3, [sp, #12]
.L5:
	ldr	r1, [r9]
	ldr	r0, [sp, #12]
	ldr	r2, .L21+12
	sub	r1, r1, r4
	bl	snprintf
	add	r0, r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r9, .L21
	mov	r2, fp
	mov	r3, r8
	mov	r0, fp
	mov	r1, r8
	ldr	r6, [r9]
	bl	bucket_percentage
	mov	r5, r1
	mov	r4, r0
	mov	r1, r6
	stm	sp, {r4-r5}
	ldr	r2, .L21+4
	ldr	r0, [sp, #12]
	bl	snprintf
	mov	r5, r0
	b	.L11
.L12:
	mov	r4, #0
	ldr	r9, .L21
	b	.L5
.L22:
	.align	2
.L21:
	.word	PAGE_SIZE
	.word	.LC3
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	pblk_sysfs_get_padding_dist, .-pblk_sysfs_get_padding_dist
	.comm	PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
