	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AT91F_DataflashInit            ## -- Begin function AT91F_DataflashInit
	.p2align	4, 0x90
_AT91F_DataflashInit:                   ## @AT91F_DataflashInit
	.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
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_AT91F_SpiInit
	movq	_CFG_MAX_DATAFLASH_BANKS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_dataflash_info@GOTPCREL(%rip), %r12
	movq	_cs@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_CFG_MAX_DATAFLASH_BANKS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$48, %rbx
	cmpq	%rax, %r14
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	$0, (%rax,%rbx)
	movl	$0, 24(%rax,%rbx)
	movq	(%r13), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	8(%rcx), %rdi
	leaq	(%rax,%rbx), %rsi
	addq	$16, %rsi
	callq	_AT91F_DataflashProbe
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ecx, %rcx
	leaq	L_switch.table.AT91F_DataflashInit(%rip), %rdx
	movl	(%rdx,%rcx,4), %edx
	movq	(%r12), %rsi
	movl	%edx, 24(%rsi,%rbx)
	leaq	L_switch.table.AT91F_DataflashInit.1(%rip), %rdx
	movl	(%rdx,%rcx,4), %edx
	movl	%edx, 28(%rsi,%rbx)
	leaq	L_switch.table.AT91F_DataflashInit.2(%rip), %rdx
	movl	(%rdx,%rcx,4), %edx
	movl	%edx, 32(%rsi,%rbx)
	leaq	L_switch.table.AT91F_DataflashInit.3(%rip), %rdx
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, 36(%rsi,%rbx)
	movq	(%r13), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	8(%rcx), %rcx
	movq	%rcx, 40(%rsi,%rbx)
	movq	_IDLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r12), %rdx
	movq	%rcx, 16(%rdx,%rbx)
	movq	(%r13), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	(%rcx), %rcx
	movq	(%r12), %rdx
	movq	%rcx, 8(%rdx,%rbx)
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx)
	incl	%r15d
	jmp	LBB0_4
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG_MAX_DATAFLASH_BANKS,4,2    ## @CFG_MAX_DATAFLASH_BANKS
	.comm	_dataflash_info,8,3             ## @dataflash_info
	.comm	_cs,8,3                         ## @cs
	.comm	_IDLE,8,3                       ## @IDLE
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.AT91F_DataflashInit
L_switch.table.AT91F_DataflashInit:
	.long	8192                            ## 0x2000
	.long	8192                            ## 0x2000
	.long	4096                            ## 0x1000
	.long	16384                           ## 0x4000

	.p2align	2                               ## @switch.table.AT91F_DataflashInit.1
L_switch.table.AT91F_DataflashInit.1:
	.long	1056                            ## 0x420
	.long	528                             ## 0x210
	.long	528                             ## 0x210
	.long	1056                            ## 0x420

	.p2align	2                               ## @switch.table.AT91F_DataflashInit.2
L_switch.table.AT91F_DataflashInit.2:
	.long	11                              ## 0xb
	.long	10                              ## 0xa
	.long	10                              ## 0xa
	.long	11                              ## 0xb

	.p2align	2                               ## @switch.table.AT91F_DataflashInit.3
L_switch.table.AT91F_DataflashInit.3:
	.long	1792                            ## 0x700
	.long	768                             ## 0x300
	.long	768                             ## 0x300
	.long	1792                            ## 0x700

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AT91F_DataflashInit            ; -- Begin function AT91F_DataflashInit
	.p2align	2
_AT91F_DataflashInit:                   ; @AT91F_DataflashInit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_AT91F_SpiInit
Lloh0:
	adrp	x20, _CFG_MAX_DATAFLASH_BANKS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CFG_MAX_DATAFLASH_BANKS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
	mov	w19, #0
	mov	w22, #24
Lloh2:
	adrp	x23, _dataflash_info@GOTPAGE
Lloh3:
	ldr	x23, [x23, _dataflash_info@GOTPAGEOFF]
