	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xmalloc                        ## -- Begin function xmalloc
	.p2align	4, 0x90
_xmalloc:                               ## @xmalloc
	.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
	movl	%edi, %r14d
	testl	%edi, %edi
	movl	$1, %eax
	cmovel	%eax, %r14d
	movl	$-600, %ebx                     ## imm = 0xFDA8
	movq	_XLOG_ERROR@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_malloc
	testq	%rax, %rax
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %edi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_plog
	movl	$1, %edi
	callq	_sleep
	incl	%ebx
	jne	LBB0_1
## %bb.6:
	movq	_XLOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_plog
	movl	$1, %edi
	callq	_going_down
	xorl	%eax, %eax
	callq	_abort
LBB0_2:
	movq	%rax, %r12
	movq	_D_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_amuDebug
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_XLOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_plog
LBB0_4:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	"Allocated size %d; block %p"

	.comm	_XLOG_ERROR,4,2                 ## @XLOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Retrying memory allocation"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xmalloc                        ; -- Begin function xmalloc
	.p2align	2
_xmalloc:                               ; @xmalloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w0, #0
	csinc	w19, w0, wzr, ne
	mov	w22, #-600
Lloh0:
	adrp	x23, _XLOG_ERROR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XLOG_ERROR@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_malloc
	cbnz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x23]
	mov	x1, x21
	bl	_plog
	mov	w0, #1
	bl	_sleep
	adds	w22, w22, #1
	b.lo	LBB0_1
; %bb.3:
Lloh4:
	adrp	x8, _XLOG_FATAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XLOG_FATAL@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_plog
	mov	w0, #1
	bl	_going_down
	bl	_abort
LBB0_4:
	mov	x20, x0
Lloh9:
	adrp	x8, _D_MEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _D_MEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_amuDebug
	cbz	x0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _XLOG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XLOG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	stp	x19, x20, [sp]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_plog
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	"Allocated size %d; block %p"

	.comm	_XLOG_ERROR,4,2                 ; @XLOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Retrying memory allocation"

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

.subsections_via_symbols
