	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function __perf_evsel__read
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	___perf_evsel__read
	.p2align	4, 0x90
___perf_evsel__read:                    ## @__perf_evsel__read
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	leaq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %r13
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, 8(%rdi)
	movq	$0, 24(%rdi)
	movq	%rdi, %rdx
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	jle	LBB0_12
## %bb.1:
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	setne	%al
	shlq	$4, %rax
	orq	$8, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	cmpl	-60(%rbp), %r12d                ## 4-byte Folded Reload
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	incl	%r14d
	cmpl	%r14d, %r15d
	je	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_FD
	testq	%rax, %rax
	js	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_FD
	movq	%rax, %rdi
	leaq	-104(%rbp), %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_readn
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movsd	-104(%rbp), %xmm0               ## xmm0 = mem[0],zero
	addsd	(%r13), %xmm0
	movsd	%xmm0, (%r13)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movupd	-96(%rbp), %xmm0
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movupd	(%rax), %xmm1
	addpd	%xmm0, %xmm1
	movupd	%xmm1, (%rax)
	jmp	LBB0_9
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_11:
	movq	(%rbx), %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_12:
	movl	$0, (%rdx)
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.13:
	movsd	24(%rdi), %xmm0                 ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	LBB0_15
	jp	LBB0_15
## %bb.14:
	movl	$-1, (%rdx)
	movq	$0, (%r13)
	jmp	LBB0_18
LBB0_17:
	xorpd	%xmm0, %xmm0
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movupd	%xmm0, (%rax)
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	xorl	%eax, %eax
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_19
## %bb.16:
	movl	$1, (%rdx)
	mulsd	(%r13), %xmm1
	divsd	%xmm0, %xmm1
	addsd	LCPI0_0(%rip), %xmm1
	movsd	%xmm1, (%r13)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___perf_evsel__read             ; -- Begin function __perf_evsel__read
	.p2align	2
___perf_evsel__read:                    ; @__perf_evsel__read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	ldr	x28, [x0]
	mov	x27, x28
	str	xzr, [x27, #16]!
	mov	x26, x28
	str	xzr, [x26, #8]!
	str	xzr, [x28, #24]
	mov	x8, x28
	cmp	w1, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	w23, #0
	cmp	w19, #0
	mov	w8, #24
	mov	w9, #8
	csel	x24, x9, x8, eq
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	cmp	w23, w22
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	w25, w25, #1
	cmp	w20, w25
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x23
	mov	x2, x25
	bl	_FD
	tbnz	x0, #63, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x21
	mov	x1, x23
	mov	x2, x25
	bl	_FD
	add	x1, sp, #8
	mov	x2, x24
	bl	_readn
	tbnz	x0, #63, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	d0, [sp, #8]
	ldr	d1, [x26]
	fadd	d0, d0, d1
	str	d0, [x26]
	cbz	w19, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	ldur	q0, [sp, #16]
	ldr	q1, [x27]
	fadd.2d	v0, v0, v1
	str	q0, [x27]
	b	LBB0_5
LBB0_10:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_11:
	ldr	x8, [x21]
LBB0_12:
	str	wzr, [x8]
	cbz	w19, LBB0_15
; %bb.13:
	ldr	d0, [x28, #24]
	fcmp	d0, #0.0
	b.ne	LBB0_16
; %bb.14:
	mov	w0, #0
	mov	w9, #-1
	str	w9, [x8]
	str	xzr, [x26]
	b	LBB0_18
LBB0_15:
	mov	w0, #0
	stp	xzr, xzr, [x27]
	b	LBB0_18
LBB0_16:
	ldr	d1, [x27]
	mov	w0, #0
	fcmp	d0, d1
	b.pl	LBB0_18
; %bb.17:
	mov	w9, #1
	str	w9, [x8]
	ldr	d2, [x26]
	fmul	d1, d1, d2
	fdiv	d0, d1, d0
	fmov	d1, #0.50000000
	fadd	d0, d0, d1
	str	d0, [x26]
LBB0_18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
