	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _xrealloc
__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	%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_1
## %bb.5:
	movq	%rdi, %r15
	testq	%r14, %r14
	je	LBB0_6
## %bb.9:
	movq	%r14, %rsi
	callq	_realloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	__panic
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_1:
	movl	%r14d, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.2:
	testq	%r14, %r14
	je	LBB0_3
LBB0_4:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	__panic
	jmp	LBB0_11
LBB0_6:
	callq	_free
	xorl	%edi, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	movl	$1, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	__panic
	jmp	LBB0_11
LBB0_3:
	movl	$1, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
LBB0_11:
	movq	%rbx, %rax
	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	"out of memory: xrealloc(%lx, %lu)"

	.no_dead_strip	__xrealloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _xrealloc
__xrealloc:                             ; @_xrealloc
	.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
	mov	x19, x1
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	cbz	x19, LBB0_9
; %bb.2:
	mov	x1, x19
	bl	_realloc
	cbnz	x0, LBB0_13
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_malloc
	cbnz	x0, LBB0_13
; %bb.5:
	cbz	x19, LBB0_12
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
LBB0_7:
	mov	x2, x19
LBB0_8:
	bl	__panic
	mov	x0, #0
	b	LBB0_13
LBB0_9:
	bl	_free
	mov	w0, #0
	bl	_malloc
	cbnz	x0, LBB0_13
; %bb.10:
	mov	w0, #1
	bl	_malloc
	cbnz	x0, LBB0_13
; %bb.11:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, #0
	b	LBB0_8
LBB0_12:
	mov	w0, #1
	bl	_malloc
	cbz	x0, LBB0_6
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory: xrealloc(%lx, %lu)"

	.no_dead_strip	__xrealloc
.subsections_via_symbols
