	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_map_section                ## -- Begin function elf_map_section
	.p2align	4, 0x90
_elf_map_section:                       ## @elf_map_section
	.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	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	__SC_PAGESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_DMT_ELF@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	(%rbx), %rcx
	movq	8(%rbx), %rax
	cmpq	32(%rax), %rcx
	jae	LBB0_2
## %bb.1:
	movq	16(%r15), %rdx
	shlq	$5, %rcx
	movq	8(%rdx,%rcx), %rax
	movq	_SHT_NOBITS@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_3
LBB0_2:
	movq	_IMAGE_NO_MAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	8(%r15), %rax
	movq	16(%rdx,%rcx), %r9
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	addq	%r9, %rax
	jmp	LBB0_7
LBB0_5:
	movq	%r14, %rax
	negq	%rax
	leaq	(%r14,%r9), %rsi
	decq	%rsi
	addq	24(%rdx,%rcx), %rsi
	andq	%rax, %r9
	andq	%rax, %rsi
	subq	%r9, %rsi
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	24(%r15), %r8d
	xorl	%edi, %edi
	callq	_mmap
	movq	16(%r15), %rcx
	movq	(%rbx), %rdx
	shlq	$5, %rdx
	movq	%rax, (%rcx,%rdx)
	movq	_IMAGE_NO_MAP@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	je	LBB0_7
## %bb.6:
	decq	%r14
	andq	16(%rcx,%rdx), %r14
	addq	%r14, %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	__SC_PAGESIZE,4,2               ## @_SC_PAGESIZE
	.comm	_DMT_ELF,8,3                    ## @DMT_ELF
	.comm	_SHT_NOBITS,8,3                 ## @SHT_NOBITS
	.comm	_IMAGE_NO_MAP,8,3               ## @IMAGE_NO_MAP
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_map_section                ; -- Begin function elf_map_section
	.p2align	2
_elf_map_section:                       ; @elf_map_section
	.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	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, __SC_PAGESIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, __SC_PAGESIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_sysconf
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DMT_ELF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMT_ELF@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldp	x8, x9, [x19]
	ldr	x9, [x9, #32]
	cmp	x8, x9
	b.hs	LBB0_2
; %bb.1:
	ldr	x9, [x21, #16]
	add	x10, x9, x8, lsl #5
	ldr	x11, [x10, #8]
Lloh6:
	adrp	x12, _SHT_NOBITS@GOTPAGE
Lloh7:
	ldr	x12, [x12, _SHT_NOBITS@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_4
LBB0_2:
Lloh9:
	adrp	x8, _IMAGE_NO_MAP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IMAGE_NO_MAP@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
LBB0_3:
	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
LBB0_4:
	ldr	x11, [x21, #8]
	ldr	x10, [x10, #16]
	cbz	x11, LBB0_6
; %bb.5:
	add	x0, x11, x10
	b	LBB0_3
LBB0_6:
	neg	x11, x20
	and	x5, x10, x11
	add	x8, x9, x8, lsl #5
	ldr	x8, [x8, #24]
	sub	x20, x20, #1
	add	x9, x20, x10
	add	x8, x9, x8
	and	x8, x8, x11
Lloh12:
	adrp	x9, _PROT_READ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PROT_READ@GOTPAGEOFF]
	sub	x1, x8, x5
Lloh14:
	ldr	w2, [x9]
Lloh15:
	adrp	x8, _MAP_PRIVATE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAP_PRIVATE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	ldr	w4, [x21, #24]
	mov	x0, #0
	bl	_mmap
	ldr	x8, [x21, #16]
	ldr	x9, [x19]
	lsl	x10, x9, #5
	str	x0, [x8, x10]
Lloh18:
	adrp	x10, _IMAGE_NO_MAP@GOTPAGE
Lloh19:
	ldr	x10, [x10, _IMAGE_NO_MAP@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x0, x10
	b.eq	LBB0_3
; %bb.7:
	add	x8, x8, x9, lsl #5
	ldr	x8, [x8, #16]
	and	x8, x8, x20
	add	x0, x0, x8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	__SC_PAGESIZE,4,2               ; @_SC_PAGESIZE
	.comm	_DMT_ELF,8,3                    ; @DMT_ELF
	.comm	_SHT_NOBITS,8,3                 ; @SHT_NOBITS
	.comm	_IMAGE_NO_MAP,8,3               ; @IMAGE_NO_MAP
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
.subsections_via_symbols
