	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sram_write
___sram_write:                          ## @__sram_write
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_EXI_CHANNEL_0@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_EXI_DEVICE_1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	___sram_writecallback@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_EXI_Lock
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%r13), %edi
	movl	(%r14), %esi
	movq	_EXI_SPEED8MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_EXI_Select
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	shll	$6, %ebx
	addl	$-1610612480, %ebx              ## imm = 0xA0000100
	movl	%ebx, -52(%rbp)
	movl	(%r13), %edi
	movq	_EXI_WRITE@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	leaq	-52(%rbp), %rsi
	movl	$4, %edx
	xorl	%r8d, %r8d
	callq	_EXI_Imm
	testq	%rax, %rax
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movl	(%r13), %edi
	callq	_EXI_Sync
	testq	%rax, %rax
	setne	%r12b
	movl	(%r13), %edi
	movl	(%r14), %ecx
	movq	%r15, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_EXI_ImmEx
	testq	%rax, %rax
	setne	%bl
	movl	(%r13), %edi
	callq	_EXI_Deselect
	testq	%rax, %rax
	setne	%r14b
	movl	(%r13), %edi
	callq	_EXI_Unlock
	testq	%rax, %rax
	setne	%al
	andb	%r14b, %al
	andb	%r12b, %bl
	andb	%al, %bl
	andb	-41(%rbp), %bl                  ## 1-byte Folded Reload
	movzbl	%bl, %r12d
	jmp	LBB0_4
LBB0_2:
	movl	(%r13), %edi
	callq	_EXI_Unlock
LBB0_4:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXI_CHANNEL_0,4,2              ## @EXI_CHANNEL_0
	.comm	_EXI_DEVICE_1,4,2               ## @EXI_DEVICE_1
	.comm	___sram_writecallback,4,2       ## @__sram_writecallback
	.comm	_EXI_SPEED8MHZ,4,2              ## @EXI_SPEED8MHZ
	.comm	_EXI_WRITE,4,2                  ## @EXI_WRITE
	.no_dead_strip	___sram_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sram_write
___sram_write:                          ; @__sram_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _EXI_CHANNEL_0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EXI_CHANNEL_0@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x22, _EXI_DEVICE_1@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EXI_DEVICE_1@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x8, ___sram_writecallback@GOTPAGE
Lloh5:
	ldr	x8, [x8, ___sram_writecallback@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_EXI_Lock
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x23]
	ldr	w1, [x22]
Lloh7:
	adrp	x8, _EXI_SPEED8MHZ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EXI_SPEED8MHZ@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_EXI_Select
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #256
	movk	w8, #40960, lsl #16
	add	w8, w8, w21, lsl #6
	str	w8, [sp, #12]
	ldr	w0, [x23]
Lloh10:
	adrp	x24, _EXI_WRITE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _EXI_WRITE@GOTPAGEOFF]
	ldr	w3, [x24]
	add	x1, sp, #12
	mov	w2, #4
	mov	x4, #0
	bl	_EXI_Imm
	mov	x21, x0
	ldr	w0, [x23]
	bl	_EXI_Sync
	mov	x22, x0
	ldr	w0, [x23]
	ldr	w3, [x24]
	mov	x1, x20
	mov	x2, x19
	bl	_EXI_ImmEx
	mov	x19, x0
	ldr	w0, [x23]
	bl	_EXI_Deselect
	mov	x20, x0
	ldr	w0, [x23]
	bl	_EXI_Unlock
	cmp	x0, #0
	ccmp	x20, #0, #4, ne
	ccmp	x19, #0, #4, ne
	ccmp	x22, #0, #4, ne
	ccmp	x21, #0, #4, ne
	cset	w0, ne
	b	LBB0_4
LBB0_3:
	ldr	w0, [x23]
	bl	_EXI_Unlock
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EXI_CHANNEL_0,4,2              ; @EXI_CHANNEL_0
	.comm	_EXI_DEVICE_1,4,2               ; @EXI_DEVICE_1
	.comm	___sram_writecallback,4,2       ; @__sram_writecallback
	.comm	_EXI_SPEED8MHZ,4,2              ; @EXI_SPEED8MHZ
	.comm	_EXI_WRITE,4,2                  ; @EXI_WRITE
	.no_dead_strip	___sram_write
.subsections_via_symbols
