	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_visibilitymap_get_status       ## -- Begin function visibilitymap_get_status
	.p2align	4, 0x90
_visibilitymap_get_status:              ## @visibilitymap_get_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	%rsi, %rdi
	callq	_HEAPBLK_TO_MAPBLOCK
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_HEAPBLK_TO_MAPBYTE
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_HEAPBLK_TO_OFFSET
	movl	%eax, %r15d
	movl	(%r14), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%r14), %edi
	callq	_BufferGetBlockNumber
	cmpq	%r13, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	callq	_ReleaseBuffer
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_3:
	movl	(%r14), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	%r12d, %edi
	xorl	%r12d, %r12d
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_vm_readbuf
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movl	(%r14), %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetContents
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movsbl	(%rax,%rcx), %eax
	movl	%r15d, %ecx
	sarl	%cl, %eax
	movq	_VISIBILITYMAP_VALID_BITS@GOTPCREL(%rip), %rcx
	movsbl	(%rcx), %r12d
	andl	%eax, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_VISIBILITYMAP_VALID_BITS,1,0   ## @VISIBILITYMAP_VALID_BITS
	.comm	_DEBUG1,4,2                     ## @DEBUG1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_visibilitymap_get_status       ; -- Begin function visibilitymap_get_status
	.p2align	2
_visibilitymap_get_status:              ; @visibilitymap_get_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_HEAPBLK_TO_MAPBLOCK
	mov	x23, x0
	mov	x0, x21
	bl	_HEAPBLK_TO_MAPBYTE
	mov	x20, x0
	mov	x0, x21
	bl	_HEAPBLK_TO_OFFSET
	mov	x21, x0
	ldr	w0, [x19]
	bl	_BufferIsValid
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	bl	_BufferGetBlockNumber
	cmp	x0, x23
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19]
	bl	_ReleaseBuffer
Lloh0:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_3:
	ldr	w0, [x19]
	bl	_BufferIsValid
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_vm_readbuf
	str	w0, [x19]
	bl	_BufferIsValid
	cbz	x0, LBB0_6
LBB0_5:
	ldr	w0, [x19]
	bl	_BufferGetPage
	bl	_PageGetContents
	ldrsb	w8, [x0, x20]
	asr	w8, w8, w21
Lloh3:
	adrp	x9, _VISIBILITYMAP_VALID_BITS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VISIBILITYMAP_VALID_BITS@GOTPAGEOFF]
Lloh5:
	ldrsb	w9, [x9]
	and	w0, w8, w9
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_VISIBILITYMAP_VALID_BITS,1,0   ; @VISIBILITYMAP_VALID_BITS
	.comm	_DEBUG1,4,2                     ; @DEBUG1
.subsections_via_symbols
