	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-240(%rbp), %rax
	movq	%rax, -256(%rbp)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r13, -248(%rbp)
	movq	_MTD_DEFAULT_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	$180, %esi
	callq	_strnlen
	cmpl	$180, %eax
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	leaq	-240(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	%r15, %rdi
	callq	_kill_final_newline
	leaq	L_.str.1(%rip), %r12
	leaq	-256(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strsep
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strsep
	cmpq	$0, -256(%rbp)
	je	LBB0_7
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
LBB0_4:
	callq	_pr_err
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.6:
	xorl	%eax, %eax
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	testq	%r15, %r15
	je	LBB0_10
## %bb.8:
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_strlen
	cmpl	$80, %eax
	jl	LBB0_11
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_4
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_4
LBB0_11:
	testq	%r12, %r12
	je	LBB0_15
## %bb.12:
	leaq	-248(%rbp), %rdi
	movq	%r12, %rsi
	callq	_parse_num
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_4
LBB0_14:
	movq	-248(%rbp), %r13
LBB0_15:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_add_device
	jmp	LBB0_5
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_MTD_DEFAULT_TIMEOUT,8,3        ## @MTD_DEFAULT_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parameter too long\n"

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

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

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

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

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

	.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, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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 w27, -56
	.cfi_offset w28, -64
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x8, sp, #20
Lloh3:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x9]
	stp	x20, x8, [sp]
Lloh6:
	adrp	x8, _MTD_DEFAULT_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MTD_DEFAULT_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	x19, [x8]
	mov	w1, #180
	bl	_strnlen
	cmp	w0, #180
	b.lo	LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	add	x0, sp, #20
	mov	x1, x21
	bl	_strcpy
	add	x0, sp, #20
	bl	_kill_final_newline
Lloh11:
	adrp	x22, l_.str.1@PAGE
Lloh12:
	add	x22, x22, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	x1, x22
	bl	_strsep
	mov	x21, x0
	add	x0, sp, #8
	mov	x1, x22
	bl	_strsep
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_7
; %bb.3:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_4:
	bl	_pr_err
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.6:
	mov	w0, #0
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_7:
	cbz	x21, LBB0_10
; %bb.8:
	mov	x22, x0
	mov	x0, x21
	bl	_strlen
	cmp	w0, #80
	b.lt	LBB0_11
; %bb.9:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_10:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_11:
	cbz	x22, LBB0_15
; %bb.12:
	mov	x0, sp
	mov	x1, x22
	bl	_parse_num
	cbz	w0, LBB0_14
; %bb.13:
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_14:
	ldr	x20, [sp]
LBB0_15:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_add_device
	b	LBB0_5
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_MTD_DEFAULT_TIMEOUT,8,3        ; @MTD_DEFAULT_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parameter too long\n"

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

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

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

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

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

	.no_dead_strip	_block2mtd_setup2
.subsections_via_symbols
