	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_get                       ## -- Begin function heap_get
	.p2align	4, 0x90
_heap_get:                              ## @heap_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_heap_size@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setg	%dil
	callq	_assert
	movq	_heap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rbx
	movq	(%r14), %rcx
	leaq	-1(%rcx), %rdx
	movq	%rdx, (%r14)
	movq	(%rax,%rcx,8), %rcx
	movq	%rcx, 8(%rax)
	xorl	%eax, %eax
	callq	_heap_fix_down
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_heap_size,8,3                  ## @heap_size
	.comm	_heap,8,3                       ## @heap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_get                       ; -- Begin function heap_get
	.p2align	2
_heap_get:                              ; @heap_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _heap_size@GOTPAGE
Lloh1:
	ldr	x20, [x20, _heap_size@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
Lloh2:
	adrp	x8, _heap@GOTPAGE
Lloh3:
	ldr	x8, [x8, _heap@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x19, [x8, #8]
	ldr	x9, [x20]
	sub	x10, x9, #1
	str	x10, [x20]
	ldr	x9, [x8, x9, lsl #3]
	str	x9, [x8, #8]
	bl	_heap_fix_down
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_heap_size,8,3                  ; @heap_size
	.comm	_heap,8,3                       ; @heap
.subsections_via_symbols
