	.file	"extr_swap_cgroup.c_swap_cgroup_swapon.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"couldn't allocate enough memory for swap_cgroup\n"
	.align 8
.LC1:
	.string	"swap_cgroup can be disabled by swapaccount=0 boot option\n"
	.text
	.p2align 4
	.globl	swap_cgroup_swapon
	.type	swap_cgroup_swapon, @function
swap_cgroup_swapon:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR do_swap_account[rip]
	test	eax, eax
	jne	.L16
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR SC_PER_PAGE[rip]
	call	DIV_ROUND_UP@PLT
	lea	rdi, 0[0+rax*8]
	mov	r13, rax
	call	vzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L3
	movsx	rax, ebp
	lea	rdi, swap_cgroup_mutex[rip]
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR swap_cgroup_ctrl[rip]
	lea	rbx, [rax+rdx*8]
	call	mutex_lock@PLT
	mov	QWORD PTR [rbx], r13
	lea	rdi, 16[rbx]
	mov	QWORD PTR 8[rbx], r12
	call	spin_lock_init@PLT
	mov	edi, ebp
	call	swap_cgroup_prepare@PLT
	test	rax, rax
	jne	.L17
	lea	rdi, swap_cgroup_mutex[rip]
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	QWORD PTR 8[rbx], 0
	lea	rdi, swap_cgroup_mutex[rip]
	mov	QWORD PTR [rbx], 0
	call	mutex_unlock@PLT
	mov	rdi, r12
	call	vfree@PLT
.L3:
	lea	rdi, .LC0[rip]
	call	pr_info@PLT
	lea	rdi, .LC1[rip]
	call	pr_info@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	swap_cgroup_swapon, .-swap_cgroup_swapon
	.comm	swap_cgroup_mutex,4,4
	.comm	swap_cgroup_ctrl,8,8
	.comm	do_swap_account,4,4
	.comm	SC_PER_PAGE,4,4
	.comm	ENOMEM,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_swap_cgroup.c_swap_cgroup_swapon.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"couldn't allocate enough memory for swap_cgroup\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"swap_cgroup can be disabled by swapaccount=0 boot o"
	.ascii	"ption\012\000"
	.text
	.align	2
	.global	swap_cgroup_swapon
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap_cgroup_swapon, %function
swap_cgroup_swapon:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, [r3]
	cmp	r4, #0
	bne	.L13
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	ldr	r3, .L15+4
	mov	r5, r0
	mov	r0, r1
	ldr	r1, [r3]
	bl	DIV_ROUND_UP
	mov	r4, r0
	lsl	r0, r0, #2
	bl	vzalloc
	subs	r7, r0, #0
	beq	.L3
	ldr	r3, .L15+8
	add	r6, r5, r5, lsl #1
	ldr	r8, [r3]
	lsl	r9, r6, #2
	ldr	r0, .L15+12
	add	r6, r8, r6, lsl #2
	bl	mutex_lock
	str	r4, [r8, r9]
	add	r0, r6, #8
	str	r7, [r6, #4]
	bl	spin_lock_init
	mov	r0, r5
	bl	swap_cgroup_prepare
	subs	r4, r0, #0
	bne	.L14
	ldr	r0, .L15+12
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	mov	r3, #0
	ldr	r0, .L15+12
	str	r3, [r6, #4]
	str	r3, [r8, r9]
	bl	mutex_unlock
	mov	r0, r7
	bl	vfree
.L3:
	ldr	r0, .L15+16
	bl	pr_info
	ldr	r0, .L15+20
	bl	pr_info
	ldr	r3, .L15+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	.align	2
.L15:
	.word	do_swap_account
	.word	SC_PER_PAGE
	.word	swap_cgroup_ctrl
	.word	swap_cgroup_mutex
	.word	.LC0
	.word	.LC1
	.word	ENOMEM
	.size	swap_cgroup_swapon, .-swap_cgroup_swapon
	.comm	swap_cgroup_mutex,4,4
	.comm	swap_cgroup_ctrl,4,4
	.comm	do_swap_account,4,4
	.comm	SC_PER_PAGE,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
