	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AT91F_DataflashSelect
_AT91F_DataflashSelect:                 ## @AT91F_DataflashSelect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CFG_MAX_DATAFLASH_BANKS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %rax
	movl	(%rsi), %r9d
	movl	%r9d, %ecx
	andl	$-16777216, %ecx                ## imm = 0xFF000000
	movq	_dataflash_info@GOTPCREL(%rip), %r8
	movq	(%r8), %r10
	shlq	$2, %rdx
	leaq	(%rdx,%rdx,2), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%r10,%rdx), %ecx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$12, %rdx
	cmpq	%rdx, %rdi
	jne	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_6:
	leaq	(%r10,%rdx), %rcx
	addq	$8, %rcx
	movq	%rcx, 8(%rax)
	leaq	(%r10,%rdx), %rcx
	addq	$4, %rcx
	movq	%rcx, (%rax)
	movq	(%r8), %rcx
	subl	(%rcx,%rdx), %r9d
	movl	%r9d, (%rsi)
	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
	.no_dead_strip	_AT91F_DataflashSelect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AT91F_DataflashSelect
_AT91F_DataflashSelect:                 ; @AT91F_DataflashSelect
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CFG_MAX_DATAFLASH_BANKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CFG_MAX_DATAFLASH_BANKS@GOTPAGEOFF]
Lloh2:
	ldr	w13, [x8]
	cmp	w13, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x9, #0
	ldr	w8, [x1]
	and	w11, w8, #0xff000000
Lloh3:
	adrp	x10, _dataflash_info@GOTPAGE
Lloh4:
	ldr	x10, [x10, _dataflash_info@GOTPAGEOFF]
	ldr	x12, [x10]
	add	x13, x13, x13, lsl #1
	lsl	x13, x13, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x12, x9]
	cmp	w11, w14
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #12
	cmp	x13, x9
	b.ne	LBB0_2
LBB0_4:
	mov	x0, #0
	ret
LBB0_5:
	add	x11, x12, x9
	add	x12, x11, #8
	add	x11, x11, #4
	stp	x11, x12, [x0]
	ldr	x10, [x10]
	ldr	w9, [x10, x9]
	sub	w8, w8, w9
	str	w8, [x1]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_MAX_DATAFLASH_BANKS,4,2    ; @CFG_MAX_DATAFLASH_BANKS
	.comm	_dataflash_info,8,3             ; @dataflash_info
	.no_dead_strip	_AT91F_DataflashSelect
.subsections_via_symbols
