	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_mtd_partitions           ## -- Begin function parse_mtd_partitions
	.p2align	4, 0x90
_parse_mtd_partitions:                  ## @parse_mtd_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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	callq	_mtd_is_partition
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_default_mtd_part_types@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_default_subpartition_types@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %r13
LBB0_5:
	movq	(%r13), %rbx
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	_mtd_part_of_parse
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%r12d, %r12d
	movl	%ebx, %eax
	cmovnel	%r12d, %eax
	testl	%ebx, %ebx
	cmovnel	%eax, %r12d
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rbx
	addq	$8, %r13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rdx
	callq	_pr_debug
	movq	(%r13), %rdi
	callq	_mtd_part_parser_get
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r14
	movl	(%r15), %esi
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rdx
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_debug
	movq	%r14, %rdi
	movq	%r15, %rsi
	leaq	-48(%rbp), %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_mtd_part_do_parse
	testl	%eax, %eax
	jg	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mtd_part_parser_put
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_request_module
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r15), %esi
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.3(%rip), %rdi
	xorl	%edx, %edx
	callq	_pr_debug
	jmp	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rdi
	callq	_mtd_part_parser_get
	movq	%rax, %r14
	movl	(%r15), %esi
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_12
LBB0_19:
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	callq	_add_mtd_partitions
	movl	%eax, %r12d
	leaq	-48(%rbp), %rdi
	callq	_mtd_part_parser_cleanup
	testl	%r12d, %r12d
	jne	LBB0_21
## %bb.20:
	movl	-48(%rbp), %r12d
LBB0_21:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_default_subpartition_types,8,3 ## @default_subpartition_types
	.comm	_default_mtd_part_types,8,3     ## @default_mtd_part_types
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ofpart"

L_.str.1:                               ## @.str.1
	.asciz	"%s: parsing partitions %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"%s: got parser %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_mtd_partitions           ; -- Begin function parse_mtd_partitions
	.p2align	2
_parse_mtd_partitions:                  ; @parse_mtd_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	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	cbz	x1, LBB0_15
; %bb.1:
	ldr	x27, [x21]
	cbz	x27, LBB0_16
LBB0_2:
	mov	w22, #0
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
Lloh2:
	adrp	x24, l_.str.1@PAGE
Lloh3:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh4:
	adrp	x25, l_.str.2@PAGE
Lloh5:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh6:
	adrp	x26, l_.str.3@PAGE
Lloh7:
	add	x26, x26, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_mtd_part_of_parse
	mov	x28, x0
	cmp	w0, #1
	b.ge	LBB0_17
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w22, #0
	ccmp	w28, #0, #4, eq
	csel	w22, w22, w28, eq
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x27, [x21, #8]!
	cbz	x27, LBB0_18
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x27
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x19]
	mov	x0, x24
	mov	x2, x27
	bl	_pr_debug
	ldr	x0, [x21]
	bl	_mtd_part_parser_get
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x0
	ldr	w1, [x19]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x27]
	mov	x0, x26
	bl	_pr_debug
	add	x2, sp, #8
	mov	x0, x27
	mov	x1, x19
	mov	x3, x20
	bl	_mtd_part_do_parse
	cmp	w0, #0
	b.gt	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, x0
	mov	x0, x27
	bl	_mtd_part_parser_put
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x21]
	mov	x0, x25
	bl	_request_module
	cbz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x19]
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	mov	x2, #0
	bl	_pr_debug
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x21]
	bl	_mtd_part_parser_get
	mov	x27, x0
	ldr	w1, [x19]
	cbnz	x0, LBB0_9
	b	LBB0_13
LBB0_15:
	mov	x0, x19
	bl	_mtd_is_partition
Lloh8:
	adrp	x8, _default_subpartition_types@GOTPAGE
Lloh9:
	ldr	x8, [x8, _default_subpartition_types@GOTPAGEOFF]
Lloh10:
	adrp	x9, _default_mtd_part_types@GOTPAGE
Lloh11:
	ldr	x9, [x9, _default_mtd_part_types@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x21, [x8]
	ldr	x27, [x21]
	cbnz	x27, LBB0_2
LBB0_16:
	mov	w22, #0
	b	LBB0_18
LBB0_17:
	ldp	w2, w1, [sp, #8]
	mov	x0, x19
	bl	_add_mtd_partitions
	mov	x19, x0
	add	x0, sp, #8
	bl	_mtd_part_parser_cleanup
	ldr	w8, [sp, #8]
	cmp	w19, #0
	csel	w22, w8, w19, eq
LBB0_18:
	mov	x0, x22
	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	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_default_subpartition_types,8,3 ; @default_subpartition_types
	.comm	_default_mtd_part_types,8,3     ; @default_mtd_part_types
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ofpart"

l_.str.1:                               ; @.str.1
	.asciz	"%s: parsing partitions %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"%s: got parser %s\n"

.subsections_via_symbols
