	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_set_smc_sram_address
_si_set_smc_sram_address:               ## @si_set_smc_sram_address
	.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
                                        ## kill: def $esi killed $esi def $rsi
	testb	$3, %sil
	jne	LBB0_1
## %bb.2:
	leal	3(%rsi), %eax
	cmpl	%edx, %eax
	jle	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_3:
	movq	_SMC_IND_INDEX_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_WREG32
	movq	_SMC_IND_ACCESS_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AUTO_INCREMENT_IND_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_WREG32_P
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMC_IND_INDEX_0,4,2            ## @SMC_IND_INDEX_0
	.comm	_SMC_IND_ACCESS_CNTL,4,2        ## @SMC_IND_ACCESS_CNTL
	.comm	_AUTO_INCREMENT_IND_0,4,2       ## @AUTO_INCREMENT_IND_0
	.no_dead_strip	_si_set_smc_sram_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_set_smc_sram_address
_si_set_smc_sram_address:               ; @si_set_smc_sram_address
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	tst	w1, #0x3
	b.ne	LBB0_2
; %bb.1:
	add	w8, w1, #3
	cmp	w8, w2
	b.le	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh3:
	adrp	x8, _SMC_IND_INDEX_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMC_IND_INDEX_0@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_WREG32
Lloh6:
	adrp	x8, _SMC_IND_ACCESS_CNTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMC_IND_ACCESS_CNTL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _AUTO_INCREMENT_IND_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AUTO_INCREMENT_IND_0@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	w1, #0
	bl	_WREG32_P
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMC_IND_INDEX_0,4,2            ; @SMC_IND_INDEX_0
	.comm	_SMC_IND_ACCESS_CNTL,4,2        ; @SMC_IND_ACCESS_CNTL
	.comm	_AUTO_INCREMENT_IND_0,4,2       ; @AUTO_INCREMENT_IND_0
	.no_dead_strip	_si_set_smc_sram_address
.subsections_via_symbols
