	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_entry                          ## -- Begin function entry
	.p2align	4, 0x90
_entry:                                 ## @entry
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	_read_byte@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_BCM4710_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_KSEG1ADDR
	movq	_TRX_MAGIC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EDIMAX_PS_HEADER_MAGIC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	$-65536, %rax                   ## imm = 0xFFFF0000
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	65536(%rax), %rsi
	addq	$65536, %rax                    ## imm = 0x10000
	cmpq	%rcx, %rsi
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rdx, %rsi
	jne	LBB0_1
LBB0_3:
	xorl	%ecx, %ecx
	cmpq	%rdx, %rsi
	movq	_EDIMAX_PS_HEADER_LEN@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	cmoveq	%rdx, %rcx
	movq	8(%rax,%rcx), %rsi
	movl	4(%rsi), %edx
	cmpl	$65537, %edx                    ## imm = 0x10001
	jl	LBB0_5
## %bb.4:
	movl	(%rsi), %edx
LBB0_5:
	movslq	%edx, %rdx
	addq	%rdx, %rcx
	addq	%rcx, %rax
	movq	_data@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_offset@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_get_byte
	movl	%eax, %r13d
	movl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	imulq	$954437177, %rax, %rbx          ## imm = 0x38E38E39
	shrq	$33, %rbx
	movl	$3435973837, %eax               ## imm = 0xCCCCCCCD
	imulq	%rbx, %rax
	shrq	$34, %rax
	leal	(%rax,%rax,4), %eax
	movl	%ebx, %ecx
	subl	%eax, %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_get_byte
	xorl	%eax, %eax
	callq	_get_byte
	xorl	%eax, %eax
	callq	_get_byte
	xorl	%eax, %eax
	callq	_get_byte
	leal	(%rbx,%rbx,8), %eax
	movl	%r13d, %r15d
	subl	%eax, %r15d
	xorl	%eax, %eax
	callq	_get_byte
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_get_byte
	movl	%eax, %r12d
	shll	$8, %r12d
	xorl	%eax, %eax
	callq	_get_byte
	movl	%eax, %r14d
	shll	$16, %r14d
	xorl	%eax, %eax
	callq	_get_byte
	movl	%eax, %ebx
	shll	$24, %ebx
	xorl	%eax, %eax
	callq	_get_byte
	xorl	%eax, %eax
	callq	_get_byte
	xorl	%eax, %eax
	callq	_get_byte
	xorl	%eax, %eax
	callq	_get_byte
	imulq	$1813430637, -120(%rbp), %rax   ## 8-byte Folded Reload
                                        ## imm = 0x6C16C16D
	shrq	$32, %rax
	subl	%eax, %r13d
	shrl	%r13d
	addl	%eax, %r13d
	shrl	$5, %r13d
	addl	-52(%rbp), %r12d                ## 4-byte Folded Reload
	addl	%r14d, %r12d
	addl	%ebx, %r12d
	movl	$4, -60(%rbp)
	movq	_workspace@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LOADADDR@GOTPCREL(%rip), %rbx
	subq	$8, %rsp
	leaq	-60(%rbp), %rax
	leaq	-48(%rbp), %r9
	movl	$-1, %esi
	movl	%r15d, %edx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	pushq	%rax
	pushq	%r12
	pushq	(%rbx)
	callq	_LzmaDecode
	addq	$32, %rsp
	movq	_LZMA_RESULT_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_blast_dcache
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_blast_icache
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	16(%rbp), %rdx
	movq	24(%rbp), %rcx
	callq	*(%rbx)
LBB0_7:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_read_byte,4,2                  ## @read_byte
	.comm	_BCM4710_FLASH,4,2              ## @BCM4710_FLASH
	.comm	_data,8,3                       ## @data
	.comm	_TRX_MAGIC,8,3                  ## @TRX_MAGIC
	.comm	_EDIMAX_PS_HEADER_MAGIC,8,3     ## @EDIMAX_PS_HEADER_MAGIC
	.comm	_EDIMAX_PS_HEADER_LEN,4,2       ## @EDIMAX_PS_HEADER_LEN
	.comm	_offset,8,3                     ## @offset
	.comm	_workspace,4,2                  ## @workspace
	.comm	_LOADADDR,8,3                   ## @LOADADDR
	.comm	_LZMA_RESULT_OK,8,3             ## @LZMA_RESULT_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_entry                          ; -- Begin function entry
	.p2align	2
