	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_free                           ## -- Begin function free
	.p2align	4, 0x90
_free:                                  ## @free
	.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
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_dont_free@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	%rdi, %r15
	movq	_memtop@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	sete	%al
	movq	_membot@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %r14d
	leaq	L_.str(%rip), %rdx
	movl	$19, %edi
	movl	$2, %esi
	callq	_CGETS
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_CHECK
	xorl	%ebx, %ebx
	cmpq	%r15, (%r13)
	setb	%bl
	leaq	L_.str.1(%rip), %rdx
	movl	$19, %edi
	movl	$3, %esi
	callq	_CGETS
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_CHECK
	xorl	%ebx, %ebx
	cmpq	%r15, (%r12)
	seta	%bl
	leaq	L_.str.2(%rip), %rdx
	movl	$19, %edi
	movl	$4, %esi
	callq	_CGETS
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_CHECK
	movl	$8, %edi
	callq	_MEMALIGN
	movq	%r15, %rbx
	subq	%rax, %rbx
	movq	(%rbx), %rax
	movq	_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	setne	%r14b
	leaq	L_.str.3(%rip), %rdx
	movl	$19, %edi
	movl	$5, %esi
	callq	_CGETS
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_CHECK
	movl	(%rbx), %eax
	movq	_NBUCKETS@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpl	(%rcx), %eax
	setge	%r14b
	leaq	L_.str.4(%rip), %rdx
	movl	$19, %edi
	movl	$7, %esi
	callq	_CGETS
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_CHECK
	movslq	(%rbx), %rax
	movq	_nextf@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%rdx,%rax,8), %rdx
	movq	%rdx, (%rbx)
	movq	(%rcx), %rcx
	movq	%rbx, (%rcx,%rax,8)
	movq	_nmalloc@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	decl	(%rcx,%rax,4)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dont_free,8,3                  ## @dont_free
	.comm	_memtop,8,3                     ## @memtop
	.comm	_membot,8,3                     ## @membot
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"free(%p) called before any allocations."

L_.str.1:                               ## @.str.1
	.asciz	"free(%p) above top of memory."

L_.str.2:                               ## @.str.2
	.asciz	"free(%p) below bottom of memory."

	.comm	_MAGIC,8,3                      ## @MAGIC
L_.str.3:                               ## @.str.3
	.asciz	"free(%p) bad block."

	.comm	_NBUCKETS,4,2                   ## @NBUCKETS
L_.str.4:                               ## @.str.4
	.asciz	"free(%p) bad block index."

	.comm	_nextf,8,3                      ## @nextf
	.comm	_nmalloc,8,3                    ## @nmalloc
	.comm	_RMAGIC,8,3                     ## @RMAGIC
	.comm	_RSLOP,8,3                      ## @RSLOP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_free                           ; -- Begin function free
	.p2align	2
_free:                                  ; @free
	.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
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _dont_free@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dont_free@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x19, x0
Lloh3:
	adrp	x21, _memtop@GOTPAGE
Lloh4:
	ldr	x21, [x21, _memtop@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #0
Lloh5:
	adrp	x22, _membot@GOTPAGE
Lloh6:
	ldr	x22, [x22, _membot@GOTPAGEOFF]
	ldr	x8, [x22]
	ccmp	x8, #0, #4, ne
	cset	w20, eq
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #19
	mov	w1, #2
	bl	_CGETS
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_CHECK
	ldr	x8, [x21]
	cmp	x8, x19
	cset	w20, lo
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #19
	mov	w1, #3
	bl	_CGETS
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_CHECK
	ldr	x8, [x22]
	cmp	x8, x19
	cset	w20, hi
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #19
	mov	w1, #4
	bl	_CGETS
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_CHECK
	mov	w0, #8
	bl	_MEMALIGN
	sub	x21, x19, x0
	ldr	x8, [x21]
Lloh13:
	adrp	x9, _MAGIC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MAGIC@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w20, ne
Lloh16:
	adrp	x2, l_.str.3@PAGE
Lloh17:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w0, #19
	mov	w1, #5
	bl	_CGETS
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_CHECK
	ldr	w8, [x21]
Lloh18:
	adrp	x9, _NBUCKETS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NBUCKETS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w20, ge
Lloh21:
	adrp	x2, l_.str.4@PAGE
Lloh22:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w0, #19
	mov	w1, #7
	bl	_CGETS
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_CHECK
Lloh23:
	adrp	x8, _nextf@GOTPAGE
Lloh24:
	ldr	x8, [x8, _nextf@GOTPAGEOFF]
	ldrsw	x9, [x21]
	ldr	x10, [x8]
	lsl	x11, x9, #3
	ldr	x10, [x10, x11]
	str	x10, [x21]
	ldr	x8, [x8]
	str	x21, [x8, x11]
Lloh25:
	adrp	x8, _nmalloc@GOTPAGE
Lloh26:
	ldr	x8, [x8, _nmalloc@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	sub	w10, w10, #1
	str	w10, [x8, x9]
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_dont_free,8,3                  ; @dont_free
	.comm	_memtop,8,3                     ; @memtop
	.comm	_membot,8,3                     ; @membot
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"free(%p) called before any allocations."

l_.str.1:                               ; @.str.1
	.asciz	"free(%p) above top of memory."

l_.str.2:                               ; @.str.2
	.asciz	"free(%p) below bottom of memory."

	.comm	_MAGIC,8,3                      ; @MAGIC
l_.str.3:                               ; @.str.3
	.asciz	"free(%p) bad block."

	.comm	_NBUCKETS,4,2                   ; @NBUCKETS
l_.str.4:                               ; @.str.4
	.asciz	"free(%p) bad block index."

	.comm	_nextf,8,3                      ; @nextf
	.comm	_nmalloc,8,3                    ; @nmalloc
	.comm	_RMAGIC,8,3                     ; @RMAGIC
	.comm	_RSLOP,8,3                      ; @RSLOP
.subsections_via_symbols
