	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_visibilitymap_clear            ## -- Begin function visibilitymap_clear
	.p2align	4, 0x90
_visibilitymap_clear:                   ## @visibilitymap_clear
	.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
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_HEAPBLK_TO_MAPBLOCK
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_HEAPBLK_TO_MAPBYTE
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_HEAPBLK_TO_OFFSET
	movl	%r13d, %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	movq	_VISIBILITYMAP_VALID_BITS@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movl	%r13d, %edi
	callq	_Assert
	movl	%r12d, %edi
	callq	_BufferIsValid
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_BufferGetBlockNumber
	cmpq	%r15, %rax
	je	LBB0_3
LBB0_2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_3:
	movq	_BUFFER_LOCK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_LockBuffer
	movl	%r12d, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetContents
	movslq	%r14d, %rcx
	movsbl	(%rax,%rcx), %edx
	testl	%edx, %ebx
	je	LBB0_4
## %bb.5:
	notb	%bl
	andb	%dl, %bl
	movb	%bl, (%rax,%rcx)
	movl	%r12d, %edi
	callq	_MarkBufferDirty
	movl	$1, %ebx
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_LockBuffer
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VISIBILITYMAP_VALID_BITS,4,2   ## @VISIBILITYMAP_VALID_BITS
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong buffer passed to visibilitymap_clear"

	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ## @BUFFER_LOCK_EXCLUSIVE
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.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_clear            ; -- Begin function visibilitymap_clear
	.p2align	2
_visibilitymap_clear:                   ; @visibilitymap_clear
	.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	x22, x3
	mov	x19, x2
	mov	x23, x1
	mov	x0, x1
	bl	_HEAPBLK_TO_MAPBLOCK
	mov	x21, x0
	mov	x0, x23
	bl	_HEAPBLK_TO_MAPBYTE
	mov	x20, x0
	mov	x0, x23
	bl	_HEAPBLK_TO_OFFSET
	lsl	w23, w22, w0
Lloh0:
	adrp	x8, _VISIBILITYMAP_VALID_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VISIBILITYMAP_VALID_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w0, w8, w22
	bl	_Assert
	mov	x0, x19
	bl	_BufferIsValid
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_BufferGetBlockNumber
	cmp	x0, x21
	b.eq	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_3:
Lloh8:
	adrp	x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LockBuffer
	mov	x0, x19
	bl	_BufferGetPage
	bl	_PageGetContents
	sxtw	x8, w20
	ldrsb	w9, [x0, x8]
	tst	w23, w9
	b.eq	LBB0_5
; %bb.4:
	and	w9, w9, #0xff
	bic	w9, w9, w23
	strb	w9, [x0, x8]
	mov	x0, x19
	bl	_MarkBufferDirty
	mov	w20, #1
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
Lloh11:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LockBuffer
	mov	x0, x20
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VISIBILITYMAP_VALID_BITS,4,2   ; @VISIBILITYMAP_VALID_BITS
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong buffer passed to visibilitymap_clear"

	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ; @BUFFER_LOCK_EXCLUSIVE
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.comm	_DEBUG1,4,2                     ; @DEBUG1
.subsections_via_symbols
