	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_unmap_section              ## -- Begin function elf_unmap_section
	.p2align	4, 0x90
_elf_unmap_section:                     ## @elf_unmap_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), %rax
	movq	8(%rdi), %r14
	cmpq	16(%r14), %rax
	jae	LBB0_6
## %bb.1:
	cmpl	$0, 8(%r14)
	jne	LBB0_6
## %bb.2:
	movq	(%r14), %rcx
	leaq	(%rax,%rax,2), %rax
	movq	(%rcx,%rax,8), %rax
	movq	_IMAGE_NO_MAP@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_6
## %bb.3:
	movq	%rdi, %rbx
	movq	__SC_PAGESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movq	(%r14), %r8
	movq	(%rbx), %rdx
	leaq	(%rdx,%rdx,2), %rsi
	movq	(%r8,%rsi,8), %rdi
	movq	8(%r8,%rsi,8), %rcx
	movq	%rax, %rdx
	negq	%rdx
	movq	16(%r8,%rsi,8), %rsi
	addq	%rcx, %rax
	andq	%rdx, %rcx
	addq	%rax, %rsi
	decq	%rsi
	andq	%rdx, %rsi
	subq	%rcx, %rsi
	callq	_munmap
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
LBB0_5:
	movq	(%r15), %rax
	movq	(%r14), %rcx
	movq	(%rbx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMAGE_NO_MAP,8,3               ## @IMAGE_NO_MAP
	.comm	__SC_PAGESIZE,4,2               ## @_SC_PAGESIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't unmap the section\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_unmap_section              ; -- Begin function elf_unmap_section
	.p2align	2
_elf_unmap_section:                     ; @elf_unmap_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
	ldp	x8, x20, [x0]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.hs	LBB0_6
; %bb.1:
	ldr	w9, [x20, #8]
	cbnz	w9, LBB0_6
; %bb.2:
	ldr	x9, [x20]
	mov	w10, #24
	mul	x8, x8, x10
	ldr	x8, [x9, x8]
Lloh0:
	adrp	x21, _IMAGE_NO_MAP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IMAGE_NO_MAP@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.3:
	mov	x19, x0
Lloh2:
	adrp	x8, __SC_PAGESIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, __SC_PAGESIZE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_sysconf
	ldr	x8, [x20]
	ldr	x9, [x19]
	mov	w10, #24
	madd	x9, x9, x10, x8
	ldp	x8, x10, [x9]
	neg	x11, x0
	and	x12, x10, x11
	ldr	x9, [x9, #16]
	add	x10, x0, x10
	add	x9, x10, x9
	sub	x9, x9, #1
	and	x9, x9, x11
	sub	x1, x9, x12
	mov	x0, x8
	bl	_munmap
	tbz	x0, #63, LBB0_5
; %bb.4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
LBB0_5:
	ldr	x8, [x21]
	ldr	x9, [x20]
	ldr	x10, [x19]
	mov	w11, #24
	mul	x10, x10, x11
	str	x8, [x9, x10]
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IMAGE_NO_MAP,8,3               ; @IMAGE_NO_MAP
	.comm	__SC_PAGESIZE,4,2               ; @_SC_PAGESIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't unmap the section\n"

.subsections_via_symbols
