	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmcstat_gmon_map_file
_pmcstat_gmon_map_file:                 ## @pmcstat_gmon_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	callq	_pmcstat_string_unintern
	movq	%rax, %r14
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_NOFOLLOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_err
LBB0_2:
	movl	4(%r15), %esi
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MAP_NOSYNC@GOTPCREL(%rip), %rax
	movq	_MAP_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edi, %edi
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movl	%eax, (%r15)
	movq	_MAP_FAILED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_err
LBB0_4:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_NOFOLLOW,4,2                 ## @O_NOFOLLOW
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: cannot open \"%s\""

	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_MAP_NOSYNC,4,2                 ## @MAP_NOSYNC
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_MAP_FAILED,4,2                 ## @MAP_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"ERROR: cannot map \"%s\""

	.no_dead_strip	_pmcstat_gmon_map_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmcstat_gmon_map_file
_pmcstat_gmon_map_file:                 ; @pmcstat_gmon_map_file
	.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	x20, x0
	ldr	w0, [x0, #8]
	bl	_pmcstat_string_unintern
	mov	x19, x0
Lloh0:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _O_NOFOLLOW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_NOFOLLOW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #0
	bl	_open
	mov	x21, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_err
LBB0_2:
	ldr	w1, [x20, #4]
Lloh11:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _MAP_NOSYNC@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MAP_NOSYNC@GOTPAGEOFF]
	orr	w2, w9, w8
Lloh19:
	ldr	w8, [x10]
Lloh20:
	adrp	x9, _MAP_SHARED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MAP_SHARED@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, #0
	mov	x4, x21
	mov	w5, #0
	bl	_mmap
	str	w0, [x20]
Lloh23:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
Lloh26:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_err
LBB0_4:
	mov	x0, x21
	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
	b	_close
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_NOFOLLOW,4,2                 ; @O_NOFOLLOW
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: cannot open \"%s\""

	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_MAP_NOSYNC,4,2                 ; @MAP_NOSYNC
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_MAP_FAILED,4,2                 ; @MAP_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"ERROR: cannot map \"%s\""

	.no_dead_strip	_pmcstat_gmon_map_file
.subsections_via_symbols
