	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unity_malloc                   ## -- Begin function unity_malloc
	.p2align	4, 0x90
_unity_malloc:                          ## @unity_malloc
	.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	%rdi, %r14
	movq	_malloc_fail_countdown@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_MALLOC_DONT_FAIL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	decq	%rcx
	movq	%rcx, (%rax)
LBB0_4:
	movq	_malloc_count@GOTPCREL(%rip), %rax
	incl	(%rax)
	leaq	12(%r14), %rdi
	callq	_malloc
	movq	%rax, %rbx
	movq	%r14, (%rax)
	addq	%rax, %r14
	addq	$8, %r14
	addq	$8, %rbx
	movq	_end@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_strlen
	leaq	1(%rax), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_memcpy
	jmp	LBB0_5
LBB0_2:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_malloc_fail_countdown,8,3      ## @malloc_fail_countdown
	.comm	_MALLOC_DONT_FAIL,8,3           ## @MALLOC_DONT_FAIL
	.comm	_malloc_count,4,2               ## @malloc_count
	.comm	_end,4,2                        ## @end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unity_malloc                   ; -- Begin function unity_malloc
	.p2align	2
_unity_malloc:                          ; @unity_malloc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _malloc_fail_countdown@GOTPAGE
Lloh1:
	ldr	x8, [x8, _malloc_fail_countdown@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _MALLOC_DONT_FAIL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MALLOC_DONT_FAIL@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_3
; %bb.1:
	cbz	x9, LBB0_4
; %bb.2:
	sub	x9, x9, #1
	str	x9, [x8]
LBB0_3:
Lloh5:
	adrp	x8, _malloc_count@GOTPAGE
Lloh6:
	ldr	x8, [x8, _malloc_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	add	x0, x19, #12
	bl	_malloc
	mov	x20, x0
	str	x19, [x20], #8
	add	x19, x20, x19
Lloh7:
	adrp	x8, _end@GOTPAGE
Lloh8:
	ldr	x8, [x8, _end@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_strlen
	add	x2, x0, #1
	mov	x0, x19
	mov	x1, x21
	bl	_memcpy
	b	LBB0_5
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_malloc_fail_countdown,8,3      ; @malloc_fail_countdown
	.comm	_MALLOC_DONT_FAIL,8,3           ; @MALLOC_DONT_FAIL
	.comm	_malloc_count,4,2               ; @malloc_count
	.comm	_end,4,2                        ; @end
.subsections_via_symbols
