	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simple_overlay_update_1
_simple_overlay_update_1:               ## @simple_overlay_update_1
	.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	%rdi, %rbx
	movq	8(%rdi), %r13
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	movq	%r13, %rdi
	callq	_bfd_get_section_size
	movq	_cache_novlys@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_cache_ovly_table@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_cache_novlys@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_VMA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r14
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_bfd_section_vma
	cmpq	%rax, %r14
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_LMA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r14
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_bfd_section_lma
	cmpq	%rax, %r14
	jne	LBB0_7
## %bb.4:
	movq	_cache_ovly_table_base@GOTPCREL(%rip), %rax
	movq	_TARGET_LONG_BYTES@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%ebx, %rdi
	imulq	%rcx, %rdi
	addq	(%rax), %rdi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movl	$4, %edx
	callq	_read_target_long_array
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_VMA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r14
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_bfd_section_vma
	xorl	%ecx, %ecx
	cmpq	%rax, %r14
	jne	LBB0_9
## %bb.5:
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_LMA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r14
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_bfd_section_lma
	xorl	%ecx, %ecx
	cmpq	%rax, %r14
	jne	LBB0_9
## %bb.6:
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_MAPPED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	$1, %ecx
	jmp	LBB0_9
LBB0_8:
	xorl	%ecx, %ecx
LBB0_9:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cache_novlys,4,2               ## @cache_novlys
	.comm	_cache_ovly_table,8,3           ## @cache_ovly_table
	.comm	_VMA,8,3                        ## @VMA
	.comm	_LMA,8,3                        ## @LMA
	.comm	_cache_ovly_table_base,8,3      ## @cache_ovly_table_base
	.comm	_TARGET_LONG_BYTES,4,2          ## @TARGET_LONG_BYTES
	.comm	_MAPPED,8,3                     ## @MAPPED
	.no_dead_strip	_simple_overlay_update_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simple_overlay_update_1
_simple_overlay_update_1:               ; @simple_overlay_update_1
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldp	x20, x8, [x0, #8]
	ldr	x21, [x8]
	mov	x0, x20
	bl	_bfd_get_section_size
Lloh0:
	adrp	x26, _cache_novlys@GOTPAGE
Lloh1:
	ldr	x26, [x26, _cache_novlys@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x22, #0
Lloh2:
	adrp	x23, _cache_ovly_table@GOTPAGE
Lloh3:
	ldr	x23, [x23, _cache_ovly_table@GOTPAGEOFF]
Lloh4:
	adrp	x25, _VMA@GOTPAGE
Lloh5:
	ldr	x25, [x25, _VMA@GOTPAGEOFF]
Lloh6:
	adrp	x24, _LMA@GOTPAGE
Lloh7:
	ldr	x24, [x24, _LMA@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x26]
	cmp	x22, x8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x9, [x25]
	ldr	x27, [x8, x9, lsl #3]
	mov	x0, x21
	mov	x1, x20
	bl	_bfd_section_vma
	cmp	x27, x0
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x9, [x24]
	ldr	x27, [x8, x9, lsl #3]
	mov	x0, x21
	mov	x1, x20
	bl	_bfd_section_lma
	cmp	x27, x0
	b.ne	LBB0_2
; %bb.5:
Lloh8:
	adrp	x8, _cache_ovly_table_base@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cache_ovly_table_base@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _TARGET_LONG_BYTES@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TARGET_LONG_BYTES@GOTPAGEOFF]
Lloh13:
	ldrsw	x9, [x9]
	sxtw	x10, w22
	madd	x0, x9, x10, x8
	ldr	x8, [x23]
	lsl	x26, x22, #3
	ldr	x1, [x8, x26]
	mov	w2, #4
	bl	_read_target_long_array
	ldr	x8, [x23]
	ldr	x8, [x8, x26]
	ldr	x9, [x25]
	ldr	x25, [x8, x9, lsl #3]
	mov	x0, x21
	mov	x1, x20
	bl	_bfd_section_vma
	cmp	x25, x0
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x23]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x9, [x24]
	ldr	x24, [x8, x9, lsl #3]
	mov	x0, x21
	mov	x1, x20
	bl	_bfd_section_lma
	cmp	x24, x0
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x23]
	ldr	x8, [x8, x22, lsl #3]
Lloh14:
	adrp	x9, _MAPPED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MAPPED@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [x19]
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_cache_novlys,4,2               ; @cache_novlys
	.comm	_cache_ovly_table,8,3           ; @cache_ovly_table
	.comm	_VMA,8,3                        ; @VMA
	.comm	_LMA,8,3                        ; @LMA
	.comm	_cache_ovly_table_base,8,3      ; @cache_ovly_table_base
	.comm	_TARGET_LONG_BYTES,4,2          ; @TARGET_LONG_BYTES
	.comm	_MAPPED,8,3                     ; @MAPPED
	.no_dead_strip	_simple_overlay_update_1
.subsections_via_symbols
