	.file	"extr_visibilitymap.c_visibilitymap_get_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	visibilitymap_get_status
	.type	visibilitymap_get_status, @function
visibilitymap_get_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edi
	mov	rdi, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	call	HEAPBLK_TO_MAPBLOCK@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	HEAPBLK_TO_MAPBYTE@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	HEAPBLK_TO_OFFSET@PLT
	mov	edi, DWORD PTR [rbx]
	mov	ebp, eax
	call	BufferIsValid@PLT
	mov	edi, DWORD PTR [rbx]
	test	rax, rax
	jne	.L2
.L3:
	call	BufferIsValid@PLT
	test	rax, rax
	jne	.L7
	xor	edx, edx
	mov	edi, r14d
	mov	rsi, r12
	call	vm_readbuf@PLT
	mov	DWORD PTR [rbx], eax
	mov	edi, eax
	call	BufferIsValid@PLT
	test	rax, rax
	je	.L1
.L7:
	mov	edi, DWORD PTR [rbx]
	call	BufferGetPage@PLT
	mov	edi, eax
	call	PageGetContents@PLT
	movsx	edx, BYTE PTR VISIBILITYMAP_VALID_BITS[rip]
	mov	ecx, ebp
	movsx	eax, BYTE PTR [rax+r13]
	sar	eax, cl
	and	eax, edx
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L2:
	.cfi_restore_state
	call	BufferGetBlockNumber@PLT
	mov	edi, DWORD PTR [rbx]
	cmp	rax, r12
	je	.L3
	call	ReleaseBuffer@PLT
	mov	edi, DWORD PTR InvalidBuffer[rip]
	mov	DWORD PTR [rbx], edi
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	visibilitymap_get_status, .-visibilitymap_get_status
	.comm	VISIBILITYMAP_VALID_BITS,1,1
	.comm	InvalidBuffer,4,4
	.comm	DEBUG1,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_visibilitymap.c_visibilitymap_get_status.c"
	.text
	.align	2
	.global	visibilitymap_get_status
	.syntax unified
	.arm
	.fpu softvfp
	.type	visibilitymap_get_status, %function
visibilitymap_get_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r0
	mov	r0, r1
	mov	r5, r1
	mov	r4, r2
	bl	HEAPBLK_TO_MAPBLOCK
	mov	r6, r0
	mov	r0, r5
	bl	HEAPBLK_TO_MAPBYTE
	mov	r7, r0
	mov	r0, r5
	bl	HEAPBLK_TO_OFFSET
	mov	r5, r0
	ldr	r0, [r4]
	bl	BufferIsValid
	cmp	r0, #0
	ldr	r0, [r4]
	bne	.L2
.L3:
	bl	BufferIsValid
	subs	r2, r0, #0
	bne	.L7
	mov	r1, r6
	mov	r0, r8
	bl	vm_readbuf
	str	r0, [r4]
	bl	BufferIsValid
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r0, [r4]
	bl	BufferGetPage
	bl	PageGetContents
	ldr	r3, .L10
	ldrb	r0, [r0, r7]	@ zero_extendqisi2
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r0, r3, r0, asr r5
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	bl	BufferGetBlockNumber
	cmp	r0, r6
	ldr	r0, [r4]
	beq	.L3
	bl	ReleaseBuffer
	ldr	r3, .L10+4
	ldr	r0, [r3]
	str	r0, [r4]
	b	.L3
.L11:
	.align	2
.L10:
	.word	VISIBILITYMAP_VALID_BITS
	.word	InvalidBuffer
	.size	visibilitymap_get_status, .-visibilitymap_get_status
	.comm	VISIBILITYMAP_VALID_BITS,1,1
	.comm	InvalidBuffer,4,4
	.comm	DEBUG1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
