	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function env_new
_env_new:                               ## @env_new
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	8(%rax), %r12
	movq	_MRB_TT_ENV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_mrb_obj_alloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_MRB_ENV_SET_STACK_LEN
	movl	(%r12), %eax
	leal	1(%rax), %ecx
	testl	%eax, %eax
	movl	$2, %esi
	cmovnsl	%ecx, %esi
	movq	%rbx, %rdi
	callq	_MRB_ENV_SET_BIDX
	movl	4(%r12), %eax
	movl	%eax, 12(%rbx)
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movq	%rax, (%rbx)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MRB_TT_ENV,4,2                 ## @MRB_TT_ENV
	.no_dead_strip	_env_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function env_new
_env_new:                               ; @env_new
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x22, [x8, #8]
Lloh0:
	adrp	x8, _MRB_TT_ENV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MRB_TT_ENV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_mrb_obj_alloc
	mov	x21, x0
	mov	x1, x19
	bl	_MRB_ENV_SET_STACK_LEN
	ldr	w8, [x22]
	cmp	w8, #0
	mov	w9, #2
	csinc	w1, w9, w8, lt
	mov	x0, x21
	bl	_MRB_ENV_SET_BIDX
	ldr	w8, [x22, #4]
	ldr	x9, [x20]
	ldr	w10, [x9]
	stp	w10, w8, [x21, #8]
	str	x9, [x21]
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MRB_TT_ENV,4,2                 ; @MRB_TT_ENV
	.no_dead_strip	_env_new
.subsections_via_symbols
