	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stfsm_init
_stfsm_init:                            ## @stfsm_init
	.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	%rdi, %rbx
	movq	_SEQ_CFG_SWRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SPI_FAST_SEQ_CFG@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movl	$1, %edi
	callq	_udelay
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_STFSM_FLASH_SAFE_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stfsm_set_freq
	movq	_SPI_MODESELECT_FSM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stfsm_set_mode
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_SPI_CFG_DEVICE_ST@GOTPCREL(%rip), %rax
	movq	_SPI_CFG_DEFAULT_MIN_CS_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_SPI_CFG_DEFAULT_CS_SETUPHOLD@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_SPI_CFG_DEFAULT_DATA_HOLD@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_SPI_CONFIGDATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_STFSM_DEFAULT_WR_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SPI_STATUS_WR_TIME_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_SPI_PROGRAM_ERASE_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	$1, %edi
	callq	_writel
	movq	%rbx, %rdi
	callq	_stfsm_clear_fifo
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEQ_CFG_SWRESET,4,2            ## @SEQ_CFG_SWRESET
	.comm	_SPI_FAST_SEQ_CFG,8,3           ## @SPI_FAST_SEQ_CFG
	.comm	_STFSM_FLASH_SAFE_FREQ,4,2      ## @STFSM_FLASH_SAFE_FREQ
	.comm	_SPI_MODESELECT_FSM,4,2         ## @SPI_MODESELECT_FSM
	.comm	_SPI_CFG_DEVICE_ST,4,2          ## @SPI_CFG_DEVICE_ST
	.comm	_SPI_CFG_DEFAULT_MIN_CS_HIGH,4,2 ## @SPI_CFG_DEFAULT_MIN_CS_HIGH
	.comm	_SPI_CFG_DEFAULT_CS_SETUPHOLD,4,2 ## @SPI_CFG_DEFAULT_CS_SETUPHOLD
	.comm	_SPI_CFG_DEFAULT_DATA_HOLD,4,2  ## @SPI_CFG_DEFAULT_DATA_HOLD
	.comm	_SPI_CONFIGDATA,8,3             ## @SPI_CONFIGDATA
	.comm	_STFSM_DEFAULT_WR_TIME,4,2      ## @STFSM_DEFAULT_WR_TIME
	.comm	_SPI_STATUS_WR_TIME_REG,8,3     ## @SPI_STATUS_WR_TIME_REG
	.comm	_SPI_PROGRAM_ERASE_TIME,8,3     ## @SPI_PROGRAM_ERASE_TIME
	.no_dead_strip	_stfsm_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stfsm_init
_stfsm_init:                            ; @stfsm_init
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _SEQ_CFG_SWRESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEQ_CFG_SWRESET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh3:
	adrp	x20, _SPI_FAST_SEQ_CFG@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SPI_FAST_SEQ_CFG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh5:
	adrp	x8, _STFSM_FLASH_SAFE_FREQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STFSM_FLASH_SAFE_FREQ@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stfsm_set_freq
Lloh8:
	adrp	x8, _SPI_MODESELECT_FSM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPI_MODESELECT_FSM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stfsm_set_mode
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _SPI_CFG_DEVICE_ST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SPI_CFG_DEVICE_ST@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _SPI_CFG_DEFAULT_MIN_CS_HIGH@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SPI_CFG_DEFAULT_MIN_CS_HIGH@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _SPI_CFG_DEFAULT_CS_SETUPHOLD@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SPI_CFG_DEFAULT_CS_SETUPHOLD@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh19:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _SPI_CFG_DEFAULT_DATA_HOLD@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SPI_CFG_DEFAULT_DATA_HOLD@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh23:
	adrp	x9, _SPI_CONFIGDATA@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SPI_CONFIGDATA@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh26:
	adrp	x8, _STFSM_DEFAULT_WR_TIME@GOTPAGE
Lloh27:
	ldr	x8, [x8, _STFSM_DEFAULT_WR_TIME@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh29:
	adrp	x9, _SPI_STATUS_WR_TIME_REG@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SPI_STATUS_WR_TIME_REG@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh32:
	adrp	x9, _SPI_PROGRAM_ERASE_TIME@GOTPAGE
Lloh33:
	ldr	x9, [x9, _SPI_PROGRAM_ERASE_TIME@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writel
	mov	x0, x19
	bl	_stfsm_clear_fifo
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SEQ_CFG_SWRESET,4,2            ; @SEQ_CFG_SWRESET
	.comm	_SPI_FAST_SEQ_CFG,8,3           ; @SPI_FAST_SEQ_CFG
	.comm	_STFSM_FLASH_SAFE_FREQ,4,2      ; @STFSM_FLASH_SAFE_FREQ
	.comm	_SPI_MODESELECT_FSM,4,2         ; @SPI_MODESELECT_FSM
	.comm	_SPI_CFG_DEVICE_ST,4,2          ; @SPI_CFG_DEVICE_ST
	.comm	_SPI_CFG_DEFAULT_MIN_CS_HIGH,4,2 ; @SPI_CFG_DEFAULT_MIN_CS_HIGH
	.comm	_SPI_CFG_DEFAULT_CS_SETUPHOLD,4,2 ; @SPI_CFG_DEFAULT_CS_SETUPHOLD
	.comm	_SPI_CFG_DEFAULT_DATA_HOLD,4,2  ; @SPI_CFG_DEFAULT_DATA_HOLD
	.comm	_SPI_CONFIGDATA,8,3             ; @SPI_CONFIGDATA
	.comm	_STFSM_DEFAULT_WR_TIME,4,2      ; @STFSM_DEFAULT_WR_TIME
	.comm	_SPI_STATUS_WR_TIME_REG,8,3     ; @SPI_STATUS_WR_TIME_REG
	.comm	_SPI_PROGRAM_ERASE_TIME,8,3     ; @SPI_PROGRAM_ERASE_TIME
	.no_dead_strip	_stfsm_init
.subsections_via_symbols
