	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function newpart
_newpart:                               ## @newpart
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%r8, %r12
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdi, -48(%rbp)
	movq	_OFFSET_CONTINUOUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpb	$45, (%rdi)
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	_SIZE_REMAINING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	incq	%rbx
	movq	%rbx, -48(%rbp)
	jmp	LBB0_4
LBB0_2:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_memparse
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx
LBB0_4:
	movb	(%rbx), %al
	cmpb	$64, %al
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
## %bb.5:
	incq	%rbx
	movq	%rbx, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_memparse
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx
	movb	(%rbx), %al
LBB0_6:
	movq	%r12, %r14
	xorl	%edx, %edx
	movl	$41, %ecx
	cmpb	$40, %al
	cmovnel	%edx, %ecx
	jne	LBB0_7
## %bb.12:
	incq	%rbx
	movq	%rbx, -48(%rbp)
	movzbl	%cl, %r12d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %rdi
	movl	%edi, %r12d
	subl	%ebx, %r12d
	incq	%rdi
	movq	%rdi, -48(%rbp)
	incl	%r12d
	jmp	LBB0_15
LBB0_7:
	movl	$14, %r12d
	movq	%rbx, %rdi
	xorl	%ebx, %ebx
LBB0_15:
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movq	-48(%rbp), %rdi
	jmp	LBB0_18
LBB0_17:
	movq	_MTD_WRITEABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rdi
	addq	$2, %rdi
	movq	%rdi, -48(%rbp)
LBB0_18:
	leaq	L_.str.3(%rip), %rsi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	-48(%rbp), %rdi
	jmp	LBB0_21
LBB0_20:
	movq	_MTD_POWERUP_LOCK@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rdi
	addq	$2, %rdi
	movq	%rdi, -48(%rbp)
LBB0_21:
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	addl	%r12d, %r13d
	cmpb	$44, (%rdi)
	jne	LBB0_25
## %bb.22:
	movq	_SIZE_REMAINING@GOTPCREL(%rip), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	jne	LBB0_24
## %bb.23:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_9
LBB0_25:
	leal	1(%r9), %eax
	movl	%eax, (%r15)
	shll	$5, %eax
	addl	%eax, %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_26
## %bb.27:
	movq	%rax, %r13
	movslq	(%r15), %rax
	shlq	$5, %rax
	addq	%r13, %rax
	movq	%rax, -72(%rbp)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_8:
	leaq	L_.str(%rip), %rdi
LBB0_9:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_10
LBB0_24:
	incq	%rdi
	leal	1(%r9), %ecx
	movq	%r15, %rdx
	leaq	-48(%rbp), %rsi
	leaq	-72(%rbp), %r8
	movq	%r9, %r15
	movl	%r13d, %r9d
	callq	_newpart
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_34
LBB0_28:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %r14
	shlq	$5, %r14
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r13,%r14)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r13,%r14)
	leaq	16(%r13,%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r13,%r14)
	movq	-72(%rbp), %rdi
	testq	%rbx, %rbx
	je	LBB0_30
## %bb.29:
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_strlcpy
	jmp	LBB0_31
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
LBB0_11:
	callq	_ERR_PTR
	movq	%rax, %r13
	jmp	LBB0_34
LBB0_26:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_11
LBB0_30:
	leaq	L_.str.5(%rip), %rsi
	movl	%r15d, %edx
	callq	_sprintf
