	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_sched_next_event
_perf_sched_next_event:                 ## @perf_sched_next_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	40(%rdi), %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.1:
	decl	%ecx
	movl	%ecx, 40(%rdi)
	je	LBB0_10
## %bb.2:
	leaq	24(%rdi), %r8
	movq	(%rdi), %r9
	movq	16(%rdi), %rcx
	movq	24(%rdi), %rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, %rsi
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%rdi), %rdx
	movq	(%rdx,%rax,8), %rdx
	cmpq	%rsi, (%rdx)
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rax
	cmpq	%r9, %rax
	jb	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rcx), %rsi
	movq	%rsi, 16(%rdi)
	xorl	%eax, %eax
	cmpq	8(%rdi), %rcx
	jge	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, %rcx
	jmp	LBB0_7
LBB0_8:
	movq	%rax, 24(%rdi)
	addq	$32, %rdi
	movl	$1, %eax
	movq	%rdi, %r8
LBB0_9:
	movq	$0, (%r8)
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_perf_sched_next_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_sched_next_event
_perf_sched_next_event:                 ; @perf_sched_next_event
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #40]
	cbz	w8, LBB0_7
; %bb.1:
	subs	w8, w8, #1
	str	w8, [x0, #40]
	b.eq	LBB0_7
; %bb.2:
	mov	x8, x0
	ldr	x10, [x8, #24]!
	ldr	x9, [x0]
	ldr	x11, [x0, #16]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x0, #48]
	ldr	x12, [x12, x10, lsl #3]
	ldr	x12, [x12]
	cmp	x12, x11
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.lo	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x11, #1
	str	x12, [x0, #16]
	ldr	x10, [x0, #8]
	cmp	x11, x10
	b.ge	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x10, #0
	mov	x11, x12
	b	LBB0_3
LBB0_7:
	mov	w0, #0
	ret
LBB0_8:
	str	x10, [x0, #24]
	add	x8, x0, #32
	mov	w0, #1
	str	xzr, [x8]
	ret
LBB0_9:
	mov	w0, #0
	str	xzr, [x8]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_perf_sched_next_event
.subsections_via_symbols
