	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_board_id@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_find_board
	movq	_board@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_kernel_info@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.6:
	movq	_kernel_info@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_get_file_stat
	testl	%eax, %eax
	jne	LBB0_18
## %bb.7:
	movq	(%r14), %rax
	movq	(%r15), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_16
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_16
LBB0_3:
	movq	(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_17
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
LBB0_16:
	xorl	%eax, %eax
	callq	_ERR
LBB0_17:
	movl	$-1, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_rootfs_info@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.11:
	movq	_rootfs_info@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_get_file_stat
	testl	%eax, %eax
	jne	LBB0_18
## %bb.12:
	movq	(%r14), %rax
	movq	(%r15), %rcx
	cmpq	8(%rcx), %rax
	jle	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_16
LBB0_10:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_16
LBB0_14:
	movq	_ofname@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_18
## %bb.15:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_board_id,8,3                   ## @board_id
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no board specified"

	.comm	_board,8,3                      ## @board
L_.str.1:                               ## @.str.1
	.asciz	"unknown/unsupported board id \"%s\""

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

L_.str.3:                               ## @.str.3
	.asciz	"kernel image is too big"

	.comm	_rootfs_info,16,3               ## @rootfs_info
L_.str.4:                               ## @.str.4
	.asciz	"no rootfs image specified"

L_.str.5:                               ## @.str.5
	.asciz	"rootfs image is too big"

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

	.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, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _board_id@GOTPAGE
Lloh1:
	ldr	x19, [x19, _board_id@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.1:
	bl	_find_board
Lloh2:
	adrp	x20, _board@GOTPAGE
Lloh3:
	ldr	x20, [x20, _board@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.2:
Lloh4:
	adrp	x8, _kernel_info@GOTPAGE
Lloh5:
	ldr	x8, [x8, _kernel_info@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.3:
Lloh7:
	adrp	x19, _kernel_info@GOTPAGE
Lloh8:
	ldr	x19, [x19, _kernel_info@GOTPAGEOFF]
	mov	x0, x19
	bl	_get_file_stat
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_11
; %bb.5:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:
	bl	_ERR
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
Lloh17:
	adrp	x8, _rootfs_info@GOTPAGE
Lloh18:
	ldr	x8, [x8, _rootfs_info@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_15
; %bb.12:
Lloh20:
	adrp	x19, _rootfs_info@GOTPAGE
Lloh21:
	ldr	x19, [x19, _rootfs_info@GOTPAGEOFF]
	mov	x0, x19
	bl	_get_file_stat
	cbnz	w0, LBB0_10
; %bb.13:
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9, #8]
	cmp	x8, x9
	b.le	LBB0_16
; %bb.14:
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_15:
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_16:
Lloh26:
	adrp	x8, _ofname@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ofname@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:
	mov	w0, #0
	b	LBB0_10
LBB0_18:
Lloh29:
	adrp	x0, l_.str.6@PAGE
Lloh30:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_board_id,8,3                   ; @board_id
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no board specified"

	.comm	_board,8,3                      ; @board
l_.str.1:                               ; @.str.1
	.asciz	"unknown/unsupported board id \"%s\""

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

l_.str.3:                               ; @.str.3
	.asciz	"kernel image is too big"

	.comm	_rootfs_info,16,3               ; @rootfs_info
l_.str.4:                               ; @.str.4
	.asciz	"no rootfs image specified"

l_.str.5:                               ; @.str.5
	.asciz	"rootfs image is too big"

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

	.no_dead_strip	_check_options
.subsections_via_symbols
