	.file	"extr_IOHibernateRestoreKernel.c_hibernate_page_list_grab.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hibernate_page_list_grab, @function
hibernate_page_list_grab:
.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
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	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
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r14, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	lea	rax, 1[r14]
	mov	QWORD PTR [rsp], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR [rsp]
	mov	esi, DWORD PTR FALSE[rip]
	mov	rdi, rbx
	call	hibernate_page_bitmap_count@PLT
	add	rax, QWORD PTR [rsp]
	mov	QWORD PTR [rsp], rax
	cmp	rax, QWORD PTR [rbx]
	jle	.L10
.L2:
	mov	rsi, r12
	mov	rdi, rbp
	call	hibernate_page_bitmap_pin@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L4
	mov	edi, DWORD PTR kIOHibernateRestoreCodeNoMemory[rip]
	mov	rsi, r14
	xor	r14d, r14d
	call	debug_code@PLT
	xor	eax, eax
	call	fatal@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r14
	pop	rbx
	.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
.L10:
	.cfi_restore_state
	mov	QWORD PTR 0[r13], rax
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hibernate_page_list_grab, .-hibernate_page_list_grab
	.comm	kIOHibernateRestoreCodeNoMemory,4,4
	.comm	FALSE,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_IOHibernateRestoreKernel.c_hibernate_page_list_grab.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hibernate_page_list_grab, %function
hibernate_page_list_grab:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, [r1]
	ldr	r2, .L12
	sub	sp, sp, #8
	add	r3, r8, #1
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	mov	r7, r1
	mov	r5, r0
	ldr	r6, .L12+4
	str	r3, [sp]
	b	.L2
.L4:
	ldr	r2, [sp]
	ldr	r1, [r6]
	bl	hibernate_page_bitmap_count
	ldr	r3, [sp]
	add	r0, r0, r3
	str	r0, [sp]
	ldr	r3, [r4]
	cmp	r0, r3
	ble	.L10
.L2:
	mov	r1, sp
	mov	r0, r5
	bl	hibernate_page_bitmap_pin
	subs	r4, r0, #0
	bne	.L4
	ldr	r3, .L12+8
	mov	r1, r8
	ldr	r0, [r3]
	mov	r8, r4
	bl	debug_code
	bl	fatal
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r8
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	str	r0, [r7]
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	FALSE
	.word	kIOHibernateRestoreCodeNoMemory
	.size	hibernate_page_list_grab, .-hibernate_page_list_grab
	.comm	kIOHibernateRestoreCodeNoMemory,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
