	.file	"extr_mptbase.c_mpt_raid_phys_disk_get_num_paths.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mpt_raid_phys_disk_get_num_paths
	.type	mpt_raid_phys_disk_get_num_paths, @function
mpt_raid_phys_disk_get_num_paths:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edx, 40
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	xor	esi, esi
	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, 120
	.cfi_def_cfa_offset 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	lea	rbp, 16[rsp]
	lea	r13, 64[rsp]
	mov	rdi, rbp
	call	memset@PLT
	xor	esi, esi
	mov	rdi, r13
	mov	edx, 40
	call	memset@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	mov	QWORD PTR 40[rsp], r13
	mov	eax, DWORD PTR MPI_RAIDPHYSDISKPAGE1_PAGEVERSION[rip]
	mov	DWORD PTR 64[rsp], 1
	mov	DWORD PTR 20[rsp], -1
	mov	DWORD PTR 100[rsp], eax
	mov	eax, DWORD PTR MPI_CONFIG_PAGETYPE_RAID_PHYSDISK[rip]
	mov	DWORD PTR 96[rsp], eax
	mov	eax, DWORD PTR MPI_CONFIG_ACTION_PAGE_HEADER[rip]
	mov	DWORD PTR 32[rsp], eax
	call	mpt_config@PLT
	test	rax, rax
	jne	.L2
	mov	esi, DWORD PTR 72[rsp]
	test	esi, esi
	jne	.L15
.L2:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	lea	rdx, 12[rsp]
	sal	esi, 2
	call	pci_alloc_consistent@PLT
	mov	r13, rax
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR 12[rsp]
	mov	rsi, rbp
	mov	rdi, rbx
	mov	DWORD PTR 28[rsp], r12d
	xor	r12d, r12d
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR MPI_CONFIG_ACTION_PAGE_READ_CURRENT[rip]
	mov	DWORD PTR 32[rsp], eax
	call	mpt_config@PLT
	test	rax, rax
	jne	.L3
	mov	r12d, DWORD PTR 0[r13]
.L3:
	mov	eax, DWORD PTR 72[rsp]
	mov	ecx, DWORD PTR 12[rsp]
	mov	rdx, r13
	mov	edi, DWORD PTR [rbx]
	lea	esi, 0[0+rax*4]
	call	pci_free_consistent@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mpt_raid_phys_disk_get_num_paths, .-mpt_raid_phys_disk_get_num_paths
	.comm	MPI_RAIDPHYSDISKPAGE1_PAGEVERSION,4,4
	.comm	MPI_CONFIG_PAGETYPE_RAID_PHYSDISK,4,4
	.comm	MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,4
	.comm	MPI_CONFIG_ACTION_PAGE_HEADER,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_mptbase.c_mpt_raid_phys_disk_get_num_paths.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mpt_raid_phys_disk_get_num_paths
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpt_raid_phys_disk_get_num_paths, %function
mpt_raid_phys_disk_get_num_paths:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L16
	sub	sp, sp, #76
	mov	r5, r0
	mov	r2, #32
	mov	r6, r1
	add	r0, sp, #4
	mov	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	bl	memset
	mov	r3, #0
	mov	ip, #1
	mvn	r2, #0
	ldr	r1, .L16+4
	ldr	r0, .L16+8
	ldr	lr, .L16+12
	ldr	r1, [r1]
	ldr	r4, [r0]
	ldr	lr, [lr]
	str	r1, [sp, #60]
	str	r3, [sp, #40]
	str	r3, [sp, #44]
	str	r3, [sp, #48]
	str	r3, [sp, #52]
	str	r3, [sp, #56]
	mov	r0, r5
	add	r3, sp, #36
	add	r1, sp, #4
	str	r4, [sp, #64]
	str	lr, [sp, #20]
	str	ip, [sp, #36]
	str	r2, [sp, #8]
	str	r3, [sp, #24]
	bl	mpt_config
	subs	r4, r0, #0
	bne	.L2
	ldr	r1, [sp, #44]
	cmp	r1, #0
	bne	.L14
.L2:
	mov	r4, #0
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	mov	r2, sp
	ldr	r0, [r5]
	lsl	r1, r1, #2
	bl	pci_alloc_consistent
	subs	r7, r0, #0
	beq	.L2
	ldr	r3, .L16+16
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r3, [sp]
	add	r1, sp, #4
	str	r6, [sp, #16]
	str	r2, [sp, #20]
	str	r3, [sp, #8]
	bl	mpt_config
	cmp	r0, #0
	ldreq	r4, [r7]
.L3:
	ldr	r1, [sp, #44]
	mov	r2, r7
	ldr	r0, [r5]
	ldr	r3, [sp]
	lsl	r1, r1, #2
	bl	pci_free_consistent
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	MPI_CONFIG_PAGETYPE_RAID_PHYSDISK
	.word	MPI_RAIDPHYSDISKPAGE1_PAGEVERSION
	.word	MPI_CONFIG_ACTION_PAGE_HEADER
	.word	MPI_CONFIG_ACTION_PAGE_READ_CURRENT
	.size	mpt_raid_phys_disk_get_num_paths, .-mpt_raid_phys_disk_get_num_paths
	.comm	MPI_RAIDPHYSDISKPAGE1_PAGEVERSION,4,4
	.comm	MPI_CONFIG_PAGETYPE_RAID_PHYSDISK,4,4
	.comm	MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,4
	.comm	MPI_CONFIG_ACTION_PAGE_HEADER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
