	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmcstat_process_elf_exec       ## -- Begin function pmcstat_process_elf_exec
	.p2align	4, 0x90
_pmcstat_process_elf_exec:              ## @pmcstat_process_elf_exec
	.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, %rbx
	movq	(%rsi), %rax
	movq	_PMCSTAT_IMAGE_ELF32@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	sete	%sil
	movq	_PMCSTAT_IMAGE_ELF64@GOTPCREL(%rip), %r10
	cmpq	(%r10), %rax
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rdi, %r15
	sete	%al
	orb	%sil, %al
	movzbl	%al, %edi
	callq	_assert
	movq	32(%rbx), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_pmcstat_image_link
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.1:
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_pmcstat_image_from_path
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_PMCSTAT_IMAGE_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_pmcstat_image_get_elf_params
	movq	(%r12), %rax
LBB0_6:
	movq	_PMCSTAT_IMAGE_ELF32@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_PMCSTAT_IMAGE_ELF64@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.9:
	movl	16(%rbx), %edi
	callq	_pmcstat_string_unintern
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warnx                          ## TAILCALL
LBB0_2:
	movl	16(%rbx), %edi
	callq	_pmcstat_string_unintern
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	subq	8(%r12), %r14
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmcstat_image_link             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PMCSTAT_IMAGE_ELF32,8,3        ## @PMCSTAT_IMAGE_ELF32
	.comm	_PMCSTAT_IMAGE_ELF64,8,3        ## @PMCSTAT_IMAGE_ELF64
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: Cannot find image for \"%s\"."

	.comm	_PMCSTAT_IMAGE_UNKNOWN,8,3      ## @PMCSTAT_IMAGE_UNKNOWN
L_.str.1:                               ## @.str.1
	.asciz	"WARNING: rtld not an ELF object \"%s\"."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmcstat_process_elf_exec       ; -- Begin function pmcstat_process_elf_exec
	.p2align	2
_pmcstat_process_elf_exec:              ; @pmcstat_process_elf_exec
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x5
	mov	x24, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x25, _PMCSTAT_IMAGE_ELF32@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PMCSTAT_IMAGE_ELF32@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
Lloh2:
	adrp	x26, _PMCSTAT_IMAGE_ELF64@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PMCSTAT_IMAGE_ELF64@GOTPAGEOFF]
	ldr	x9, [x26]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	x2, [x20, #32]
	mov	x0, x21
	mov	x1, x20
	bl	_pmcstat_image_link
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	w0, [x20, #16]
	mov	w1, #0
	mov	x2, x23
	mov	x3, x24
	bl	_pmcstat_image_from_path
	cbz	x0, LBB0_6
; %bb.2:
	mov	x24, x0
	ldr	x8, [x0]
Lloh4:
	adrp	x9, _PMCSTAT_IMAGE_UNKNOWN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PMCSTAT_IMAGE_UNKNOWN@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x24
	mov	x1, x23
	bl	_pmcstat_image_get_elf_params
	ldr	x8, [x24]
LBB0_4:
	ldr	x9, [x25]
	ldr	x10, [x26]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x24, #8]
	sub	x2, x19, x8
	mov	x0, x21
	mov	x1, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pmcstat_image_link
LBB0_6:
	ldr	w0, [x20, #16]
	bl	_pmcstat_string_unintern
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x20, #16]
	bl	_pmcstat_string_unintern
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_warnx
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PMCSTAT_IMAGE_ELF32,8,3        ; @PMCSTAT_IMAGE_ELF32
	.comm	_PMCSTAT_IMAGE_ELF64,8,3        ; @PMCSTAT_IMAGE_ELF64
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: Cannot find image for \"%s\"."

	.comm	_PMCSTAT_IMAGE_UNKNOWN,8,3      ; @PMCSTAT_IMAGE_UNKNOWN
l_.str.1:                               ; @.str.1
	.asciz	"WARNING: rtld not an ELF object \"%s\"."

.subsections_via_symbols
