	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_opt_image                ## -- Begin function parse_opt_image
	.p2align	4, 0x90
_parse_opt_image:                       ## @parse_opt_image
	.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	%rsi, %r14
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_ARG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_MAX_ARG_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	cmpl	$70, %ebx
	je	LBB0_4
## %bb.1:
	cmpl	$75, %ebx
	jne	LBB0_11
## %bb.2:
	movq	_kernel_image@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	jmp	LBB0_11
LBB0_4:
	movq	_fs_image@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	jmp	LBB0_11
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_parse_arg
	movq	(%r12), %r14
	movq	%r14, %rdi
	callq	_is_empty_arg
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_ERR
LBB0_11:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, %rcx
	movq	%rax, (%r13)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_11
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ARG_LEN,4,2                ## @MAX_ARG_LEN
	.comm	_MAX_ARG_COUNT,4,2              ## @MAX_ARG_COUNT
	.comm	_kernel_image,8,3               ## @kernel_image
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"only one kernel option allowed"

	.comm	_fs_image,8,3                   ## @fs_image
L_.str.1:                               ## @.str.1
	.asciz	"only one fs option allowed"

	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
L_.str.2:                               ## @.str.2
	.asciz	"not enough memory"

L_.str.3:                               ## @.str.3
	.asciz	"no file specified for option %c"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_opt_image                ; -- Begin function parse_opt_image
	.p2align	2
_parse_opt_image:                       ; @parse_opt_image
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MAX_ARG_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_ARG_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x8, x9, x8
	mov	sp, x8
Lloh8:
	adrp	x9, _MAX_ARG_COUNT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAX_ARG_COUNT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	x12, x9, #3
	mov	x9, x12
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0xffffffff0
	sub	x20, x9, x10
	mov	sp, x20
	cmp	w0, #70
	b.eq	LBB0_4
; %bb.1:
	cmp	w19, #75
	b.ne	LBB0_8
; %bb.2:
Lloh13:
	adrp	x21, _kernel_image@GOTPAGE
Lloh14:
	ldr	x21, [x21, _kernel_image@GOTPAGEOFF]
	ldr	x9, [x21]
	cbz	x9, LBB0_6
; %bb.3:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	b	LBB0_8
LBB0_4:
Lloh17:
	adrp	x21, _fs_image@GOTPAGE
Lloh18:
	ldr	x21, [x21, _fs_image@GOTPAGEOFF]
	ldr	x9, [x21]
	cbz	x9, LBB0_6
; %bb.5:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
	b	LBB0_8
LBB0_6:
	mov	x0, x1
	mov	x1, x8
	mov	x2, x20
	bl	_parse_arg
	ldr	x20, [x20]
	mov	x0, x20
	bl	_is_empty_arg
	cbz	w0, LBB0_11
; %bb.7:
	str	x19, [sp, #-16]!
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
	add	sp, sp, #16
LBB0_8:
Lloh23:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
LBB0_9:
	ldur	x8, [x29, #-40]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.10:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x20
	bl	_strdup
	str	x0, [x21]
	cbz	x0, LBB0_13
; %bb.12:
	mov	w0, #0
	b	LBB0_9
LBB0_13:
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ERR
	b	LBB0_8
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ARG_LEN,4,2                ; @MAX_ARG_LEN
	.comm	_MAX_ARG_COUNT,4,2              ; @MAX_ARG_COUNT
	.comm	_kernel_image,8,3               ; @kernel_image
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"only one kernel option allowed"

	.comm	_fs_image,8,3                   ; @fs_image
l_.str.1:                               ; @.str.1
	.asciz	"only one fs option allowed"

	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
l_.str.2:                               ; @.str.2
	.asciz	"not enough memory"

l_.str.3:                               ; @.str.3
	.asciz	"no file specified for option %c"

.subsections_via_symbols
