	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function InitLocalBuffers
_InitLocalBuffers:                      ## @InitLocalBuffers
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_num_temp_buffers@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_IsParallelWorker
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_TRANSACTION_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	_LocalBufferDescriptors@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	_LocalBufferBlockPointers@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	_LocalRefCount@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	_nextFreeLocalBuf@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	movl	$-2, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_GetLocalBufferDescriptor
	movl	%r15d, (%rax)
	incl	%ebx
	decl	%r15d
	cmpl	%ebx, %r14d
	jne	LBB0_8
LBB0_9:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_MemSet
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, -32(%rbp)
	movq	_HASH_ELEM@GOTPCREL(%rip), %rax
	movq	_HASH_BLOBS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_hash_create
	movq	_LocalBufHash@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_elog
LBB0_11:
	movq	_NLocBuffer@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_temp_buffers,4,2           ## @num_temp_buffers
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_TRANSACTION_STATE,4,2 ## @ERRCODE_INVALID_TRANSACTION_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot access temporary tables during a parallel operation"

	.comm	_LocalBufferDescriptors,8,3     ## @LocalBufferDescriptors
	.comm	_LocalBufferBlockPointers,8,3   ## @LocalBufferBlockPointers
	.comm	_LocalRefCount,8,3              ## @LocalRefCount
	.comm	_FATAL,4,2                      ## @FATAL
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ## @ERRCODE_OUT_OF_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

	.comm	_nextFreeLocalBuf,8,3           ## @nextFreeLocalBuf
L_.str.2:                               ## @.str.2
	.asciz	"Local Buffer Lookup Table"

	.comm	_HASH_ELEM,4,2                  ## @HASH_ELEM
	.comm	_HASH_BLOBS,4,2                 ## @HASH_BLOBS
	.comm	_LocalBufHash,4,2               ## @LocalBufHash
L_.str.3:                               ## @.str.3
	.asciz	"could not initialize local buffer hash table"

	.comm	_NLocBuffer,4,2                 ## @NLocBuffer
	.no_dead_strip	_InitLocalBuffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function InitLocalBuffers
_InitLocalBuffers:                      ; @InitLocalBuffers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, _num_temp_buffers@GOTPAGE
Lloh1:
	ldr	x8, [x8, _num_temp_buffers@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_IsParallelWorker
Lloh3:
	adrp	x21, _ERROR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w20, [x21]
Lloh5:
	adrp	x8, _ERRCODE_INVALID_TRANSACTION_STATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_INVALID_TRANSACTION_STATE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_2:
	mov	x0, x19
	mov	w1, #4
	bl	_calloc
Lloh10:
	adrp	x20, _LocalBufferDescriptors@GOTPAGE
Lloh11:
	ldr	x20, [x20, _LocalBufferDescriptors@GOTPAGEOFF]
	str	x0, [x20]
	mov	x0, x19
	mov	w1, #4
	bl	_calloc
Lloh12:
	adrp	x22, _LocalBufferBlockPointers@GOTPAGE
Lloh13:
	ldr	x22, [x22, _LocalBufferBlockPointers@GOTPAGEOFF]
	str	x0, [x22]
	mov	x0, x19
	mov	w1, #4
	bl	_calloc
Lloh14:
	adrp	x8, _LocalRefCount@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LocalRefCount@GOTPAGEOFF]
Lloh16:
	str	x0, [x8]
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh17:
	adrp	x8, _FATAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
Lloh20:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_errcode
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_4:
Lloh25:
	adrp	x8, _nextFreeLocalBuf@GOTPAGE
Lloh26:
	ldr	x8, [x8, _nextFreeLocalBuf@GOTPAGEOFF]
Lloh27:
	str	xzr, [x8]
	cmp	w19, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w20, #0
	mov	w22, #-2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_GetLocalBufferDescriptor
	str	w22, [x0]
	add	w20, w20, #1
	sub	w22, w22, #1
	cmp	w19, w20
	b.ne	LBB0_6
LBB0_7:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_MemSet
	movi.2s	v0, #4
Lloh28:
	adrp	x8, _HASH_ELEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HASH_ELEM@GOTPAGEOFF]
	str	d0, [sp, #8]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _HASH_BLOBS@GOTPAGE
Lloh32:
	ldr	x9, [x9, _HASH_BLOBS@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	x1, x19
	bl	_hash_create
Lloh36:
	adrp	x8, _LocalBufHash@GOTPAGE
Lloh37:
	ldr	x8, [x8, _LocalBufHash@GOTPAGEOFF]
Lloh38:
	str	w0, [x8]
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	w0, [x21]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_elog
LBB0_9:
Lloh41:
	adrp	x8, _NLocBuffer@GOTPAGE
Lloh42:
	ldr	x8, [x8, _NLocBuffer@GOTPAGEOFF]
Lloh43:
	str	w19, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_num_temp_buffers,4,2           ; @num_temp_buffers
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_TRANSACTION_STATE,4,2 ; @ERRCODE_INVALID_TRANSACTION_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot access temporary tables during a parallel operation"

	.comm	_LocalBufferDescriptors,8,3     ; @LocalBufferDescriptors
	.comm	_LocalBufferBlockPointers,8,3   ; @LocalBufferBlockPointers
	.comm	_LocalRefCount,8,3              ; @LocalRefCount
	.comm	_FATAL,4,2                      ; @FATAL
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ; @ERRCODE_OUT_OF_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

	.comm	_nextFreeLocalBuf,8,3           ; @nextFreeLocalBuf
l_.str.2:                               ; @.str.2
	.asciz	"Local Buffer Lookup Table"

	.comm	_HASH_ELEM,4,2                  ; @HASH_ELEM
	.comm	_HASH_BLOBS,4,2                 ; @HASH_BLOBS
	.comm	_LocalBufHash,4,2               ; @LocalBufHash
l_.str.3:                               ; @.str.3
	.asciz	"could not initialize local buffer hash table"

	.comm	_NLocBuffer,4,2                 ; @NLocBuffer
	.no_dead_strip	_InitLocalBuffers
.subsections_via_symbols
