	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usage
_usage:                                 ## @usage
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movq	_mtd_resetbc@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
LBB0_2:
	movq	_mtd_fixtrx@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
LBB0_4:
	movq	_mtd_fixseama@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
LBB0_6:
	movq	_mtd_fixwrg@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_fprintf
LBB0_8:
	movq	_mtd_fixwrgg@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_10
## %bb.9:
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_fprintf
LBB0_10:
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_fprintf
	cmpq	$0, (%r15)
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	testb	%al, %al
	je	LBB0_14
	jmp	LBB0_17
LBB0_12:
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_fprintf
	cmpq	$0, (%r15)
	setne	%al
	testb	%al, %al
	jne	LBB0_17
LBB0_14:
	cmpq	$0, (%r14)
	jne	LBB0_17
## %bb.15:
	cmpq	$0, (%r12)
	jne	LBB0_17
## %bb.16:
	cmpq	$0, (%r13)
	je	LBB0_18
LBB0_17:
	movl	(%rbx), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_fprintf
LBB0_18:
	movq	_mtd_tpl_recoverflag_write@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.19:
	movl	(%rbx), %edi
	leaq	L_.str.9(%rip), %rsi
	callq	_fprintf
LBB0_20:
	movl	(%rbx), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: mtd [<options> ...] <command> [<arguments> ...] <device>[:<device>...]\n\nThe device is in the format of mtdX (eg: mtd4) or its label.\nmtd recognizes these commands:\n        unlock                  unlock the device\n        refresh                 refresh mtd partition\n        erase                   erase all data on device\n        verify <imagefile>|-    verify <imagefile> (use - for stdin) to device\n        write <imagefile>|-     write <imagefile> (use - for stdin) to device\n        jffs2write <file>       append <file> to the jffs2 partition on the device\n"

	.comm	_mtd_resetbc,8,3                ## @mtd_resetbc
L_.str.1:                               ## @.str.1
	.asciz	"        resetbc <device>        reset the uboot boot counter\n"

	.comm	_mtd_fixtrx,8,3                 ## @mtd_fixtrx
L_.str.2:                               ## @.str.2
	.asciz	"        fixtrx                  fix the checksum in a trx header on first boot\n"

	.comm	_mtd_fixseama,8,3               ## @mtd_fixseama
L_.str.3:                               ## @.str.3
	.asciz	"        fixseama                fix the checksum in a seama header on first boot\n"

	.comm	_mtd_fixwrg,8,3                 ## @mtd_fixwrg
L_.str.4:                               ## @.str.4
	.asciz	"        fixwrg                  fix the checksum in a wrg header on first boot\n"

	.comm	_mtd_fixwrgg,8,3                ## @mtd_fixwrgg
L_.str.5:                               ## @.str.5
	.asciz	"        fixwrgg                 fix the checksum in a wrgg header on first boot\n"

L_.str.6:                               ## @.str.6
	.asciz	"Following options are available:\n        -q                      quiet mode (once: no [w] on writing,\n                                           twice: no status messages)\n        -n                      write without first erasing the blocks\n        -r                      reboot after successful command\n        -f                      force write without trx checks\n        -e <device>             erase <device> before executing the command\n        -d <name>               directory for jffs2write, defaults to \"tmp\"\n        -j <name>               integrate <file> into jffs2 data when writing an image\n        -s <number>             skip the first n bytes when appending data to the jffs2 partiton, defaults to \"0\"\n        -p <number>             write beginning at partition offset\n        -l <length>             the length of data that we want to dump\n"

L_.str.7:                               ## @.str.7
	.asciz	"        -o offset               offset of the image header in the partition(for fixtrx)\n"

L_.str.8:                               ## @.str.8
	.asciz	"        -c datasize             amount of data to be used for checksum calculation (for fixtrx / fixseama / fixwrg / fixwrgg)\n"

	.comm	_mtd_tpl_recoverflag_write,8,3  ## @mtd_tpl_recoverflag_write
L_.str.9:                               ## @.str.9
	.asciz	"        -t <partition>          write TP-Link recovery-flag to <partition> (for write)\n"

L_.str.10:                              ## @.str.10
	.asciz	"\nExample: To write linux.trx to mtd4 labeled as linux and reboot afterwards\n         mtd -r write linux.trx linux\n\n"

	.no_dead_strip	_usage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usage
