	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_options
_check_options:                         ## @check_options
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_inspect_info@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movq	_inspect_info@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_file_stat                  ## TAILCALL
LBB0_2:
	movq	_extract@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %rdi
LBB0_4:
	xorl	%eax, %eax
	callq	_ERR
LBB0_5:
	movl	$-1, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_opt_hw_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.8:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoul
	movq	_hw_id@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_combined@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	movq	_layout_id@GOTPCREL(%rip), %r15
	jne	LBB0_12
## %bb.9:
	cmpq	$0, (%r15)
	jne	LBB0_12
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_4
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_12:
	movq	_opt_hw_rev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoul
	jmp	LBB0_15
LBB0_14:
	movl	$1, %eax
LBB0_15:
	movq	_hw_rev@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_country@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_17
## %bb.16:
	callq	_find_region
	movq	_region@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_38
LBB0_17:
	cmpq	$0, (%r14)
	je	LBB0_21
## %bb.18:
	movq	_kernel_la@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.19:
	movq	_kernel_ep@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_30
LBB0_20:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_4
LBB0_21:
	movq	_layouts@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	callq	_find_layout
	movq	_layout@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_41
## %bb.22:
	movq	_kernel_la@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_24
## %bb.23:
	movq	24(%rax), %rdx
	movq	%rdx, (%rcx)
LBB0_24:
	movq	_kernel_ep@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_26
## %bb.25:
	movq	16(%rax), %rdx
	movq	%rdx, (%rcx)
LBB0_26:
	movq	_rootfs_ofs@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_28
## %bb.27:
	movl	(%rax), %edx
	movl	%edx, (%rcx)
LBB0_28:
	movq	_reserved_space@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	8(%rax), %rcx
	jle	LBB0_30
## %bb.29:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_4
LBB0_30:
	movq	_kernel_info@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_40
## %bb.31:
	movq	_kernel_info@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_get_file_stat
	testl	%eax, %eax
	jne	LBB0_6
## %bb.32:
	movl	(%r15), %eax
	movq	_kernel_len@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	cmpq	$0, (%r14)
	je	LBB0_42
LBB0_33:
	movq	_ofname@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_47
## %bb.34:
	movq	_fw_ver@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.14(%rip), %rsi
	movq	_fw_ver_hi@GOTPCREL(%rip), %rdx
	movq	_fw_ver_mid@GOTPCREL(%rip), %rcx
	movq	_fw_ver_lo@GOTPCREL(%rip), %r8
	callq	_sscanf
	cmpl	$3, %eax
	jne	LBB0_48
## %bb.35:
	movq	_opt_hdr_ver@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$1, %esi
	je	LBB0_50
## %bb.36:
	cmpl	$2, %esi
	jne	LBB0_52
## %bb.37:
	movq	_HEADER_VERSION_V2@GOTPCREL(%rip), %rax
	jmp	LBB0_51
LBB0_38:
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
LBB0_39:
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_5
LBB0_40:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_4
LBB0_41:
	movq	(%r15), %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_5
LBB0_42:
	movq	_layout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %eax
	movq	_reserved_space@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movq	_fw_max_len@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	movq	_rootfs_info@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_49
## %bb.43:
	movq	_rootfs_info@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_get_file_stat
	testl	%eax, %eax
	jne	LBB0_6
## %bb.44:
	movq	_rootfs_align@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_53
## %bb.45:
	movl	(%rbx), %edi
	addl	$4, %edi
	movl	%edi, (%rbx)
	callq	_ALIGN
	movq	_rootfs_ofs@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addl	$-4, (%rbx)
	leaq	L_.str.9(%rip), %rdi
	movl	%eax, %esi
	callq	_DBG
	movl	(%rbx), %esi
	addl	(%r14), %esi
	subl	(%r12), %esi
	addl	$4, %esi
	testl	%esi, %esi
	jle	LBB0_33
## %bb.46:
	leaq	L_.str.10(%rip), %rdi
	jmp	LBB0_39
LBB0_47:
	leaq	L_.str.13(%rip), %rdi
	jmp	LBB0_4
LBB0_48:
	movl	(%rbx), %esi
	leaq	L_.str.15(%rip), %rdi
	jmp	LBB0_39
