	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_profile
_copy_profile:                          ## @copy_profile
	.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
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movq	8(%rdi), %rcx
	movl	(%rcx), %edi
	subl	%edi, %eax
	movq	_ED_MAX_SAMPLES_NO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	movl	$4, %ebx
	subl	%ecx, %ebx
	cmpl	%ebx, %eax
	jge	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_D
	movl	$1, %r14d
	jmp	LBB0_4
LBB0_3:
	movl	%ebx, %edx
	callq	_memcpy
	movq	8(%r15), %rax
	movslq	(%rax), %rcx
	movl	%ebx, (%rcx)
	addl	%ebx, (%rax)
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ED_MAX_SAMPLES_NO,4,2          ## @ED_MAX_SAMPLES_NO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error have %d need %d"

	.no_dead_strip	_copy_profile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_profile
_copy_profile:                          ; @copy_profile
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x10, _ED_MAX_SAMPLES_NO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ED_MAX_SAMPLES_NO@GOTPAGEOFF]
	ldr	w0, [x9]
Lloh2:
	ldr	w9, [x10]
	mov	w10, #4
	sub	w19, w10, w9, lsl #2
	sub	w8, w8, w0
	cmp	w8, w19
	b.ge	LBB0_4
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	mov	x2, x19
	bl	_D
	mov	w0, #1
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	x2, x19
	bl	_memcpy
	mov	w0, #0
	ldr	x8, [x20, #8]
	ldrsw	x9, [x8]
	str	w19, [x9]
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ED_MAX_SAMPLES_NO,4,2          ; @ED_MAX_SAMPLES_NO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error have %d need %d"

	.no_dead_strip	_copy_profile
.subsections_via_symbols
