	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function closure_setup
_closure_setup:                         ## @closure_setup
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r13
	movq	24(%rsi), %r12
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_2:
	testq	%r12, %r12
	je	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	callq	_MRB_PROC_TARGET_CLASS
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_env_new
	movq	%rax, %rbx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%r13)
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.4:
	movq	%rdx, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mrb_field_write_barrier
	jmp	LBB0_5
LBB0_6:
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_5:
	movq	%rbx, 8(%r15)
	movq	_MRB_PROC_ENVSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_field_write_barrier        ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MRB_PROC_ENVSET,4,2            ## @MRB_PROC_ENVSET
	.no_dead_strip	_closure_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function closure_setup
_closure_setup:                         ; @closure_setup
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x23, [x8]
	ldr	x24, [x1, #24]
	cbz	x23, LBB0_2
; %bb.1:
	ldr	x21, [x23]
	cbnz	x21, LBB0_6
LBB0_2:
	cbz	x24, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_MRB_PROC_TARGET_CLASS
	mov	x22, x0
	ldr	x8, [x24, #16]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_env_new
	mov	x21, x0
	str	x0, [x23]
	cbz	x22, LBB0_5
; %bb.4:
	str	x22, [x21]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_mrb_field_write_barrier
	b	LBB0_6
LBB0_5:
	cbz	x21, LBB0_7
LBB0_6:
	str	x21, [x19, #8]
Lloh0:
	adrp	x8, _MRB_PROC_ENVSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MRB_PROC_ENVSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	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
	b	_mrb_field_write_barrier
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MRB_PROC_ENVSET,4,2            ; @MRB_PROC_ENVSET
	.no_dead_strip	_closure_setup
.subsections_via_symbols
