	.file	"extr_zalloc.c_get_zone_page_metadata.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_zone_page_metadata, @function
get_zone_page_metadata:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	mov	esi, 4
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	from_zone_map@PLT
	test	rax, rax
	je	.L2
	mov	rdi, r12
	call	PAGE_METADATA_FOR_ELEMENT@PLT
	mov	r12, rax
	test	rbx, rbx
	jne	.L14
.L3:
	mov	rdi, r12
	call	PAGE_METADATA_GET_ZINDEX@PLT
	cmp	rax, QWORD PTR MULTIPAGE_METADATA_MAGIC[rip]
	je	.L15
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, r12d
	call	trunc_page@PLT
	mov	r12, rax
	test	rbx, rbx
	je	.L3
	mov	esi, 4
	mov	rdi, r12
	call	bzero@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	page_metadata_get_realmeta@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, rax
	call	zone_populate_metadata_page@PLT
	mov	esi, 4
	mov	rdi, r12
	call	bzero@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	get_zone_page_metadata, .-get_zone_page_metadata
	.comm	MULTIPAGE_METADATA_MAGIC,8,8
	.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_zalloc.c_get_zone_page_metadata.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_zone_page_metadata, %function
get_zone_page_metadata:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r1, #4
	mov	r5, r0
	bl	from_zone_map
	cmp	r0, #0
	mov	r0, r5
	beq	.L2
	bl	PAGE_METADATA_FOR_ELEMENT
	cmp	r4, #0
	mov	r4, r0
	bne	.L14
.L3:
	mov	r0, r4
	bl	PAGE_METADATA_GET_ZINDEX
	ldr	r3, .L15
	ldr	r3, [r3]
	cmp	r0, r3
	mov	r0, r4
	popne	{r4, r5, r6, pc}
	pop	{r4, r5, r6, lr}
	b	page_metadata_get_realmeta
.L2:
	bl	trunc_page
	cmp	r4, #0
	mov	r4, r0
	beq	.L3
	mov	r1, #4
	mov	r0, r4
	bl	bzero
	b	.L3
.L14:
	bl	zone_populate_metadata_page
	mov	r1, #4
	mov	r0, r4
	bl	bzero
	b	.L3
.L16:
	.align	2
.L15:
	.word	MULTIPAGE_METADATA_MAGIC
	.size	get_zone_page_metadata, .-get_zone_page_metadata
	.comm	MULTIPAGE_METADATA_MAGIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
