	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_xmalloc
_do_xmalloc:                            ## @do_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_memory_limit_check
	testq	%rax, %rax
	je	LBB0_1
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	movl	%ebx, %edi
	callq	_malloc
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.2:
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	$1, %edi
	callq	_malloc
LBB0_4:
	testq	%rax, %rax
	je	LBB0_5
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.7:
	callq	_error
	jmp	LBB0_8
LBB0_6:
	callq	_die
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory, malloc failed (tried to allocate %lu bytes)"

	.no_dead_strip	_do_xmalloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_xmalloc
_do_xmalloc:                            ; @do_xmalloc
	.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	x20, x1
	mov	x19, x0
	bl	_memory_limit_check
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, #0
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_malloc
	cbnz	x19, LBB0_5
; %bb.3:
	cbnz	x0, LBB0_5
; %bb.4:
	mov	w0, #1
	bl	_malloc
LBB0_5:
	cbz	x0, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	cbz	w20, LBB0_9
; %bb.8:
	bl	_error
	b	LBB0_1
LBB0_9:
	bl	_die
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory, malloc failed (tried to allocate %lu bytes)"

	.no_dead_strip	_do_xmalloc
.subsections_via_symbols