_entry:                                 ; @entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x6, x7, [sp, #40]               ; 16-byte Folded Spill
	stp	x4, x5, [sp, #24]               ; 16-byte Folded Spill
	mov	x25, x3
	mov	x26, x2
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	mov	x24, x0
Lloh0:
	adrp	x8, _read_byte@GOTPAGE
Lloh1:
	ldr	x8, [x8, _read_byte@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #56]
Lloh3:
	adrp	x8, _BCM4710_FLASH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCM4710_FLASH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_KSEG1ADDR
Lloh6:
	adrp	x8, _TRX_MAGIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRX_MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x8]
Lloh9:
	adrp	x8, _EDIMAX_PS_HEADER_MAGIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EDIMAX_PS_HEADER_MAGIC@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x8]
	sub	x8, x0, #16, lsl #12            ; =65536
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, #16, lsl #12            ; =65536
	ldr	x11, [x8]
	cmp	x11, x10
	ccmp	x11, x9, #4, ne
	b.ne	LBB0_1
; %bb.2:
Lloh12:
	adrp	x10, _EDIMAX_PS_HEADER_LEN@GOTPAGE
Lloh13:
	ldr	x10, [x10, _EDIMAX_PS_HEADER_LEN@GOTPAGEOFF]
Lloh14:
	ldrsw	x10, [x10]
	cmp	x11, x9
	csel	x9, x10, xzr, eq
	add	x10, x8, x9
	ldr	x11, [x10, #8]
	ldr	w10, [x11, #4]
	cmp	w10, #16, lsl #12               ; =65536
	b.le	LBB0_4
; %bb.3:
	ldr	w10, [x11]
LBB0_4:
	add	x9, x9, w10, sxtw
	add	x8, x8, x9
Lloh15:
	adrp	x9, _data@GOTPAGE
Lloh16:
	ldr	x9, [x9, _data@GOTPAGEOFF]
Lloh17:
	str	x8, [x9]
Lloh18:
	adrp	x8, _offset@GOTPAGE
Lloh19:
	ldr	x8, [x8, _offset@GOTPAGEOFF]
Lloh20:
	str	xzr, [x8]
	bl	_get_byte
	mov	x28, x0
	mov	w8, #36409
	movk	w8, #14563, lsl #16
	umull	x8, w0, w8
	lsr	x19, x8, #33
	mov	w8, #52429
	movk	w8, #52428, lsl #16
	mul	x8, x19, x8
	lsr	x8, x8, #34
	add	w8, w8, w8, lsl #2
	sub	w27, w19, w8
	bl	_get_byte
	bl	_get_byte
	bl	_get_byte
	bl	_get_byte
	add	w8, w19, w19, lsl #3
	sub	w19, w28, w8
	bl	_get_byte
	mov	x20, x0
	bl	_get_byte
	mov	x21, x0
	bl	_get_byte
	mov	x22, x0
	bl	_get_byte
	mov	x23, x0
	bl	_get_byte
	bl	_get_byte
	bl	_get_byte
	bl	_get_byte
	mov	w8, #49517
	movk	w8, #27670, lsl #16
	umull	x8, w28, w8
	lsr	x8, x8, #32
	sub	w9, w28, w8
	add	w8, w8, w9, lsr #1
	lsr	w4, w8, #5
	add	w8, w20, w21, lsl #8
	add	w8, w8, w22, lsl #16
	add	w7, w8, w23, lsl #24
	mov	w8, #4
	str	w8, [sp, #60]
Lloh21:
	adrp	x8, _workspace@GOTPAGE
Lloh22:
	ldr	x8, [x8, _workspace@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x20, _LOADADDR@GOTPAGE
Lloh25:
	ldr	x20, [x20, _LOADADDR@GOTPAGEOFF]
	ldr	x6, [x20]
	add	x8, sp, #60
	str	x8, [sp]
	add	x5, sp, #56
	mov	w1, #-1
	mov	x2, x19
	mov	x3, x27
	bl	_LzmaDecode
Lloh26:
	adrp	x8, _LZMA_RESULT_OK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LZMA_RESULT_OK@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x26
	mov	x1, x25
	bl	_blast_dcache
	mov	x0, x24
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_blast_icache
	ldr	x8, [x20]
	ldp	x0, x1, [sp, #24]               ; 16-byte Folded Reload
	ldp	x2, x3, [sp, #40]               ; 16-byte Folded Reload
	blr	x8
LBB0_6:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_read_byte,4,2                  ; @read_byte
	.comm	_BCM4710_FLASH,4,2              ; @BCM4710_FLASH
	.comm	_data,8,3                       ; @data
	.comm	_TRX_MAGIC,8,3                  ; @TRX_MAGIC
	.comm	_EDIMAX_PS_HEADER_MAGIC,8,3     ; @EDIMAX_PS_HEADER_MAGIC
	.comm	_EDIMAX_PS_HEADER_LEN,4,2       ; @EDIMAX_PS_HEADER_LEN
	.comm	_offset,8,3                     ; @offset
	.comm	_workspace,4,2                  ; @workspace
	.comm	_LOADADDR,8,3                   ; @LOADADDR
	.comm	_LZMA_RESULT_OK,8,3             ; @LZMA_RESULT_OK
.subsections_via_symbols
