	.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
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_str.18(%rip), %rdi
	callq	_puts
	leaq	L_str.19(%rip), %rdi
	callq	_puts
	leaq	L_str.20(%rip), %rdi
	callq	_puts
	leaq	L_str.21(%rip), %rdi
	callq	_puts
	leaq	L_str.22(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	callq	_getchar
	movl	$-1, %r13d
	cmpb	$121, %al
	jne	LBB0_35
## %bb.1:
	movq	_FW_NAME@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	leaq	-48(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r12), %rsi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str.26(%rip), %rdi
	callq	_puts
	jmp	LBB0_35
LBB0_3:
	movl	-48(%rbp), %edi
	callq	_malloc
	movq	%rax, %rbx
	movl	-48(%rbp), %edi
	callq	_malloc
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.4:
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_14
## %bb.6:
	movl	%eax, %r15d
	movl	-48(%rbp), %edx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_read
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_close
	movl	-48(%rbp), %edx
	cmpl	%edx, %r14d
	jne	LBB0_15
## %bb.7:
	incq	%rbx
	movq	_MAGIC_SZ@GOTPCREL(%rip), %rdi
	movl	(%rdi), %esi
	testl	%esi, %esi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_16
## %bb.8:
	xorl	%ecx, %ecx
	movq	_MAGIC@GOTPCREL(%rip), %rdx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	movzbl	(%rdx), %eax
	xorb	%al, (%rbx,%rcx)
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rcx
	movslq	(%rdi), %rsi
	cmpq	%rsi, %rcx
	jge	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %esi
	andl	$15, %esi
	cmpl	$2, %esi
	ja	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movzbl	(%rdx), %eax
	xorb	16(%rbx,%rcx), %al
	movb	%al, (%rbx,%rcx)
	jmp	LBB0_10
LBB0_13:
	movl	-48(%rbp), %esi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_34:
	movl	$-1, %r13d
	jmp	LBB0_35
LBB0_14:
	movq	(%r12), %rsi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_35
LBB0_15:
	movq	(%r12), %rcx
	leaq	L_.str.10(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_35:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movslq	%esi, %rax
	addl	$-4, %r14d
	leaq	(%rbx,%rax), %rdi
	leaq	(%rbx,%rax), %rsi
	addq	$3, %rsi
	movl	%r14d, %edx
	subl	%eax, %edx
	callq	_memmove
	movl	-48(%rbp), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movslq	%r14d, %r14
	shrq	$2, %r14
	movq	_MAGIC_PART@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	%r12d, %ecx
	incl	%ecx
	movl	%eax, %r12d
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	movslq	%ecx, %rdx
	xorl	%r13d, %r13d
	movl	%r12d, %eax
	movl	%ecx, %r12d
	cmpq	%rdx, %r14
	jbe	LBB0_35
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movslq	%r12d, %rbx
	movl	(%r15,%rbx,4), %ecx
	cmpl	(%rsi), %ecx
	jne	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	addl	$2, %r12d
	movslq	%eax, %r13
	leaq	(,%r13,4), %rsi
	movl	%r12d, %eax
	subl	%r13d, %eax
	movslq	%eax, %rdx
	shlq	$2, %rdx
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	(%r15,%r13,4), %eax
	movq	_MAGIC_LZMA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	$1048576, -52(%rbp)             ## imm = 0x100000
	movl	-16(%r15,%rbx,4), %edi
	movl	-4(%r15,%rbx,4), %r14d
	callq	_part_type
	movq	%rax, %rbx
	movl	-52(%rbp), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_31
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r15, %rcx
	movq	%rax, %r15
	leaq	(%rcx,%r13,4), %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	leaq	-52(%rbp), %rcx
	callq	_lzma_inflate
	testq	%rax, %rax
	jne	LBB0_32
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_S_IWUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_creat
	cmpl	$-1, %eax
	je	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%eax, %r14d
	movl	-52(%rbp), %edx
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_write
	movl	-52(%rbp), %esi
	cmpl	%esi, %eax
	jne	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	L_.str.15(%rip), %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_29
LBB0_26:                                ##   in Loop: Header=BB0_19 Depth=1
	leaq	L_str.23(%rip), %rdi
	callq	_puts
	movl	%r12d, %ecx
	movq	_MAGIC_PART@GOTPCREL(%rip), %rsi
	jmp	LBB0_18
LBB0_27:                                ##   in Loop: Header=BB0_19 Depth=1
	leaq	L_.str.16(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_30
LBB0_28:                                ##   in Loop: Header=BB0_19 Depth=1
	leaq	L_.str.14(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_29:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	%r14d, %edi
	callq	_close
LBB0_30:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_free
	movl	%r12d, %ecx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	_MAGIC_PART@GOTPCREL(%rip), %rsi
	jmp	LBB0_18
LBB0_31:
	leaq	L_str.24(%rip), %rdi
	jmp	LBB0_33
LBB0_32:
	leaq	L_str.25(%rip), %rdi
LBB0_33:
	callq	_puts
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_NAME,8,3                    ## @FW_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str.6:                               ## @.str.6
	.asciz	"Failed to find %s\n"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to alloc %d bytes\n"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.9:                               ## @.str.9
	.asciz	"Unable to open %s\n"

L_.str.10:                              ## @.str.10
	.asciz	"Loaded %d instead of %d bytes inside %s\n"

	.comm	_MAGIC_SZ,4,2                   ## @MAGIC_SZ
	.comm	_MAGIC,1,0                      ## @MAGIC
	.comm	_MAGIC_PART,4,2                 ## @MAGIC_PART
L_.str.11:                              ## @.str.11
	.asciz	"Found partition at 0x%08X with size %d\n"

	.comm	_MAGIC_LZMA,4,2                 ## @MAGIC_LZMA
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
L_.str.14:                              ## @.str.14
	.asciz	"\tFailed to write %d bytes\n"

L_.str.15:                              ## @.str.15
	.asciz	"\tWrote %d bytes to %s\n"

L_.str.16:                              ## @.str.16
	.asciz	"\tFailed to open %s\n"

L_str:                                  ## @str
	.asciz	"Arcadyan Firmware cutter v0.1"

L_str.18:                               ## @str.18
	.asciz	"-----------------------------"

L_str.19:                               ## @str.19
	.asciz	"This tool extracts the different parts of an arcadyan firmware update file"

L_str.20:                               ## @str.20
	.asciz	"This tool is for private use only. The Firmware that gets extracted has a license that forbids redistribution"

L_str.21:                               ## @str.21
	.asciz	"Please only run this if you understand the risks\n"

L_str.22:                               ## @str.22
	.asciz	"I understand the risks ? (y/N)"

L_str.23:                               ## @str.23
	.asciz	"\tThis is not lzma"

L_str.24:                               ## @str.24
	.asciz	"Failed to alloc dest buffer"

L_str.25:                               ## @str.25
	.asciz	"Failed to decompress data"

L_str.26:                               ## @str.26
	.asciz	"Ask Google or try https://www.telekom.de/hilfe/downloads/firmware-speedport-w921v-1.45.000.bin"

.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, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x0, l_str.18@PAGE
Lloh3:
	add	x0, x0, l_str.18@PAGEOFF
	bl	_puts
Lloh4:
	adrp	x0, l_str.19@PAGE
Lloh5:
	add	x0, x0, l_str.19@PAGEOFF
	bl	_puts
Lloh6:
	adrp	x0, l_str.20@PAGE
Lloh7:
	add	x0, x0, l_str.20@PAGEOFF
	bl	_puts
Lloh8:
	adrp	x0, l_str.21@PAGE
Lloh9:
	add	x0, x0, l_str.21@PAGEOFF
	bl	_puts
Lloh10:
	adrp	x0, l_str.22@PAGE
Lloh11:
	add	x0, x0, l_str.22@PAGEOFF
	bl	_puts
	bl	_getchar
	cmp	w0, #121
	b.ne	LBB0_18
; %bb.1:
Lloh12:
	adrp	x23, _FW_NAME@GOTPAGE
Lloh13:
	ldr	x23, [x23, _FW_NAME@GOTPAGEOFF]
	ldr	x0, [x23]
	add	x1, sp, #40
	bl	_stat
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x23]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
Lloh16:
	adrp	x0, l_str.26@PAGE
Lloh17:
	add	x0, x0, l_str.26@PAGEOFF
LBB0_3:
	bl	_puts
	b	LBB0_18
LBB0_4:
	ldr	w0, [sp, #40]
	bl	_malloc
	mov	x20, x0
	ldr	w0, [sp, #40]
	bl	_malloc
	cbz	x20, LBB0_14
; %bb.5:
	mov	x19, x0
	cbz	x0, LBB0_14
; %bb.6:
	ldr	x0, [x23]
Lloh18:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_open
	tbnz	w0, #31, LBB0_15
; %bb.7:
	mov	x22, x0
	ldr	w2, [sp, #40]
	mov	x1, x20
	bl	_read
	mov	x21, x0
	mov	x0, x22
	bl	_close
	ldr	w8, [sp, #40]
	cmp	w21, w8
	b.ne	LBB0_16
; %bb.8:
	add	x22, x20, #1
Lloh21:
	adrp	x8, _MAGIC_SZ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAGIC_SZ@GOTPAGEOFF]
	ldr	w11, [x8]
	cmp	w11, #1
	b.lt	LBB0_20
; %bb.9:
	mov	x9, #0
Lloh23:
	adrp	x10, _MAGIC@GOTPAGE
Lloh24:
	ldr	x10, [x10, _MAGIC@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x11, x20, x9
	ldrb	w12, [x11, #1]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldrb	w13, [x10]
	eor	w12, w13, w12
	strb	w12, [x11, #1]
	add	x9, x9, #1
	ldrsw	x11, [x8]
	cmp	x9, x11
	b.ge	LBB0_20
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	and	x11, x9, #0xf
	cmp	x11, #2
	b.hi	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x11, x20, x9
	ldrb	w12, [x11, #17]
	b	LBB0_11
LBB0_14:
	ldr	w8, [sp, #40]
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.8@PAGE
Lloh26:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_17
LBB0_15:
	ldr	x8, [x23]
	str	x8, [sp]
Lloh27:
	adrp	x0, l_.str.9@PAGE
Lloh28:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_17
LBB0_16:
	ldr	x9, [x23]
	stp	x8, x9, [sp, #8]
	str	x21, [sp]
Lloh29:
	adrp	x0, l_.str.10@PAGE
Lloh30:
	add	x0, x0, l_.str.10@PAGEOFF
LBB0_17:
	bl	_printf
LBB0_18:
	mov	w0, #-1
LBB0_19:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_20:
	sub	w20, w21, #4
	add	x0, x22, w11, sxtw
	add	x1, x0, #3
	sub	w2, w20, w11
	bl	_memmove
	ldr	w2, [sp, #40]
	mov	x0, x19
	mov	x1, x22
	bl	_memcpy
	mov	w8, #0
	mov	w9, #0
	sxtw	x10, w20
Lloh31:
	adrp	x24, _MAGIC_PART@GOTPAGE
Lloh32:
	ldr	x24, [x24, _MAGIC_PART@GOTPAGEOFF]
Lloh33:
	adrp	x21, l_.str.11@PAGE
Lloh34:
	add	x21, x21, l_.str.11@PAGEOFF
Lloh35:
	adrp	x20, _MAGIC_LZMA@GOTPAGE
Lloh36:
	ldr	x20, [x20, _MAGIC_LZMA@GOTPAGEOFF]
	lsr	x22, x10, #2
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	add	w9, w23, #1
	mov	x25, x8
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	w0, #0
	cmp	x22, w9, sxtw
	mov	x8, x25
	b.ls	LBB0_19
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	sxtw	x23, w9
	ldr	w9, [x19, w9, sxtw #2]
	ldr	w10, [x24]
	cmp	w9, w10
	b.ne	LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	w25, w23, #2
	sbfiz	x26, x8, #2, #32
	sub	w8, w25, w8
	sbfiz	x8, x8, #2, #32
	stp	x26, x8, [sp]
	mov	x0, x21
	bl	_printf
	add	x28, x19, x26
	ldr	w8, [x28]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_30
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	w8, #1048576
	str	w8, [sp, #36]
	add	x8, x19, x23, lsl #2
	ldur	w23, [x8, #-4]
	ldur	w0, [x8, #-16]
	bl	_part_type
	mov	x27, x0
	ldr	w0, [sp, #36]
	bl	_malloc
	cbz	x0, LBB0_35
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x26, x0
	add	x3, sp, #36
	mov	x0, x28
	mov	x1, x23
	mov	x2, x26
	bl	_lzma_inflate
	cbnz	x0, LBB0_36
; %bb.27:                               ;   in Loop: Header=BB0_23 Depth=1
Lloh37:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _S_IWUSR@GOTPAGE
Lloh41:
	ldr	x9, [x9, _S_IWUSR@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x27
	bl	_creat
	cmn	w0, #1
	b.eq	LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x28, x0
	ldr	w2, [sp, #36]
	mov	x1, x26
	bl	_write
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [sp, #36]
	cmp	w0, w8
	b.ne	LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_23 Depth=1
	stp	x0, x27, [sp]
Lloh43:
	adrp	x0, l_.str.15@PAGE
Lloh44:
	add	x0, x0, l_.str.15@PAGEOFF
	b	LBB0_33
LBB0_30:                                ;   in Loop: Header=BB0_23 Depth=1
Lloh45:
	adrp	x0, l_str.23@PAGE
Lloh46:
	add	x0, x0, l_str.23@PAGEOFF
	bl	_puts
	mov	x9, x25
	b	LBB0_22
LBB0_31:                                ;   in Loop: Header=BB0_23 Depth=1
	str	x27, [sp]
Lloh47:
	adrp	x0, l_.str.16@PAGE
Lloh48:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_printf
	b	LBB0_34
LBB0_32:                                ;   in Loop: Header=BB0_23 Depth=1
	str	x8, [sp]
Lloh49:
	adrp	x0, l_.str.14@PAGE
Lloh50:
	add	x0, x0, l_.str.14@PAGEOFF
LBB0_33:                                ;   in Loop: Header=BB0_23 Depth=1
	bl	_printf
	mov	x0, x28
	bl	_close
LBB0_34:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x26
	bl	_free
	mov	x9, x25
	b	LBB0_22
LBB0_35:
Lloh51:
	adrp	x0, l_str.24@PAGE
Lloh52:
	add	x0, x0, l_str.24@PAGEOFF
	b	LBB0_3
LBB0_36:
Lloh53:
	adrp	x0, l_str.25@PAGE
Lloh54:
	add	x0, x0, l_str.25@PAGEOFF
	b	LBB0_3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_NAME,8,3                    ; @FW_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str.6:                               ; @.str.6
	.asciz	"Failed to find %s\n"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to alloc %d bytes\n"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.9:                               ; @.str.9
	.asciz	"Unable to open %s\n"

l_.str.10:                              ; @.str.10
	.asciz	"Loaded %d instead of %d bytes inside %s\n"

	.comm	_MAGIC_SZ,4,2                   ; @MAGIC_SZ
	.comm	_MAGIC,1,0                      ; @MAGIC
	.comm	_MAGIC_PART,4,2                 ; @MAGIC_PART
l_.str.11:                              ; @.str.11
	.asciz	"Found partition at 0x%08X with size %d\n"

	.comm	_MAGIC_LZMA,4,2                 ; @MAGIC_LZMA
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
l_.str.14:                              ; @.str.14
	.asciz	"\tFailed to write %d bytes\n"

l_.str.15:                              ; @.str.15
	.asciz	"\tWrote %d bytes to %s\n"

l_.str.16:                              ; @.str.16
	.asciz	"\tFailed to open %s\n"

l_str:                                  ; @str
	.asciz	"Arcadyan Firmware cutter v0.1"

l_str.18:                               ; @str.18
	.asciz	"-----------------------------"

l_str.19:                               ; @str.19
	.asciz	"This tool extracts the different parts of an arcadyan firmware update file"

l_str.20:                               ; @str.20
	.asciz	"This tool is for private use only. The Firmware that gets extracted has a license that forbids redistribution"

l_str.21:                               ; @str.21
	.asciz	"Please only run this if you understand the risks\n"

l_str.22:                               ; @str.22
	.asciz	"I understand the risks ? (y/N)"

l_str.23:                               ; @str.23
	.asciz	"\tThis is not lzma"

l_str.24:                               ; @str.24
	.asciz	"Failed to alloc dest buffer"

l_str.25:                               ; @str.25
	.asciz	"Failed to decompress data"

l_str.26:                               ; @str.26
	.asciz	"Ask Google or try https://www.telekom.de/hilfe/downloads/firmware-speedport-w921v-1.45.000.bin"

.subsections_via_symbols
