	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_file
_map_file:                              ## @map_file
	.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	_output_file@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_fseek
	movl	(%rbx), %edi
	callq	_ftell
	movq	_file_size@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_PROT_READ@GOTPCREL(%rip), %rcx
	movq	_PROT_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_MAP_FILE@GOTPCREL(%rip), %rsi
	movq	_MAP_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movq	_fd@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	xorl	%edi, %edi
	movq	%rax, %rsi
	xorl	%r9d, %r9d
	callq	_mmap
	movq	_write_buffer@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	cmpq	$-1, %rax
	jne	LBB0_4
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_filename@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_fprintf
LBB0_3:
	movl	$-1, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_output_file,4,2                ## @output_file
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_file_size,8,3                  ## @file_size
	.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	_write_buffer,8,3               ## @write_buffer
	.comm	_errno,4,2                      ## @errno
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"profiling: %s: cannot map: %s\n"

	.comm	_filename,8,3                   ## @filename
	.comm	_FILE_MAP_WRITE,4,2             ## @FILE_MAP_WRITE
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_PAGE_READWRITE,4,2             ## @PAGE_READWRITE
	.comm	_mmap_handle,8,3                ## @mmap_handle
	.no_dead_strip	_map_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_file
_map_file:                              ; @map_file
	.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	x19, _output_file@GOTPAGE
Lloh1:
	ldr	x19, [x19, _output_file@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_fseek
	ldr	w0, [x19]
	bl	_ftell
Lloh5:
	adrp	x8, _file_size@GOTPAGE
Lloh6:
	ldr	x8, [x8, _file_size@GOTPAGEOFF]
Lloh7:
	str	x0, [x8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
Lloh8:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh14:
	adrp	x8, _MAP_FILE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAP_FILE@GOTPAGEOFF]
Lloh16:
	adrp	x9, _MAP_SHARED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MAP_SHARED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh20:
	adrp	x8, _fd@GOTPAGE
Lloh21:
	ldr	x8, [x8, _fd@GOTPAGEOFF]
Lloh22:
	ldr	w4, [x8]
	mov	w0, #0
	mov	w5, #0
	bl	_mmap
	mov	x8, x0
	mov	w0, #0
Lloh23:
	adrp	x9, _write_buffer@GOTPAGE
Lloh24:
	ldr	x9, [x9, _write_buffer@GOTPAGEOFF]
Lloh25:
	str	x8, [x9]
	cmn	x8, #1
	b.ne	LBB0_4
; %bb.2:
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _stderr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh31:
	ldr	w19, [x8]
Lloh32:
	adrp	x8, _filename@GOTPAGE
Lloh33:
	ldr	x8, [x8, _filename@GOTPAGEOFF]
Lloh34:
	ldr	x20, [x8]
	bl	_strerror
	mov	x3, x0
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_fprintf
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_output_file,4,2                ; @output_file
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_file_size,8,3                  ; @file_size
	.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	_write_buffer,8,3               ; @write_buffer
	.comm	_errno,4,2                      ; @errno
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"profiling: %s: cannot map: %s\n"

	.comm	_filename,8,3                   ; @filename
	.comm	_FILE_MAP_WRITE,4,2             ; @FILE_MAP_WRITE
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_PAGE_READWRITE,4,2             ; @PAGE_READWRITE
	.comm	_mmap_handle,8,3                ; @mmap_handle
	.no_dead_strip	_map_file
.subsections_via_symbols
