	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flexcop_sram_init              ## -- Begin function flexcop_sram_init
	.p2align	4, 0x90
_flexcop_sram_init:                     ## @flexcop_sram_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.3:
	movq	_FC_SRAM_1_32KB@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.2:
	movq	_FC_SRAM_1_48KB@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	callq	_flexcop_sram_set_chip
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FC_SRAM_1_32KB,4,2             ## @FC_SRAM_1_32KB
	.comm	_FC_SRAM_1_48KB,4,2             ## @FC_SRAM_1_48KB
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flexcop_sram_init              ; -- Begin function flexcop_sram_init
	.p2align	2
_flexcop_sram_init:                     ; @flexcop_sram_init
	.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
	ldr	w8, [x0]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FC_SRAM_1_32KB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FC_SRAM_1_32KB@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _FC_SRAM_1_48KB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FC_SRAM_1_48KB@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	bl	_flexcop_sram_set_chip
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FC_SRAM_1_32KB,4,2             ; @FC_SRAM_1_32KB
	.comm	_FC_SRAM_1_48KB,4,2             ; @FC_SRAM_1_48KB
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
