	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmu_queryblocks
_vmu_queryblocks:                       ## @vmu_queryblocks
	.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
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_maple_get_drvdata
	movq	%rax, %r13
	movq	(%r15), %rax
	movq	(%rax), %rax
	movzwl	24(%rax), %ecx
	movw	%cx, (%r13)
	movzwl	12(%rax), %r8d
	movw	%r8w, 2(%r13)
	leaq	8(%r12), %r14
	movq	8(%r13), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	40(%r13), %rbx
	movq	8(%r13), %rax
	movzwl	(%r13), %ecx
	leaq	(%rax,%rax,2), %r15
	movw	%cx, (%rbx,%r15,8)
	movzwl	2(%r13), %eax
	movw	%ax, 2(%rbx,%r15,8)
	incl	%eax
	movl	%eax, 4(%rbx,%r15,8)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kmalloc
	movq	%rax, 8(%rbx,%r15,8)
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%r15,8), %r15
	addq	$4, %r15
	movl	(%r12), %edx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %ecx
	movq	8(%r13), %r8
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_sprintf
	movq	32(%r13), %r12
	imulq	$56, 8(%r13), %r14
	movq	4(%r15), %rax
	movq	%rax, 48(%r12,%r14)
	movl	$8, (%r12,%r14)
	movq	_MTD_WRITEABLE@GOTPCREL(%rip), %rax
	movq	_MTD_NO_ERASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%r12,%r14)
	movl	16(%r13), %eax
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ecx
	imull	%eax, %ecx
	movl	%ecx, 8(%r12,%r14)
	movl	%eax, 12(%r12,%r14)
	movq	_vmu_flash_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%r12,%r14)
	movq	_vmu_flash_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%r12,%r14)
	movq	_vmu_flash_sync@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%r12,%r14)
	movl	%eax, 16(%r12,%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	8(%r13), %rcx
	movq	%rcx, (%rax)
	movq	%rax, 24(%r12,%r14)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12,%r14)
	movl	(%rbx), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	addq	%r14, %r12
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, 16(%rcx,%rdx,8)
	movq	%r12, %rdi
	callq	_add_mtd_device
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movl	4(%rcx), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %r8d
	callq	_dev_err
	movq	40(%r13), %rax
	movq	$-1, %r14
	movl	$16, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rbx), %rdi
	callq	_kfree
	movq	40(%r13), %rax
	movq	$0, (%rax,%rbx)
	incq	%r14
	addq	$24, %rbx
	cmpq	%r14, 8(%r13)
	ja	LBB0_8
LBB0_9:
	movq	32(%r13), %rax
	movq	$-1, %r14
	movl	$24, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rbx), %rdi
	callq	_kfree
	movq	32(%r13), %rax
	movq	$0, (%rax,%rbx)
	incq	%r14
	addq	$56, %rbx
	cmpq	%r14, 8(%r13)
	ja	LBB0_10
## %bb.11:
	movq	_MAPLE_FUNC_MEMCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_maple_getcond_callback
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	4(%rax), %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_4:
	movq	_MAPLE_FUNC_MEMCARD@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_maple_getcond_callback
	movq	8(%r13), %rdi
	incq	%rdi
	movq	%rdi, 8(%r13)
	cmpq	24(%r13), %rdi
	jae	LBB0_6
