	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptsas_adding_inactive_raid_components
_mptsas_adding_inactive_raid_components: ## @mptsas_adding_inactive_raid_components
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	-152(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_MPI_CONFIG_PAGETYPE_RAID_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	shll	$8, %ebx
	addl	%r12d, %ebx
	movl	%ebx, -96(%rbp)
	movq	%r13, -72(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_SAS_CONFIG_PAGE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mpt_config
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	movl	-148(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_14
## %bb.2:
	movl	(%r14), %edi
	shll	$2, %esi
	leaq	-44(%rbp), %rdx
	callq	_pci_alloc_consistent
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rax, %r13
	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	%r14, %rdi
	callq	_mpt_config
	testq	%rax, %rax
	je	LBB0_4
LBB0_13:
	movl	(%r14), %edi
	movl	-148(%rbp), %esi
	shll	$2, %esi
	movl	-44(%rbp), %ecx
	movq	%r13, %rdx
	callq	_pci_free_consistent
LBB0_14:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r13)
	je	LBB0_13
## %bb.5:
	cmpl	$0, (%r13)
	jle	LBB0_13
## %bb.6:
	xorl	%ebx, %ebx
	leaq	-112(%rbp), %r15
	leaq	-56(%rbp), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_mpt_raid_phys_disk_pg0
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_MPI_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MPI_SAS_DEVICE_PGAD_FORM_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shll	%cl, %edx
	movl	-112(%rbp), %eax
	shll	$8, %eax
	movslq	%eax, %rcx
	addq	-104(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mptsas_sas_device_pg0
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-56(%rbp), %eax
	movq	_MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-52(%rbp), %esi
	movq	%r14, %rdi
	callq	_mptsas_find_phyinfo_by_sas_address
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mptsas_add_end_device
	jmp	LBB0_12
	.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	_SAS_CONFIG_PAGE_TIMEOUT,4,2    ## @SAS_CONFIG_PAGE_TIMEOUT
	.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_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID,4,2 ## @MPI_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID
	.comm	_MPI_SAS_DEVICE_PGAD_FORM_SHIFT,4,2 ## @MPI_SAS_DEVICE_PGAD_FORM_SHIFT
	.comm	_MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT,4,2 ## @MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT
	.comm	_MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED,4,2 ## @MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED
	.no_dead_strip	_mptsas_adding_inactive_raid_components
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mptsas_adding_inactive_raid_components
_mptsas_adding_inactive_raid_components: ; @mptsas_adding_inactive_raid_components
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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, #72
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x22, sp, #32
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #40
	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, #64]
	add	w8, w20, w21, lsl #8
	str	x22, [sp, #96]
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, #72]
	str	w9, [sp, #80]
Lloh6:
	adrp	x8, _SAS_CONFIG_PAGE_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SAS_CONFIG_PAGE_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #88]
	add	x1, sp, #72
	mov	x0, x19
	bl	_mpt_config
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	w8, [sp, #36]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	w0, [x19]
	lsl	w1, w8, #2
	add	x2, sp, #28
	bl	_pci_alloc_consistent
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	ldr	w8, [sp, #28]
Lloh9:
	adrp	x9, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #80]
	add	x1, sp, #72
	mov	x0, x19
	bl	_mpt_config
	cbz	x0, LBB0_6
LBB0_4:
	ldr	w0, [x19]
	ldr	w8, [sp, #36]
	lsl	w1, w8, #2
	ldr	w3, [sp, #28]
	mov	x2, x20
	bl	_pci_free_consistent
LBB0_5:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_6:
	ldr	w8, [x20, #16]
Lloh12:
	adrp	x9, _MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.7:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.8:
	mov	x21, #0
Lloh15:
	adrp	x22, _MPI_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID@GOTPAGE
Lloh16:
	ldr	x22, [x22, _MPI_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID@GOTPAGEOFF]
Lloh17:
	adrp	x23, _MPI_SAS_DEVICE_PGAD_FORM_SHIFT@GOTPAGE
Lloh18:
	ldr	x23, [x23, _MPI_SAS_DEVICE_PGAD_FORM_SHIFT@GOTPAGEOFF]
Lloh19:
	adrp	x24, _MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT@GOTPAGE
Lloh20:
	ldr	x24, [x24, _MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT@GOTPAGEOFF]
Lloh21:
	adrp	x25, _MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED@GOTPAGE
Lloh22:
	ldr	x25, [x25, _MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x21, lsl #2]
	add	x2, sp, #8
	mov	x0, x19
	bl	_mpt_raid_phys_disk_pg0
	cbnz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x23]
	lsl	w2, w8, w9
	ldr	w8, [sp, #8]
	lsl	w8, w8, #8
	ldr	x9, [sp, #16]
	add	x3, x9, w8, sxtw
	mov	x1, sp
	mov	x0, x19
	bl	_mptsas_sas_device_pg0
	cbnz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [sp]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [sp, #4]
	mov	x0, x19
	bl	_mptsas_find_phyinfo_by_sas_address
	mov	x1, x0
	mov	x0, x19
	bl	_mptsas_add_end_device
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.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	_SAS_CONFIG_PAGE_TIMEOUT,4,2    ; @SAS_CONFIG_PAGE_TIMEOUT
	.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_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID,4,2 ; @MPI_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID
	.comm	_MPI_SAS_DEVICE_PGAD_FORM_SHIFT,4,2 ; @MPI_SAS_DEVICE_PGAD_FORM_SHIFT
	.comm	_MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT,4,2 ; @MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT
	.comm	_MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED,4,2 ; @MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED
	.no_dead_strip	_mptsas_adding_inactive_raid_components
.subsections_via_symbols
