	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AT91F_MainMemoryToBufferTransfer
_AT91F_MainMemoryToBufferTransfer:      ## @AT91F_MainMemoryToBufferTransfer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %ecx
	movq	_DB_PAGE_2_BUF1_TRF@GOTPCREL(%rip), %rax
	cmpb	%sil, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_DB_PAGE_2_BUF2_TRF@GOTPCREL(%rip), %rax
	cmpb	%sil, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_AT91C_DATAFLASH_BAD_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	8(%rdi), %rax
	movq	$0, (%rax)
	movq	(%rdi), %rax
	xorl	%edx, %edx
	cmpl	$16384, (%rax)                  ## imm = 0x4000
	setge	%dl
	orl	$4, %edx
	imull	4(%rax), %ecx
	movzbl	%sil, %esi
	popq	%rbp
	jmp	_AT91F_DataFlashSendCommand     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DB_PAGE_2_BUF1_TRF,1,0         ## @DB_PAGE_2_BUF1_TRF
	.comm	_DB_PAGE_2_BUF2_TRF,1,0         ## @DB_PAGE_2_BUF2_TRF
	.comm	_AT91C_DATAFLASH_BAD_COMMAND,4,2 ## @AT91C_DATAFLASH_BAD_COMMAND
	.no_dead_strip	_AT91F_MainMemoryToBufferTransfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AT91F_MainMemoryToBufferTransfer
_AT91F_MainMemoryToBufferTransfer:      ; @AT91F_MainMemoryToBufferTransfer
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _DB_PAGE_2_BUF1_TRF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DB_PAGE_2_BUF1_TRF@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh2:
	adrp	x9, _DB_PAGE_2_BUF2_TRF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DB_PAGE_2_BUF2_TRF@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldp	x9, x8, [x0]
	str	xzr, [x8]
	ldp	w8, w9, [x9]
	cmp	w8, #4, lsl #12                 ; =16384
	mov	w8, #4
	cinc	w8, w8, ge
	mul	w3, w9, w2
	mov	x2, x8
	b	_AT91F_DataFlashSendCommand
LBB0_2:
Lloh4:
	adrp	x8, _AT91C_DATAFLASH_BAD_COMMAND@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AT91C_DATAFLASH_BAD_COMMAND@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DB_PAGE_2_BUF1_TRF,1,0         ; @DB_PAGE_2_BUF1_TRF
	.comm	_DB_PAGE_2_BUF2_TRF,1,0         ; @DB_PAGE_2_BUF2_TRF
	.comm	_AT91C_DATAFLASH_BAD_COMMAND,4,2 ; @AT91C_DATAFLASH_BAD_COMMAND
	.no_dead_strip	_AT91F_MainMemoryToBufferTransfer
.subsections_via_symbols
