	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	xorl	%edi, %edi
	callq	_print_version
	leaq	-24(%rbp), %rdi
	callq	_eboot_command_read
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_ACTION_LOAD_APP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	-16(%rbp), %rax
	movq	$0, (%rax)
	movb	$126, %al
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	callq	_eboot_command_clear
	movb	$64, %al
LBB0_3:
	movzbl	%al, %edi
	callq	_ets_putc
	movq	-24(%rbp), %rax
	movq	_ACTION_COPY_RAW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movl	$99, %edi
	callq	_ets_putc
	movl	$112, %edi
	callq	_ets_putc
	movl	$58, %edi
	callq	_ets_putc
	xorl	%eax, %eax
	callq	_ets_wdt_disable
	movq	-16(%rbp), %rax
	movq	(%rax), %rdi
	movq	8(%rax), %rsi
	movq	16(%rax), %rdx
	callq	_copy_raw
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_ets_wdt_enable
	leal	48(%rbx), %eax
	movsbl	%al, %edi
	callq	_ets_putc
	movl	$10, %edi
	callq	_ets_putc
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.5:
	movq	_ACTION_LOAD_APP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	-16(%rbp), %rax
	movq	8(%rax), %rcx
	movq	%rcx, (%rax)
LBB0_6:
	movq	-24(%rbp), %rax
	movq	_ACTION_LOAD_APP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movl	$108, %edi
	callq	_ets_putc
	movl	$100, %edi
	callq	_ets_putc
	movl	$10, %edi
	callq	_ets_putc
	movq	-16(%rbp), %rax
	movq	(%rax), %rdi
	callq	_load_app_from_flash_raw
	movl	%eax, %ebx
	movl	$101, %edi
	callq	_ets_putc
	movl	$58, %edi
	callq	_ets_putc
	addb	$48, %bl
	movsbl	%bl, %edi
	callq	_ets_putc
	movl	$10, %edi
	callq	_ets_putc
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ACTION_LOAD_APP,8,3            ## @ACTION_LOAD_APP
	.comm	_ACTION_COPY_RAW,8,3            ## @ACTION_COPY_RAW
	.comm	_SWRST,4,2                      ## @SWRST
.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, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w0, #0
	bl	_print_version
	mov	x0, sp
	bl	_eboot_command_read
Lloh0:
	adrp	x20, _ACTION_LOAD_APP@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ACTION_LOAD_APP@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	str	x8, [sp]
	ldr	x8, [sp, #8]
	str	xzr, [x8]
	mov	w0, #126
	b	LBB0_3
LBB0_2:
	bl	_eboot_command_clear
	mov	w0, #64
LBB0_3:
	bl	_ets_putc
	ldr	x8, [sp]
Lloh2:
	adrp	x9, _ACTION_COPY_RAW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ACTION_COPY_RAW@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	mov	w0, #99
	bl	_ets_putc
	mov	w0, #112
	bl	_ets_putc
	mov	w0, #58
	bl	_ets_putc
	bl	_ets_wdt_disable
	ldr	x8, [sp, #8]
	ldp	x0, x1, [x8]
	ldr	x2, [x8, #16]
	bl	_copy_raw
	mov	x19, x0
	bl	_ets_wdt_enable
	add	w8, w19, #48
	sxtb	w0, w8
	bl	_ets_putc
	mov	w0, #10
	bl	_ets_putc
	cbnz	w19, LBB0_6
; %bb.5:
	ldr	x8, [x20]
	str	x8, [sp]
	ldr	x8, [sp, #8]
	ldr	x9, [x8, #8]
	str	x9, [x8]
LBB0_6:
	ldr	x8, [sp]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #108
	bl	_ets_putc
	mov	w0, #100
	bl	_ets_putc
	mov	w0, #10
	bl	_ets_putc
	ldr	x8, [sp, #8]
	ldr	x0, [x8]
	bl	_load_app_from_flash_raw
	mov	x19, x0
	mov	w0, #101
	bl	_ets_putc
	mov	w0, #58
	bl	_ets_putc
	add	w8, w19, #48
	sxtb	w0, w8
	bl	_ets_putc
	mov	w0, #10
	bl	_ets_putc
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ACTION_LOAD_APP,8,3            ; @ACTION_LOAD_APP
	.comm	_ACTION_COPY_RAW,8,3            ; @ACTION_COPY_RAW
	.comm	_SWRST,4,2                      ; @SWRST
.subsections_via_symbols