LBB0_49:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_4
LBB0_50:
	movq	_HEADER_VERSION_V1@GOTPCREL(%rip), %rax
LBB0_51:
	movl	(%rax), %eax
	movq	_hdr_ver@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_52:
	leaq	L_.str.16(%rip), %rdi
	jmp	LBB0_39
LBB0_53:
	movl	(%r15), %eax
	movq	_rootfs_ofs@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	subl	%esi, %eax
	addl	$4, %eax
	testl	%eax, %eax
	jle	LBB0_55
## %bb.54:
	leaq	L_.str.11(%rip), %rdi
	movl	%eax, %esi
	jmp	LBB0_39
LBB0_55:
	subl	(%r12), %esi
	addl	(%r14), %esi
	testl	%esi, %esi
	jle	LBB0_33
## %bb.56:
	leaq	L_.str.12(%rip), %rdi
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.comm	_inspect_info,16,3              ## @inspect_info
	.comm	_extract,8,3                    ## @extract
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no firmware for inspection specified"

	.comm	_opt_hw_id,8,3                  ## @opt_hw_id
L_.str.1:                               ## @.str.1
	.asciz	"hardware id not specified"

	.comm	_hw_id,8,3                      ## @hw_id
	.comm	_combined,8,3                   ## @combined
	.comm	_layout_id,8,3                  ## @layout_id
L_.str.2:                               ## @.str.2
	.asciz	"flash layout is not specified"

	.comm	_opt_hw_rev,8,3                 ## @opt_hw_rev
	.comm	_hw_rev,4,2                     ## @hw_rev
	.comm	_country,4,2                    ## @country
	.comm	_region,4,2                     ## @region
L_.str.3:                               ## @.str.3
	.asciz	"unknown region code \"%s\""

	.comm	_kernel_la,8,3                  ## @kernel_la
	.comm	_kernel_ep,8,3                  ## @kernel_ep
L_.str.4:                               ## @.str.4
	.asciz	"kernel loading address and entry point must be specified for combined image"

	.comm	_layouts,4,2                    ## @layouts
	.comm	_layout,8,3                     ## @layout
L_.str.5:                               ## @.str.5
	.asciz	"unknown flash layout \"%s\""

	.comm	_rootfs_ofs,4,2                 ## @rootfs_ofs
	.comm	_reserved_space,8,3             ## @reserved_space
L_.str.6:                               ## @.str.6
	.asciz	"reserved space is not valid"

	.comm	_kernel_info,16,3               ## @kernel_info
L_.str.7:                               ## @.str.7
	.asciz	"no kernel image specified"

	.comm	_kernel_len,4,2                 ## @kernel_len
	.comm	_fw_max_len,4,2                 ## @fw_max_len
	.comm	_rootfs_info,16,3               ## @rootfs_info
L_.str.8:                               ## @.str.8
	.asciz	"no rootfs image specified"

	.comm	_rootfs_align,8,3               ## @rootfs_align
L_.str.9:                               ## @.str.9
	.asciz	"rootfs offset aligned to 0x%u"

L_.str.10:                              ## @.str.10
	.asciz	"images are too big by %i bytes"

L_.str.11:                              ## @.str.11
	.asciz	"kernel image is too big by %i bytes"

L_.str.12:                              ## @.str.12
	.asciz	"rootfs image is too big by %i bytes"

	.comm	_ofname,8,3                     ## @ofname
L_.str.13:                              ## @.str.13
	.asciz	"no output file specified"

	.comm	_fw_ver,4,2                     ## @fw_ver
L_.str.14:                              ## @.str.14
	.asciz	"%d.%d.%d"

	.comm	_fw_ver_hi,4,2                  ## @fw_ver_hi
	.comm	_fw_ver_mid,4,2                 ## @fw_ver_mid
	.comm	_fw_ver_lo,4,2                  ## @fw_ver_lo
L_.str.15:                              ## @.str.15
	.asciz	"invalid firmware version '%s'"

	.comm	_opt_hdr_ver,4,2                ## @opt_hdr_ver
	.comm	_HEADER_VERSION_V1,4,2          ## @HEADER_VERSION_V1
	.comm	_hdr_ver,4,2                    ## @hdr_ver
	.comm	_HEADER_VERSION_V2,4,2          ## @HEADER_VERSION_V2
