	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SN_create_env                  ## -- Begin function SN_create_env
	.p2align	4, 0x90
_SN_create_env:                         ## @SN_create_env
	.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	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %r14d
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %rbx
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_create_s
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.3:
	movl	%r14d, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.5:
	movl	%r14d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_create_s
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	16(%rbx), %rax
	cmpq	$0, (%rax,%r15,8)
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	cmpq	%r15, %r13
	jne	LBB0_7
LBB0_8:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_12
LBB0_10:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, %edi
	je	LBB0_14
## %bb.11:
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_14
LBB0_12:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_SN_close_env
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SN_create_env                  ; -- Begin function SN_create_env
	.p2align	2
_SN_create_env:                         ; @SN_create_env
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.1:
	bl	_create_s
	str	x0, [x20, #24]
	cbz	x0, LBB0_12
; %bb.2:
	cbz	w19, LBB0_8
; %bb.3:
	mov	x0, x19
	mov	w1, #8
	bl	_calloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_12
; %bb.4:
	cmp	w19, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x23, #0
	mov	w8, w19
	lsl	x24, x8, #3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_create_s
	ldr	x8, [x20, #16]
	str	x0, [x8, x23]
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x23]
	cbz	x8, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #8
	cmp	x24, x23
	b.ne	LBB0_6
LBB0_8:
	cbz	w22, LBB0_10
; %bb.9:
	mov	x0, x22
	mov	w1, #4
	bl	_calloc
	str	x0, [x20]
	cbz	x0, LBB0_12
LBB0_10:
	cbz	w21, LBB0_13
; %bb.11:
	mov	x0, x21
	mov	w1, #1
	bl	_calloc
	str	x0, [x20, #8]
	cbnz	x0, LBB0_13
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_SN_close_env
	mov	x20, #0
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
