	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_init_mem2                   ## -- Begin function gx_init_mem2
	.p2align	4, 0x90
_gx_init_mem2:                          ## @gx_init_mem2
	.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
	callq	__CPU_ISR_Disable
	xorl	%eax, %eax
	callq	_SYS_GetArena2Size
	leaq	-262144(%rax), %r14
	xorl	%eax, %eax
	callq	_SYS_GetArena2Hi
	subq	%r14, %rax
	movq	%rax, %rdi
	callq	_ROUNDUP32
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_SYS_SetArena2Hi
	movq	_gx_mem2_heap@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	$32, %ecx
	callq	___lwp_heap_init
	callq	__CPU_ISR_Restore
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gx_mem2_heap,4,2               ## @gx_mem2_heap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_init_mem2                   ; -- Begin function gx_init_mem2
	.p2align	2
_gx_init_mem2:                          ; @gx_init_mem2
	.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
	bl	__CPU_ISR_Disable
	bl	_SYS_GetArena2Size
	sub	x19, x0, #64, lsl #12           ; =262144
	bl	_SYS_GetArena2Hi
	sub	x0, x0, x19
	bl	_ROUNDUP32
	mov	x20, x0
	bl	_SYS_SetArena2Hi
Lloh0:
	adrp	x0, _gx_mem2_heap@GOTPAGE
Lloh1:
	ldr	x0, [x0, _gx_mem2_heap@GOTPAGEOFF]
	mov	x1, x20
	mov	x2, x19
	mov	w3, #32
	bl	___lwp_heap_init
	bl	__CPU_ISR_Restore
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_gx_mem2_heap,4,2               ; @gx_mem2_heap
.subsections_via_symbols
