	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmcstat_image_add_symbols      ## -- Begin function pmcstat_image_add_symbols
	.p2align	4, 0x90
_pmcstat_image_add_symbols:             ## @pmcstat_image_add_symbols
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	xorl	%esi, %esi
	callq	_elf_getdata
	testq	%rax, %rax
	je	LBB0_27
## %bb.1:
	movq	%rax, %r14
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	cmpq	%rax, %rcx
	jbe	LBB0_2
LBB0_27:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_5
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	cmpq	$2, %rax
	movl	$1, %r13d
	cmovaeq	%rax, %r13
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	leaq	-104(%rbp), %r15
	movq	%r15, %rdx
	callq	_gelf_getsym
	cmpq	%r15, %rax
	jne	LBB0_27
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-76(%rbp), %edi
	callq	_GELF_ST_TYPE
	xorl	%ecx, %ecx
	movq	_STT_FUNC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%cl
	addq	%rcx, %r12
	incq	%rbx
	cmpq	%r13, %rbx
	jne	LBB0_6
## %bb.8:
	testq	%r12, %r12
	je	LBB0_27
## %bb.9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rdi
	movq	(%rbx), %rsi
	addq	%r12, %rsi
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movl	$24, %edx
	callq	_reallocarray
	cmpq	%rax, 16(%rbx)
	je	LBB0_27
