	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fam15h_power_init_attrs
_fam15h_power_init_attrs:               ## @fam15h_power_init_attrs
	.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
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_FAM15H_MIN_NUM_ATTRS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_boot_cpu_data@GOTPCREL(%rip), %r15
	cmpl	$21, (%r15)
	jne	LBB0_2
## %bb.1:
	movl	4(%r15), %eax
	cmpl	$16, %eax
	setl	%cl
	andl	$-32, %eax
	cmpl	$96, %eax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %eax
	addl	%eax, %ebx
LBB0_2:
	movq	_X86_FEATURE_ACC_POWER@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_boot_cpu_has
	leal	2(%rbx), %esi
	testq	%rax, %rax
	cmovel	%ebx, %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	$8, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	_dev_attr_power1_crit@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movl	$1, %r13d
	cmpl	$21, (%r15)
	jne	LBB0_8
## %bb.5:
	movl	4(%r15), %eax
	cmpl	$16, %eax
	jl	LBB0_7
## %bb.6:
	andl	$-32, %eax
	cmpl	$96, %eax
	jne	LBB0_8
LBB0_7:
	movq	_dev_attr_power1_input@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movl	$2, %r13d
LBB0_8:
	movl	(%r12), %edi
	callq	_boot_cpu_has
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	%r13d, %eax
	movq	_dev_attr_power1_average@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rbx,%rax,8)
	movq	_dev_attr_power1_average_interval@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rbx,%rax,8)
LBB0_10:
	movq	%rbx, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FAM15H_MIN_NUM_ATTRS,4,2       ## @FAM15H_MIN_NUM_ATTRS
	.comm	_boot_cpu_data,8,2              ## @boot_cpu_data
	.comm	_X86_FEATURE_ACC_POWER,4,2      ## @X86_FEATURE_ACC_POWER
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dev_attr_power1_crit,4,2       ## @dev_attr_power1_crit
	.comm	_dev_attr_power1_input,4,2      ## @dev_attr_power1_input
	.comm	_dev_attr_power1_average,4,2    ## @dev_attr_power1_average
	.comm	_dev_attr_power1_average_interval,4,2 ## @dev_attr_power1_average_interval
	.no_dead_strip	_fam15h_power_init_attrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fam15h_power_init_attrs
_fam15h_power_init_attrs:               ; @fam15h_power_init_attrs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FAM15H_MIN_NUM_ATTRS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FAM15H_MIN_NUM_ATTRS@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x22, _boot_cpu_data@GOTPAGE
Lloh4:
	ldr	x22, [x22, _boot_cpu_data@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #21
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x22, #4]
	cmp	w8, #16
	and	w8, w8, #0xffffffe0
	mov	w9, #96
	ccmp	w8, w9, #4, ge
	cinc	w23, w23, eq
LBB0_2:
Lloh5:
	adrp	x21, _X86_FEATURE_ACC_POWER@GOTPAGE
Lloh6:
	ldr	x21, [x21, _X86_FEATURE_ACC_POWER@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_boot_cpu_has
	add	w8, w23, #2
	cmp	x0, #0
	csel	w1, w23, w8, eq
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #8
	bl	_devm_kcalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh10:
	adrp	x8, _dev_attr_power1_crit@GOTPAGE
Lloh11:
	ldr	x8, [x8, _dev_attr_power1_crit@GOTPAGEOFF]
	str	x8, [x0]
	ldr	w8, [x22]
	cmp	w8, #21
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x22, #4]
	cmp	w8, #16
	b.lt	LBB0_8
; %bb.5:
	and	w8, w8, #0xffffffe0
	cmp	w8, #96
	b.eq	LBB0_8
LBB0_6:
	mov	w22, #1
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_8:
Lloh15:
	adrp	x8, _dev_attr_power1_input@GOTPAGE
Lloh16:
	ldr	x8, [x8, _dev_attr_power1_input@GOTPAGEOFF]
	str	x8, [x20, #8]
	mov	w22, #2
LBB0_9:
	ldr	w0, [x21]
	bl	_boot_cpu_has
	cbz	x0, LBB0_11
; %bb.10:
	add	w8, w22, #1
Lloh17:
	adrp	x9, _dev_attr_power1_average@GOTPAGE
Lloh18:
	ldr	x9, [x9, _dev_attr_power1_average@GOTPAGEOFF]
	str	x9, [x20, w22, uxtw #3]
Lloh19:
	adrp	x9, _dev_attr_power1_average_interval@GOTPAGE
Lloh20:
	ldr	x9, [x9, _dev_attr_power1_average_interval@GOTPAGEOFF]
	str	x9, [x20, w8, uxtw #3]
LBB0_11:
	mov	w0, #0
	str	x20, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FAM15H_MIN_NUM_ATTRS,4,2       ; @FAM15H_MIN_NUM_ATTRS
	.comm	_boot_cpu_data,8,2              ; @boot_cpu_data
	.comm	_X86_FEATURE_ACC_POWER,4,2      ; @X86_FEATURE_ACC_POWER
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dev_attr_power1_crit,4,2       ; @dev_attr_power1_crit
	.comm	_dev_attr_power1_input,4,2      ; @dev_attr_power1_input
	.comm	_dev_attr_power1_average,4,2    ; @dev_attr_power1_average
	.comm	_dev_attr_power1_average_interval,4,2 ; @dev_attr_power1_average_interval
	.no_dead_strip	_fam15h_power_init_attrs
.subsections_via_symbols
