	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -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	_input_file@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_tffs_size@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	%r12, %rdi
	callq	_ftell
	movq	%rax, (%r14)
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	(%r14), %rbx
LBB0_4:
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_fread
	cmpq	(%r14), %rax
	jne	LBB0_5
## %bb.6:
	movq	_TFFS_ID_TABLE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_find_entry
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	-48(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_parse_key_names
	cmpl	$0, -64(%rbp)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jle	LBB0_9
## %bb.10:
	movq	_print_all_key_names@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:
	leaq	-64(%rbp), %rdi
	callq	_show_all_key_names
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_16
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_18
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_17
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	(%r13), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_17
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_16
LBB0_12:
	movq	_show_all@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_show_all_key_value_pairs
	jmp	LBB0_15
LBB0_14:
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_show_matching_key_value
LBB0_15:
	movl	%eax, %r14d
LBB0_16:
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_17:
	movq	%r12, %rdi
	callq	_fclose
	movq	%r15, %rdi
	callq	_free
LBB0_18:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_progname,4,2                   ## @progname
	.comm	_input_file,8,3                 ## @input_file
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"ERROR: Failed to open tffs input file %s\n"

	.comm	_tffs_size,8,3                  ## @tffs_size
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.2:                               ## @.str.2
	.asciz	"ERROR: Failed read tffs file %s\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"       Is byte-swapping (-b) required?\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
.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, #96
	.cfi_def_cfa_offset 96
	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
	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	x23, _input_file@GOTPAGE
Lloh7:
	ldr	x23, [x23, _input_file@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh10:
	adrp	x24, _tffs_size@GOTPAGE
Lloh11:
	ldr	x24, [x24, _tffs_size@GOTPAGEOFF]
	ldr	x22, [x24]
	cbnz	x22, LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	bl	_fseek
	mov	x0, x20
	bl	_ftell
	str	x0, [x24]
Lloh15:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	bl	_fseek
	ldr	x22, [x24]
LBB0_3:
	mov	x0, x22
	bl	_malloc
	mov	x21, x0
	mov	w1, #1
	mov	x2, x22
	mov	x3, x20
	bl	_fread
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.4:
Lloh18:
	adrp	x8, _TFFS_ID_TABLE_NAME@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TFFS_ID_TABLE_NAME@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x21
	bl	_find_entry
	cbz	w0, LBB0_10
; %bb.5:
	add	x0, sp, #24
	add	x1, sp, #8
	bl	_parse_key_names
	ldr	w8, [sp, #8]
	cmp	w8, #0
	b.le	LBB0_11
; %bb.6:
Lloh21:
	adrp	x8, _print_all_key_names@GOTPAGE
Lloh22:
	ldr	x8, [x8, _print_all_key_names@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.7:
	add	x0, sp, #8
	bl	_show_all_key_names
Lloh24:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh26:
	ldr	w19, [x8]
	b	LBB0_16
LBB0_8:
Lloh27:
	adrp	x8, _stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	x8, [x23]
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	b	LBB0_18
LBB0_9:
Lloh32:
	adrp	x8, _stderr@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldr	x8, [x23]
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	b	LBB0_17
LBB0_10:
Lloh37:
	adrp	x22, _stderr@GOTPAGE
Lloh38:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x8, [x23]
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	ldr	w0, [x22]
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	b	LBB0_17
LBB0_11:
Lloh43:
	adrp	x8, _stderr@GOTPAGE
Lloh44:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	ldr	x8, [x23]
	str	x8, [sp]
Lloh46:
	adrp	x1, l_.str.3@PAGE
Lloh47:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	b	LBB0_16
LBB0_12:
Lloh48:
	adrp	x8, _show_all@GOTPAGE
Lloh49:
	ldr	x8, [x8, _show_all@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
	add	x1, sp, #8
	mov	x0, x21
	bl	_show_all_key_value_pairs
	b	LBB0_15
LBB0_14:
	add	x1, sp, #8
	mov	x0, x21
	bl	_show_matching_key_value
LBB0_15:
	mov	x19, x0
LBB0_16:
	ldr	x0, [sp, #16]
	bl	_free
LBB0_17:
	mov	x0, x20
	bl	_fclose
	mov	x0, x21
	bl	_free
LBB0_18:
	mov	x0, 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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_progname,4,2                   ; @progname
	.comm	_input_file,8,3                 ; @input_file
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"ERROR: Failed to open tffs input file %s\n"

	.comm	_tffs_size,8,3                  ; @tffs_size
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.2:                               ; @.str.2
	.asciz	"ERROR: Failed read tffs file %s\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"       Is byte-swapping (-b) required?\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
.subsections_via_symbols
