	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ShmemAllocUnlocked             ## -- Begin function ShmemAllocUnlocked
	.p2align	4, 0x90
_ShmemAllocUnlocked:                    ## @ShmemAllocUnlocked
	.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
	callq	_MAXALIGN
	movq	%rax, %r14
	movq	_ShmemSegHdr@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	$0, (%r12)
	setne	%dil
	callq	_Assert
	movq	(%r12), %rax
	movq	(%rax), %rbx
	leaq	(%rbx,%r14), %r13
	cmpq	8(%rax), %r13
	jle	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	(%r12), %rax
LBB0_2:
	movq	%r13, (%rax)
	movq	_ShmemBase@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_MAXALIGN
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_Assert
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ShmemSegHdr,8,3                ## @ShmemSegHdr
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ## @ERRCODE_OUT_OF_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of shared memory (%zu bytes requested)"

	.comm	_ShmemBase,8,3                  ## @ShmemBase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ShmemAllocUnlocked             ; -- Begin function ShmemAllocUnlocked
	.p2align	2
_ShmemAllocUnlocked:                    ; @ShmemAllocUnlocked
	.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
	bl	_MAXALIGN
	mov	x19, x0
Lloh0:
	adrp	x21, _ShmemSegHdr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ShmemSegHdr@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x21]
	ldp	x22, x9, [x8]
	add	x23, x22, x19
	cmp	x23, x9
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	ldr	x8, [x21]
LBB0_2:
	str	x23, [x8]
Lloh10:
	adrp	x8, _ShmemBase@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ShmemBase@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	add	x19, x8, x22
	mov	x0, x19
	bl	_MAXALIGN
	cmp	x19, x0
	cset	w0, eq
	bl	_Assert
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ShmemSegHdr,8,3                ; @ShmemSegHdr
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ; @ERRCODE_OUT_OF_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of shared memory (%zu bytes requested)"

	.comm	_ShmemBase,8,3                  ; @ShmemBase
.subsections_via_symbols