L_.str.16:                              ## @.str.16
	.asciz	"invalid header version '%u'"

	.no_dead_strip	_check_options
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_options
_check_options:                         ; @check_options
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, _inspect_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _inspect_info@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, _inspect_info@GOTPAGE
Lloh4:
	ldr	x0, [x0, _inspect_info@GOTPAGEOFF]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_get_file_stat
LBB0_2:
Lloh5:
	adrp	x8, _extract@GOTPAGE
Lloh6:
	ldr	x8, [x8, _extract@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_ERR
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
Lloh10:
	adrp	x8, _opt_hw_id@GOTPAGE
Lloh11:
	ldr	x8, [x8, _opt_hw_id@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x8]
	cbz	x0, LBB0_10
; %bb.7:
	mov	x1, #0
	mov	w2, #0
	bl	_strtoul
Lloh13:
	adrp	x8, _hw_id@GOTPAGE
Lloh14:
	ldr	x8, [x8, _hw_id@GOTPAGEOFF]
Lloh15:
	str	x0, [x8]
Lloh16:
	adrp	x19, _combined@GOTPAGE
Lloh17:
	ldr	x19, [x19, _combined@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh18:
	adrp	x20, _layout_id@GOTPAGE
Lloh19:
	ldr	x20, [x20, _layout_id@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, #0
	ccmp	x9, #0, #0, eq
	b.eq	LBB0_11
; %bb.8:
Lloh20:
	adrp	x8, _opt_hw_rev@GOTPAGE
Lloh21:
	ldr	x8, [x8, _opt_hw_rev@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
	cbz	x0, LBB0_12
; %bb.9:
	mov	x1, #0
	mov	w2, #0
	bl	_strtoul
	b	LBB0_13
LBB0_10:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_11:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_12:
	mov	w0, #1
LBB0_13:
Lloh27:
	adrp	x8, _hw_rev@GOTPAGE
Lloh28:
	ldr	x8, [x8, _hw_rev@GOTPAGEOFF]
Lloh29:
	str	w0, [x8]
Lloh30:
	adrp	x21, _country@GOTPAGE
Lloh31:
	ldr	x21, [x21, _country@GOTPAGEOFF]
	ldr	w0, [x21]
	cbz	w0, LBB0_15
; %bb.14:
	bl	_find_region
Lloh32:
	adrp	x8, _region@GOTPAGE
Lloh33:
	ldr	x8, [x8, _region@GOTPAGEOFF]
Lloh34:
	str	w0, [x8]
	cbz	w0, LBB0_36
LBB0_15:
	ldr	x8, [x19]
	cbz	x8, LBB0_19
; %bb.16:
Lloh35:
	adrp	x8, _kernel_la@GOTPAGE
Lloh36:
	ldr	x8, [x8, _kernel_la@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:
Lloh38:
	adrp	x8, _kernel_ep@GOTPAGE
Lloh39:
	ldr	x8, [x8, _kernel_ep@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	cbnz	x8, LBB0_28
LBB0_18:
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_19:
Lloh43:
	adrp	x8, _layouts@GOTPAGE
Lloh44:
	ldr	x8, [x8, _layouts@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	ldr	x1, [x20]
	bl	_find_layout
Lloh46:
	adrp	x8, _layout@GOTPAGE
Lloh47:
	ldr	x8, [x8, _layout@GOTPAGEOFF]
Lloh48:
	str	x0, [x8]
	cbz	x0, LBB0_38
; %bb.20:
Lloh49:
	adrp	x8, _kernel_la@GOTPAGE
Lloh50:
	ldr	x8, [x8, _kernel_la@GOTPAGEOFF]
	ldr	x9, [x8]
	cbnz	x9, LBB0_22
; %bb.21:
	ldr	x9, [x0, #24]
	str	x9, [x8]
LBB0_22:
Lloh51:
	adrp	x8, _kernel_ep@GOTPAGE
Lloh52:
	ldr	x8, [x8, _kernel_ep@GOTPAGEOFF]
	ldr	x9, [x8]
	cbnz	x9, LBB0_24
; %bb.23:
	ldr	x9, [x0, #16]
	str	x9, [x8]
LBB0_24:
Lloh53:
	adrp	x8, _rootfs_ofs@GOTPAGE
Lloh54:
	ldr	x8, [x8, _rootfs_ofs@GOTPAGEOFF]
	ldr	w9, [x8]
	cbnz	w9, LBB0_26
; %bb.25:
	ldr	w9, [x0]
	str	w9, [x8]
LBB0_26:
Lloh55:
	adrp	x8, _reserved_space@GOTPAGE
Lloh56:
	ldr	x8, [x8, _reserved_space@GOTPAGEOFF]
Lloh57:
	ldr	x8, [x8]
	ldr	x9, [x0, #8]
	cmp	x8, x9
	b.le	LBB0_28
; %bb.27:
Lloh58:
	adrp	x0, l_.str.6@PAGE
Lloh59:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_4
LBB0_28:
Lloh60:
	adrp	x8, _kernel_info@GOTPAGE
Lloh61:
	ldr	x8, [x8, _kernel_info@GOTPAGEOFF]
Lloh62:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_37
; %bb.29:
Lloh63:
	adrp	x20, _kernel_info@GOTPAGE
Lloh64:
	ldr	x20, [x20, _kernel_info@GOTPAGEOFF]
	mov	x0, x20
	bl	_get_file_stat
	cbnz	w0, LBB0_5
; %bb.30:
	ldr	w8, [x20]
Lloh65:
	adrp	x22, _kernel_len@GOTPAGE
Lloh66:
	ldr	x22, [x22, _kernel_len@GOTPAGEOFF]
	str	w8, [x22]
	ldr	x8, [x19]
	cbz	x8, LBB0_39
LBB0_31:
Lloh67:
	adrp	x8, _ofname@GOTPAGE
Lloh68:
	ldr	x8, [x8, _ofname@GOTPAGEOFF]
Lloh69:
	ldr	x8, [x8]
	cbz	x8, LBB0_44
; %bb.32:
Lloh70:
	adrp	x19, _fw_ver@GOTPAGE
Lloh71:
	ldr	x19, [x19, _fw_ver@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh72:
	adrp	x1, l_.str.14@PAGE
Lloh73:
	add	x1, x1, l_.str.14@PAGEOFF
Lloh74:
	adrp	x2, _fw_ver_hi@GOTPAGE
Lloh75:
	ldr	x2, [x2, _fw_ver_hi@GOTPAGEOFF]
Lloh76:
	adrp	x3, _fw_ver_mid@GOTPAGE
Lloh77:
	ldr	x3, [x3, _fw_ver_mid@GOTPAGEOFF]
Lloh78:
	adrp	x4, _fw_ver_lo@GOTPAGE
Lloh79:
	ldr	x4, [x4, _fw_ver_lo@GOTPAGEOFF]
	bl	_sscanf
	cmp	w0, #3
	b.ne	LBB0_45
; %bb.33:
Lloh80:
	adrp	x8, _opt_hdr_ver@GOTPAGE
Lloh81:
	ldr	x8, [x8, _opt_hdr_ver@GOTPAGEOFF]
Lloh82:
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_47
; %bb.34:
	cmp	w8, #2
	b.ne	LBB0_49
; %bb.35:
Lloh83:
	adrp	x8, _HEADER_VERSION_V2@GOTPAGE
Lloh84:
	ldr	x8, [x8, _HEADER_VERSION_V2@GOTPAGEOFF]
	b	LBB0_48
LBB0_36:
	ldr	w8, [x21]
	str	x8, [sp]
Lloh85:
	adrp	x0, l_.str.3@PAGE
Lloh86:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_37:
Lloh87:
	adrp	x0, l_.str.7@PAGE
Lloh88:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_4
LBB0_38:
	ldr	x8, [x20]
	str	x8, [sp]
Lloh89:
	adrp	x0, l_.str.5@PAGE
Lloh90:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_39:
Lloh91:
	adrp	x8, _layout@GOTPAGE
Lloh92:
	ldr	x8, [x8, _layout@GOTPAGEOFF]
Lloh93:
	ldr	x8, [x8]
	ldr	w8, [x8, #8]
Lloh94:
	adrp	x9, _reserved_space@GOTPAGE
Lloh95:
	ldr	x9, [x9, _reserved_space@GOTPAGEOFF]
Lloh96:
	ldr	w9, [x9]
	sub	w8, w8, w9
Lloh97:
	adrp	x21, _fw_max_len@GOTPAGE
Lloh98:
	ldr	x21, [x21, _fw_max_len@GOTPAGEOFF]
	str	w8, [x21]
Lloh99:
	adrp	x8, _rootfs_info@GOTPAGE
Lloh100:
	ldr	x8, [x8, _rootfs_info@GOTPAGEOFF]
Lloh101:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_46
; %bb.40:
Lloh102:
	adrp	x19, _rootfs_info@GOTPAGE
Lloh103:
	ldr	x19, [x19, _rootfs_info@GOTPAGEOFF]
	mov	x0, x19
	bl	_get_file_stat
	cbnz	w0, LBB0_5
; %bb.41:
Lloh104:
	adrp	x8, _rootfs_align@GOTPAGE
Lloh105:
	ldr	x8, [x8, _rootfs_align@GOTPAGEOFF]
Lloh106:
	ldr	x1, [x8]
	cbz	x1, LBB0_50
; %bb.42:
	ldr	w8, [x22]
	add	w0, w8, #4
	str	w0, [x22]
	bl	_ALIGN
	mov	x1, x0
Lloh107:
	adrp	x8, _rootfs_ofs@GOTPAGE
Lloh108:
	ldr	x8, [x8, _rootfs_ofs@GOTPAGEOFF]
Lloh109:
	str	w0, [x8]
	ldr	w8, [x22]
	sub	w8, w8, #4
	str	w8, [x22]
Lloh110:
	adrp	x0, l_.str.9@PAGE
Lloh111:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_DBG
	ldr	w8, [x22]
	ldr	w9, [x19]
	ldr	w10, [x21]
	add	w8, w8, w9
	sub	w8, w8, w10
	add	w8, w8, #4
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.43:
	str	x8, [sp]
Lloh112:
	adrp	x0, l_.str.10@PAGE
Lloh113:
	add	x0, x0, l_.str.10@PAGEOFF
	b	LBB0_4
LBB0_44:
Lloh114:
	adrp	x0, l_.str.13@PAGE
Lloh115:
	add	x0, x0, l_.str.13@PAGEOFF
	b	LBB0_4
LBB0_45:
	ldr	w8, [x19]
	str	x8, [sp]
Lloh116:
	adrp	x0, l_.str.15@PAGE
Lloh117:
	add	x0, x0, l_.str.15@PAGEOFF
	b	LBB0_4
LBB0_46:
Lloh118:
	adrp	x0, l_.str.8@PAGE
Lloh119:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_4
LBB0_47:
Lloh120:
	adrp	x8, _HEADER_VERSION_V1@GOTPAGE
Lloh121:
	ldr	x8, [x8, _HEADER_VERSION_V1@GOTPAGEOFF]
LBB0_48:
	mov	w0, #0
	ldr	w8, [x8]
Lloh122:
	adrp	x9, _hdr_ver@GOTPAGE
Lloh123:
	ldr	x9, [x9, _hdr_ver@GOTPAGEOFF]
Lloh124:
	str	w8, [x9]
	b	LBB0_5
LBB0_49:
	str	x8, [sp]
Lloh125:
	adrp	x0, l_.str.16@PAGE
Lloh126:
	add	x0, x0, l_.str.16@PAGEOFF
	b	LBB0_4
LBB0_50:
	ldr	w9, [x20]
Lloh127:
	adrp	x8, _rootfs_ofs@GOTPAGE
Lloh128:
	ldr	x8, [x8, _rootfs_ofs@GOTPAGEOFF]
Lloh129:
	ldr	w8, [x8]
	sub	w9, w9, w8
	add	w9, w9, #4
	cmp	w9, #1
	b.lt	LBB0_52
; %bb.51:
	str	x9, [sp]
Lloh130:
	adrp	x0, l_.str.11@PAGE
Lloh131:
	add	x0, x0, l_.str.11@PAGEOFF
	b	LBB0_4
LBB0_52:
	ldr	w9, [x19]
	ldr	w10, [x21]
	sub	w8, w8, w10
	add	w8, w8, w9
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.53:
	str	x8, [sp]
Lloh132:
	adrp	x0, l_.str.12@PAGE
Lloh133:
	add	x0, x0, l_.str.12@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotStr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGot	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpLdrGotStr	Lloh107, Lloh108, Lloh109
	.loh AdrpAdd	Lloh112, Lloh113
	.loh AdrpAdd	Lloh114, Lloh115
	.loh AdrpAdd	Lloh116, Lloh117
	.loh AdrpAdd	Lloh118, Lloh119
	.loh AdrpLdrGot	Lloh120, Lloh121
	.loh AdrpLdrGotStr	Lloh122, Lloh123, Lloh124
	.loh AdrpAdd	Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpAdd	Lloh130, Lloh131
	.loh AdrpAdd	Lloh132, Lloh133
	.cfi_endproc
                                        ; -- End function
	.comm	_inspect_info,16,3              ; @inspect_info
	.comm	_extract,8,3                    ; @extract
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no firmware for inspection specified"

	.comm	_opt_hw_id,8,3                  ; @opt_hw_id
l_.str.1:                               ; @.str.1
	.asciz	"hardware id not specified"

	.comm	_hw_id,8,3                      ; @hw_id
	.comm	_combined,8,3                   ; @combined
	.comm	_layout_id,8,3                  ; @layout_id
l_.str.2:                               ; @.str.2
	.asciz	"flash layout is not specified"

	.comm	_opt_hw_rev,8,3                 ; @opt_hw_rev
	.comm	_hw_rev,4,2                     ; @hw_rev
	.comm	_country,4,2                    ; @country
	.comm	_region,4,2                     ; @region
l_.str.3:                               ; @.str.3
	.asciz	"unknown region code \"%s\""

	.comm	_kernel_la,8,3                  ; @kernel_la
	.comm	_kernel_ep,8,3                  ; @kernel_ep
l_.str.4:                               ; @.str.4
	.asciz	"kernel loading address and entry point must be specified for combined image"

	.comm	_layouts,4,2                    ; @layouts
	.comm	_layout,8,3                     ; @layout
l_.str.5:                               ; @.str.5
	.asciz	"unknown flash layout \"%s\""

	.comm	_rootfs_ofs,4,2                 ; @rootfs_ofs
	.comm	_reserved_space,8,3             ; @reserved_space
l_.str.6:                               ; @.str.6
	.asciz	"reserved space is not valid"

	.comm	_kernel_info,16,3               ; @kernel_info
l_.str.7:                               ; @.str.7
	.asciz	"no kernel image specified"

	.comm	_kernel_len,4,2                 ; @kernel_len
	.comm	_fw_max_len,4,2                 ; @fw_max_len
	.comm	_rootfs_info,16,3               ; @rootfs_info
l_.str.8:                               ; @.str.8
	.asciz	"no rootfs image specified"

	.comm	_rootfs_align,8,3               ; @rootfs_align
l_.str.9:                               ; @.str.9
	.asciz	"rootfs offset aligned to 0x%u"

l_.str.10:                              ; @.str.10
	.asciz	"images are too big by %i bytes"

l_.str.11:                              ; @.str.11
	.asciz	"kernel image is too big by %i bytes"

l_.str.12:                              ; @.str.12
	.asciz	"rootfs image is too big by %i bytes"

	.comm	_ofname,8,3                     ; @ofname
l_.str.13:                              ; @.str.13
	.asciz	"no output file specified"

	.comm	_fw_ver,4,2                     ; @fw_ver
l_.str.14:                              ; @.str.14
	.asciz	"%d.%d.%d"

	.comm	_fw_ver_hi,4,2                  ; @fw_ver_hi
	.comm	_fw_ver_mid,4,2                 ; @fw_ver_mid
	.comm	_fw_ver_lo,4,2                  ; @fw_ver_lo
l_.str.15:                              ; @.str.15
	.asciz	"invalid firmware version '%s'"

	.comm	_opt_hdr_ver,4,2                ; @opt_hdr_ver
	.comm	_HEADER_VERSION_V1,4,2          ; @HEADER_VERSION_V1
	.comm	_hdr_ver,4,2                    ; @hdr_ver
	.comm	_HEADER_VERSION_V2,4,2          ; @HEADER_VERSION_V2
l_.str.16:                              ; @.str.16
	.asciz	"invalid header version '%u'"

	.no_dead_strip	_check_options
.subsections_via_symbols
