	.file	"extr_memcontrol.c_mem_cgroup_soft_limit_reclaim.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mem_cgroup_soft_limit_reclaim
	.type	mem_cgroup_soft_limit_reclaim, @function
mem_cgroup_soft_limit_reclaim:
.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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	esi, esi
	jle	.L20
.L2:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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	r14, rdi
	mov	edi, DWORD PTR [rdi]
	mov	r15d, edx
	mov	r13, rcx
	call	soft_limit_tree_node@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L2
	lea	rdi, 4[rax]
	call	RB_EMPTY_ROOT@PLT
	test	rax, rax
	jne	.L2
	lea	rax, 32[rsp]
	xor	ebx, ebx
	mov	DWORD PTR 12[rsp], 0
	mov	QWORD PTR 24[rsp], rax
	test	rbx, rbx
	je	.L22
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rcx, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, r14
	mov	edx, r15d
	mov	QWORD PTR 32[rsp], 0
	call	mem_cgroup_soft_reclaim@PLT
	mov	rdi, rbp
	mov	r12, rax
	mov	rax, QWORD PTR 32[rsp]
	add	QWORD PTR 0[r13], rax
	call	spin_lock_irq@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	__mem_cgroup_remove_exceeded@PLT
	test	r12, r12
	jne	.L4
	mov	rdi, rbp
	call	__mem_cgroup_largest_soft_limit_node@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	QWORD PTR 16[rsp], rax
	call	soft_limit_excess@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	mov	rdx, rax
	call	__mem_cgroup_insert_exceeded@PLT
	mov	rdi, rbp
	call	spin_unlock_irq@PLT
	mov	rdi, QWORD PTR [rbx]
	call	css_put@PLT
	mov	rcx, QWORD PTR 16[rsp]
	test	rcx, rcx
	je	.L2
	add	DWORD PTR 12[rsp], 1
	mov	eax, DWORD PTR 12[rsp]
	cmp	DWORD PTR MEM_CGROUP_MAX_SOFT_LIMIT_RECLAIM_LOOPS[rip], eax
	jl	.L5
	mov	rbx, rcx
	test	rbx, rbx
	jne	.L3
.L22:
	mov	rdi, rbp
	call	mem_cgroup_largest_soft_limit_node@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L3
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR [rbx]
	call	soft_limit_excess@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	mov	rdx, rax
	call	__mem_cgroup_insert_exceeded@PLT
	mov	rdi, rbp
	call	spin_unlock_irq@PLT
	mov	rdi, QWORD PTR [rbx]
	call	css_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR [rcx]
	call	css_put@PLT
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mem_cgroup_soft_limit_reclaim, .-mem_cgroup_soft_limit_reclaim
	.comm	MEM_CGROUP_MAX_SOFT_LIMIT_RECLAIM_LOOPS,4,4
	.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_memcontrol.c_mem_cgroup_soft_limit_reclaim.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mem_cgroup_soft_limit_reclaim
	.syntax unified
	.arm
	.fpu softvfp
	.type	mem_cgroup_soft_limit_reclaim, %function
mem_cgroup_soft_limit_reclaim:
	@ 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, r3
	ldr	r3, .L23
	sub	sp, sp, #12
	cmp	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ble	.L20
.L2:
	mov	r6, #0
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	mov	r8, r0
	ldr	r0, [r0]
	mov	r9, r2
	bl	soft_limit_tree_node
	subs	r5, r0, #0
	beq	.L2
	add	r0, r5, #4
	bl	RB_EMPTY_ROOT
	subs	r10, r0, #0
	bne	.L2
	mov	r4, r10
	cmp	r4, #0
	beq	.L22
.L3:
	mov	ip, #0
	mov	r1, r8
	mov	r3, sp
	mov	r2, r9
	ldr	r0, [r4]
	str	ip, [sp]
	bl	mem_cgroup_soft_reclaim
	mov	r6, r0
	ldr	r3, [r7]
	ldr	r2, [sp]
	mov	r0, r5
	add	r3, r3, r2
	str	r3, [r7]
	bl	spin_lock_irq
	mov	r1, r5
	mov	r0, r4
	bl	__mem_cgroup_remove_exceeded
	cmp	r6, #0
	bne	.L4
	mov	r0, r5
	bl	__mem_cgroup_largest_soft_limit_node
	mov	fp, r0
	ldr	r0, [r4]
	bl	soft_limit_excess
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	__mem_cgroup_insert_exceeded
	mov	r0, r5
	bl	spin_unlock_irq
	ldr	r0, [r4]
	bl	css_put
	cmp	fp, #0
	beq	.L2
	ldr	r3, .L23+4
	add	r10, r10, #1
	ldr	r3, [r3]
	cmp	r3, r10
	blt	.L5
	mov	r4, fp
	cmp	r4, #0
	bne	.L3
.L22:
	mov	r0, r5
	bl	mem_cgroup_largest_soft_limit_node
	subs	r4, r0, #0
	bne	.L3
	b	.L2
.L4:
	ldr	r0, [r4]
	bl	soft_limit_excess
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	__mem_cgroup_insert_exceeded
	mov	r0, r5
	bl	spin_unlock_irq
	ldr	r0, [r4]
	bl	css_put
	b	.L1
.L5:
	ldr	r0, [fp]
	bl	css_put
	b	.L1
.L21:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	MEM_CGROUP_MAX_SOFT_LIMIT_RECLAIM_LOOPS
	.size	mem_cgroup_soft_limit_reclaim, .-mem_cgroup_soft_limit_reclaim
	.comm	MEM_CGROUP_MAX_SOFT_LIMIT_RECLAIM_LOOPS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
