	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tracking_realloc               ## -- Begin function tracking_realloc
	.p2align	4, 0x90
_tracking_realloc:                      ## @tracking_realloc
	.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
	movq	%rsi, %r14
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.1:
	movq	%rdi, %rbx
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_find_allocation
	testq	%rax, %rax
	je	LBB0_4
## %bb.10:
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_realloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	movq	%rbx, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tracking_malloc                ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	callq	_tracking_free
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_realloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	$0, 16(%r15)
	movq	_alloc_head@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.12:
	movq	_alloc_tail@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 24(%r15)
	addq	$16, %rcx
	jmp	LBB0_13
LBB0_5:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_7:
	movq	%r15, %rdi
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_9:
	movq	$0, 24(%r15)
	movq	_alloc_tail@GOTPCREL(%rip), %rcx
LBB0_13:
	movq	%r15, (%rcx)
	movq	%r15, (%rax)
LBB0_14:
	movq	%r14, 8(%r15)
	movq	(%r15), %rax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempting to realloc unallocated memory at %p\n"

	.comm	_alloc_head,8,3                 ## @alloc_head
	.comm	_alloc_tail,8,3                 ## @alloc_tail
L_str:                                  ## @str
	.asciz	"Reallocator failure"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tracking_realloc               ; -- Begin function tracking_realloc
	.p2align	2
_tracking_realloc:                      ; @tracking_realloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	cbz	x19, LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_find_allocation
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_realloc
	str	x0, [x20]
	cbnz	x0, LBB0_15
; %bb.4:
	str	x21, [x20]
	b	LBB0_16
LBB0_5:
	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
	add	sp, sp, #64
	b	_tracking_malloc
LBB0_6:
	mov	x0, x21
	bl	_tracking_free
	mov	x0, #0
	b	LBB0_16
LBB0_7:
	str	x21, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.8:
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_realloc
	str	x0, [x20]
	cbz	x0, LBB0_12
; %bb.9:
	str	xzr, [x20, #16]
Lloh2:
	adrp	x8, _alloc_head@GOTPAGE
Lloh3:
	ldr	x8, [x8, _alloc_head@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.10:
Lloh5:
	adrp	x8, _alloc_tail@GOTPAGE
Lloh6:
	ldr	x8, [x8, _alloc_tail@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x20, #24]
	add	x9, x9, #16
	b	LBB0_14
LBB0_11:
Lloh7:
	adrp	x0, l_str@PAGE
Lloh8:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, #0
	b	LBB0_16
LBB0_12:
	mov	x0, x20
	bl	_free
	mov	x0, #0
	b	LBB0_16
LBB0_13:
	str	xzr, [x20, #24]
Lloh9:
	adrp	x8, _alloc_head@GOTPAGE
Lloh10:
	ldr	x8, [x8, _alloc_head@GOTPAGEOFF]
Lloh11:
	adrp	x9, _alloc_tail@GOTPAGE
Lloh12:
	ldr	x9, [x9, _alloc_tail@GOTPAGEOFF]
LBB0_14:
	str	x20, [x9]
	str	x20, [x8]
LBB0_15:
	str	x19, [x20, #8]
	ldr	x0, [x20]
LBB0_16:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempting to realloc unallocated memory at %p\n"

	.comm	_alloc_head,8,3                 ; @alloc_head
	.comm	_alloc_tail,8,3                 ; @alloc_tail
l_str:                                  ; @str
	.asciz	"Reallocator failure"

.subsections_via_symbols
