	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_readsamples                    ## -- Begin function readsamples
	.p2align	4, 0x90
_readsamples:                           ## @readsamples
	.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	%rdi, %r14
	movq	_samples@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_nsamples@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$8, %esi
	callq	_calloc
	movq	_samples@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_3:
	movq	_nsamples@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.4:
	leaq	-48(%rbp), %r15
	leaq	LJTI0_0(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_histcounter_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_fread
	movq	%r14, %rdi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_histcounter_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leal	64(%rdx), %eax
	roll	$29, %eax
	cmpl	$16, %eax
	ja	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movsd	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movq	_samples@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addsd	(%rax,%rbx,8), %xmm0
	movsd	%xmm0, (%rax,%rbx,8)
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r12), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_5
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_err
	jmp	LBB0_11
LBB0_6:
	movl	(%r12), %ecx
LBB0_12:
	cmpl	%ecx, %ebx
	jne	LBB0_14
## %bb.13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	decl	%ebx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_errx                           ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_samples,8,3                    ## @samples
	.comm	_nsamples,4,2                   ## @nsamples
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no room for %d sample pc's"

	.comm	_histcounter_size,4,2           ## @histcounter_size
	.comm	_histcounter_type,4,2           ## @histcounter_type
L_.str.1:                               ## @.str.1
	.asciz	"unsupported histogram counter type %d"

L_.str.2:                               ## @.str.2
	.asciz	"unexpected EOF after reading %d/%d samples"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_readsamples                    ; -- Begin function readsamples
	.p2align	2
_readsamples:                           ; @readsamples
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
Lloh0:
	adrp	x21, _samples@GOTPAGE
Lloh1:
	ldr	x21, [x21, _samples@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x22, _nsamples@GOTPAGE
Lloh3:
	ldr	x22, [x22, _nsamples@GOTPAGEOFF]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x22]
	mov	w1, #8
	bl	_calloc
	str	x0, [x21]
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w2, [x22]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
LBB0_3:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.4:
	mov	x23, #0
Lloh6:
	adrp	x24, _histcounter_size@GOTPAGE
Lloh7:
	ldr	x24, [x24, _histcounter_size@GOTPAGEOFF]
Lloh8:
	adrp	x25, _histcounter_type@GOTPAGE
Lloh9:
	ldr	x25, [x25, _histcounter_type@GOTPAGEOFF]
Lloh10:
	adrp	x20, l_.str.1@PAGE
Lloh11:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh12:
	adrp	x26, lJTI0_0@PAGE
Lloh13:
	add	x26, x26, lJTI0_0@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	add	x0, sp, #8
	mov	w2, #1
	mov	x3, x19
	bl	_fread
	mov	x0, x19
	bl	_feof
	cbnz	x0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x25]
	add	w8, w2, #64
	ror	w8, w8, #3
	cmp	w8, #16
	b.hi	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_8
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	d0, [sp, #8]
	ldr	x8, [x21]
	lsl	x9, x23, #3
	ldr	d1, [x8, x9]
	fadd	d0, d0, d1
	str	d0, [x8, x9]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_5
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	mov	x1, x20
	bl	_err
	b	LBB0_9
LBB0_11:
	mov	w23, #0
LBB0_12:
	cmp	w23, w8
	b.eq	LBB0_14
LBB0_13:
	sub	w2, w23, #1
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	ldr	w8, [x22]
	cmp	w23, w8
	b.ne	LBB0_13
	b	LBB0_14
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
                                        ; -- End function
	.comm	_samples,8,3                    ; @samples
	.comm	_nsamples,4,2                   ; @nsamples
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no room for %d sample pc's"

	.comm	_histcounter_size,4,2           ; @histcounter_size
	.comm	_histcounter_type,4,2           ; @histcounter_type
l_.str.1:                               ; @.str.1
	.asciz	"unsupported histogram counter type %d"

l_.str.2:                               ; @.str.2
	.asciz	"unexpected EOF after reading %d/%d samples"

.subsections_via_symbols
