	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpt_findImVolumes              ## -- Begin function mpt_findImVolumes
	.p2align	4, 0x90
_mpt_findImVolumes:                     ## @mpt_findImVolumes
	.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
	cmpl	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r13
	movq	8(%rdi), %rdi
	callq	_kfree
	movq	$0, 8(%r13)
	movq	%r13, %rdi
	callq	_mpt_inactive_raid_list_free
	movq	$0, -96(%rbp)
	movabsq	$8589934592, %rax               ## imm = 0x200000000
	movq	%rax, -112(%rbp)
	movq	_MPI_CONFIG_PAGETYPE_IOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	$-1, -88(%rbp)
	movq	$0, -64(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -80(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%r13, %rdi
	callq	_mpt_config
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_1:
	xorl	%r15d, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	-112(%rbp), %r14d
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.6:
	shll	$2, %r14d
	movl	(%r13), %edi
	leaq	-44(%rbp), %rdx
	movl	%r14d, %esi
	callq	_pci_alloc_consistent
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r12
	movq	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -88(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%r13, %rdi
	callq	_mpt_config
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_9
LBB0_14:
	movl	(%r13), %edi
	movl	-44(%rbp), %ecx
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_pci_free_consistent
	jmp	LBB0_15
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, 8(%r13)
	movq	%r13, %rdi
	callq	_mpt_read_ioc_pg_3
	cmpl	$0, (%r12)
	jle	LBB0_14
## %bb.12:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,8), %edx
	movl	4(%rax,%rbx,8), %esi
	movq	%r13, %rdi
	callq	_mpt_inactive_raid_volumes
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_13
	jmp	LBB0_14
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_CONFIG_PAGETYPE_IOC,4,2    ## @MPI_CONFIG_PAGETYPE_IOC
	.comm	_MPI_CONFIG_ACTION_PAGE_HEADER,4,2 ## @MPI_CONFIG_ACTION_PAGE_HEADER
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,2 ## @MPI_CONFIG_ACTION_PAGE_READ_CURRENT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mpt_findImVolumes
lCPI0_0:
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mpt_findImVolumes
	.p2align	2
_mpt_findImVolumes:                     ; @mpt_findImVolumes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_kfree
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_mpt_inactive_raid_list_free
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
Lloh2:
	adrp	x8, _MPI_CONFIG_PAGETYPE_IOC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MPI_CONFIG_PAGETYPE_IOC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	add	x8, sp, #8
	mov	w9, #-1
Lloh5:
	adrp	x10, _MPI_CONFIG_ACTION_PAGE_HEADER@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MPI_CONFIG_ACTION_PAGE_HEADER@GOTPAGEOFF]
	stp	xzr, x8, [sp, #56]
Lloh7:
	ldr	w8, [x10]
	stp	w9, w8, [sp, #32]
	stp	xzr, xzr, [sp, #40]
	add	x1, sp, #32
	mov	x0, x19
	bl	_mpt_config
	cbz	x0, LBB0_6
LBB0_2:
Lloh8:
	adrp	x8, _EFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_2
; %bb.7:
	lsl	w20, w8, #2
	ldr	w0, [x19]
	sub	x2, x29, #52
	mov	x1, x20
	bl	_pci_alloc_consistent
	cbz	x0, LBB0_11
; %bb.8:
	mov	x21, x0
Lloh10:
	adrp	x8, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldur	w9, [x29, #-52]
	stp	w9, w8, [sp, #32]
	add	x1, sp, #32
	mov	x0, x19
	bl	_mpt_config
	cbz	x0, LBB0_12
LBB0_9:
	mov	w22, #0
LBB0_10:
	ldr	w0, [x19]
	ldur	w3, [x29, #-52]
	mov	x1, x20
	mov	x2, x21
	bl	_pci_free_consistent
	b	LBB0_5
LBB0_11:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_12:
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_kmemdup
	cbz	x0, LBB0_16
; %bb.13:
	str	x0, [x19, #8]
	mov	x0, x19
	bl	_mpt_read_ioc_pg_3
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.14:
	mov	x22, #0
	mov	x23, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x8, x8, x22
	ldp	w2, w1, [x8]
	mov	x0, x19
	bl	_mpt_inactive_raid_volumes
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #8
	cmp	x23, x8
	b.lt	LBB0_15
	b	LBB0_9
LBB0_16:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_CONFIG_PAGETYPE_IOC,4,2    ; @MPI_CONFIG_PAGETYPE_IOC
	.comm	_MPI_CONFIG_ACTION_PAGE_HEADER,4,2 ; @MPI_CONFIG_ACTION_PAGE_HEADER
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,2 ; @MPI_CONFIG_ACTION_PAGE_READ_CURRENT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
