	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -44(%rbp)
	movq	_AT91C_ROM_BOOT_ADDRESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_pAT91@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	xorl	%eax, %eax
	callq	_AT91F_SetPLL
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	xorl	%eax, %eax
	callq	_at91_init_uarts
	movq	(%r14), %rax
	leaq	32(%rax), %rsi
	movq	_ctlTempo@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	*40(%rax)
	movq	(%r14), %rdi
	addq	$32, %rdi
	callq	*8(%rbx)
	leaq	-64(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*(%rbx)
	movq	_AT91C_BASE_AIC@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_AT91C_ID_SYS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AT91C_AIC_PRIOR_HIGHEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_AT91F_ST_ASM_HANDLER@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_AT91F_AIC_ConfigureIt
	movl	(%r14), %edi
	movl	(%rbx), %esi
	callq	_AT91F_AIC_EnableIt
	movq	_AT91C_DELAY_TO_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AT91F_StartBoot@GOTPCREL(%rip), %rcx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	*-56(%rbp)
	movq	_message@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r15
	leaq	-48(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_AT91F_StartBoot
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	_AT91C_DOWNLOAD_BASE_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_AT91C_DOWNLOAD_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movl	$0, -48(%rbp)
	cmpl	$0, -44(%rbp)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_AT91F_DataflashInit
	movl	%eax, -44(%rbp)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_AT91F_DisplayMenu
	movl	%eax, %ebx
	movq	(%r13), %rax
	movb	$0, (%rax)
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_AT91F_ReadLine
	leaq	-64(%rbp), %rdi
	callq	*-64(%rbp)
	movq	(%r13), %rdi
	movsbl	(%rdi), %r14d
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$32, 1(%rdi)
	leaq	1(%rdi), %rdi
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	leaq	1(%rax), %rcx
	cmpq	$12, %rax
	movq	%rcx, %rax
	jb	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rsi
	callq	_AsciiToHex
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$52, %r14d
	jne	LBB0_12
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, -48(%rbp)
	cmpl	$52, %r14d
	je	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$51, %r14d
	jne	LBB0_4
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_Program_From_MCI
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_printf
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91C_ROM_BOOT_ADDRESS,8,3     ## @AT91C_ROM_BOOT_ADDRESS
	.comm	_pAT91,8,3                      ## @pAT91
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"F SetPLL"

	.comm	_ctlTempo,16,3                  ## @ctlTempo
	.comm	_AT91C_BASE_AIC,4,2             ## @AT91C_BASE_AIC
	.comm	_AT91C_ID_SYS,4,2               ## @AT91C_ID_SYS
	.comm	_AT91C_AIC_PRIOR_HIGHEST,4,2    ## @AT91C_AIC_PRIOR_HIGHEST
	.comm	_AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE,4,2 ## @AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE
	.comm	_AT91F_ST_ASM_HANDLER,4,2       ## @AT91F_ST_ASM_HANDLER
	.comm	_AT91C_DELAY_TO_BOOT,4,2        ## @AT91C_DELAY_TO_BOOT
	.comm	_AT91C_DOWNLOAD_BASE_ADDRESS,4,2 ## @AT91C_DOWNLOAD_BASE_ADDRESS
	.comm	_AT91C_DOWNLOAD_MAX_SIZE,4,2    ## @AT91C_DOWNLOAD_MAX_SIZE
	.comm	_message,8,3                    ## @message
L_.str.1:                               ## @.str.1
	.asciz	"Enter: "

	.comm	_AT91C_BASE_DBGU,8,3            ## @AT91C_BASE_DBGU
	.comm	_AT91C_BOOT_DATAFLASH_ADDR,4,2  ## @AT91C_BOOT_DATAFLASH_ADDR
	.comm	_AT91C_OFFSET_VECT6,8,3         ## @AT91C_OFFSET_VECT6
	.comm	_XmodemComplete,4,2             ## @XmodemComplete
	.comm	_XmodemProtocol,4,2             ## @XmodemProtocol
	.comm	_dataflash_info,8,3             ## @dataflash_info
	.comm	_sXmBuffer,4,2                  ## @sXmBuffer
	.comm	_svcXmodem,4,2                  ## @svcXmodem
	.comm	_xmodemPipe,8,3                 ## @xmodemPipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	str	wzr, [sp]
Lloh0:
	adrp	x8, _AT91C_ROM_BOOT_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AT91C_ROM_BOOT_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x20, _pAT91@GOTPAGE
Lloh4:
	ldr	x20, [x20, _pAT91@GOTPAGEOFF]
	str	x8, [x20]
	bl	_AT91F_SetPLL
	cbz	w0, LBB0_13
; %bb.1:
	bl	_at91_init_uarts
	ldr	x8, [x20]
	ldr	x9, [x8, #40]
	add	x1, x8, #32
Lloh5:
	adrp	x19, _ctlTempo@GOTPAGE
Lloh6:
	ldr	x19, [x19, _ctlTempo@GOTPAGEOFF]
	mov	x0, x19
	blr	x9
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x9, #32
	blr	x8
	ldr	x8, [x19]
	add	x1, sp, #16
	mov	x0, x19
	blr	x8
Lloh7:
	adrp	x19, _AT91C_BASE_AIC@GOTPAGE
Lloh8:
	ldr	x19, [x19, _AT91C_BASE_AIC@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh9:
	adrp	x20, _AT91C_ID_SYS@GOTPAGE
Lloh10:
	ldr	x20, [x20, _AT91C_ID_SYS@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh11:
	adrp	x8, _AT91C_AIC_PRIOR_HIGHEST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AT91C_AIC_PRIOR_HIGHEST@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
Lloh17:
	adrp	x8, _AT91F_ST_ASM_HANDLER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AT91F_ST_ASM_HANDLER@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
	bl	_AT91F_AIC_ConfigureIt
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_AT91F_AIC_EnableIt
	ldr	x8, [sp, #24]
Lloh20:
	adrp	x9, _AT91C_DELAY_TO_BOOT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AT91C_DELAY_TO_BOOT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x9]
Lloh23:
	adrp	x3, _AT91F_StartBoot@GOTPAGE
Lloh24:
	ldr	x3, [x3, _AT91F_StartBoot@GOTPAGEOFF]
	add	x0, sp, #16
	mov	w2, #0
	mov	x4, #0
	blr	x8
Lloh25:
	adrp	x21, _AT91C_DOWNLOAD_BASE_ADDRESS@GOTPAGE
Lloh26:
	ldr	x21, [x21, _AT91C_DOWNLOAD_BASE_ADDRESS@GOTPAGEOFF]
Lloh27:
	adrp	x22, _AT91C_DOWNLOAD_MAX_SIZE@GOTPAGE
Lloh28:
	ldr	x22, [x22, _AT91C_DOWNLOAD_MAX_SIZE@GOTPAGEOFF]
Lloh29:
	adrp	x19, l_.str.1@PAGE
Lloh30:
	add	x19, x19, l_.str.1@PAGEOFF
Lloh31:
	adrp	x23, _message@GOTPAGE
Lloh32:
	ldr	x23, [x23, _message@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_AT91F_StartBoot
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w8, [x21]
	str	w8, [sp, #12]
	ldr	w8, [x22]
	str	w8, [sp, #8]
	str	wzr, [sp, #4]
	ldr	w8, [sp]
	cbnz	w8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_AT91F_DataflashInit
	str	w0, [sp]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_AT91F_DisplayMenu
	mov	x20, x0
	ldr	x8, [x23]
	strb	wzr, [x8]
	ldr	x1, [x23]
	mov	x0, x19
	bl	_AT91F_ReadLine
	ldr	x8, [sp, #16]
	add	x0, sp, #16
	blr	x8
	mov	x9, #0
	ldr	x8, [x23]
	ldrsb	w24, [x8]
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x10, x9, #1
	add	x9, x8, x9
	ldrb	w9, [x9, #1]
	cmp	w9, #32
	ccmp	x10, #12, #2, eq
	mov	x9, x10
	b.lo	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x8, x10
	add	x1, sp, #4
	bl	_AsciiToHex
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, #52
	b.ne	LBB0_10
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [sp, #4]
	cmp	w24, #52
	b.eq	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, #51
	b.ne	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	w20, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_Program_From_MCI
	b	LBB0_3
LBB0_13:
Lloh33:
	adrp	x0, l_.str@PAGE
Lloh34:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	b	LBB0_14
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91C_ROM_BOOT_ADDRESS,8,3     ; @AT91C_ROM_BOOT_ADDRESS
	.comm	_pAT91,8,3                      ; @pAT91
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"F SetPLL"

	.comm	_ctlTempo,16,3                  ; @ctlTempo
	.comm	_AT91C_BASE_AIC,4,2             ; @AT91C_BASE_AIC
	.comm	_AT91C_ID_SYS,4,2               ; @AT91C_ID_SYS
	.comm	_AT91C_AIC_PRIOR_HIGHEST,4,2    ; @AT91C_AIC_PRIOR_HIGHEST
	.comm	_AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE,4,2 ; @AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE
	.comm	_AT91F_ST_ASM_HANDLER,4,2       ; @AT91F_ST_ASM_HANDLER
	.comm	_AT91C_DELAY_TO_BOOT,4,2        ; @AT91C_DELAY_TO_BOOT
	.comm	_AT91C_DOWNLOAD_BASE_ADDRESS,4,2 ; @AT91C_DOWNLOAD_BASE_ADDRESS
	.comm	_AT91C_DOWNLOAD_MAX_SIZE,4,2    ; @AT91C_DOWNLOAD_MAX_SIZE
	.comm	_message,8,3                    ; @message
l_.str.1:                               ; @.str.1
	.asciz	"Enter: "

	.comm	_AT91C_BASE_DBGU,8,3            ; @AT91C_BASE_DBGU
	.comm	_AT91C_BOOT_DATAFLASH_ADDR,4,2  ; @AT91C_BOOT_DATAFLASH_ADDR
	.comm	_AT91C_OFFSET_VECT6,8,3         ; @AT91C_OFFSET_VECT6
	.comm	_XmodemComplete,4,2             ; @XmodemComplete
	.comm	_XmodemProtocol,4,2             ; @XmodemProtocol
	.comm	_dataflash_info,8,3             ; @dataflash_info
	.comm	_sXmBuffer,4,2                  ; @sXmBuffer
	.comm	_svcXmodem,4,2                  ; @svcXmodem
	.comm	_xmodemPipe,8,3                 ; @xmodemPipe
.subsections_via_symbols
