	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_add                       ## -- Begin function heap_add
	.p2align	4, 0x90
_heap_add:                              ## @heap_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_heap_size@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	leal	1(%rdx), %eax
	movq	_MAX_HEAP@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jge	LBB0_3
## %bb.1:
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	movq	_heap@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%eax, (%rcx)
	movq	%rdi, 8(%rsi,%rdx,8)
	movl	%eax, %edi
	popq	%rbp
	jmp	_heap_fix_up                    ## TAILCALL
LBB0_3:
	movq	_active_aio_queries@GOTPCREL(%rip), %rax
	orb	$16, 2(%rax)
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_heap_size,4,2                  ## @heap_size
	.comm	_MAX_HEAP,4,2                   ## @MAX_HEAP
	.comm	_active_aio_queries,4,2         ## @active_aio_queries
	.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_add                       ; -- Begin function heap_add
	.p2align	2
_heap_add:                              ; @heap_add
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _heap_size@GOTPAGE
Lloh1:
	ldr	x9, [x9, _heap_size@GOTPAGEOFF]
	ldrsw	x8, [x9]
	add	x8, x8, #1
Lloh2:
	adrp	x10, _MAX_HEAP@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MAX_HEAP@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ge	LBB0_3
; %bb.1:
	cbz	x0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x10, _heap@GOTPAGE
Lloh6:
	ldr	x10, [x10, _heap@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	str	w8, [x9]
	str	x0, [x10, x8, lsl #3]
	mov	x0, x8
	b	_heap_fix_up
LBB0_3:
Lloh8:
	adrp	x8, _active_aio_queries@GOTPAGE
Lloh9:
	ldr	x8, [x8, _active_aio_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x100000
	str	w9, [x8]
LBB0_4:
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_heap_size,4,2                  ; @heap_size
	.comm	_MAX_HEAP,4,2                   ; @MAX_HEAP
	.comm	_active_aio_queries,4,2         ; @active_aio_queries
	.comm	_heap,8,3                       ; @heap
.subsections_via_symbols
