	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AllocateVfd
_AllocateVfd:                           ## @AllocateVfd
	.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	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SizeVfdCache@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	callq	_elog
	movl	%eax, %edi
	callq	_DO_DB
	xorl	%edi, %edi
	cmpl	$0, (%r13)
	setg	%dil
	callq	_Assert
	movq	_VfdCache@GOTPCREL(%rip), %r12
	movq	(%r12), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	(%r13), %eax
	addl	%eax, %eax
	cmpl	$33, %eax
	movl	$32, %ebx
	cmovgel	%eax, %ebx
	leal	(,%rbx,8), %esi
	movq	%r14, %rdi
	callq	_realloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_3:
	movq	%r14, (%r12)
	movslq	(%r13), %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	%ebx, %eax
	jge	LBB0_6
## %bb.4:
	movq	%r12, %rdx
	movq	%rax, %rbx
	shlq	$3, %rbx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
                                        ## kill: def $r13d killed $r13d killed $r13 def $r13
	negl	%r13d
	leal	1(%rax), %r15d
	movq	_VFD_CLOSED@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rbx, %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rdx, %r14
	movl	$8, %edx
	callq	_MemSet
	movq	%r14, %rdx
	movq	(%r14), %r14
	movl	%r15d, (%r14,%rbx)
	movl	(%r12), %eax
	movl	%eax, 4(%r14,%rbx)
	addq	$8, %rbx
	leal	(%r15,%r13), %eax
	incl	%eax
	movl	%r15d, %ecx
	incl	%ecx
	movl	%ecx, %r15d
	cmpl	$1, %eax
	jne	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leal	-1(%rdx), %eax
	movl	$0, (%r14,%rax,8)
	movq	_SizeVfdCache@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movl	%eax, (%r14)
	movl	%edx, (%rcx)
	movl	(%r14), %eax
LBB0_7:
	cltq
	movl	(%r14,%rax,8), %ecx
	movl	%ecx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AllocateVfd. Size %zu"

	.comm	_SizeVfdCache,4,2               ## @SizeVfdCache
	.comm	_VfdCache,8,3                   ## @VfdCache
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ## @ERRCODE_OUT_OF_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

	.comm	_VFD_CLOSED,4,2                 ## @VFD_CLOSED
	.no_dead_strip	_AllocateVfd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AllocateVfd
_AllocateVfd:                           ; @AllocateVfd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _LOG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x21, _SizeVfdCache@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SizeVfdCache@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	bl	_DO_DB
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w0, gt
	bl	_Assert
Lloh7:
	adrp	x22, _VfdCache@GOTPAGE
Lloh8:
	ldr	x22, [x22, _VfdCache@GOTPAGEOFF]
	ldr	x19, [x22]
	ldr	w8, [x19]
	cbnz	w8, LBB0_7
; %bb.1:
	ldr	w8, [x21]
	lsl	w8, w8, #1
	mov	w9, #32
	cmp	w8, #32
	csel	w23, w8, w9, gt
	lsl	w1, w23, #3
	mov	x0, x19
	bl	_realloc
	mov	x19, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
Lloh12:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_errcode
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_3:
	str	x19, [x22]
	ldr	w20, [x21]
	cmp	w20, w23
	b.ge	LBB0_6
; %bb.4:
	sxtw	x8, w20
	lsl	x24, x8, #3
Lloh17:
	adrp	x25, _VFD_CLOSED@GOTPAGE
Lloh18:
	ldr	x25, [x25, _VFD_CLOSED@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, x24
	mov	w1, #0
	mov	w2, #8
	bl	_MemSet
	ldr	x19, [x22]
	add	x8, x19, x24
	add	w20, w20, #1
	str	w20, [x8]
	ldr	w9, [x25]
	str	w9, [x8, #4]
	add	x24, x24, #8
	cmp	w23, w20
	b.ne	LBB0_5
LBB0_6:
	sub	w8, w23, #1
	lsl	x8, x8, #3
	str	wzr, [x19, x8]
	ldr	w8, [x21]
	str	w8, [x19]
	str	w23, [x21]
	ldr	w8, [x19]
LBB0_7:
	sxtw	x0, w8
	sbfiz	x8, x8, #3, #32
	ldr	w8, [x19, x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AllocateVfd. Size %zu"

	.comm	_SizeVfdCache,4,2               ; @SizeVfdCache
	.comm	_VfdCache,8,3                   ; @VfdCache
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ; @ERRCODE_OUT_OF_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

	.comm	_VFD_CLOSED,4,2                 ; @VFD_CLOSED
	.no_dead_strip	_AllocateVfd
.subsections_via_symbols