_usage:                                 ; @usage
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x19, _stderr@GOTPAGE
Lloh1:
	ldr	x19, [x19, _stderr@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
Lloh4:
	adrp	x8, _mtd_resetbc@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mtd_resetbc@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_2:
Lloh9:
	adrp	x21, _mtd_fixtrx@GOTPAGE
Lloh10:
	ldr	x21, [x21, _mtd_fixtrx@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_4:
Lloh13:
	adrp	x20, _mtd_fixseama@GOTPAGE
Lloh14:
	ldr	x20, [x20, _mtd_fixseama@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_6:
Lloh17:
	adrp	x22, _mtd_fixwrg@GOTPAGE
Lloh18:
	ldr	x22, [x22, _mtd_fixwrg@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_8:
Lloh21:
	adrp	x23, _mtd_fixwrgg@GOTPAGE
Lloh22:
	ldr	x23, [x23, _mtd_fixwrgg@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x19]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
LBB0_10:
	ldr	w0, [x19]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	ldr	x8, [x21]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w0, [x19]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w8, ne
LBB0_12:
	tbnz	w8, #0, LBB0_16
; %bb.13:
	ldr	x8, [x20]
	cbnz	x8, LBB0_16
; %bb.14:
	ldr	x8, [x22]
	cbnz	x8, LBB0_16
; %bb.15:
	ldr	x8, [x23]
	cbz	x8, LBB0_17
LBB0_16:
	ldr	w0, [x19]
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
LBB0_17:
Lloh31:
	adrp	x8, _mtd_tpl_recoverflag_write@GOTPAGE
Lloh32:
	ldr	x8, [x8, _mtd_tpl_recoverflag_write@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.18:
	ldr	w0, [x19]
Lloh34:
	adrp	x1, l_.str.9@PAGE
Lloh35:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_fprintf
LBB0_19:
	ldr	w0, [x19]
Lloh36:
	adrp	x1, l_.str.10@PAGE
Lloh37:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: mtd [<options> ...] <command> [<arguments> ...] <device>[:<device>...]\n\nThe device is in the format of mtdX (eg: mtd4) or its label.\nmtd recognizes these commands:\n        unlock                  unlock the device\n        refresh                 refresh mtd partition\n        erase                   erase all data on device\n        verify <imagefile>|-    verify <imagefile> (use - for stdin) to device\n        write <imagefile>|-     write <imagefile> (use - for stdin) to device\n        jffs2write <file>       append <file> to the jffs2 partition on the device\n"

	.comm	_mtd_resetbc,8,3                ; @mtd_resetbc
l_.str.1:                               ; @.str.1
	.asciz	"        resetbc <device>        reset the uboot boot counter\n"

	.comm	_mtd_fixtrx,8,3                 ; @mtd_fixtrx
l_.str.2:                               ; @.str.2
	.asciz	"        fixtrx                  fix the checksum in a trx header on first boot\n"

	.comm	_mtd_fixseama,8,3               ; @mtd_fixseama
l_.str.3:                               ; @.str.3
	.asciz	"        fixseama                fix the checksum in a seama header on first boot\n"

	.comm	_mtd_fixwrg,8,3                 ; @mtd_fixwrg
l_.str.4:                               ; @.str.4
	.asciz	"        fixwrg                  fix the checksum in a wrg header on first boot\n"

	.comm	_mtd_fixwrgg,8,3                ; @mtd_fixwrgg
l_.str.5:                               ; @.str.5
	.asciz	"        fixwrgg                 fix the checksum in a wrgg header on first boot\n"

l_.str.6:                               ; @.str.6
	.asciz	"Following options are available:\n        -q                      quiet mode (once: no [w] on writing,\n                                           twice: no status messages)\n        -n                      write without first erasing the blocks\n        -r                      reboot after successful command\n        -f                      force write without trx checks\n        -e <device>             erase <device> before executing the command\n        -d <name>               directory for jffs2write, defaults to \"tmp\"\n        -j <name>               integrate <file> into jffs2 data when writing an image\n        -s <number>             skip the first n bytes when appending data to the jffs2 partiton, defaults to \"0\"\n        -p <number>             write beginning at partition offset\n        -l <length>             the length of data that we want to dump\n"

l_.str.7:                               ; @.str.7
	.asciz	"        -o offset               offset of the image header in the partition(for fixtrx)\n"

l_.str.8:                               ; @.str.8
	.asciz	"        -c datasize             amount of data to be used for checksum calculation (for fixtrx / fixseama / fixwrg / fixwrgg)\n"

	.comm	_mtd_tpl_recoverflag_write,8,3  ; @mtd_tpl_recoverflag_write
l_.str.9:                               ; @.str.9
	.asciz	"        -t <partition>          write TP-Link recovery-flag to <partition> (for write)\n"

l_.str.10:                              ; @.str.10
	.asciz	"\nExample: To write linux.trx to mtd4 labeled as linux and reboot afterwards\n         mtd -r write linux.trx linux\n\n"

	.no_dead_strip	_usage
.subsections_via_symbols
