	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_doinvl                         ## -- Begin function doinvl
	.p2align	4, 0x90
_doinvl:                                ## @doinvl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_file_size@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movq	_testcalls@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_simulatedopcount@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_9
## %bb.2:
	movq	_debug@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_prt
	movq	(%r14), %rsi
LBB0_4:
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MAP_FILE@GOTPCREL(%rip), %rax
	movq	_MAP_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edi, %edi
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_prterr
	movl	$205, %edi
	callq	_report_failure
LBB0_6:
	movq	_MS_SYNC@GOTPCREL(%rip), %rax
	movq	_MS_INVALIDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_msync
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	_prterr
	movl	$206, %edi
	callq	_report_failure
LBB0_8:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_munmap
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	callq	_prterr
	movl	$207, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_report_failure                 ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_file_size,8,3                  ## @file_size
	.comm	_testcalls,8,3                  ## @testcalls
	.comm	_simulatedopcount,8,3           ## @simulatedopcount
	.comm	_debug,8,3                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lu msync(MS_INVALIDATE)\n"

	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_MAP_FILE,4,2                   ## @MAP_FILE
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_fd,4,2                         ## @fd
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"doinvl: mmap"

	.comm	_MS_SYNC,4,2                    ## @MS_SYNC
	.comm	_MS_INVALIDATE,4,2              ## @MS_INVALIDATE
L_.str.2:                               ## @.str.2
	.asciz	"doinvl: msync"

L_.str.3:                               ## @.str.3
	.asciz	"doinvl: munmap"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_doinvl                         ; -- Begin function doinvl
	.p2align	2
_doinvl:                                ; @doinvl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _file_size@GOTPAGE
Lloh1:
	ldr	x20, [x20, _file_size@GOTPAGEOFF]
	ldr	x1, [x20]
	cbz	x1, LBB0_10
; %bb.1:
Lloh2:
	adrp	x8, _testcalls@GOTPAGE
Lloh3:
	ldr	x8, [x8, _testcalls@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _simulatedopcount@GOTPAGE
Lloh6:
	ldr	x9, [x9, _simulatedopcount@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_10
; %bb.2:
Lloh8:
	adrp	x9, _debug@GOTPAGE
Lloh9:
	ldr	x9, [x9, _debug@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cbz	x9, LBB0_4
; %bb.3:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_prt
	ldr	x1, [x20]
LBB0_4:
Lloh13:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh19:
	adrp	x8, _MAP_FILE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAP_FILE@GOTPAGEOFF]
Lloh21:
	adrp	x9, _MAP_SHARED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MAP_SHARED@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh25:
	adrp	x8, _fd@GOTPAGE
Lloh26:
	ldr	x8, [x8, _fd@GOTPAGEOFF]
Lloh27:
	ldr	w4, [x8]
	mov	w0, #0
	mov	w5, #0
	bl	_mmap
	mov	x19, x0
Lloh28:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_6
; %bb.5:
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_prterr
	mov	w0, #205
	bl	_report_failure
LBB0_6:
Lloh33:
	adrp	x8, _MS_SYNC@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MS_SYNC@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _MS_INVALIDATE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _MS_INVALIDATE@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #0
	bl	_msync
	cbz	x0, LBB0_8
; %bb.7:
Lloh39:
	adrp	x0, l_.str.2@PAGE
Lloh40:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_prterr
	mov	w0, #206
	bl	_report_failure
LBB0_8:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_munmap
	cbz	x0, LBB0_10
; %bb.9:
Lloh41:
	adrp	x0, l_.str.3@PAGE
Lloh42:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_prterr
	mov	w0, #207
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_report_failure
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_file_size,8,3                  ; @file_size
	.comm	_testcalls,8,3                  ; @testcalls
	.comm	_simulatedopcount,8,3           ; @simulatedopcount
	.comm	_debug,8,3                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lu msync(MS_INVALIDATE)\n"

	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_MAP_FILE,4,2                   ; @MAP_FILE
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_fd,4,2                         ; @fd
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"doinvl: mmap"

	.comm	_MS_SYNC,4,2                    ; @MS_SYNC
	.comm	_MS_INVALIDATE,4,2              ; @MS_INVALIDATE
l_.str.2:                               ; @.str.2
	.asciz	"doinvl: msync"

l_.str.3:                               ; @.str.3
	.asciz	"doinvl: munmap"

.subsections_via_symbols
