	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lang_leave_overlay             ## -- Begin function lang_leave_overlay
	.p2align	4, 0x90
_lang_leave_overlay:                    ## @lang_leave_overlay
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rax
	movq	%r8, %r14
	movq	%rdx, %r13
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	xorl	%r8d, %r8d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	setne	%r8b
	movq	_FALSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	leaq	-72(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	movq	%rcx, %rdx
	movq	%rax, %rcx
	callq	_lang_get_regions
	movq	_overlay_list@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_15
## %bb.1:
	movq	_overlay_vma@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_overlay_max@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	$43, %edi
	callq	_exp_binop
	leaq	L_.str(%rip), %rsi
	movl	$61, %edi
	movl	%eax, %edx
	callq	_exp_assop
	movq	(%r15), %r15
	movq	8(%r15), %rcx
	movl	%eax, 56(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_free
	movq	%r12, %r15
	testq	%r12, %r12
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	testq	%r13, %r13
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 48(%rax)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, 48(%rax)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx
	movq	%rcx, 40(%rax)
	movq	-64(%rbp), %rcx
	movq	%rcx, 32(%rax)
	movq	(%r15), %r12
	testq	%r12, %r12
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r14, %r14
	jne	LBB0_8
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 24(%rax)
	movq	_normal_section@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	testq	%r14, %r14
	je	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rax)
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$16, %edi
	callq	_xmalloc
	movq	8(%r15), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%rbx, (%rax)
	movq	(%r15), %r12
	movq	%rax, %rbx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, 8(%rax)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_11
	jmp	LBB0_12
LBB0_13:
	testq	%rbx, %rbx
	movq	_overlay_list@GOTPCREL(%rip), %r15
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_lang_add_nocrossref
LBB0_15:
	movq	_overlay_vma@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	$0, (%r15)
	movq	_overlay_max@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_overlay_list,8,3               ## @overlay_list
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_overlay_vma,8,3                ## @overlay_vma
	.comm	_overlay_max,8,3                ## @overlay_max
	.comm	_normal_section,4,2             ## @normal_section
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lang_leave_overlay             ; -- Begin function lang_leave_overlay
	.p2align	2
_lang_leave_overlay:                    ; @lang_leave_overlay
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x8, x5
	mov	x19, x4
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	cmp	x0, #0
	cset	w4, ne
Lloh0:
	adrp	x9, _FALSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x9]
	add	x0, sp, #8
	mov	x1, sp
	mov	x2, x3
	mov	x3, x8
	bl	_lang_get_regions
Lloh3:
	adrp	x25, _overlay_list@GOTPAGE
Lloh4:
	ldr	x25, [x25, _overlay_list@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh5:
	adrp	x27, _overlay_vma@GOTPAGE
Lloh6:
	ldr	x27, [x27, _overlay_vma@GOTPAGEOFF]
Lloh7:
	adrp	x24, _overlay_max@GOTPAGE
Lloh8:
	ldr	x24, [x24, _overlay_max@GOTPAGEOFF]
	cbz	x8, LBB0_15
; %bb.1:
	ldr	x1, [x27]
	ldr	x2, [x24]
	mov	w0, #43
	bl	_exp_binop
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #61
	bl	_exp_assop
	mov	x23, #0
	ldr	x26, [x25]
	ldr	x8, [x26, #8]
	str	w0, [x8, #56]
Lloh11:
	adrp	x28, _normal_section@GOTPAGE
Lloh12:
	ldr	x28, [x28, _normal_section@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	bl	_free
	mov	x26, x24
	cbz	x24, LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26, #8]
	cbz	x20, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x8, #48]
	cbnz	x9, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x20, [x8, #48]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	x10, x9, [sp]
	stp	x10, x9, [x8, #32]
	ldr	x24, [x26]
	cbz	x24, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x19, LBB0_9
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x22, [x8, #24]
	ldr	w9, [x28]
	str	w9, [x8, #16]
	cbz	x19, LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w21, LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #16
	bl	_xmalloc
	ldr	x8, [x26, #8]
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x23, [x0]
	ldr	x24, [x26]
	mov	x23, x0
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x19, [x8, #8]
	cbnz	w21, LBB0_11
	b	LBB0_2
LBB0_13:
Lloh13:
	adrp	x24, _overlay_max@GOTPAGE
Lloh14:
	ldr	x24, [x24, _overlay_max@GOTPAGEOFF]
	cbz	x23, LBB0_15
; %bb.14:
	mov	x0, x23
	bl	_lang_add_nocrossref
LBB0_15:
	str	xzr, [x27]
	str	xzr, [x25]
	str	xzr, [x24]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_overlay_list,8,3               ; @overlay_list
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_overlay_vma,8,3                ; @overlay_vma
	.comm	_overlay_max,8,3                ; @overlay_max
	.comm	_normal_section,4,2             ; @normal_section
.subsections_via_symbols
