	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetVisibilityMapPins
_GetVisibilityMapPins:                  ## @GetVisibilityMapPins
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_BufferIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	_InvalidBuffer@GOTPCREL(%rip), %r14
	cmpq	%rbx, (%r14)
	sete	%al
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	cmpq	%r15, %r12
	setle	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageIsAllVisible
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_visibilitymap_pin_ok
	testl	%eax, %eax
	sete	%r15b
	cmpq	%rbx, (%r14)
	jne	LBB0_5
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r15d, %r15d
	cmpq	%rbx, (%r14)
	je	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageIsAllVisible
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbp), %rax
	movq	(%rax), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_visibilitymap_pin_ok
	testl	%eax, %eax
	sete	%r12b
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r12d, %r12d
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %eax
	orb	%r12b, %al
	cmpb	$1, %al
	jne	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_LockBuffer
	cmpq	%r13, %rbx
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rbx, (%r14)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LockBuffer
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	testb	%r15b, %r15b
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_visibilitymap_pin
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	testb	%r12b, %r12b
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rbp), %rdx
	callq	_visibilitymap_pin
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_BUFFER_LOCK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_LockBuffer
	movq	(%r14), %rax
	cmpq	%r13, %rbx
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rbx, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_BUFFER_LOCK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LockBuffer
	movq	(%r14), %rax
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r13, %rbx
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rbx, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	andb	%r12b, %r15b
	je	LBB0_1
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBuffer,8,3              ## @InvalidBuffer
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ## @BUFFER_LOCK_EXCLUSIVE
	.no_dead_strip	_GetVisibilityMapPins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetVisibilityMapPins
_GetVisibilityMapPins:                  ; @GetVisibilityMapPins
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x6, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	mov	x0, x1
	bl	_BufferIsValid
	bl	_Assert
Lloh0:
	adrp	x26, _InvalidBuffer@GOTPAGE
Lloh1:
	ldr	x26, [x26, _InvalidBuffer@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x22, x21
	ccmp	x8, x23, #4, gt
	cset	w0, eq
	bl	_Assert
Lloh2:
	adrp	x28, _BUFFER_LOCK_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _BUFFER_LOCK_EXCLUSIVE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_BufferGetPage
	bl	_PageIsAllVisible
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x20]
	mov	x0, x22
	bl	_visibilitymap_pin_ok
	cmp	w0, #0
	cset	w27, eq
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w27, #0
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x26]
	cmp	x8, x23
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_BufferGetPage
	bl	_PageIsAllVisible
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x1, [x8]
	mov	x0, x21
	bl	_visibilitymap_pin_ok
	cmp	w0, #0
	cset	w19, eq
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w19, #0
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	orr	w8, w27, w19
	cmp	w8, #1
	b.ne	LBB0_22
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh4:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_LockBuffer
	cmp	x23, x24
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x26]
	cmp	x8, x23
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh7:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_LockBuffer
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w27, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x25
	mov	x1, x22
	mov	x2, x20
	bl	_visibilitymap_pin
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w19, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x25
	mov	x1, x21
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	bl	_visibilitymap_pin
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x28]
	mov	x0, x24
	bl	_LockBuffer
	ldr	x8, [x26]
	cmp	x23, x24
	b.eq	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_1 Depth=1
	cmp	x8, x23
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x28]
	mov	x0, x23
	bl	_LockBuffer
	ldr	x8, [x26]
LBB0_19:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	x23, x24
	b.eq	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_1 Depth=1
	cmp	x8, x23
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_1 Depth=1
	and	w8, w27, w19
	cbz	w8, LBB0_1
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBuffer,8,3              ; @InvalidBuffer
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ; @BUFFER_LOCK_EXCLUSIVE
	.no_dead_strip	_GetVisibilityMapPins
.subsections_via_symbols
