	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rsi), %rdi
	callq	_basename
	movq	_progname@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_parse_options
	movq	_mtddev@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movq	_mtdfd@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_scan_mtd
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_TFFS_ID_TABLE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_find_entry
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	-48(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_parse_key_names
	cmpl	$0, -40(%rbp)
	jle	LBB0_7
## %bb.8:
	movq	_print_all_key_names@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rdi
	callq	_show_all_key_names
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_14
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_18
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_17
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_16
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_15
LBB0_10:
	movq	_show_all@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rdi
	callq	_show_all_key_value_pairs
	jmp	LBB0_13
LBB0_12:
	leaq	-40(%rbp), %rdi
	callq	_show_matching_key_value
LBB0_13:
	movl	%eax, %r14d
LBB0_14:
	movl	-36(%rbp), %edi
	callq	_free
LBB0_15:
	movl	-48(%rbp), %edi
	callq	_free
LBB0_16:
	movq	_sectors@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_free
LBB0_17:
	movq	(%r15), %rdi
	callq	_close
LBB0_18:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_progname,4,2                   ## @progname
	.comm	_mtddev,8,3                     ## @mtddev
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_mtdfd,8,3                      ## @mtdfd
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: Failed to open tffs device %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"ERROR: Parsing blocks from tffs device %s failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"       Is byte-swapping (-b) required?\n"

	.comm	_TFFS_ID_TABLE_NAME,4,2         ## @TFFS_ID_TABLE_NAME
L_.str.3:                               ## @.str.3
	.asciz	"ERROR: No name table found on tffs device %s\n"

	.comm	_print_all_key_names,8,3        ## @print_all_key_names
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
	.comm	_show_all,8,3                   ## @show_all
	.comm	_sectors,4,2                    ## @sectors
.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, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	x0, [x1]
	bl	_basename
Lloh3:
	adrp	x8, _progname@GOTPAGE
Lloh4:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh5:
	str	w0, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_parse_options
Lloh6:
	adrp	x21, _mtddev@GOTPAGE
Lloh7:
	ldr	x21, [x21, _mtddev@GOTPAGEOFF]
	ldr	x0, [x21]
Lloh8:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_open
Lloh11:
	adrp	x20, _mtdfd@GOTPAGE
Lloh12:
	ldr	x20, [x20, _mtdfd@GOTPAGEOFF]
	str	x0, [x20]
	tbnz	x0, #63, LBB0_6
; %bb.1:
	bl	_scan_mtd
	cbz	w0, LBB0_7
; %bb.2:
Lloh13:
	adrp	x8, _TFFS_ID_TABLE_NAME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TFFS_ID_TABLE_NAME@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x1, sp, #24
	bl	_find_entry
	cbz	w0, LBB0_8
; %bb.3:
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_parse_key_names
	ldr	w8, [sp, #16]
	cmp	w8, #0
	b.le	LBB0_9
; %bb.4:
Lloh16:
	adrp	x8, _print_all_key_names@GOTPAGE
Lloh17:
	ldr	x8, [x8, _print_all_key_names@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.5:
	add	x0, sp, #16
	bl	_show_all_key_names
Lloh19:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
	b	LBB0_14
LBB0_6:
Lloh22:
	adrp	x8, _stderr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	x8, [x21]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	b	LBB0_18
LBB0_7:
Lloh27:
	adrp	x22, _stderr@GOTPAGE
Lloh28:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x8, [x21]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	w0, [x22]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	b	LBB0_17
LBB0_8:
Lloh33:
	adrp	x8, _stderr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	x8, [x21]
	str	x8, [sp]
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	b	LBB0_16
LBB0_9:
Lloh38:
	adrp	x8, _stderr@GOTPAGE
Lloh39:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	ldr	x8, [x21]
	str	x8, [sp]
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	b	LBB0_15
LBB0_10:
Lloh43:
	adrp	x8, _show_all@GOTPAGE
Lloh44:
	ldr	x8, [x8, _show_all@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
	add	x0, sp, #16
	bl	_show_all_key_value_pairs
	b	LBB0_13
LBB0_12:
	add	x0, sp, #16
	bl	_show_matching_key_value
LBB0_13:
	mov	x19, x0
LBB0_14:
	ldr	w0, [sp, #20]
	bl	_free
LBB0_15:
	ldr	w0, [sp, #24]
	bl	_free
LBB0_16:
Lloh46:
	adrp	x8, _sectors@GOTPAGE
Lloh47:
	ldr	x8, [x8, _sectors@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	bl	_free
LBB0_17:
	ldr	x0, [x20]
	bl	_close
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_progname,4,2                   ; @progname
	.comm	_mtddev,8,3                     ; @mtddev
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_mtdfd,8,3                      ; @mtdfd
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: Failed to open tffs device %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"ERROR: Parsing blocks from tffs device %s failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"       Is byte-swapping (-b) required?\n"

	.comm	_TFFS_ID_TABLE_NAME,4,2         ; @TFFS_ID_TABLE_NAME
l_.str.3:                               ; @.str.3
	.asciz	"ERROR: No name table found on tffs device %s\n"

	.comm	_print_all_key_names,8,3        ; @print_all_key_names
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
	.comm	_show_all,8,3                   ; @show_all
	.comm	_sectors,4,2                    ; @sectors
.subsections_via_symbols
