	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmcstat_process_exec           ## -- Begin function pmcstat_process_exec
	.p2align	4, 0x90
_pmcstat_process_exec:                  ## @pmcstat_process_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %rbx
	movq	%rcx, %r14
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %edi
	xorl	%esi, %esi
	movq	%rcx, %rdx
	movq	%r8, %rcx
	callq	_pmcstat_image_from_path
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	(%rax), %eax
	movq	_PMCSTAT_IMAGE_UNKNOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_pmcstat_image_determine_type
	movl	(%r12), %eax
	movq	_PMCSTAT_IMAGE_UNKNOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	setne	%dil
	callq	_assert
	movl	(%r12), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_10
## %bb.5:
	cmpl	$128, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$131, %eax
	jne	LBB0_7
## %bb.11:
	incl	4(%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmcstat_process_aout_exec      ## TAILCALL
LBB0_1:
	incl	12(%r15)
	jmp	LBB0_9
LBB0_10:
	incl	8(%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %rcx
	movq	%rbx, %r8
	movq	%r15, %r9
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmcstat_process_elf_exec       ## TAILCALL
LBB0_8:
	incl	(%r15)
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EX_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_pmcstat_string_unintern
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_err                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PMCSTAT_IMAGE_UNKNOWN,4,2      ## @PMCSTAT_IMAGE_UNKNOWN
	.comm	_EX_SOFTWARE,4,2                ## @EX_SOFTWARE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: Unsupported executable type for \"%s\""

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmcstat_process_exec           ; -- Begin function pmcstat_process_exec
	.p2align	2
_pmcstat_process_exec:                  ; @pmcstat_process_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	x19, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	mov	w1, #0
	mov	x2, x3
	mov	x3, x4
	bl	_pmcstat_image_from_path
	cbz	x0, LBB0_7
; %bb.1:
	mov	x25, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x26, _PMCSTAT_IMAGE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _PMCSTAT_IMAGE_UNKNOWN@GOTPAGEOFF]
	ldr	w9, [x26]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x25
	mov	x1, x24
	bl	_pmcstat_image_determine_type
	ldr	w8, [x25]
	ldr	w9, [x26]
LBB0_3:
	cmp	w8, w9
	cset	w0, ne
	bl	_assert
	ldr	w8, [x25]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_8
; %bb.4:
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.5:
	cmp	w8, #131
	b.ne	LBB0_11
; %bb.6:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x21
	mov	x1, x25
	mov	x2, x20
	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_process_aout_exec
LBB0_7:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	b	LBB0_10
LBB0_8:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	mov	x0, x21
	mov	x1, x25
	mov	x2, x20
	mov	x3, x24
	mov	x4, x23
	mov	x5, x19
	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_process_elf_exec
LBB0_9:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_10:
	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_11:
Lloh2:
	adrp	x8, _EX_SOFTWARE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EX_SOFTWARE@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	mov	x0, x22
	bl	_pmcstat_string_unintern
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	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	_err
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PMCSTAT_IMAGE_UNKNOWN,4,2      ; @PMCSTAT_IMAGE_UNKNOWN
	.comm	_EX_SOFTWARE,4,2                ; @EX_SOFTWARE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: Unsupported executable type for \"%s\""

.subsections_via_symbols
