	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpuidle_add_state_sysfs        ## -- Begin function cpuidle_add_state_sysfs
	.p2align	4, 0x90
_cpuidle_add_state_sysfs:               ## @cpuidle_add_state_sysfs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jle	LBB0_11
## %bb.1:
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r13
	leaq	16(%r14), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(,%rbx,4), %rax
	addq	24(%r14), %rax
	movq	%rax, 8(%r13)
	leaq	4(%r13), %rdi
	callq	_init_completion
	movq	%r13, %rdi
	movq	_ktype_state_cpuidle@GOTPCREL(%rip), %rsi
	movq	%r12, %rdx
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %r8d
	callq	_kobject_init_and_add
	testl	%eax, %eax
	jne	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_KOBJ_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_kobject_uevent
	movq	8(%r14), %rax
	movq	%r13, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_3
## %bb.9:
	xorl	%r15d, %r15d
LBB0_5:
	testl	%ebx, %ebx
	jne	LBB0_6
	jmp	LBB0_12
LBB0_11:
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_4:
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_kfree
	testl	%ebx, %ebx
	je	LBB0_12
LBB0_6:
	incl	%ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %esi
	movq	%r14, %rdi
	callq	_cpuidle_free_state_kobj
	decl	%ebx
	cmpl	$1, %ebx
	jg	LBB0_7
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ktype_state_cpuidle,4,2        ## @ktype_state_cpuidle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"state%d"

	.comm	_KOBJ_ADD,4,2                   ## @KOBJ_ADD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpuidle_add_state_sysfs        ; -- Begin function cpuidle_add_state_sysfs
	.p2align	2
_cpuidle_add_state_sysfs:               ; @cpuidle_add_state_sysfs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x23, x0
	mov	x27, #0
	mov	x20, #0
	add	x21, x19, #16
Lloh5:
	adrp	x22, _ktype_state_cpuidle@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ktype_state_cpuidle@GOTPAGEOFF]
Lloh7:
	adrp	x28, _KOBJ_ADD@GOTPAGE
Lloh8:
	ldr	x28, [x28, _KOBJ_ADD@GOTPAGEOFF]
Lloh9:
	adrp	x24, l_.str@PAGE
Lloh10:
	add	x24, x24, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x8, x8, x27
	str	x8, [x23, #8]
	add	x0, x23, #4
	bl	_init_completion
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x24
	mov	x4, x20
	bl	_kobject_init_and_add
	cbnz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x28]
	mov	x0, x23
	bl	_kobject_uevent
	ldr	x8, [x19, #8]
	str	x23, [x8, x20, lsl #3]
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.ge	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x26]
	mov	w0, #16
	bl	_kzalloc
	mov	x23, x0
	add	x27, x27, #4
	cbnz	x0, LBB0_3
; %bb.6:
	mov	w25, #0
	cbnz	w20, LBB0_10
	b	LBB0_12
LBB0_7:
	mov	w25, #0
	b	LBB0_12
LBB0_8:
	mov	x20, #0
	neg	w25, w21
	cbnz	w20, LBB0_10
	b	LBB0_12
LBB0_9:
	mov	x25, x0
	mov	x0, x23
	bl	_kfree
	cbz	w20, LBB0_12
LBB0_10:
	add	w20, w20, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	w1, w20, #2
	mov	x0, x19
	bl	_cpuidle_free_state_kobj
	sub	w20, w20, #1
	cmp	w20, #1
	b.gt	LBB0_11
LBB0_12:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ktype_state_cpuidle,4,2        ; @ktype_state_cpuidle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"state%d"

	.comm	_KOBJ_ADD,4,2                   ; @KOBJ_ADD
.subsections_via_symbols
