	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpt_inactive_raid_volumes
_mpt_inactive_raid_volumes:             ## @mpt_inactive_raid_volumes
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	-96(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-144(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_MPI_CONFIG_PAGETYPE_RAID_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movl	%r15d, %eax
	shll	$8, %eax
	addl	%r14d, %eax
	movl	%eax, -96(%rbp)
	movq	%rbx, -80(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mpt_config
	testq	%rax, %rax
	jne	LBB0_17
## %bb.1:
	movl	-140(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_17
## %bb.2:
	movl	(%r12), %edi
	shll	$2, %esi
	leaq	-44(%rbp), %rdx
	callq	_pci_alloc_consistent
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	movq	%rax, %rbx
	movl	-44(%rbp), %eax
	movl	%eax, -84(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	leaq	-96(%rbp), %rsi
	movq	%r12, %rdi
	callq	_mpt_config
	testq	%rax, %rax
	jne	LBB0_16
## %bb.4:
	cmpl	$0, (%rbx)
	je	LBB0_16
## %bb.5:
	movl	16(%rbx), %eax
	movq	_MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
LBB0_9:
	leaq	4(%r12), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	cmpl	$0, (%rbx)
	jle	LBB0_15
## %bb.10:
	leaq	8(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r13
	movslq	(%rbx), %rax
	cmpq	%rax, %r13
	jge	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r12, %rdi
	leaq	-112(%rbp), %rdx
	callq	_mpt_raid_phys_disk_pg0
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$28, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%r14d, (%rax)
	movl	%r15d, 4(%rax)
	movaps	-112(%rbp), %xmm0
	movups	%xmm0, 12(%rax)
	addq	$8, %rax
	movq	%rax, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	jmp	LBB0_14
LBB0_15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_16:
	movl	(%r12), %edi
	movl	-140(%rbp), %esi
	shll	$2, %esi
	movl	-44(%rbp), %ecx
	movq	%rbx, %rdx
	callq	_pci_free_consistent
LBB0_17:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_MPI_RAIDVOL0_STATUS_FLAG_ENABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.7:
	movq	24(%rbx), %rax
	movq	_MPI_RAIDVOL0_STATUS_STATE_FAILED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	_MPI_RAIDVOL0_STATUS_STATE_MISSING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_CONFIG_PAGETYPE_RAID_VOLUME,4,2 ## @MPI_CONFIG_PAGETYPE_RAID_VOLUME
	.comm	_MPI_CONFIG_ACTION_PAGE_HEADER,4,2 ## @MPI_CONFIG_ACTION_PAGE_HEADER
	.comm	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,2 ## @MPI_CONFIG_ACTION_PAGE_READ_CURRENT
	.comm	_MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE,4,2 ## @MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE
	.comm	_MPI_RAIDVOL0_STATUS_FLAG_ENABLED,4,2 ## @MPI_RAIDVOL0_STATUS_FLAG_ENABLED
	.comm	_MPI_RAIDVOL0_STATUS_STATE_FAILED,8,3 ## @MPI_RAIDVOL0_STATUS_STATE_FAILED
	.comm	_MPI_RAIDVOL0_STATUS_STATE_MISSING,8,3 ## @MPI_RAIDVOL0_STATUS_STATE_MISSING
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_mpt_inactive_raid_volumes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpt_inactive_raid_volumes
_mpt_inactive_raid_volumes:             ; @mpt_inactive_raid_volumes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x22, sp, #32
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _MPI_CONFIG_PAGETYPE_RAID_VOLUME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPI_CONFIG_PAGETYPE_RAID_VOLUME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	add	w8, w20, w21, lsl #8
	str	x22, [sp, #80]
Lloh3:
	adrp	x9, _MPI_CONFIG_ACTION_PAGE_HEADER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPI_CONFIG_ACTION_PAGE_HEADER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w8, [sp, #64]
	str	w9, [sp, #72]
	add	x1, sp, #64
	mov	x0, x19
	bl	_mpt_config
	cbnz	x0, LBB0_14
; %bb.1:
	ldr	w8, [sp, #36]
	cbz	w8, LBB0_14
; %bb.2:
	ldr	w0, [x19]
	lsl	w1, w8, #2
	add	x2, sp, #28
	bl	_pci_alloc_consistent
	cbz	x0, LBB0_14
; %bb.3:
	mov	x22, x0
	ldr	w8, [sp, #28]
Lloh6:
	adrp	x9, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #72]
	add	x1, sp, #64
	mov	x0, x19
	bl	_mpt_config
	cbnz	x0, LBB0_13
; %bb.4:
	ldr	w8, [x22]
	cbz	w8, LBB0_13
; %bb.5:
	ldr	w8, [x22, #16]
Lloh9:
	adrp	x9, _MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
LBB0_6:
	add	x23, x19, #4
	mov	x0, x23
	bl	_mutex_lock
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x25, #0
	add	x24, x19, #8
Lloh12:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x22]
	cmp	x25, x8
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	w1, [x8, x25, lsl #2]
	mov	x2, sp
	mov	x0, x19
	bl	_mpt_raid_phys_disk_pg0
	cbnz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x26]
	mov	w0, #28
	bl	_kmalloc
	cbz	x0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	stp	w20, w21, [x0]
	ldr	q0, [sp]
	stur	q0, [x0, #12]
	add	x0, x0, #8
	mov	x1, x24
	bl	_list_add_tail
	b	LBB0_8
LBB0_12:
	mov	x0, x23
	bl	_mutex_unlock
LBB0_13:
	ldr	w0, [x19]
	ldr	w8, [sp, #36]
	lsl	w1, w8, #2
	ldr	w3, [sp, #28]
	mov	x2, x22
	bl	_pci_free_consistent
LBB0_14:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_15:
Lloh14:
	adrp	x9, _MPI_RAIDVOL0_STATUS_FLAG_ENABLED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MPI_RAIDVOL0_STATUS_FLAG_ENABLED@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.16:
	ldr	x8, [x22, #24]
Lloh17:
	adrp	x9, _MPI_RAIDVOL0_STATUS_STATE_FAILED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MPI_RAIDVOL0_STATUS_STATE_FAILED@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.17:
Lloh20:
	adrp	x9, _MPI_RAIDVOL0_STATUS_STATE_MISSING@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MPI_RAIDVOL0_STATUS_STATE_MISSING@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_CONFIG_PAGETYPE_RAID_VOLUME,4,2 ; @MPI_CONFIG_PAGETYPE_RAID_VOLUME
	.comm	_MPI_CONFIG_ACTION_PAGE_HEADER,4,2 ; @MPI_CONFIG_ACTION_PAGE_HEADER
	.comm	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,2 ; @MPI_CONFIG_ACTION_PAGE_READ_CURRENT
	.comm	_MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE,4,2 ; @MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE
	.comm	_MPI_RAIDVOL0_STATUS_FLAG_ENABLED,4,2 ; @MPI_RAIDVOL0_STATUS_FLAG_ENABLED
	.comm	_MPI_RAIDVOL0_STATUS_STATE_FAILED,8,3 ; @MPI_RAIDVOL0_STATUS_STATE_FAILED
	.comm	_MPI_RAIDVOL0_STATUS_STATE_MISSING,8,3 ; @MPI_RAIDVOL0_STATUS_STATE_MISSING
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_mpt_inactive_raid_volumes
.subsections_via_symbols