## %bb.5:
	shll	$24, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_be32
	movl	%eax, -52(%rbp)
	movl	(%r14), %ecx
	leaq	_vmu_queryblocks(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_maple_getcond_callback
	movl	(%r14), %esi
	movq	_MAPLE_COMMAND_GETMINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %r8
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	_maple_add_packet
LBB0_6:
	addq	$56, %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	"VMU device at partition %d has %d user blocks with a root block at %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"vmu%d.%d.%d"

	.comm	_MTD_WRITEABLE,4,2              ## @MTD_WRITEABLE
	.comm	_MTD_NO_ERASE,4,2               ## @MTD_NO_ERASE
	.comm	_vmu_flash_write,4,2            ## @vmu_flash_write
	.comm	_vmu_flash_read,4,2             ## @vmu_flash_read
	.comm	_vmu_flash_sync,4,2             ## @vmu_flash_sync
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_MAPLE_FUNC_MEMCARD,4,2         ## @MAPLE_FUNC_MEMCARD
	.comm	_MAPLE_COMMAND_GETMINFO,4,2     ## @MAPLE_COMMAND_GETMINFO
L_.str.2:                               ## @.str.2
	.asciz	"Could not register maple device at (%d, %d)error is 0x%X\n"

	.no_dead_strip	_vmu_queryblocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmu_queryblocks
_vmu_queryblocks:                       ; @vmu_queryblocks
	.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	x21, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_maple_get_drvdata
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldrh	w3, [x8, #24]
	strh	w3, [x0]
	ldrh	w4, [x8, #12]
	strh	w4, [x0, #2]
	add	x21, x19, #8
	ldr	x2, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_info
	ldr	x24, [x20, #40]
	ldr	x25, [x20, #8]
	ldrh	w8, [x20]
	mov	w9, #24
	madd	x23, x25, x9, x24
	strh	w8, [x23]
	ldrh	w8, [x20, #2]
	strh	w8, [x23, #2]
	add	w8, w8, #1
	mov	x28, x23
	str	w8, [x28, #4]!
Lloh2:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	w0, #12
	bl	_kmalloc
	str	x0, [x23, #8]!
	cbz	x0, LBB0_11
; %bb.1:
	str	x21, [sp]                       ; 8-byte Folded Spill
	ldp	w2, w3, [x19]
	ldr	x4, [x20, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sprintf
	ldr	x27, [x20, #32]
	ldr	x21, [x20, #8]
	mov	w8, #56
	madd	x22, x21, x8, x27
	ldr	x8, [x23]
	str	x8, [x22, #48]
	mov	w8, #8
	str	w8, [x22]
Lloh6:
	adrp	x8, _MTD_WRITEABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MTD_WRITEABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MTD_NO_ERASE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MTD_NO_ERASE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x28]
	ldr	w10, [x20, #16]
	mul	w9, w10, w9
	stp	w8, w9, [x22, #4]
	str	w10, [x22, #12]
Lloh12:
	adrp	x8, _vmu_flash_write@GOTPAGE
Lloh13:
	ldr	x8, [x8, _vmu_flash_write@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x22, #44]
Lloh15:
	adrp	x8, _vmu_flash_read@GOTPAGE
Lloh16:
	ldr	x8, [x8, _vmu_flash_read@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x22, #40]
Lloh18:
	adrp	x8, _vmu_flash_sync@GOTPAGE
Lloh19:
	ldr	x8, [x8, _vmu_flash_sync@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x22, #36]
	str	w10, [x22, #16]
	ldr	w1, [x26]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x20, #8]
	stp	x8, x19, [x0]
	mov	w8, #56
	madd	x8, x21, x8, x27
	str	x0, [x8, #24]
Lloh21:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	str	w9, [x8, #32]
	ldr	w1, [x26]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	w8, #24
	madd	x8, x25, x8, x24
	str	x0, [x8, #16]
	mov	x0, x22
	bl	_add_mtd_device
	cbz	w0, LBB0_9
; %bb.4:
	mov	x4, x0
	ldp	w2, w3, [x19]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_dev_err
	ldr	x8, [x20, #40]
	mov	x21, #-1
	mov	w22, #16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8, x22]
	bl	_kfree
	ldr	x8, [x20, #40]
	str	xzr, [x8, x22]
	ldr	x9, [x20, #8]
	add	x21, x21, #1
	add	x22, x22, #24
	cmp	x9, x21
	b.hi	LBB0_5
LBB0_6:
	ldr	x8, [x20, #32]
	mov	x21, #-1
	mov	w22, #24
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8, x22]
	bl	_kfree
	ldr	x8, [x20, #32]
	str	xzr, [x8, x22]
	ldr	x9, [x20, #8]
	add	x21, x21, #1
	add	x22, x22, #56
	cmp	x9, x21
	b.hi	LBB0_7
; %bb.8:
Lloh26:
	adrp	x8, _MAPLE_FUNC_MEMCARD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MAPLE_FUNC_MEMCARD@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_maple_getcond_callback
	ldr	x0, [x23]
	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
	b	_kfree
LBB0_9:
Lloh29:
	adrp	x21, _MAPLE_FUNC_MEMCARD@GOTPAGE
Lloh30:
	ldr	x21, [x21, _MAPLE_FUNC_MEMCARD@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_maple_getcond_callback
	ldr	x8, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
	ldr	x9, [x20, #24]
	cmp	x8, x9
	b.hs	LBB0_11
; %bb.10:
	lsl	w0, w8, #24
	bl	_cpu_to_be32
	str	w0, [sp, #12]
	ldr	w3, [x21]
Lloh31:
	adrp	x1, _vmu_queryblocks@PAGE
Lloh32:
	add	x1, x1, _vmu_queryblocks@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_maple_getcond_callback
	ldr	w1, [x21]
Lloh33:
	adrp	x8, _MAPLE_COMMAND_GETMINFO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MAPLE_COMMAND_GETMINFO@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	add	x4, sp, #12
	mov	x0, x19
	mov	w3, #2
	bl	_maple_add_packet
LBB0_11:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VMU device at partition %d has %d user blocks with a root block at %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"vmu%d.%d.%d"

	.comm	_MTD_WRITEABLE,4,2              ; @MTD_WRITEABLE
	.comm	_MTD_NO_ERASE,4,2               ; @MTD_NO_ERASE
	.comm	_vmu_flash_write,4,2            ; @vmu_flash_write
	.comm	_vmu_flash_read,4,2             ; @vmu_flash_read
	.comm	_vmu_flash_sync,4,2             ; @vmu_flash_sync
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_MAPLE_FUNC_MEMCARD,4,2         ; @MAPLE_FUNC_MEMCARD
	.comm	_MAPLE_COMMAND_GETMINFO,4,2     ; @MAPLE_COMMAND_GETMINFO
l_.str.2:                               ; @.str.2
	.asciz	"Could not register maple device at (%d, %d)error is 0x%X\n"

	.no_dead_strip	_vmu_queryblocks
.subsections_via_symbols
