	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ubi_mtd_param_parse
_ubi_mtd_param_parse:                   ## @ubi_mtd_param_parse
	.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	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MTD_PARAM_LEN_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r15, -56(%rbp)
	movq	_MTD_PARAM_MAX_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	_mtd_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_UBI_MAX_DEVICES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
LBB0_3:
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_strnlen
	movq	%r12, %rcx
	movl	%eax, %r12d
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.10:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.12:
	movq	%r15, %rdi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_strcpy
	movslq	%r12d, %rax
	cmpb	$10, -1(%rax,%r15)
	jne	LBB0_14
## %bb.13:
	movb	$0, -1(%r15,%rax)
LBB0_14:
	movq	_MTD_PARAM_MAX_COUNT@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_18
## %bb.15:
	xorl	%ebx, %ebx
	leaq	L_.str.3(%rip), %r15
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strsep
	movq	%rax, (%r13,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_16
## %bb.17:
	cmpq	$0, -56(%rbp)
	je	LBB0_21
LBB0_18:
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_warn
LBB0_20:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_21:
	movq	_mtd_dev_param@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_mtd_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %r12
	movq	(%r15,%r12,8), %rdi
	movq	(%r13), %rsi
	callq	_strcpy
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	callq	_bytes_str_to_int
	movq	%rax, 8(%r15,%r12,8)
	testq	%rax, %rax
	js	LBB0_30
LBB0_23:
	movq	16(%r13), %r14
	testq	%r14, %r14
	je	LBB0_26
## %bb.24:
	leaq	(%r15,%r12,8), %rdx
	addq	$20, %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_kstrtoint
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_29
LBB0_26:
	movq	24(%r13), %r14
	testq	%r14, %r14
	je	LBB0_31
## %bb.27:
	leaq	(%r15,%r12,8), %rdx
	addq	$16, %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_kstrtoint
	testl	%eax, %eax
	je	LBB0_32
## %bb.28:
	leaq	L_.str.6(%rip), %rdi
LBB0_29:
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	jmp	LBB0_3
LBB0_30:
	movq	%rax, %rbx
	jmp	LBB0_9
LBB0_31:
	movq	_UBI_DEV_NUM_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15,%r12,8)
LBB0_32:
	movq	_mtd_devs@GOTPCREL(%rip), %rax
	incq	(%rax)
	jmp	LBB0_20
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MTD_PARAM_LEN_MAX,4,2          ## @MTD_PARAM_LEN_MAX
	.comm	_MTD_PARAM_MAX_COUNT,4,2        ## @MTD_PARAM_MAX_COUNT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mtd_devs,8,3                   ## @mtd_devs
	.comm	_UBI_MAX_DEVICES,8,3            ## @UBI_MAX_DEVICES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UBI error: too many parameters, max. is %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"UBI error: parameter \"%s\" is too long, max. is %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"UBI warning: empty 'mtd=' parameter - ignored\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"UBI error: too many arguments at \"%s\"\n"

	.comm	_mtd_dev_param,8,3              ## @mtd_dev_param
L_.str.5:                               ## @.str.5
	.asciz	"UBI error: bad value for max_beb_per1024 parameter: %s"

L_.str.6:                               ## @.str.6
	.asciz	"UBI error: bad value for ubi_num parameter: %s"

	.comm	_UBI_DEV_NUM_AUTO,4,2           ## @UBI_DEV_NUM_AUTO
	.no_dead_strip	_ubi_mtd_param_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ubi_mtd_param_parse
