	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scope_body
_scope_body:                            ## @scope_body
	.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	%rsi, %r15
	movq	%rdi, %r14
	movl	24(%rdi), %edi
	movl	4(%rsi), %edx
	movq	%r14, %rsi
	callq	_scope_new
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_codegen_error
LBB0_2:
	movl	(%r15), %esi
	movq	_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_codegen
	movq	_OP_RETURN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rdx
	decq	%rdx
	movq	%rbx, %rdi
	callq	_gen_return
	cmpl	$0, 8(%r14)
	jne	LBB0_4
## %bb.3:
	movq	_OP_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_genop_0
LBB0_4:
	movq	%rbx, %rdi
	callq	_scope_finish
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%rax), %eax
	decl	%eax
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected scope"

	.comm	_VAL,4,2                        ## @VAL
	.comm	_OP_RETURN,4,2                  ## @OP_RETURN
	.comm	_OP_STOP,4,2                    ## @OP_STOP
	.no_dead_strip	_scope_body
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scope_body
_scope_body:                            ; @scope_body
	.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	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #24]
	ldr	w2, [x1, #4]
	mov	x1, x19
	bl	_scope_new
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_codegen_error
LBB0_2:
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _VAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VAL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_codegen
Lloh5:
	adrp	x8, _OP_RETURN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OP_RETURN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x8, [x20, #16]
	sub	x2, x8, #1
	mov	x0, x20
	bl	_gen_return
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _OP_STOP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OP_STOP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_genop_0
LBB0_4:
	mov	x0, x20
	bl	_scope_finish
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w8, [x8]
	sub	w0, w8, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected scope"

	.comm	_VAL,4,2                        ; @VAL
	.comm	_OP_RETURN,4,2                  ; @OP_RETURN
	.comm	_OP_STOP,4,2                    ; @OP_STOP
	.no_dead_strip	_scope_body
.subsections_via_symbols
