	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpuidle_register_governor      ## -- Begin function cpuidle_register_governor
	.p2align	4, 0x90
_cpuidle_register_governor:             ## @cpuidle_register_governor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	cmpl	$0, 16(%rdi)
	je	LBB0_2
## %bb.3:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	_cpuidle_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	12(%r14), %edi
	callq	___cpuidle_find_governor
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	leaq	8(%r14), %rdi
	movq	_cpuidle_governors@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
	movq	_cpuidle_curr_governor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	cmpq	(%r14), %rax
	jge	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_cpuidle_switch_governor
	xorl	%ebx, %ebx
LBB0_7:
	movq	_cpuidle_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_cpuidle_lock,4,2               ## @cpuidle_lock
	.comm	_cpuidle_governors,4,2          ## @cpuidle_governors
	.comm	_cpuidle_curr_governor,8,3      ## @cpuidle_curr_governor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpuidle_register_governor      ; -- Begin function cpuidle_register_governor
	.p2align	2
_cpuidle_register_governor:             ; @cpuidle_register_governor
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x0, _cpuidle_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _cpuidle_lock@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	w0, [x19, #12]
	bl	___cpuidle_find_governor
	cbz	x0, LBB0_5
; %bb.3:
	neg	w19, w20
	b	LBB0_9
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_10
LBB0_5:
	add	x0, x19, #8
Lloh8:
	adrp	x1, _cpuidle_governors@GOTPAGE
Lloh9:
	ldr	x1, [x1, _cpuidle_governors@GOTPAGEOFF]
	bl	_list_add_tail
Lloh10:
	adrp	x8, _cpuidle_curr_governor@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cpuidle_curr_governor@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_cpuidle_switch_governor
LBB0_8:
	mov	w19, #0
LBB0_9:
Lloh13:
	adrp	x0, _cpuidle_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _cpuidle_lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_cpuidle_lock,4,2               ; @cpuidle_lock
	.comm	_cpuidle_governors,4,2          ; @cpuidle_governors
	.comm	_cpuidle_curr_governor,8,3      ; @cpuidle_curr_governor
.subsections_via_symbols
