	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ShmemAllocNoError              ## -- Begin function ShmemAllocNoError
	.p2align	4, 0x90
_ShmemAllocNoError:                     ## @ShmemAllocNoError
	.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
	callq	_CACHELINEALIGN
	movq	%rax, %r14
	movq	_ShmemSegHdr@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
	callq	_Assert
	movq	_ShmemLock@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_SpinLockAcquire
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	addq	%rbx, %r14
	cmpq	8(%rax), %r14
	jle	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_ShmemBase@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rbx
	movq	%r14, (%rax)
LBB0_3:
	movl	(%r15), %edi
	callq	_SpinLockRelease
	movq	%rbx, %rdi
	callq	_CACHELINEALIGN
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_Assert
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ShmemSegHdr,8,3                ## @ShmemSegHdr
	.comm	_ShmemLock,4,2                  ## @ShmemLock
	.comm	_ShmemBase,8,3                  ## @ShmemBase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ShmemAllocNoError              ; -- Begin function ShmemAllocNoError
	.p2align	2
_ShmemAllocNoError:                     ; @ShmemAllocNoError
	.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
	bl	_CACHELINEALIGN
	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
Lloh2:
	adrp	x20, _ShmemLock@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ShmemLock@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_SpinLockAcquire
	ldr	x8, [x21]
	ldp	x9, x11, [x8]
	add	x10, x9, x19
	cmp	x10, x11
	b.le	LBB0_2
; %bb.1:
	mov	x19, #0
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x11, _ShmemBase@GOTPAGE
Lloh5:
	ldr	x11, [x11, _ShmemBase@GOTPAGEOFF]
Lloh6:
	ldr	x11, [x11]
	add	x19, x11, x9
	str	x10, [x8]
LBB0_3:
	ldr	w0, [x20]
	bl	_SpinLockRelease
	mov	x0, x19
	bl	_CACHELINEALIGN
	cmp	x19, x0
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ShmemSegHdr,8,3                ; @ShmemSegHdr
	.comm	_ShmemLock,4,2                  ; @ShmemLock
	.comm	_ShmemBase,8,3                  ; @ShmemBase
.subsections_via_symbols
