	.file	"extr_blk-iolatency.c_scale_change.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	scale_change, @function
scale_change:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR [rax]
	mov	r13, QWORD PTR [rax]
	mov	rdi, r13
	call	scale_amount@PLT
	mov	rdi, QWORD PTR 0[rbp]
	cmp	r13, rdi
	mov	rbx, rdi
	cmovbe	rbx, r13
	test	r12d, r12d
	je	.L2
	mov	r14, rax
	cmp	rbx, 1
	je	.L3
.L6:
	cmp	r13, rbx
	ja	.L13
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rdi, [r14+rbx]
	mov	rsi, r13
	call	min@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rdi, 8[rbp]
	mov	QWORD PTR 0[rbp], rax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	wake_up_all@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	shr	rbx
	mov	esi, 1
	mov	rdi, rbx
	call	max@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	QWORD PTR 0[rbp], rax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, rbp
	call	lat_to_blkg@PLT
	mov	edi, eax
	call	blkcg_unuse_delay@PLT
	test	rax, rax
	je	.L6
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	scale_change, .-scale_change
	.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_blk-iolatency.c_scale_change.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scale_change, %function
scale_change:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r7, r1
	ldr	r3, [r0, #8]
	ldr	r3, [r3]
	ldr	r6, [r3]
	mov	r0, r6
	bl	scale_amount
	ldr	r3, [r4]
	cmp	r6, r3
	movcc	r5, r6
	movcs	r5, r3
	cmp	r7, #0
	beq	.L2
	cmp	r5, #1
	mov	r8, r0
	beq	.L3
.L6:
	cmp	r6, r5
	popls	{r4, r5, r6, r7, r8, pc}
	mov	r1, r6
	add	r0, r8, r5
	bl	min
	str	r0, [r4], #4
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	wake_up_all
.L2:
	mov	r1, #1
	lsr	r0, r5, #1
	bl	max
	str	r0, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r0, r4
	bl	lat_to_blkg
	bl	blkcg_unuse_delay
	cmp	r0, #0
	beq	.L6
	pop	{r4, r5, r6, r7, r8, pc}
	.size	scale_change, .-scale_change
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
