	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_palloc_extended                ## -- Begin function palloc_extended
	.p2align	4, 0x90
_palloc_extended:                       ## @palloc_extended
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_MemoryContextIsValid
	movl	%eax, %edi
	callq	_AssertArg
	movq	%r12, %rdi
	callq	_AssertNotInCriticalSection
	movq	_MCXT_ALLOC_HUGE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%r15d, %eax
	je	LBB0_3
## %bb.1:
	movl	%r14d, %edi
	callq	_AllocHugeSizeIsValid
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	(%rbx), %eax
LBB0_3:
	testl	%r15d, %eax
	jne	LBB0_6
## %bb.4:
	movl	%r14d, %edi
	callq	_AllocSizeIsValid
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_elog
LBB0_6:
	movl	$0, (%r12)
	movq	8(%r12), %rax
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	*(%rax)
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_MCXT_ALLOC_NO_OOM@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	_TopMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MemoryContextStats
	movq	_ERROR@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	4(%r12), %edx
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	callq	_errdetail
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_9:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_VALGRIND_MEMPOOL_ALLOC
	movq	_MCXT_ALLOC_ZERO@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_MemSetAligned
LBB0_13:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentMemoryContext,8,3       ## @CurrentMemoryContext
	.comm	_MCXT_ALLOC_HUGE,4,2            ## @MCXT_ALLOC_HUGE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid memory alloc request size %zu"

	.comm	_MCXT_ALLOC_NO_OOM,4,2          ## @MCXT_ALLOC_NO_OOM
	.comm	_TopMemoryContext,4,2           ## @TopMemoryContext
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ## @ERRCODE_OUT_OF_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

L_.str.2:                               ## @.str.2
	.asciz	"Failed on request of size %zu in memory context \"%s\"."

	.comm	_MCXT_ALLOC_ZERO,4,2            ## @MCXT_ALLOC_ZERO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_palloc_extended                ; -- Begin function palloc_extended
	.p2align	2
_palloc_extended:                       ; @palloc_extended
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_MemoryContextIsValid
	bl	_AssertArg
	mov	x0, x20
	bl	_AssertNotInCriticalSection
Lloh3:
	adrp	x22, _MCXT_ALLOC_HUGE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MCXT_ALLOC_HUGE@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_AllocHugeSizeIsValid
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w8, [x22]
LBB0_3:
	tst	w8, w21
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_AllocSizeIsValid
	cbnz	w0, LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_elog
LBB0_6:
	str	wzr, [x20]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.7:
Lloh10:
	adrp	x8, _MCXT_ALLOC_NO_OOM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MCXT_ALLOC_NO_OOM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_9
; %bb.8:
Lloh13:
	adrp	x8, _TopMemoryContext@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TopMemoryContext@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_MemoryContextStats
Lloh16:
	adrp	x8, _ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
Lloh19:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_errcode
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	ldr	w2, [x20, #4]
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_errdetail
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_9:
	mov	x22, #0
	b	LBB0_12
LBB0_10:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_VALGRIND_MEMPOOL_ALLOC
Lloh26:
	adrp	x8, _MCXT_ALLOC_ZERO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MCXT_ALLOC_ZERO@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x22
	mov	w1, #0
	mov	x2, x19
	bl	_MemSetAligned
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentMemoryContext,8,3       ; @CurrentMemoryContext
	.comm	_MCXT_ALLOC_HUGE,4,2            ; @MCXT_ALLOC_HUGE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid memory alloc request size %zu"

	.comm	_MCXT_ALLOC_NO_OOM,4,2          ; @MCXT_ALLOC_NO_OOM
	.comm	_TopMemoryContext,4,2           ; @TopMemoryContext
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ; @ERRCODE_OUT_OF_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

l_.str.2:                               ; @.str.2
	.asciz	"Failed on request of size %zu in memory context \"%s\"."

	.comm	_MCXT_ALLOC_ZERO,4,2            ; @MCXT_ALLOC_ZERO
.subsections_via_symbols
