	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_ofoldpart_partitions
_parse_ofoldpart_partitions:            ## @parse_ofoldpart_partitions
	.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	%rsi, %r15
	callq	_mtd_get_of_node
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rax, %rdi
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rax, %r13
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_pr_warn
	movl	-44(%rbp), %r14d
	movl	%r14d, %ebx
	sarl	$3, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$24, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_get_property
	cmpl	$8, %r14d
	jl	LBB0_13
## %bb.4:
	movq	%rax, %rbx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	movl	$1, %r14d
	cmovgel	%eax, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	addq	$16, %r12
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.3(%rip), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, -8(%r12)
	incq	%r15
	addq	$24, %r12
	cmpq	%r15, %r14
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%r15,8), %edi
	callq	_be32_to_cpu
	movl	%eax, -16(%r12)
	movl	4(%r13,%r15,8), %edi
	callq	_be32_to_cpu
	andl	$-2, %eax
	movl	%eax, -12(%r12)
	movl	4(%r13,%r15,8), %edi
	callq	_be32_to_cpu
	testb	$1, %al
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_MTD_WRITEABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, -44(%rbp)
	jle	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %rcx
	notl	%eax
	addl	%eax, -44(%rbp)
	movq	%rbx, %rax
	addq	%rcx, %rbx
	incq	%rbx
	jmp	LBB0_6
LBB0_13:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_15
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"partitions"

L_.str.1:                               ## @.str.1
	.asciz	"Device tree uses obsolete partition map binding: %pOF\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"partition-names"

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

	.no_dead_strip	_parse_ofoldpart_partitions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_ofoldpart_partitions
_parse_ofoldpart_partitions:            ; @parse_ofoldpart_partitions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	bl	_mtd_get_of_node
	cbz	x0, LBB0_12
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_get_property
	cbz	x0, LBB0_12
; %bb.2:
	mov	x21, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_pr_warn
	ldr	w24, [sp, #12]
	asr	w20, w24, #3
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #24
	bl	_kcalloc
	cbz	x0, LBB0_14
; %bb.3:
	mov	x22, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	mov	x0, x23
	bl	_of_get_property
	cmp	w24, #8
	b.lt	LBB0_13
; %bb.4:
	mov	x23, x0
	cmp	w20, #1
	csinc	w24, w20, wzr, gt
	add	x25, x22, #8
Lloh9:
	adrp	x26, l_.str.3@PAGE
Lloh10:
	add	x26, x26, l_.str.3@PAGEOFF
Lloh11:
	adrp	x27, _MTD_WRITEABLE@GOTPAGE
Lloh12:
	ldr	x27, [x27, _MTD_WRITEABLE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, x26
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	x8, [x25], #24
	add	x21, x21, #8
	subs	x24, x24, #1
	b.eq	LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_be32_to_cpu
	stur	w0, [x25, #-8]
	ldr	w0, [x21, #4]
	bl	_be32_to_cpu
	and	w8, w0, #0xfffffffe
	stur	w8, [x25, #-4]
	ldr	w0, [x21, #4]
	bl	_be32_to_cpu
	tbz	w0, #0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x27]
	str	w8, [x25, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	cbz	x23, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_strlen
	add	w9, w0, #1
	ldr	w8, [sp, #12]
	sub	w8, w8, w9
	str	w8, [sp, #12]
	mov	x8, x23
	add	x23, x23, w9, sxtw
	b	LBB0_6
LBB0_12:
	mov	w20, #0
	b	LBB0_15
LBB0_13:
	str	x22, [x19]
	b	LBB0_15
LBB0_14:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"partitions"

l_.str.1:                               ; @.str.1
	.asciz	"Device tree uses obsolete partition map binding: %pOF\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"partition-names"

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

	.no_dead_strip	_parse_ofoldpart_partitions
.subsections_via_symbols
