	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function block2mtd_setup2
_block2mtd_setup2:                      ## @block2mtd_setup2
	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, -144(%rbp)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -136(%rbp)
	movl	$92, %esi
	callq	_strnlen
	cmpl	$92, %eax
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_parse_err
LBB0_2:
	leaq	-128(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	%r14, %rdi
	callq	_kill_final_newline
	leaq	L_.str.1(%rip), %r14
	leaq	-144(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strsep
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strsep
	movq	%rax, %r14
	cmpq	$0, -144(%rbp)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	_parse_err
LBB0_4:
	testq	%r15, %r15
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	callq	_parse_err
LBB0_6:
	movq	%r15, %rdi
	callq	_strlen
	cmpl	$80, %eax
	jl	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rdi
	callq	_parse_err
LBB0_8:
	testq	%r14, %r14
	je	LBB0_11
## %bb.9:
	leaq	-136(%rbp), %rdi
	movq	%r14, %rsi
	callq	_parse_num
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.5(%rip), %rdi
	callq	_parse_err
LBB0_11:
	movq	-136(%rbp), %rsi
	movq	%r15, %rdi
	callq	_add_device
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parameter too long"

L_.str.1:                               ## @.str.1
	.asciz	","

L_.str.2:                               ## @.str.2
	.asciz	"too many arguments"

L_.str.3:                               ## @.str.3
	.asciz	"no argument"

L_.str.4:                               ## @.str.4
	.asciz	"device name too long"

L_.str.5:                               ## @.str.5
	.asciz	"illegal erase size"

	.no_dead_strip	_block2mtd_setup2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function block2mtd_setup2
_block2mtd_setup2:                      ; @block2mtd_setup2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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, #-24]
	add	x8, sp, #28
	str	x8, [sp, #16]
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	w1, #92
	bl	_strnlen
	cmp	w0, #92
	b.lo	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_parse_err
LBB0_2:
	add	x0, sp, #28
	mov	x1, x19
	bl	_strcpy
	add	x0, sp, #28
	bl	_kill_final_newline
Lloh8:
	adrp	x20, l_.str.1@PAGE
Lloh9:
	add	x20, x20, l_.str.1@PAGEOFF
	add	x0, sp, #16
	mov	x1, x20
	bl	_strsep
	mov	x19, x0
	add	x0, sp, #16
	mov	x1, x20
	bl	_strsep
	mov	x20, x0
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_4
; %bb.3:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_parse_err
LBB0_4:
	cbnz	x19, LBB0_6
; %bb.5:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_parse_err
LBB0_6:
	mov	x0, x19
	bl	_strlen
	cmp	w0, #80
	b.lt	LBB0_8
; %bb.7:
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_parse_err
LBB0_8:
	cbz	x20, LBB0_11
; %bb.9:
	add	x0, sp, #8
	mov	x1, x20
	bl	_parse_num
	cbz	w0, LBB0_11
; %bb.10:
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_parse_err
LBB0_11:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_add_device
	ldur	x8, [x29, #-24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parameter too long"

l_.str.1:                               ; @.str.1
	.asciz	","

l_.str.2:                               ; @.str.2
	.asciz	"too many arguments"

l_.str.3:                               ; @.str.3
	.asciz	"no argument"

l_.str.4:                               ; @.str.4
	.asciz	"device name too long"

l_.str.5:                               ; @.str.5
	.asciz	"illegal erase size"

	.no_dead_strip	_block2mtd_setup2
.subsections_via_symbols
