	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doProfileMerging
_doProfileMerging:                      ## @doProfileMerging
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_fseek
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_ftell
	movl	%eax, %r15d
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fseek
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$3, %r15d
	ja	LBB0_8
## %bb.6:
	xorl	%r12d, %r12d
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_PROF_WARN
	jmp	LBB0_13
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_8:
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MAP_SHARED@GOTPCREL(%rip), %rax
	movq	_MAP_FILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_fileno
	xorl	%edi, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %r13
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_9
## %bb.10:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	___llvm_profile_check_compatibility
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_munmap
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_PROF_WARN
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rdi
LBB0_2:
	movl	%eax, %esi
	callq	_PROF_ERR
	movl	$-1, %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	___llvm_profile_merge_from_buffer
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	___llvm_profile_get_size_for_buffer
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_COMPILER_RT_FTRUNCATE
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_munmap
	movl	$1, (%r14)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to merge profile data, unable to get size: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.1:                               ## @.str.1
	.asciz	"Unable to merge profile data, unable to rewind: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to merge profile data: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"source profile file is too small."

	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_MAP_FILE,4,2                   ## @MAP_FILE
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
L_.str.4:                               ## @.str.4
	.asciz	"Unable to merge profile data, mmap failed: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"source profile file is not compatible."

	.no_dead_strip	_doProfileMerging
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function doProfileMerging
_doProfileMerging:                      ; @doProfileMerging
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_fseek
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_ftell
	mov	x21, x0
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	bl	_fseek
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.2:
	cmp	w21, #3
	b.hi	LBB0_7
; %bb.3:
	cbz	w21, LBB0_11
; %bb.4:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_5:
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_6:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_7:
Lloh20:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh22:
	adrp	x9, _MAP_SHARED@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MAP_SHARED@GOTPAGEOFF]
Lloh24:
	ldr	w22, [x8]
Lloh25:
	ldr	w8, [x9]
Lloh26:
	adrp	x9, _MAP_FILE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MAP_FILE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w23, w9, w8
	mov	x0, x20
	bl	_fileno
	mov	x4, x0
	mov	x0, #0
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	w5, #0
	bl	_mmap
Lloh29:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.8:
	mov	x22, x0
	mov	x1, x21
	bl	___llvm_profile_check_compatibility
	cbz	x0, LBB0_15
; %bb.9:
	mov	x0, x22
	mov	x1, x21
	bl	_munmap
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_10:
	bl	_PROF_WARN
LBB0_11:
	mov	w0, #0
	b	LBB0_14
LBB0_12:
Lloh36:
	adrp	x8, _errno@GOTPAGE
Lloh37:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh39:
	adrp	x0, l_.str.4@PAGE
Lloh40:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_13:
	bl	_PROF_ERR
	mov	w0, #-1
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x0, x22
	mov	x1, x21
	bl	___llvm_profile_merge_from_buffer
	bl	___llvm_profile_get_size_for_buffer
	mov	x1, x0
	mov	x0, x20
	bl	_COMPILER_RT_FTRUNCATE
	mov	x0, x22
	mov	x1, x21
	bl	_munmap
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to merge profile data, unable to get size: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.1:                               ; @.str.1
	.asciz	"Unable to merge profile data, unable to rewind: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to merge profile data: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"source profile file is too small."

	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_MAP_FILE,4,2                   ; @MAP_FILE
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
l_.str.4:                               ; @.str.4
	.asciz	"Unable to merge profile data, mmap failed: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"source profile file is not compatible."

	.no_dead_strip	_doProfileMerging
.subsections_via_symbols
