	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_opt_block                ## -- Begin function parse_opt_block
	.p2align	4, 0x90
_parse_opt_block:                       ## @parse_opt_block
	.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, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %r13d
	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
	movq	_num_blocks@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_MAX_NUM_BLOCKS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	jge	LBB0_1
## %bb.3:
	movq	_blocks@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	leaq	1(%rbx), %rcx
	movq	%rcx, (%rax)
	shlq	$5, %rbx
	movl	$255, (%r14,%rbx)
	movsbl	%r13b, %eax
	cmpl	$114, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$98, %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_9
## %bb.5:
	movq	_bootext_block@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_18
LBB0_8:
	movq	_BLOCK_TYPE_RAW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14,%rbx)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_7:
	leaq	(%r14,%rbx), %rcx
	movq	_BLOCK_TYPE_BOOTEXT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 8(%r14,%rbx)
	movq	%rcx, (%rax)
LBB0_9:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_parse_arg
	movq	(%r12), %r15
	movq	%r15, %rdi
	callq	_is_empty_arg
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
LBB0_17:
	xorl	%eax, %eax
	callq	_ERR
LBB0_18:
	movl	$-1, %r13d
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, 24(%r14,%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	8(%r14,%rbx), %rax
	movq	_BLOCK_TYPE_BOOTEXT@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.14:
	movq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_is_empty_arg
	testq	%rax, %rax
	jne	LBB0_19
## %bb.15:
	leaq	(%r14,%rbx), %rsi
	addq	$16, %rsi
	movq	%r15, %rdi
	callq	_str2u32
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	leaq	L_.str.4(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_21:
	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	_num_blocks,8,3                 ## @num_blocks
	.comm	_MAX_NUM_BLOCKS,8,3             ## @MAX_NUM_BLOCKS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many blocks specified"

	.comm	_blocks,8,3                     ## @blocks
	.comm	_bootext_block,8,3              ## @bootext_block
L_.str.1:                               ## @.str.1
	.asciz	"only one boot extension block allowed"

	.comm	_BLOCK_TYPE_BOOTEXT,8,3         ## @BLOCK_TYPE_BOOTEXT
	.comm	_BLOCK_TYPE_RAW,8,3             ## @BLOCK_TYPE_RAW
L_.str.2:                               ## @.str.2
	.asciz	"no file specified in %s"

L_.str.3:                               ## @.str.3
	.asciz	"not enough memory"

L_.str.4:                               ## @.str.4
	.asciz	"invalid block align in %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_opt_block                ; -- Begin function parse_opt_block
	.p2align	2
_parse_opt_block:                       ; @parse_opt_block
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
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	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x8, _MAX_ARG_COUNT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_ARG_COUNT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh13:
	adrp	x8, _num_blocks@GOTPAGE
Lloh14:
	ldr	x8, [x8, _num_blocks@GOTPAGEOFF]
	ldr	x22, [x8]
Lloh15:
	adrp	x9, _MAX_NUM_BLOCKS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MAX_NUM_BLOCKS@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x22, x9
	b.ge	LBB0_5
; %bb.1:
Lloh18:
	adrp	x9, _blocks@GOTPAGE
Lloh19:
	ldr	x9, [x9, _blocks@GOTPAGEOFF]
Lloh20:
	ldr	x23, [x9]
	add	x9, x22, #1
	str	x9, [x8]
	add	x8, x23, x22, lsl #5
	mov	w9, #255
	str	w9, [x8]
	cmp	w0, #114
	b.eq	LBB0_6
; %bb.2:
	cmp	w0, #98
	b.ne	LBB0_8
; %bb.3:
Lloh21:
	adrp	x9, _bootext_block@GOTPAGE
Lloh22:
	ldr	x9, [x9, _bootext_block@GOTPAGEOFF]
	ldr	x10, [x9]
	cbz	x10, LBB0_7
; %bb.4:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
	b	LBB0_8
LBB0_5:
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
	b	LBB0_11
LBB0_6:
Lloh27:
	adrp	x9, _BLOCK_TYPE_RAW@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BLOCK_TYPE_RAW@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	str	x9, [x8, #8]
	b	LBB0_8
LBB0_7:
Lloh30:
	adrp	x10, _BLOCK_TYPE_BOOTEXT@GOTPAGE
Lloh31:
	ldr	x10, [x10, _BLOCK_TYPE_BOOTEXT@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	add	x11, x23, x22, lsl #5
	str	x10, [x11, #8]
	str	x8, [x9]
LBB0_8:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_parse_arg
	ldr	x21, [x20]
	mov	x0, x21
	bl	_is_empty_arg
	cbz	x0, LBB0_14
; %bb.9:
	str	x19, [sp, #-16]!
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_10:
	bl	_ERR
	add	sp, sp, #16
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.13:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x21
	bl	_strdup
	add	x8, x23, x22, lsl #5
	str	x0, [x8, #24]
	cbz	x0, LBB0_18
; %bb.15:
	ldr	x8, [x8, #8]
Lloh38:
	adrp	x9, _BLOCK_TYPE_BOOTEXT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _BLOCK_TYPE_BOOTEXT@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.16:
	ldr	x20, [x20, #8]
	mov	x0, x20
	bl	_is_empty_arg
	cbz	x0, LBB0_19
LBB0_17:
	mov	w0, #0
	b	LBB0_12
LBB0_18:
Lloh41:
	adrp	x0, l_.str.3@PAGE
Lloh42:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
	b	LBB0_11
LBB0_19:
	add	x8, x23, x22, lsl #5
	add	x1, x8, #16
	mov	x0, x20
	bl	_str2u32
	cbz	x0, LBB0_12
; %bb.20:
	str	x19, [sp, #-16]!
Lloh43:
	adrp	x0, l_.str.4@PAGE
Lloh44:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ARG_LEN,4,2                ; @MAX_ARG_LEN
	.comm	_MAX_ARG_COUNT,4,2              ; @MAX_ARG_COUNT
	.comm	_num_blocks,8,3                 ; @num_blocks
	.comm	_MAX_NUM_BLOCKS,8,3             ; @MAX_NUM_BLOCKS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many blocks specified"

	.comm	_blocks,8,3                     ; @blocks
	.comm	_bootext_block,8,3              ; @bootext_block
l_.str.1:                               ; @.str.1
	.asciz	"only one boot extension block allowed"

	.comm	_BLOCK_TYPE_BOOTEXT,8,3         ; @BLOCK_TYPE_BOOTEXT
	.comm	_BLOCK_TYPE_RAW,8,3             ; @BLOCK_TYPE_RAW
l_.str.2:                               ; @.str.2
	.asciz	"no file specified in %s"

l_.str.3:                               ; @.str.3
	.asciz	"not enough memory"

l_.str.4:                               ; @.str.4
	.asciz	"invalid block align in %s"

.subsections_via_symbols
