	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mapfile
_mapfile:                               ## @mapfile
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	__SC_PAGESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movl	%eax, %r15d
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_open
	movl	%eax, %r12d
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	testl	%r12d, %r12d
	jns	LBB0_4
## %bb.2:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_4
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_pr_err
LBB0_4:
	testl	%r12d, %r12d
	js	LBB0_5
## %bb.6:
	leaq	-40(%rbp), %rsi
	movl	%r12d, %edi
	callq	_fstat
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
	movl	%r15d, %ecx
	negl	%ecx
	leal	(%r15,%rax), %esi
	decl	%esi
	andl	%ecx, %esi
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	cmoveq	%r14, %rbx
	jmp	LBB0_9
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_7:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%r12d, %edi
	callq	_close
LBB0_10:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__SC_PAGESIZE,4,2               ## @_SC_PAGESIZE
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_verbose,8,3                    ## @verbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error opening events file '%s': %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.no_dead_strip	_mapfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mapfile
_mapfile:                               ; @mapfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, __SC_PAGESIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, __SC_PAGESIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_sysconf
	mov	x21, x0
Lloh3:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_open
	mov	x19, x0
	cbz	x22, LBB0_4
; %bb.1:
	tbz	w19, #31, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _verbose@GOTPAGE
Lloh7:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_pr_err
LBB0_4:
	tbnz	w19, #31, LBB0_7
; %bb.5:
	add	x1, sp, #8
	mov	x0, x19
	bl	_fstat
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldr	x8, [sp, #8]
	str	x8, [x20]
	add	w8, w21, w8
	sub	w8, w8, #1
	neg	w9, w21
	and	w1, w8, w9
Lloh14:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh16:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh20:
	adrp	x8, _MAP_PRIVATE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MAP_PRIVATE@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x4, x19
	mov	w5, #0
	bl	_mmap
Lloh23:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	csel	x20, xzr, x0, eq
	b	LBB0_9
LBB0_7:
	mov	x20, #0
	b	LBB0_10
LBB0_8:
	mov	x20, #0
LBB0_9:
	mov	x0, x19
	bl	_close
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	__SC_PAGESIZE,4,2               ; @_SC_PAGESIZE
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_verbose,8,3                    ; @verbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error opening events file '%s': %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.no_dead_strip	_mapfile
.subsections_via_symbols