## %bb.10:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r15
	cmpq	%r13, %r15
	je	LBB0_19
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_gelf_getsym
	cmpq	%rbx, %rax
	jne	LBB0_27
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-76(%rbp), %edi
	callq	_GELF_ST_TYPE
	movq	_STT_FUNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-104(%rbp), %rax
	movq	_STN_UNDEF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, -112(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-96(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pmcstat_symbol_search
	testq	%rax, %rax
	jne	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %esi
	movl	-80(%rbp), %edx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_elf_strptr
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rdi
	callq	_pmcstat_string_intern
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 16(%rdx)
	movq	-96(%rbp), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	subq	8(%rcx), %rax
	movq	%rax, (%rdx)
	addq	-88(%rbp), %rax
	movq	%rax, 8(%rdx)
	addq	$24, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	incq	-56(%rbp)                       ## 8-byte Folded Spill
	jmp	LBB0_18
LBB0_19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, (%rax)
	je	LBB0_27
## %bb.20:
	xorl	%edi, %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r12, %r14
	setbe	%dil
	callq	_assert
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rdi
	cmpq	%r12, %r14
	jae	LBB0_22
## %bb.21:
	movq	(%rbx), %rsi
	movl	$24, %edx
	callq	_reallocarray
	movq	%rax, %rdi
	movq	%rax, 16(%rbx)
LBB0_22:
	movq	(%rbx), %rsi
	movq	_pmcstat_symbol_compare@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$24, %edx
	callq	_qsort
	movq	(%rbx), %rcx
	decq	%rcx
	testq	%rcx, %rcx
	jle	LBB0_27
## %bb.23:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rcx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	addq	$24, %rax
	cmpq	%rcx, %rax
	jae	LBB0_27
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdx
	cmpq	8(%rax), %rdx
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	24(%rax), %rdx
	movq	%rdx, 8(%rax)
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_STT_FUNC,8,3                   ## @STT_FUNC
	.comm	_STN_UNDEF,8,3                  ## @STN_UNDEF
	.comm	_pmcstat_symbol_compare,4,2     ## @pmcstat_symbol_compare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmcstat_image_add_symbols      ; -- Begin function pmcstat_image_add_symbols
	.p2align	2
_pmcstat_image_add_symbols:             ; @pmcstat_image_add_symbols
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x21, x1
	mov	x19, x0
	mov	x0, x2
	mov	x1, #0
	bl	_elf_getdata
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x8, x9, [x20]
	cmp	x9, x8
	b.ls	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
	mov	x22, x0
	mov	x23, #0
	mov	x25, #0
	udiv	x8, x8, x9
	cmp	x8, #1
	csinc	x26, x8, xzr, hi
	add	x24, sp, #16
Lloh0:
	adrp	x27, _STT_FUNC@GOTPAGE
Lloh1:
	ldr	x27, [x27, _STT_FUNC@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #16
	mov	x0, x22
	mov	x1, x23
	bl	_gelf_getsym
	cmp	x0, x24
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #44]
	bl	_GELF_ST_TYPE
	ldr	x8, [x27]
	cmp	x0, x8
	cinc	x25, x25, eq
	add	x23, x23, #1
	cmp	x23, x26
	b.ne	LBB0_4
; %bb.6:
	cbz	x25, LBB0_2
; %bb.7:
	ldr	x0, [x19, #16]
	ldr	x8, [x19]
	add	x1, x8, x25
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	w2, #24
	bl	_reallocarray
	ldr	x8, [x19, #16]
	cmp	x8, x0
	b.eq	LBB0_2
; %bb.8:
	mov	x24, #0
	str	xzr, [sp]                       ; 8-byte Folded Spill
	str	x0, [x19, #16]
	ldr	x8, [x19]
	mov	w9, #24
	madd	x28, x8, x9, x0
	add	x23, sp, #16
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	cmp	x24, x26
	b.eq	LBB0_17
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #16
	mov	x0, x22
	mov	x1, x24
	bl	_gelf_getsym
	cmp	x0, x23
	b.ne	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [sp, #44]
	bl	_GELF_ST_TYPE
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #16]
Lloh2:
	adrp	x9, _STN_UNDEF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _STN_UNDEF@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x1, [sp, #24]
	mov	x0, x19
	bl	_pmcstat_symbol_search
	cbnz	x0, LBB0_9
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x20, #16]
	ldr	w2, [sp, #40]
	mov	x0, x21
	bl	_elf_strptr
	cbz	x0, LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_pmcstat_string_intern
	str	w0, [x28, #16]
	ldr	x8, [sp, #24]
	ldr	x9, [x19, #8]
	sub	x8, x8, x9
	str	x8, [x28]
	ldr	x9, [sp, #32]
	add	x8, x9, x8
	str	x8, [x28, #8]
	add	x28, x28, #24
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x8, x8, #1
	str	x8, [sp]                        ; 8-byte Folded Spill
	b	LBB0_9
LBB0_17:
	ldr	x8, [x19]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	adds	x8, x8, x9
	str	x8, [x19]
	b.eq	LBB0_2
; %bb.18:
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	cmp	x20, x25
	cset	w0, ls
	bl	_assert
	ldr	x0, [x19, #16]
	cmp	x20, x25
	b.hs	LBB0_20
; %bb.19:
	ldr	x1, [x19]
	mov	w2, #24
	bl	_reallocarray
	str	x0, [x19, #16]
LBB0_20:
	ldr	x1, [x19]
Lloh5:
	adrp	x8, _pmcstat_symbol_compare@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pmcstat_symbol_compare@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	w20, #24
	mov	w2, #24
	bl	_qsort
	ldr	x8, [x19]
	sub	x9, x8, #1
	cmp	x9, #1
	b.lt	LBB0_2
; %bb.21:
	ldr	x8, [x19, #16]
	madd	x9, x9, x20, x8
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x8, x8, #24
	cmp	x8, x9
	b.hs	LBB0_2
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldp	x10, x11, [x8]
	cmp	x10, x11
	b.ne	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x10, [x8, #24]
	str	x10, [x8, #8]
	b	LBB0_22
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_STT_FUNC,8,3                   ; @STT_FUNC
	.comm	_STN_UNDEF,8,3                  ; @STN_UNDEF
	.comm	_pmcstat_symbol_compare,4,2     ; @pmcstat_symbol_compare
.subsections_via_symbols
