	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function applesmc_key_at_index_store
_applesmc_key_at_index_store:           ## @applesmc_key_at_index_store
	.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	%rcx, %rbx
	movq	%rdx, %rdi
	leaq	-16(%rbp), %rdx
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movq	-16(%rbp), %rax
	movq	_smcreg@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_2
## %bb.3:
	movq	_key_at_index@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_smcreg,8,3                     ## @smcreg
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_key_at_index,8,3               ## @key_at_index
	.no_dead_strip	_applesmc_key_at_index_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function applesmc_key_at_index_store
_applesmc_key_at_index_store:           ; @applesmc_key_at_index_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x3
	mov	x0, x2
	add	x2, sp, #8
	mov	w1, #10
	bl	_kstrtoul
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x9, _smcreg@GOTPAGE
Lloh1:
	ldr	x9, [x9, _smcreg@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _key_at_index@GOTPAGE
Lloh4:
	ldr	x9, [x9, _key_at_index@GOTPAGEOFF]
Lloh5:
	str	x8, [x9]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_smcreg,8,3                     ; @smcreg
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_key_at_index,8,3               ; @key_at_index
	.no_dead_strip	_applesmc_key_at_index_store
.subsections_via_symbols
