	.file	"extr_hibernate.c_disk_store.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"PM: Hibernation mode set to '%s'\n"
	.text
	.p2align 4
	.type	disk_store, @function
disk_store:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	esi, 10
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	mov	rdx, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	rdi, r13
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	movsx	r14, DWORD PTR HIBERNATION_INVALID[rip]
	call	memchr@PLT
	lea	rdi, pm_mutex[rip]
	mov	r12, rax
	sub	r12, r13
	test	rax, rax
	cmove	r12d, r15d
	call	mutex_lock@PLT
	mov	ebp, DWORD PTR HIBERNATION_FIRST[rip]
	cmp	ebp, DWORD PTR HIBERNATION_MAX[rip]
	jg	.L4
	movsx	rbx, ebp
	sal	rbx, 2
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	add	ebp, 1
	add	rbx, 4
	cmp	DWORD PTR HIBERNATION_MAX[rip], ebp
	jl	.L4
.L6:
	mov	rax, QWORD PTR hibernation_modes[rip]
	mov	edi, DWORD PTR [rax+rbx]
	call	strlen@PLT
	cmp	eax, r12d
	jne	.L7
	mov	rax, QWORD PTR hibernation_modes[rip]
	mov	edx, r12d
	mov	rdi, r13
	mov	esi, DWORD PTR [rax+rbx]
	call	strncmp@PLT
	test	eax, eax
	jne	.L7
	movsx	r14, ebp
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	DWORD PTR HIBERNATION_INVALID[rip], r14d
	je	.L8
	cmp	r14d, 131
	jle	.L18
	cmp	r14d, 132
	jne	.L11
	mov	eax, DWORD PTR hibernation_ops[rip]
	test	eax, eax
	jne	.L19
.L8:
	mov	eax, DWORD PTR EINVAL[rip]
	mov	r12d, eax
	neg	r12d
	test	eax, eax
	je	.L11
	lea	rdi, pm_mutex[rip]
	call	mutex_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	r14d, 127
	jg	.L20
.L11:
	mov	rax, QWORD PTR hibernation_modes[rip]
	lea	rdi, .LC0[rip]
	mov	r12d, r15d
	mov	esi, DWORD PTR [rax+r14*4]
	call	pr_debug@PLT
	lea	rdi, pm_mutex[rip]
	call	mutex_unlock@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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	DWORD PTR hibernation_mode[rip], r14d
	jmp	.L11
.L19:
	mov	DWORD PTR hibernation_mode[rip], 132
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	disk_store, .-disk_store
	.comm	pm_mutex,4,4
	.comm	hibernation_ops,4,4
	.comm	hibernation_modes,8,8
	.comm	hibernation_mode,4,4
	.comm	HIBERNATION_MAX,4,4
	.comm	HIBERNATION_INVALID,4,4
	.comm	HIBERNATION_FIRST,4,4
	.comm	EINVAL,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_hibernate.c_disk_store.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PM: Hibernation mode set to '%s'\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	disk_store, %function
disk_store:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r2
	ldr	r10, .L23
	mov	r2, r3
	mov	r1, #10
	mov	r0, r7
	mov	r9, r3
	ldr	r8, [r10]
	bl	memchr
	cmp	r0, #0
	subne	r5, r0, r7
	ldr	r0, .L23+4
	moveq	r5, r9
	ldr	r6, .L23+8
	bl	mutex_lock
	ldr	r2, .L23+12
	ldr	r3, [r6]
	ldr	r4, [r2]
	cmp	r4, r3
	bgt	.L4
	ldr	fp, .L23+16
	b	.L6
.L7:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	blt	.L4
.L6:
	ldr	r3, [fp]
	ldr	r0, [r3, r4, lsl #2]
	bl	strlen
	cmp	r0, r5
	bne	.L7
	ldr	r3, [fp]
	mov	r2, r5
	mov	r0, r7
	ldr	r1, [r3, r4, lsl #2]
	bl	strncmp
	cmp	r0, #0
	bne	.L7
	mov	r8, r4
.L4:
	ldr	r3, [r10]
	cmp	r3, r8
	beq	.L8
	cmp	r8, #131
	ble	.L22
	cmp	r8, #132
	bne	.L11
	ldr	r3, .L23+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
.L8:
	ldr	r3, .L23+24
	ldr	r4, [r3]
	cmp	r4, #0
	rsb	r4, r4, #0
	beq	.L11
	ldr	r0, .L23+4
	bl	mutex_unlock
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	cmp	r8, #127
	bgt	.L20
.L11:
	mov	r4, r9
	ldr	r3, .L23+16
	ldr	r0, .L23+28
	ldr	r3, [r3]
	ldr	r1, [r3, r8, lsl #2]
	bl	pr_debug
	ldr	r0, .L23+4
	bl	mutex_unlock
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r3, .L23+32
	str	r8, [r3]
	b	.L11
.L24:
	.align	2
.L23:
	.word	HIBERNATION_INVALID
	.word	pm_mutex
	.word	HIBERNATION_MAX
	.word	HIBERNATION_FIRST
	.word	hibernation_modes
	.word	hibernation_ops
	.word	EINVAL
	.word	.LC0
	.word	hibernation_mode
	.size	disk_store, .-disk_store
	.comm	pm_mutex,4,4
	.comm	hibernation_ops,4,4
	.comm	hibernation_modes,4,4
	.comm	hibernation_mode,4,4
	.comm	HIBERNATION_MAX,4,4
	.comm	HIBERNATION_INVALID,4,4
	.comm	HIBERNATION_FIRST,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
