	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stfsm_wait_busy
_stfsm_wait_busy:                       ## @stfsm_wait_busy
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_SEQ_OPC_PADS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$8, %edi
	callq	_SEQ_OPC_CYCLES
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movq	_SPINOR_OP_RDSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SEQ_OPC_OPCODE
	orl	%ebx, %eax
	movq	_stfsm_seq_read_status_fifo@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	movl	%eax, (%rcx)
	movq	%r13, %rdi
	callq	_stfsm_load_seq
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_FLASH_MAX_BUSY_WAIT@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	%rdi, %r15
	movq	%r15, %rsi
	callq	_time_after_eq
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_stfsm_wait_seq
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_stfsm_read_fifo
	movl	-44(%rbp), %eax
	movq	_FLASH_STATUS_BUSY@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_CFG_S25FL_CHECK_ERROR_FLAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r13)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_S25FL_STATUS_P_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_S25FL_STATUS_E_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_stfsm_seq_read_status_fifo@GOTPCREL(%rip), %rax
	movl	8(%rax), %edi
	movq	_SPI_FAST_SEQ_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r13), %rsi
	callq	_writel
	xorl	%eax, %eax
	callq	_cond_resched
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_time_after_eq
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_stfsm_wait_seq
	movq	%r13, %rdi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	callq	_stfsm_read_fifo
	movl	-44(%rbp), %eax
	testl	%eax, (%r12)
	jne	LBB0_3
	jmp	LBB0_10
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_6:
	movzbl	%al, %r14d
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	callq	_cond_resched
	movl	4(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_FLASH_STATUS_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stfsm_seq_read_status_fifo,16,3 ## @stfsm_seq_read_status_fifo
	.comm	_SEQ_OPC_PADS_1,4,2             ## @SEQ_OPC_PADS_1
	.comm	_SPINOR_OP_RDSR,4,2             ## @SPINOR_OP_RDSR
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_FLASH_MAX_BUSY_WAIT,8,3        ## @FLASH_MAX_BUSY_WAIT
	.comm	_FLASH_STATUS_BUSY,4,2          ## @FLASH_STATUS_BUSY
	.comm	_CFG_S25FL_CHECK_ERROR_FLAGS,4,2 ## @CFG_S25FL_CHECK_ERROR_FLAGS
	.comm	_S25FL_STATUS_P_ERR,4,2         ## @S25FL_STATUS_P_ERR
	.comm	_S25FL_STATUS_E_ERR,4,2         ## @S25FL_STATUS_E_ERR
	.comm	_SPI_FAST_SEQ_CFG,8,3           ## @SPI_FAST_SEQ_CFG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout on wait_busy\n"

	.comm	_FLASH_STATUS_TIMEOUT,4,2       ## @FLASH_STATUS_TIMEOUT
	.no_dead_strip	_stfsm_wait_busy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stfsm_wait_busy
_stfsm_wait_busy:                       ; @stfsm_wait_busy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _SEQ_OPC_PADS_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEQ_OPC_PADS_1@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	w0, #8
	bl	_SEQ_OPC_CYCLES
	orr	w20, w0, w20
Lloh3:
	adrp	x8, _SPINOR_OP_RDSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPINOR_OP_RDSR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_SEQ_OPC_OPCODE
	orr	w8, w20, w0
Lloh6:
	adrp	x20, _stfsm_seq_read_status_fifo@GOTPAGE
Lloh7:
	ldr	x20, [x20, _stfsm_seq_read_status_fifo@GOTPAGEOFF]
	ldr	x9, [x20]
	str	w8, [x9]
	mov	x0, x19
	mov	x1, x20
	bl	_stfsm_load_seq
Lloh8:
	adrp	x23, _jiffies@GOTPAGE
Lloh9:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh10:
	adrp	x8, _FLASH_MAX_BUSY_WAIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FLASH_MAX_BUSY_WAIT@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	add	x21, x8, x0
	mov	x1, x21
	bl	_time_after_eq
	mov	x22, x0
	mov	x0, x19
	bl	_stfsm_wait_seq
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_stfsm_read_fifo
	ldr	w8, [sp, #12]
Lloh13:
	adrp	x24, _FLASH_STATUS_BUSY@GOTPAGE
Lloh14:
	ldr	x24, [x24, _FLASH_STATUS_BUSY@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
Lloh15:
	adrp	x25, _CFG_S25FL_CHECK_ERROR_FLAGS@GOTPAGE
Lloh16:
	ldr	x25, [x25, _CFG_S25FL_CHECK_ERROR_FLAGS@GOTPAGEOFF]
Lloh17:
	adrp	x26, _SPI_FAST_SEQ_CFG@GOTPAGE
Lloh18:
	ldr	x26, [x26, _SPI_FAST_SEQ_CFG@GOTPAGEOFF]
Lloh19:
	adrp	x27, _S25FL_STATUS_P_ERR@GOTPAGE
Lloh20:
	ldr	x27, [x27, _S25FL_STATUS_P_ERR@GOTPAGEOFF]
Lloh21:
	adrp	x28, _S25FL_STATUS_E_ERR@GOTPAGE
Lloh22:
	ldr	x28, [x28, _S25FL_STATUS_E_ERR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19]
	ldr	w10, [x25]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbnz	x22, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20, #8]
	ldr	x8, [x19, #8]
	ldr	x9, [x26]
	add	x1, x9, x8
	bl	_writel
	bl	_cond_resched
	ldr	x0, [x23]
	mov	x1, x21
	bl	_time_after_eq
	mov	x22, x0
	mov	x0, x19
	bl	_stfsm_wait_seq
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_stfsm_read_fifo
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_2
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	and	w0, w8, #0xff
	b	LBB0_10
LBB0_9:
	bl	_cond_resched
	ldr	w0, [x19, #4]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh25:
	adrp	x8, _FLASH_STATUS_TIMEOUT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FLASH_STATUS_TIMEOUT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_stfsm_seq_read_status_fifo,16,3 ; @stfsm_seq_read_status_fifo
	.comm	_SEQ_OPC_PADS_1,4,2             ; @SEQ_OPC_PADS_1
	.comm	_SPINOR_OP_RDSR,4,2             ; @SPINOR_OP_RDSR
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_FLASH_MAX_BUSY_WAIT,8,3        ; @FLASH_MAX_BUSY_WAIT
	.comm	_FLASH_STATUS_BUSY,4,2          ; @FLASH_STATUS_BUSY
	.comm	_CFG_S25FL_CHECK_ERROR_FLAGS,4,2 ; @CFG_S25FL_CHECK_ERROR_FLAGS
	.comm	_S25FL_STATUS_P_ERR,4,2         ; @S25FL_STATUS_P_ERR
	.comm	_S25FL_STATUS_E_ERR,4,2         ; @S25FL_STATUS_E_ERR
	.comm	_SPI_FAST_SEQ_CFG,8,3           ; @SPI_FAST_SEQ_CFG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout on wait_busy\n"

	.comm	_FLASH_STATUS_TIMEOUT,4,2       ; @FLASH_STATUS_TIMEOUT
	.no_dead_strip	_stfsm_wait_busy
.subsections_via_symbols