Lloh4:
	adrp	x24, _cs@GOTPAGE
Lloh5:
	ldr	x24, [x24, _cs@GOTPAGEOFF]
Lloh6:
	adrp	x26, l_switch.table.AT91F_DataflashInit.1@PAGE
Lloh7:
	add	x26, x26, l_switch.table.AT91F_DataflashInit.1@PAGEOFF
Lloh8:
	adrp	x27, l_switch.table.AT91F_DataflashInit.2@PAGE
Lloh9:
	add	x27, x27, l_switch.table.AT91F_DataflashInit.2@PAGEOFF
Lloh10:
	adrp	x28, _IDLE@GOTPAGE
Lloh11:
	ldr	x28, [x28, _IDLE@GOTPAGEOFF]
Lloh12:
	adrp	x25, l_switch.table.AT91F_DataflashInit.3@PAGE
Lloh13:
	add	x25, x25, l_switch.table.AT91F_DataflashInit.3@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	add	x22, x22, #48
	cmp	x21, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x8, x8, x22
	stur	wzr, [x8, #-24]
	str	wzr, [x8]
	ldr	x9, [x24]
	ldr	x9, [x9, x21, lsl #3]
	ldr	x0, [x9, #8]
	sub	x1, x8, #8
	bl	_AT91F_DataflashProbe
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sbfiz	x8, x8, #2, #32
Lloh14:
	adrp	x9, l_switch.table.AT91F_DataflashInit@PAGE
Lloh15:
	add	x9, x9, l_switch.table.AT91F_DataflashInit@PAGEOFF
	ldr	w9, [x9, x8]
	ldr	w10, [x26, x8]
	ldr	w11, [x27, x8]
	ldr	w8, [x25, x8]
	ldr	x12, [x23]
	add	x12, x12, x22
	stp	w9, w10, [x12]
	ldr	x9, [x24]
	lsl	x10, x21, #3
	ldr	x9, [x9, x10]
	stp	w11, w8, [x12, #8]
	ldr	x8, [x9, #8]
	str	x8, [x12, #16]
	ldr	x8, [x28]
	ldr	x9, [x23]
	add	x9, x9, x22
	stur	x8, [x9, #-8]
	ldr	x8, [x24]
	ldr	x8, [x8, x10]
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x9, x9, x22
	stur	x8, [x9, #-16]
	ldr	x8, [x23]
	add	x8, x8, x22
	stur	w0, [x8, #-24]
	add	w19, w19, #1
	b	LBB0_2
LBB0_5:
	mov	w19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_MAX_DATAFLASH_BANKS,4,2    ; @CFG_MAX_DATAFLASH_BANKS
	.comm	_dataflash_info,8,3             ; @dataflash_info
	.comm	_cs,8,3                         ; @cs
	.comm	_IDLE,8,3                       ; @IDLE
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.AT91F_DataflashInit
l_switch.table.AT91F_DataflashInit:
	.long	8192                            ; 0x2000
	.long	8192                            ; 0x2000
	.long	4096                            ; 0x1000
	.long	16384                           ; 0x4000

	.p2align	2                               ; @switch.table.AT91F_DataflashInit.1
l_switch.table.AT91F_DataflashInit.1:
	.long	1056                            ; 0x420
	.long	528                             ; 0x210
	.long	528                             ; 0x210
	.long	1056                            ; 0x420

	.p2align	2                               ; @switch.table.AT91F_DataflashInit.2
l_switch.table.AT91F_DataflashInit.2:
	.long	11                              ; 0xb
	.long	10                              ; 0xa
	.long	10                              ; 0xa
	.long	11                              ; 0xb

	.p2align	2                               ; @switch.table.AT91F_DataflashInit.3
l_switch.table.AT91F_DataflashInit.3:
	.long	1792                            ; 0x700
	.long	768                             ; 0x300
	.long	768                             ; 0x300
	.long	1792                            ; 0x700

.subsections_via_symbols
