	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptsas_probe_devices
_mptsas_probe_devices:                  ## @mptsas_probe_devices
	.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	$24, %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	_MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rsi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_mptsas_sas_device_pg0
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_MPI_SAS_DEVICE_INFO_SATA_DEVICE@GOTPCREL(%rip), %r13
	leaq	-56(%rbp), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %ecx
	callq	_mptsas_sas_device_pg0
	testl	%eax, %eax
	jne	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-56(%rbp), %ebx
	movq	_MPI_SAS_DEVICE_INFO_STP_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MPI_SAS_DEVICE_INFO_SSP_TARGET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r13), %eax
	testl	%eax, -52(%rbp)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax
	movq	_MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mptsas_refreshing_device_handles
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mptsas_get_rphy
	testq	%rax, %rax
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mptsas_add_end_device
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE,4,2 ## @MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE
	.comm	_MPI_SAS_DEVICE_INFO_SSP_TARGET,4,2 ## @MPI_SAS_DEVICE_INFO_SSP_TARGET
	.comm	_MPI_SAS_DEVICE_INFO_STP_TARGET,4,2 ## @MPI_SAS_DEVICE_INFO_STP_TARGET
	.comm	_MPI_SAS_DEVICE_INFO_SATA_DEVICE,4,2 ## @MPI_SAS_DEVICE_INFO_SATA_DEVICE
	.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_probe_devices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mptsas_probe_devices
_mptsas_probe_devices:                  ; @mptsas_probe_devices
	.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	x19, x0
Lloh0:
	adrp	x22, _MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x1, sp
	mov	w3, #65535
	bl	_mptsas_sas_device_pg0
	cbz	w0, LBB0_2
LBB0_1:
	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
LBB0_2:
Lloh2:
	adrp	x23, _MPI_SAS_DEVICE_INFO_SSP_TARGET@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MPI_SAS_DEVICE_INFO_SSP_TARGET@GOTPAGEOFF]
Lloh4:
	adrp	x24, _MPI_SAS_DEVICE_INFO_STP_TARGET@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MPI_SAS_DEVICE_INFO_STP_TARGET@GOTPAGEOFF]
Lloh6:
	adrp	x25, _MPI_SAS_DEVICE_INFO_SATA_DEVICE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MPI_SAS_DEVICE_INFO_SATA_DEVICE@GOTPAGEOFF]
Lloh8:
	adrp	x26, _MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT@GOTPAGE
Lloh9:
	ldr	x26, [x26, _MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT@GOTPAGEOFF]
Lloh10:
	adrp	x27, _MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED@GOTPAGE
Lloh11:
	ldr	x27, [x27, _MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x22]
	mov	x1, sp
	mov	x0, x19
	mov	x3, x20
	bl	_mptsas_sas_device_pg0
	cbnz	w0, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w20, w8, [sp]
	ldr	w9, [x23]
	ldr	w10, [x24]
	orr	w9, w10, w9
	ldr	w10, [x25]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, sp
	mov	x0, x19
	bl	_mptsas_refreshing_device_handles
	cbz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	bl	_mptsas_get_rphy
	cbnz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_mptsas_add_end_device
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE,4,2 ; @MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE
	.comm	_MPI_SAS_DEVICE_INFO_SSP_TARGET,4,2 ; @MPI_SAS_DEVICE_INFO_SSP_TARGET
	.comm	_MPI_SAS_DEVICE_INFO_STP_TARGET,4,2 ; @MPI_SAS_DEVICE_INFO_STP_TARGET
	.comm	_MPI_SAS_DEVICE_INFO_SATA_DEVICE,4,2 ; @MPI_SAS_DEVICE_INFO_SATA_DEVICE
	.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_probe_devices
.subsections_via_symbols
