	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtdpart_setup_real
_mtdpart_setup_real:                    ## @mtdpart_setup_real
	.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, -56(%rbp)
	movq	_cmdline_parsed@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r13
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	leaq	-48(%rbp), %r12
	movq	_partitions@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %ebx
	subl	%r13d, %ebx
	incq	%r14
	movq	%r14, %rdi
	callq	_dbg
	leal	40(%rbx), %r9d
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_newpart
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movq	-48(%rbp), %rdi
	movl	$8, %esi
	callq	_ALIGN
	movq	%rax, -48(%rbp)
	movq	%r14, 24(%rax)
	movl	-60(%rbp), %ecx
	movl	%ecx, (%rax)
	leaq	32(%rax), %rdi
	movq	%rdi, 8(%rax)
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_strlcpy
	movq	(%r15), %rax
	movq	-48(%rbp), %rcx
	movq	%rax, 16(%rcx)
	movq	%rcx, (%r15)
	movslq	(%rcx), %rdi
	callq	_dbg
	movq	-56(%rbp), %r13
	movsbl	(%r13), %esi
	cmpl	$59, %esi
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movq	%r13, -56(%rbp)
	movq	%r13, %rdi
	movl	$58, %esi
	callq	_strchr
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_3
LBB0_6:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_7
LBB0_9:
	testb	%sil, %sil
	jne	LBB0_10
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_4:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmdline_parsed,4,2             ## @cmdline_parsed
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no mtd-id\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_partitions,8,3                 ## @partitions
L_.str.3:                               ## @.str.3
	.asciz	"bad character after partition (%c)\n"

	.no_dead_strip	_mtdpart_setup_real
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtdpart_setup_real
_mtdpart_setup_real:                    ; @mtdpart_setup_real
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	str	x0, [sp, #24]
Lloh0:
	adrp	x8, _cmdline_parsed@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cmdline_parsed@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x22, _partitions@GOTPAGE
Lloh4:
	ldr	x22, [x22, _partitions@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w21, w0, w19
	add	x20, x0, #1
	mov	x0, x20
	bl	_dbg
	add	w5, w21, #40
	add	x1, sp, #24
	add	x2, sp, #12
	add	x4, sp, #16
	mov	x0, x20
	mov	w3, #0
	bl	_newpart
	mov	x20, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	ldr	x0, [sp, #16]
	mov	w1, #8
	bl	_ALIGN
	str	x0, [sp, #16]
	str	x20, [x0, #24]
	ldr	w8, [sp, #12]
	str	w8, [x0]
	add	x8, x0, #32
	str	x8, [x0, #8]
	mov	x0, x8
	mov	x1, x19
	mov	x2, x21
	bl	_strlcpy
	ldr	x8, [x22]
	ldr	x9, [sp, #16]
	str	x8, [x9, #16]
	str	x9, [x22]
	ldrsw	x0, [x9]
	bl	_dbg
	ldr	x9, [sp, #24]
	ldrb	w8, [x9]
	cmp	w8, #59
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x9, #1
	str	x19, [sp, #24]
	mov	x0, x19
	mov	w1, #58
	bl	_strchr
	cbnz	x0, LBB0_3
LBB0_6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_7:
	cbnz	w8, LBB0_10
; %bb.8:
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	mov	x0, x20
	bl	_PTR_ERR
	b	LBB0_12
LBB0_10:
	sxtb	w8, w8
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	_pr_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_cmdline_parsed,4,2             ; @cmdline_parsed
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no mtd-id\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_partitions,8,3                 ; @partitions
l_.str.3:                               ; @.str.3
	.asciz	"bad character after partition (%c)\n"

	.no_dead_strip	_mtdpart_setup_real
.subsections_via_symbols