_ubi_mtd_param_parse:                   ; @ubi_mtd_param_parse
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	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, #-72]
Lloh3:
	adrp	x25, _MTD_PARAM_LEN_MAX@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MTD_PARAM_LEN_MAX@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x9, x1
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	stur	x20, [x29, #-80]
Lloh7:
	adrp	x24, _MTD_PARAM_MAX_COUNT@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MTD_PARAM_MAX_COUNT@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x23, x9, x8
	mov	sp, x23
	cbz	x0, LBB0_14
; %bb.1:
Lloh11:
	adrp	x22, _mtd_devs@GOTPAGE
Lloh12:
	ldr	x22, [x22, _mtd_devs@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh13:
	adrp	x9, _UBI_MAX_DEVICES@GOTPAGE
Lloh14:
	ldr	x9, [x9, _UBI_MAX_DEVICES@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	str	x8, [sp, #-16]!
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_3:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_strnlen
	mov	x21, x0
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x19, x21, [sp, #-16]!
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_5:
	cbz	w21, LBB0_17
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_strcpy
	sxtw	x8, w21
	sub	x8, x8, #1
	ldrb	w9, [x20, x8]
	cmp	w9, #10
	b.ne	LBB0_8
; %bb.7:
	strb	wzr, [x20, x8]
LBB0_8:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x21, #0
Lloh20:
	adrp	x20, l_.str.3@PAGE
Lloh21:
	add	x20, x20, l_.str.3@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #80
	mov	x1, x20
	bl	_strsep
	str	x0, [x23, x21, lsl #3]
	add	x21, x21, #1
	ldrsw	x8, [x24]
	cmp	x21, x8
	b.lt	LBB0_10
; %bb.11:
	ldur	x8, [x29, #-80]
	cbz	x8, LBB0_18
LBB0_12:
	str	x19, [sp, #-16]!
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_13:
	bl	_pr_err
	add	sp, sp, #16
LBB0_14:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldur	x8, [x29, #-72]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.16:
                                        ; kill: def $w0 killed $w0 killed $x0
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_warn
	mov	w0, #0
	b	LBB0_15
LBB0_18:
Lloh32:
	adrp	x8, _mtd_dev_param@GOTPAGE
Lloh33:
	ldr	x8, [x8, _mtd_dev_param@GOTPAGEOFF]
Lloh34:
	ldr	x20, [x8]
	ldr	x21, [x22]
	mov	w8, #24
	mul	x8, x21, x8
	ldr	x0, [x20, x8]
	ldr	x1, [x23]
	bl	_strcpy
	ldr	x0, [x23, #8]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_bytes_str_to_int
	mov	w8, #24
	madd	x8, x21, x8, x20
	str	x0, [x8, #8]
	tbnz	x0, #63, LBB0_15
LBB0_20:
	ldr	x19, [x23, #16]
	cbz	x19, LBB0_23
; %bb.21:
	mov	w8, #24
	madd	x8, x21, x8, x20
	add	x2, x8, #20
	mov	x0, x19
	mov	w1, #10
	bl	_kstrtoint
	cbz	w0, LBB0_23
; %bb.22:
	str	x19, [sp, #-16]!
Lloh35:
	adrp	x0, l_.str.5@PAGE
Lloh36:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_23:
	ldr	x19, [x23, #24]
	cbz	x19, LBB0_26
; %bb.24:
	mov	w8, #24
	madd	x8, x21, x8, x20
	add	x2, x8, #16
	mov	x0, x19
	mov	w1, #10
	bl	_kstrtoint
	cbz	w0, LBB0_27
; %bb.25:
	str	x19, [sp, #-16]!
Lloh37:
	adrp	x0, l_.str.6@PAGE
Lloh38:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_26:
Lloh39:
	adrp	x8, _UBI_DEV_NUM_AUTO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _UBI_DEV_NUM_AUTO@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	mov	w9, #24
	madd	x9, x21, x9, x20
	str	w8, [x9, #16]
LBB0_27:
	mov	w0, #0
	ldr	x8, [x22]
	add	x8, x8, #1
	str	x8, [x22]
	b	LBB0_15
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_MTD_PARAM_LEN_MAX,4,2          ; @MTD_PARAM_LEN_MAX
	.comm	_MTD_PARAM_MAX_COUNT,4,2        ; @MTD_PARAM_MAX_COUNT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mtd_devs,8,3                   ; @mtd_devs
	.comm	_UBI_MAX_DEVICES,8,3            ; @UBI_MAX_DEVICES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UBI error: too many parameters, max. is %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"UBI error: parameter \"%s\" is too long, max. is %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"UBI warning: empty 'mtd=' parameter - ignored\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"UBI error: too many arguments at \"%s\"\n"

	.comm	_mtd_dev_param,8,3              ; @mtd_dev_param
l_.str.5:                               ; @.str.5
	.asciz	"UBI error: bad value for max_beb_per1024 parameter: %s"

l_.str.6:                               ; @.str.6
	.asciz	"UBI error: bad value for ubi_num parameter: %s"

	.comm	_UBI_DEV_NUM_AUTO,4,2           ; @UBI_DEV_NUM_AUTO
	.no_dead_strip	_ubi_mtd_param_parse
.subsections_via_symbols
