	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpuidle_enable_device          ## -- Begin function cpuidle_enable_device
	.p2align	4, 0x90
_cpuidle_enable_device:                 ## @cpuidle_enable_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	cmpl	$0, (%rdi)
	jne	LBB0_15
## %bb.1:
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_cpuidle_get_driver
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_cpuidle_curr_governor@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.4:
	cmpl	$0, 4(%r14)
	je	LBB0_5
## %bb.6:
	cmpq	$0, 8(%r14)
	je	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_poll_idle_init
	movq	%r14, %rdi
	callq	_cpuidle_add_state_sysfs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	movq	(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_11
## %bb.14:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_cpuidle_remove_state_sysfs
	jmp	LBB0_15
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_7:
	movq	%r14, %rdi
	callq	___cpuidle_register_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_8
LBB0_11:
	movl	4(%r14), %esi
	testl	%esi, %esi
	jle	LBB0_13
## %bb.12:
	movq	32(%r14), %rdi
	shlq	$4, %rsi
	callq	___bzero
LBB0_13:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_smp_wmb
	movl	$1, (%r14)
	movq	_enabled_devices@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpuidle_curr_governor,8,3      ## @cpuidle_curr_governor
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_enabled_devices,4,2            ## @enabled_devices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpuidle_enable_device          ; -- Begin function cpuidle_enable_device
	.p2align	2
_cpuidle_enable_device:                 ; @cpuidle_enable_device
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_13
LBB0_2:
	mov	x19, x0
	bl	_cpuidle_get_driver
	cbz	w0, LBB0_10
; %bb.3:
Lloh0:
	adrp	x21, _cpuidle_curr_governor@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cpuidle_curr_governor@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.4:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_11
; %bb.5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
LBB0_6:
	mov	x0, x19
	bl	_poll_idle_init
	mov	x0, x19
	bl	_cpuidle_add_state_sysfs
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.7:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.8:
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_15
; %bb.9:
	mov	x20, x0
	mov	x0, x19
	bl	_cpuidle_remove_state_sysfs
	b	LBB0_13
LBB0_10:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x19
	bl	___cpuidle_register_device
	mov	x20, x0
	cbnz	w0, LBB0_13
	b	LBB0_6
LBB0_15:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.16:
	ldr	x0, [x19, #32]
	lsl	x1, x8, #4
	bl	_bzero
LBB0_17:
	stp	xzr, xzr, [x19, #16]
	bl	_smp_wmb
	mov	w20, #0
	mov	w8, #1
	str	w8, [x19]
Lloh6:
	adrp	x8, _enabled_devices@GOTPAGE
Lloh7:
	ldr	x8, [x8, _enabled_devices@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cpuidle_curr_governor,8,3      ; @cpuidle_curr_governor
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_enabled_devices,4,2            ; @enabled_devices
.subsections_via_symbols
