	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tmc_etr_get_sysfs_trace        ## -- Begin function tmc_etr_get_sysfs_trace
	.p2align	4, 0x90
_tmc_etr_get_sysfs_trace:               ## @tmc_etr_get_sysfs_trace
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %r9
	movq	(%rdi), %rdi
	leaq	(%rdx,%rsi), %r8
	movq	(%rdi), %rax
	movq	%rax, %rdx
	subq	%rsi, %rdx
	cmpq	%rax, %r8
	cmovleq	%r9, %rdx
	testq	%rdx, %rdx
	jle	LBB0_1
## %bb.2:
	addq	8(%rdi), %rsi
	movq	16(%rdi), %r8
	xorl	%eax, %eax
	cmpq	%r8, %rsi
	cmovgeq	%r8, %rax
	subq	%rax, %rsi
	popq	%rbp
	jmp	_tmc_etr_buf_get_data           ## TAILCALL
LBB0_1:
	movq	%rdx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tmc_etr_get_sysfs_trace        ; -- Begin function tmc_etr_get_sysfs_trace
	.p2align	2
_tmc_etr_get_sysfs_trace:               ; @tmc_etr_get_sysfs_trace
	.cfi_startproc
; %bb.0:
	ldr	x0, [x0]
	ldr	x8, [x0]
	sub	x9, x8, x1
	add	x10, x2, x1
	cmp	x10, x8
	csel	x2, x9, x2, gt
	cmp	x2, #1
	b.lt	LBB0_2
; %bb.1:
	ldp	x8, x9, [x0, #8]
	add	x8, x8, x1
	cmp	x8, x9
	csel	x9, xzr, x9, lt
	sub	x1, x8, x9
	b	_tmc_etr_buf_get_data
LBB0_2:
	mov	x0, x2
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
