	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_sched_restore_state
_perf_sched_restore_state:              ## @perf_sched_restore_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rdi)
	movq	16(%rdi), %rcx
	movq	-8(%rcx,%rax,8), %rsi
	movq	%rsi, 8(%rdi)
	movq	%rsi, %rax
	shrq	$32, %rax
	leal	1(%rax), %ecx
	movl	%ecx, 12(%rdi)
	movl	%eax, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_clear_bit
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_perf_sched_restore_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_sched_restore_state
_perf_sched_restore_state:              ; @perf_sched_restore_state
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	sub	x8, x8, #1
	str	x8, [x0]
	ldr	x9, [x0, #16]
	ldr	x1, [x9, x8, lsl #3]
	str	x1, [x0, #8]
	lsr	x8, x1, #32
	add	w9, w8, #1
	str	w9, [x0, #12]
	mov	x0, x8
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_clear_bit
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_perf_sched_restore_state
.subsections_via_symbols
