	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_loader_main                    ## -- Begin function loader_main
	.p2align	4, 0x90
_loader_main:                           ## @loader_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_board_init
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_str.10(%rip), %rdi
	callq	_puts
	leaq	L_str.11(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	callq	_lzma_init_data
	xorl	%eax, %eax
	callq	_lzma_init_props
	movq	_LZMA_RESULT_OK@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	je	LBB0_2
## %bb.1:
	leaq	L_str.14(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	callq	_halt
LBB0_2:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_kernel_la@GOTPCREL(%rip), %r14
	movslq	(%r14), %rdi
	callq	_lzma_decompress
	cmpl	(%r15), %eax
	jne	LBB0_3
## %bb.7:
	leaq	L_str.12(%rip), %rdi
	callq	_puts
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	cmpl	$128, %ebx
	jne	LBB0_5
## %bb.4:
	leaq	L_str.13(%rip), %rdi
	callq	_puts
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.7(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_6:
	xorl	%eax, %eax
	callq	_halt
LBB0_8:
	movl	(%r14), %edi
	movq	_lzma_outsize@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_flush_cache
	movl	(%r14), %esi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movslq	(%r14), %rax
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_RESULT_OK,4,2             ## @LZMA_RESULT_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str.4:                               ## @.str.4
	.asciz	"Decompressing kernel... "

	.comm	_kernel_la,4,2                  ## @kernel_la
L_.str.5:                               ## @.str.5
	.asciz	"failed, "

L_.str.7:                               ## @.str.7
	.asciz	"unknown error %d!\n"

	.comm	_lzma_outsize,4,2               ## @lzma_outsize
L_.str.9:                               ## @.str.9
	.asciz	"Starting kernel at %08x...\n\n"

L_str:                                  ## @str
	.asciz	"\n\nOpenWrt kernel loader for BCM63XX"

L_str.10:                               ## @str.10
	.asciz	"Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>"

L_str.11:                               ## @str.11
	.asciz	"Copyright (C) 2014 Jonas Gorski <jogo@openwrt.org>"

L_str.12:                               ## @str.12
	.asciz	"done!"

L_str.13:                               ## @str.13
	.asciz	"data error!"

L_str.14:                               ## @str.14
	.asciz	"Incorrect LZMA stream properties!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_loader_main                    ; -- Begin function loader_main
	.p2align	2
_loader_main:                           ; @loader_main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_board_init
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x0, l_str.10@PAGE
Lloh3:
	add	x0, x0, l_str.10@PAGEOFF
	bl	_puts
Lloh4:
	adrp	x0, l_str.11@PAGE
Lloh5:
	add	x0, x0, l_str.11@PAGEOFF
	bl	_puts
	bl	_lzma_init_data
	bl	_lzma_init_props
Lloh6:
	adrp	x25, _LZMA_RESULT_OK@GOTPAGE
Lloh7:
	ldr	x25, [x25, _LZMA_RESULT_OK@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_str.14@PAGE
Lloh9:
	add	x0, x0, l_str.14@PAGEOFF
	bl	_puts
	bl	_halt
LBB0_2:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
Lloh12:
	adrp	x24, _kernel_la@GOTPAGE
Lloh13:
	ldr	x24, [x24, _kernel_la@GOTPAGEOFF]
	ldrsw	x0, [x24]
	bl	_lzma_decompress
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
Lloh14:
	adrp	x0, l_str.12@PAGE
Lloh15:
	add	x0, x0, l_str.12@PAGEOFF
	bl	_puts
	b	LBB0_8
LBB0_4:
	mov	x23, x0
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	cmp	w23, #128
	b.ne	LBB0_6
; %bb.5:
Lloh18:
	adrp	x0, l_str.13@PAGE
Lloh19:
	add	x0, x0, l_str.13@PAGEOFF
	bl	_puts
	b	LBB0_7
LBB0_6:
	str	x23, [sp]
Lloh20:
	adrp	x0, l_.str.7@PAGE
Lloh21:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
LBB0_7:
	bl	_halt
LBB0_8:
	ldr	w0, [x24]
Lloh22:
	adrp	x8, _lzma_outsize@GOTPAGE
Lloh23:
	ldr	x8, [x8, _lzma_outsize@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_flush_cache
	ldr	w8, [x24]
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.9@PAGE
Lloh26:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
	ldrsw	x4, [x24]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	br	x4
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_RESULT_OK,4,2             ; @LZMA_RESULT_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str.4:                               ; @.str.4
	.asciz	"Decompressing kernel... "

	.comm	_kernel_la,4,2                  ; @kernel_la
l_.str.5:                               ; @.str.5
	.asciz	"failed, "

l_.str.7:                               ; @.str.7
	.asciz	"unknown error %d!\n"

	.comm	_lzma_outsize,4,2               ; @lzma_outsize
l_.str.9:                               ; @.str.9
	.asciz	"Starting kernel at %08x...\n\n"

l_str:                                  ; @str
	.asciz	"\n\nOpenWrt kernel loader for BCM63XX"

l_str.10:                               ; @str.10
	.asciz	"Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>"

l_str.11:                               ; @str.11
	.asciz	"Copyright (C) 2014 Jonas Gorski <jogo@openwrt.org>"

l_str.12:                               ; @str.12
	.asciz	"done!"

l_str.13:                               ; @str.13
	.asciz	"data error!"

l_str.14:                               ; @str.14
	.asciz	"Incorrect LZMA stream properties!"

.subsections_via_symbols
