	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __unlocksram
___unlocksram:                          ## @__unlocksram
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_sramcntrl@GOTPCREL(%rip), %r14
	testl	%edi, %edi
	je	LBB0_9
## %bb.1:
	movl	%esi, %ebx
	testl	%esi, %esi
	jne	LBB0_5
## %bb.2:
	movq	24(%r14), %rdi
	movl	(%rdi), %eax
	movl	%eax, %ecx
	notl	%ecx
	testb	$3, %cl
	jne	LBB0_4
## %bb.3:
	andl	$-4, %eax
	movl	%eax, (%rdi)
LBB0_4:
	leaq	8(%rdi), %rsi
	leaq	4(%rdi), %rdx
	callq	___buildchecksum
LBB0_5:
	movl	(%r14), %eax
	cmpl	%ebx, %eax
	jle	LBB0_7
## %bb.6:
	movl	%ebx, (%r14)
	movl	%ebx, %eax
LBB0_7:
	movslq	%eax, %rsi
	movq	24(%r14), %rdi
	addq	%rsi, %rdi
	movl	$64, %edx
	subl	%esi, %edx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	___sram_write
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	$64, (%r14)
LBB0_9:
	movq	$0, 16(%r14)
	movl	8(%r14), %edi
	callq	__CPU_ISR_Restore
	movl	4(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sramcntrl,32,3                 ## @sramcntrl
	.no_dead_strip	___unlocksram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __unlocksram
___unlocksram:                          ; @__unlocksram
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _sramcntrl@GOTPAGE
Lloh1:
	ldr	x20, [x20, _sramcntrl@GOTPAGEOFF]
	cbz	w0, LBB0_9
; %bb.1:
	mov	x19, x1
	cbnz	w1, LBB0_5
; %bb.2:
	ldr	x0, [x20, #24]
	ldr	w8, [x0]
	mvn	w9, w8
	tst	w9, #0x3
	b.ne	LBB0_4
; %bb.3:
	and	w8, w8, #0xfffffffc
	str	w8, [x0]
LBB0_4:
	add	x1, x0, #8
	add	x2, x0, #4
	bl	___buildchecksum
LBB0_5:
	ldr	w1, [x20]
	cmp	w1, w19
	b.le	LBB0_7
; %bb.6:
	str	w19, [x20]
	mov	x1, x19
LBB0_7:
	ldr	x8, [x20, #24]
	add	x0, x8, w1, sxtw
	mov	w19, #64
	sub	w2, w19, w1
	bl	___sram_write
	str	w0, [x20, #4]
	cbz	w0, LBB0_9
; %bb.8:
	str	w19, [x20]
LBB0_9:
	str	xzr, [x20, #16]
	ldr	w0, [x20, #8]
	bl	__CPU_ISR_Restore
	ldr	w0, [x20, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_sramcntrl,32,3                 ; @sramcntrl
	.no_dead_strip	___unlocksram
.subsections_via_symbols
