	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_power_saving_task
_create_power_saving_task:              ## @create_power_saving_task
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_power_saving_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ps_tsk_num@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rcx, %rsi
	callq	_kthread_run
	movq	_ps_tsks@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%rbx), %rax
	cmpq	$0, (%rcx,%rax,8)
	je	LBB0_2
## %bb.1:
	incq	%rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_power_saving_thread,4,2        ## @power_saving_thread
	.comm	_ps_tsk_num,8,3                 ## @ps_tsk_num
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"power_saving/%d"

	.comm	_ps_tsks,8,3                    ## @ps_tsks
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_create_power_saving_task
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_power_saving_task
_create_power_saving_task:              ; @create_power_saving_task
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _power_saving_thread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _power_saving_thread@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x19, _ps_tsk_num@GOTPAGE
Lloh4:
	ldr	x19, [x19, _ps_tsk_num@GOTPAGEOFF]
	ldr	x1, [x19]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x1
	bl	_kthread_run
Lloh7:
	adrp	x8, _ps_tsks@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ps_tsks@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x8]
	ldr	x8, [x19]
	str	x0, [x9, x8, lsl #3]
	ldr	x8, [x19]
	ldr	x9, [x9, x8, lsl #3]
	cbz	x9, LBB0_2
; %bb.1:
	mov	w0, #0
	add	x8, x8, #1
	str	x8, [x19]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_power_saving_thread,4,2        ; @power_saving_thread
	.comm	_ps_tsk_num,8,3                 ; @ps_tsk_num
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"power_saving/%d"

	.comm	_ps_tsks,8,3                    ; @ps_tsks
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_create_power_saving_task
.subsections_via_symbols
