	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_afs_partitions
_parse_afs_partitions:                  ## @parse_afs_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	testq	%r15, %r15
	jle	LBB0_22
## %bb.1:
	movq	%rdi, %r12
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	decq	%r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	8(%r12), %r13
	cmpq	(%r12), %r13
	jge	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	movq	%r13, %rcx
	movq	%r15, %r8
	callq	_afs_read_footer
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rdx
	movq	%r12, %rdi
	leaq	-72(%rbp), %rsi
	callq	_afs_read_iis
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-68(%rbp), %edi
	callq	_strlen
	cltq
	addq	%rax, %r14
	addq	$33, %r14
	incq	-48(%rbp)                       ## 8-byte Folded Spill
	jmp	LBB0_3
LBB0_10:
	testq	%r14, %r14
	je	LBB0_29
## %bb.11:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_25
## %bb.12:
	cmpq	$0, (%r12)
	jle	LBB0_27
## %bb.13:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	shlq	$5, %rcx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	addq	%rcx, %r13
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rax
	xorl	%r14d, %r14d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_16 Depth=1
	xorl	%ebx, %ebx
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	8(%r12), %r14
	cmpq	(%r12), %r14
	jge	LBB0_23
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	leaq	-96(%rbp), %rdx
	movq	%r14, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_afs_read_footer
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-96(%rbp), %rdx
	movq	%r12, %rdi
	leaq	-72(%rbp), %rsi
	callq	_afs_read_iis
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	je	LBB0_14
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	-68(%rbp), %esi
	movq	%r13, %rdi
	callq	_strcpy
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rax
	shlq	$5, %rax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, (%rdx,%rax)
	movl	-72(%rbp), %ecx
	movl	8(%r12), %esi
	addl	%esi, %ecx
	decl	%ecx
	negl	%esi
	andl	%ecx, %esi
	movl	%esi, 8(%rdx,%rax)
	movq	-56(%rbp), %rcx
	movq	%rcx, 24(%rdx,%rax)
	movq	$0, 16(%rdx,%rax)
	movq	-56(%rbp), %rdx
	leal	1023(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	sarl	$10, %ecx
	movl	-64(%rbp), %r8d
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%r13, %r9
	callq	_printk
	incq	%r15
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %r15
	movl	-68(%rbp), %edi
	callq	_strlen
	cltq
	addq	%rax, %r13
	incq	%r13
	jmp	LBB0_15
LBB0_22:
	xorl	%ebx, %ebx
	jmp	LBB0_29
LBB0_23:
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_26
## %bb.24:
	xorl	%eax, %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_25:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_29
LBB0_26:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
LBB0_27:
	movq	%rax, %rdi
	callq	_kfree
	movb	$1, %al
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
LBB0_28:
	movq	%rdx, (%rcx)
	testb	%al, %al
	cmovnel	%ebx, %esi
	movl	%esi, %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"  mtd%d: at 0x%08x, %5lluKiB, %8u, %s\n"

	.no_dead_strip	_parse_afs_partitions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_afs_partitions
_parse_afs_partitions:                  ; @parse_afs_partitions
	.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
	ldr	x8, [x0]
	subs	x21, x8, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x23, #0
	mov	x26, #0
	mov	x24, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x20]
	add	x24, x8, x24
	cmp	x24, x9
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	add	x2, sp, #8
	mov	x0, x20
	mov	x3, x24
	mov	x4, x21
	bl	_afs_read_footer
	mov	x22, x0
	tbnz	w0, #31, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w22, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x2, [sp, #8]
	add	x1, sp, #16
	mov	x0, x20
	bl	_afs_read_iis
	mov	x22, x0
	tbnz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w22, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #20]
	bl	_strlen
	add	w8, w0, #1
	add	x8, x23, w8, sxtw
	add	x23, x8, #32
	add	x26, x26, #1
	b	LBB0_2
LBB0_8:
	cbz	x23, LBB0_24
; %bb.9:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_kzalloc
	cbz	x0, LBB0_19
; %bb.10:
	mov	x23, x0
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_22
; %bb.11:
	mov	x24, #0
	mov	x25, #0
	add	x26, x23, x26, lsl #5
Lloh3:
	adrp	x27, l_.str@PAGE
Lloh4:
	add	x27, x27, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldp	x9, x8, [x20]
	add	x25, x8, x25
	cmp	x25, x9
	b.ge	LBB0_20
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	add	x2, sp, #8
	mov	x0, x20
	mov	x3, x25
	mov	x4, x21
	bl	_afs_read_footer
	mov	x22, x0
	tbnz	w0, #31, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cbz	w22, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x2, [sp, #8]
	add	x1, sp, #16
	mov	x0, x20
	bl	_afs_read_iis
	mov	x22, x0
	tbnz	w0, #31, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	cbz	w22, LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w1, [sp, #20]
	mov	x0, x26
	bl	_strcpy
	add	x8, x23, x24, lsl #5
	str	x26, [x8]
	ldr	w9, [sp, #16]
	ldr	w10, [x20, #8]
	add	w9, w9, w10
	sub	w9, w9, #1
	neg	w10, w10
	and	w9, w9, w10
	str	w9, [x8, #8]
	ldr	x10, [sp]
	stp	xzr, x10, [x8, #16]
	ldr	x2, [sp]
	add	w8, w9, #1023
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w3, w8, #10
	ldr	w4, [sp, #24]
	mov	x0, x27
	mov	x1, x24
	mov	x5, x26
	bl	_printk
	add	x24, x24, #1
	ldr	w0, [sp, #20]
	bl	_strlen
	add	x8, x26, w0, sxtw
	add	x26, x8, #1
	b	LBB0_12
LBB0_18:
	mov	w22, #0
	b	LBB0_24
LBB0_19:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_24
LBB0_20:
	cbz	x24, LBB0_22
; %bb.21:
	mov	w8, #0
	b	LBB0_23
LBB0_22:
	mov	x0, x23
	bl	_kfree
	mov	x24, #0
	mov	x23, #0
	mov	w8, #1
LBB0_23:
	str	x23, [x19]
	cmp	w8, #0
	csel	w22, w22, w24, ne
LBB0_24:
	mov	x0, x22
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  mtd%d: at 0x%08x, %5lluKiB, %8u, %s\n"

	.no_dead_strip	_parse_afs_partitions
.subsections_via_symbols
