	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xrealloc                       ## -- Begin function xrealloc
	.p2align	4, 0x90
_xrealloc:                              ## @xrealloc
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_D_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_amuDebug
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_XLOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_plog
LBB0_2:
	testl	%ebx, %ebx
	movl	$1, %esi
	cmovnel	%ebx, %esi
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	%esi, %edi
	callq	_xmalloc
	testq	%rax, %rax
	jne	LBB0_6
LBB0_7:
	movq	_XLOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_plog
	movl	$1, %edi
	callq	_going_down
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_D_MEM,4,2                      ## @D_MEM
	.comm	_XLOG_DEBUG,4,2                 ## @XLOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reallocated size %d; block %p"

	.comm	_XLOG_FATAL,4,2                 ## @XLOG_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"Out of memory in realloc"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xrealloc                       ; -- Begin function xrealloc
	.p2align	2
_xrealloc:                              ; @xrealloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _D_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_amuDebug
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _XLOG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XLOG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	stp	x20, x19, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_plog
LBB0_2:
	cmp	w20, #0
	csinc	w1, w20, wzr, ne
	cbz	x19, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_realloc
	cbz	x0, LBB0_6
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	mov	x0, x1
	bl	_xmalloc
	cbnz	x0, LBB0_4
LBB0_6:
Lloh8:
	adrp	x8, _XLOG_FATAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XLOG_FATAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_plog
	mov	w0, #1
	bl	_going_down
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_D_MEM,4,2                      ; @D_MEM
	.comm	_XLOG_DEBUG,4,2                 ; @XLOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reallocated size %d; block %p"

	.comm	_XLOG_FATAL,4,2                 ; @XLOG_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"Out of memory in realloc"

.subsections_via_symbols