LBB0_31:
	movq	-72(%rbp), %rax
	movq	%rax, 24(%r13,%r14)
	movslq	%r12d, %rax
	addq	%rax, -72(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_dbg
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_33
## %bb.32:
	movq	-72(%rbp), %rax
	movq	%rax, (%rcx)
LBB0_33:
	movq	-48(%rbp), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_34:
	movq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OFFSET_CONTINUOUS,8,3          ## @OFFSET_CONTINUOUS
	.comm	_SIZE_REMAINING,8,3             ## @SIZE_REMAINING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"partition has size 0\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"no closing %c found in partition name\n"

L_.str.2:                               ## @.str.2
	.asciz	"ro"

	.comm	_MTD_WRITEABLE,4,2              ## @MTD_WRITEABLE
L_.str.3:                               ## @.str.3
	.asciz	"lk"

	.comm	_MTD_POWERUP_LOCK,4,2           ## @MTD_POWERUP_LOCK
L_.str.4:                               ## @.str.4
	.asciz	"no partitions allowed after a fill-up partition\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"Partition_%03d"

	.no_dead_strip	_newpart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function newpart
_newpart:                               ; @newpart
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x5
	mov	x20, x4
	mov	x21, x3
	mov	x24, x2
	mov	x19, x1
	str	x0, [sp, #24]
Lloh0:
	adrp	x8, _OFFSET_CONTINUOUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OFFSET_CONTINUOUS@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldrb	w8, [x0]
	cmp	w8, #45
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SIZE_REMAINING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIZE_REMAINING@GOTPAGEOFF]
Lloh5:
	ldr	x23, [x8]
	add	x0, x0, #1
	str	x0, [sp, #24]
	b	LBB0_4
LBB0_2:
	add	x1, sp, #24
	bl	_memparse
	cbz	x0, LBB0_21
; %bb.3:
	mov	x23, x0
	ldr	x0, [sp, #24]
LBB0_4:
	ldrb	w8, [x0]
	cmp	w8, #64
	b.ne	LBB0_6
; %bb.5:
	add	x0, x0, #1
	str	x0, [sp, #24]
	add	x1, sp, #24
	bl	_memparse
	mov	x22, x0
	ldr	x0, [sp, #24]
	ldrb	w8, [x0]
LBB0_6:
	mov	w9, #41
	cmp	w8, #40
	csel	w27, w9, wzr, eq
	b.ne	LBB0_9
; %bb.7:
	add	x26, x0, #1
	str	x26, [sp, #24]
	mov	x0, x26
	mov	x1, x27
	bl	_strchr
	cbz	x0, LBB0_25
; %bb.8:
	sub	w8, w0, w26
	add	x0, x0, #1
	str	x0, [sp, #24]
	add	w27, w8, #1
	b	LBB0_10
LBB0_9:
	mov	x26, #0
	mov	w27, #14
LBB0_10:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #2
	bl	_strncmp
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_12
; %bb.11:
	mov	w28, #0
	ldr	x0, [sp, #24]
	b	LBB0_13
LBB0_12:
Lloh8:
	adrp	x8, _MTD_WRITEABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MTD_WRITEABLE@GOTPAGEOFF]
Lloh10:
	ldr	w28, [x8]
	ldr	x8, [sp, #24]
	add	x0, x8, #2
	str	x0, [sp, #24]
LBB0_13:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #2
	bl	_strncmp
	cbz	x0, LBB0_15
; %bb.14:
	ldr	x8, [sp, #24]
	b	LBB0_16
LBB0_15:
Lloh13:
	adrp	x8, _MTD_POWERUP_LOCK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MTD_POWERUP_LOCK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w28, w8, w28
	ldr	x8, [sp, #24]
	add	x8, x8, #2
	str	x8, [sp, #24]
LBB0_16:
	add	w5, w27, w25
	ldrb	w9, [x8]
	cmp	w9, #44
	b.ne	LBB0_19
; %bb.17:
Lloh16:
	adrp	x9, _SIZE_REMAINING@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SIZE_REMAINING@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x23, x9
	b.ne	LBB0_22
; %bb.18:
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_26
LBB0_19:
	add	w8, w21, #1
	str	w8, [x24]
	add	w0, w5, w8, lsl #5
Lloh21:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_28
; %bb.20:
	mov	x25, x0
	ldrsw	x8, [x24]
	add	x8, x0, x8, lsl #5
	str	x8, [sp, #16]
	b	LBB0_23
LBB0_21:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_26
LBB0_22:
	add	x0, x8, #1
	add	w3, w21, #1
	add	x1, sp, #24
	add	x4, sp, #16
	mov	x2, x24
	bl	_newpart
	mov	x25, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_33
LBB0_23:
	mov	x20, x19
	sxtw	x19, w21
	add	x24, x25, x19, lsl #5
	stp	x23, x22, [x24]
	str	w28, [x24, #16]!
	ldr	x0, [sp, #16]
	cbz	x26, LBB0_29
; %bb.24:
	mov	x1, x26
	mov	x2, x27
	bl	_strlcpy
	b	LBB0_30
LBB0_25:
	str	x27, [sp]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_26:
	bl	_pr_err
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_27:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x25, x0
	b	LBB0_33
LBB0_28:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_27
LBB0_29:
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x21
	bl	_sprintf
LBB0_30:
	ldp	x21, x8, [sp, #8]               ; 8-byte Folded Reload
	add	x9, x25, x19, lsl #5
	str	x8, [x9, #24]
	ldr	x8, [sp, #16]
	add	x8, x8, w27, sxtw
	str	x8, [sp, #16]
	ldr	w0, [x24]
	bl	_dbg
	cbz	x21, LBB0_32
; %bb.31:
	ldr	x8, [sp, #16]
	str	x8, [x21]
LBB0_32:
	ldr	x8, [sp, #24]
	str	x8, [x20]
LBB0_33:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_OFFSET_CONTINUOUS,8,3          ; @OFFSET_CONTINUOUS
	.comm	_SIZE_REMAINING,8,3             ; @SIZE_REMAINING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"partition has size 0\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"no closing %c found in partition name\n"

l_.str.2:                               ; @.str.2
	.asciz	"ro"

	.comm	_MTD_WRITEABLE,4,2              ; @MTD_WRITEABLE
l_.str.3:                               ; @.str.3
	.asciz	"lk"

	.comm	_MTD_POWERUP_LOCK,4,2           ; @MTD_POWERUP_LOCK
l_.str.4:                               ; @.str.4
	.asciz	"no partitions allowed after a fill-up partition\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"Partition_%03d"

	.no_dead_strip	_newpart
.subsections_via_symbols
