	.file	"extr_mptsas.c_mptsas_probe_devices.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mptsas_probe_devices, @function
mptsas_probe_devices:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, 65535
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rbp, 12[rsp]
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, DWORD PTR MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE[rip]
	mov	ecx, r12d
	mov	rsi, rbp
	mov	rdi, rbx
	call	mptsas_sas_device_pg0@PLT
	test	eax, eax
	jne	.L19
	mov	eax, DWORD PTR MPI_SAS_DEVICE_INFO_SSP_TARGET[rip]
	mov	r12d, DWORD PTR 12[rsp]
	or	eax, DWORD PTR MPI_SAS_DEVICE_INFO_STP_TARGET[rip]
	or	eax, DWORD PTR MPI_SAS_DEVICE_INFO_SATA_DEVICE[rip]
	test	DWORD PTR 16[rsp], eax
	je	.L2
	mov	eax, DWORD PTR 20[rsp]
	test	DWORD PTR MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT[rip], eax
	je	.L2
	test	DWORD PTR MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED[rip], eax
	je	.L2
	mov	rsi, rbp
	mov	rdi, rbx
	call	mptsas_refreshing_device_handles@PLT
	mov	r13, rax
	test	rax, rax
	je	.L2
	mov	rdi, rax
	call	mptsas_get_rphy@PLT
	test	rax, rax
	jne	.L2
	mov	rsi, r13
	mov	rdi, rbx
	call	mptsas_add_end_device@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mptsas_probe_devices, .-mptsas_probe_devices
	.comm	MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE,4,4
	.comm	MPI_SAS_DEVICE_INFO_STP_TARGET,4,4
	.comm	MPI_SAS_DEVICE_INFO_SSP_TARGET,4,4
	.comm	MPI_SAS_DEVICE_INFO_SATA_DEVICE,4,4
	.comm	MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT,4,4
	.comm	MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mptsas.c_mptsas_probe_devices.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mptsas_probe_devices, %function
mptsas_probe_devices:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L21
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r4, r0
	ldr	fp, .L21+4
	ldr	r5, .L21+8
	ldr	r8, .L21+12
	ldr	r7, .L21+16
	ldr	r6, .L21+20
	ldr	r9, .L21+24
	ldr	r10, .L21+28
.L2:
	mov	r3, fp
	mov	r0, r4
	ldr	r2, [r5]
	add	r1, sp, #8
	bl	mptsas_sas_device_pg0
	cmp	r0, #0
	bne	.L19
	ldr	r2, [r7]
	ldr	r3, [r8]
	ldr	r1, [r6]
	orr	r3, r3, r2
	ldr	r2, [sp, #12]
	orr	r3, r3, r1
	tst	r3, r2
	ldr	fp, [sp, #8]
	beq	.L2
	ldr	r3, [sp, #16]
	ldr	r2, [r9]
	tst	r3, r2
	beq	.L2
	ldr	r2, [r10]
	tst	r3, r2
	beq	.L2
	add	r1, sp, #8
	mov	r0, r4
	bl	mptsas_refreshing_device_handles
	subs	r1, r0, #0
	str	r1, [sp, #4]
	beq	.L2
	bl	mptsas_get_rphy
	cmp	r0, #0
	bne	.L2
	mov	r0, r4
	ldr	r1, [sp, #4]
	bl	mptsas_add_end_device
	b	.L2
.L19:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	65535
	.word	MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE
	.word	MPI_SAS_DEVICE_INFO_SSP_TARGET
	.word	MPI_SAS_DEVICE_INFO_STP_TARGET
	.word	MPI_SAS_DEVICE_INFO_SATA_DEVICE
	.word	MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT
	.word	MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED
	.size	mptsas_probe_devices, .-mptsas_probe_devices
	.comm	MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE,4,4
	.comm	MPI_SAS_DEVICE_INFO_STP_TARGET,4,4
	.comm	MPI_SAS_DEVICE_INFO_SSP_TARGET,4,4
	.comm	MPI_SAS_DEVICE_INFO_SATA_DEVICE,4,4
	.comm	MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT,4,4
	.comm	MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
