	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AT91F_LoadBoot
_AT91F_LoadBoot:                        ## @AT91F_LoadBoot
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	$136192, -8(%rbp)               ## imm = 0x21400
	movq	_AT91C_BOOT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	_AT91C_BOOT_DATAFLASH_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-8(%rbp), %esi
	addl	$8, %esi
	movl	-4(%rbp), %edx
	callq	_read_dataflash
	movq	_AT91C_DATAFLASH_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_IMAGE_READ_FAILURE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91C_BOOT_ADDR,4,2            ## @AT91C_BOOT_ADDR
	.comm	_AT91C_BOOT_DATAFLASH_ADDR,4,2  ## @AT91C_BOOT_DATAFLASH_ADDR
	.comm	_AT91C_DATAFLASH_OK,8,3         ## @AT91C_DATAFLASH_OK
	.comm	_IMAGE_READ_FAILURE,4,2         ## @IMAGE_READ_FAILURE
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_AT91C_OFFSET_VECT6,8,3         ## @AT91C_OFFSET_VECT6
	.comm	_IMAGE_BAD_SIZE,4,2             ## @IMAGE_BAD_SIZE
	.comm	_IMAGE_CRC_ERROR,4,2            ## @IMAGE_CRC_ERROR
	.comm	_crc1,4,2                       ## @crc1
	.comm	_crc2,4,2                       ## @crc2
	.comm	_pAT91,8,3                      ## @pAT91
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"F DF RD"

	.no_dead_strip	_AT91F_LoadBoot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AT91F_LoadBoot
_AT91F_LoadBoot:                        ; @AT91F_LoadBoot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	w8, #5120
	movk	w8, #2, lsl #16
	stur	w8, [x29, #-4]
Lloh0:
	adrp	x8, _AT91C_BOOT_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AT91C_BOOT_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _AT91C_BOOT_DATAFLASH_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AT91C_BOOT_DATAFLASH_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldur	w8, [x29, #-4]
	add	w1, w8, #8
	ldr	w2, [sp, #8]
	bl	_read_dataflash
Lloh6:
	adrp	x8, _AT91C_DATAFLASH_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AT91C_DATAFLASH_OK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x0, l_str@PAGE
Lloh12:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh13:
	adrp	x8, _IMAGE_READ_FAILURE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IMAGE_READ_FAILURE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91C_BOOT_ADDR,4,2            ; @AT91C_BOOT_ADDR
	.comm	_AT91C_BOOT_DATAFLASH_ADDR,4,2  ; @AT91C_BOOT_DATAFLASH_ADDR
	.comm	_AT91C_DATAFLASH_OK,8,3         ; @AT91C_DATAFLASH_OK
	.comm	_IMAGE_READ_FAILURE,4,2         ; @IMAGE_READ_FAILURE
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_AT91C_OFFSET_VECT6,8,3         ; @AT91C_OFFSET_VECT6
	.comm	_IMAGE_BAD_SIZE,4,2             ; @IMAGE_BAD_SIZE
	.comm	_IMAGE_CRC_ERROR,4,2            ; @IMAGE_CRC_ERROR
	.comm	_crc1,4,2                       ; @crc1
	.comm	_crc2,4,2                       ; @crc2
	.comm	_pAT91,8,3                      ; @pAT91
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"F DF RD"

	.no_dead_strip	_AT91F_LoadBoot
.subsections_via_symbols
