	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_extend
_vm_extend:                             ## @vm_extend
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_PageInit
	movq	_ExclusiveLock@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_LockRelationForExtension
	movq	%r15, %rdi
	callq	_RelationOpenSmgr
	movq	(%r15), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_2:
	movq	_VISIBILITYMAP_FORKNUM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_smgrexists
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_smgrcreate
LBB0_4:
	movq	(%r15), %rdi
	movq	_VISIBILITYMAP_FORKNUM@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_smgrnblocks
	movq	%rax, %rbx
	cmpq	%r14, %rax
	jge	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	callq	_PageSetChecksumInplace
	movq	(%r15), %rdi
	movl	(%r13), %esi
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	callq	_smgrextend
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_5
## %bb.6:
	movq	%r14, %rbx
LBB0_7:
	movq	(%r15), %rax
	movl	8(%rax), %edi
	callq	_CacheInvalidateSmgr
	movq	(%r15), %rax
	movq	%rbx, (%rax)
	movl	(%r12), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UnlockRelationForExtension     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_ExclusiveLock,4,2              ## @ExclusiveLock
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_VISIBILITYMAP_FORKNUM,4,2      ## @VISIBILITYMAP_FORKNUM
	.no_dead_strip	_vm_extend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_extend
_vm_extend:                             ; @vm_extend
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_PageInit
Lloh3:
	adrp	x22, _ExclusiveLock@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_LockRelationForExtension
	mov	x0, x19
	bl	_RelationOpenSmgr
	ldr	x0, [x19]
Lloh5:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh6:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh7:
	ldr	x8, [x8]
	cmp	x9, #0
	ccmp	x9, x8, #4, ne
Lloh8:
	adrp	x23, _VISIBILITYMAP_FORKNUM@GOTPAGE
Lloh9:
	ldr	x23, [x23, _VISIBILITYMAP_FORKNUM@GOTPAGEOFF]
	b.ne	LBB0_3
; %bb.1:
	ldr	w1, [x23]
	bl	_smgrexists
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x0, [x19]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_smgrcreate
LBB0_3:
	ldr	x0, [x19]
	ldr	w1, [x23]
	bl	_smgrnblocks
	mov	x21, x0
	cmp	x0, x20
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	bl	_PageSetChecksumInplace
	ldr	x0, [x19]
	ldr	w1, [x23]
	mov	x2, x21
	mov	w4, #0
	bl	_smgrextend
	add	x21, x21, #1
	cmp	x20, x21
	b.ne	LBB0_4
; %bb.5:
	mov	x21, x20
LBB0_6:
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_CacheInvalidateSmgr
	ldr	x8, [x19]
	str	x21, [x8]
	ldr	w1, [x22]
	mov	x0, x19
	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
	b	_UnlockRelationForExtension
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_ExclusiveLock,4,2              ; @ExclusiveLock
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_VISIBILITYMAP_FORKNUM,4,2      ; @VISIBILITYMAP_FORKNUM
	.no_dead_strip	_vm_extend
.subsections_via_symbols
