	.file	"extr_megaraid_sas_fusion.c_megasas_get_peer_instance.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	megasas_get_peer_instance, @function
megasas_get_peer_instance:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR MAX_MGMT_ADAPTERS[rip]
	test	eax, eax
	jle	.L14
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 1
	cmp	DWORD PTR MAX_MGMT_ADAPTERS[rip], ebx
	jle	.L19
.L5:
	mov	rax, QWORD PTR megasas_mgmt_info[rip]
	lea	r12, 0[0+rbx*8]
	mov	rax, QWORD PTR [rax+rbx*8]
	cmp	rax, rbp
	je	.L3
	test	rax, rax
	je	.L3
	cmp	QWORD PTR 16[rax], 0
	je	.L3
	cmp	QWORD PTR 8[rax], 0
	je	.L3
	mov	edx, DWORD PTR MEGASAS_CLUSTER_ID_SIZE[rip]
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rax]
	call	memcmp@PLT
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR megasas_mgmt_info[rip]
	mov	rax, QWORD PTR [rax+r12]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	megasas_get_peer_instance, .-megasas_get_peer_instance
	.comm	megasas_mgmt_info,8,8
	.comm	MEGASAS_CLUSTER_ID_SIZE,4,4
	.comm	MAX_MGMT_ADAPTERS,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_megaraid_sas_fusion.c_megasas_get_peer_instance.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	megasas_get_peer_instance, %function
megasas_get_peer_instance:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L18
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L2
	mov	r5, r0
	mov	r4, #0
	ldr	r7, .L18+4
	ldr	r8, .L18+8
	b	.L5
.L3:
	ldr	r3, [r6]
	cmp	r3, r4
	ble	.L2
.L5:
	ldr	r3, [r7]
	lsl	r9, r4, #2
	ldr	r3, [r3, r4, lsl #2]
	add	r4, r4, #1
	cmp	r3, r5
	cmpne	r3, #0
	beq	.L3
	ldr	r2, [r3, #8]
	cmp	r2, #0
	beq	.L3
	ldr	r2, [r3, #4]
	cmp	r2, #0
	beq	.L3
	ldr	r0, [r3]
	ldr	r2, [r8]
	ldr	r1, [r5]
	bl	memcmp
	cmp	r0, #0
	bne	.L3
	ldr	r3, [r7]
	ldr	r0, [r3, r9]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	.align	2
.L18:
	.word	MAX_MGMT_ADAPTERS
	.word	megasas_mgmt_info
	.word	MEGASAS_CLUSTER_ID_SIZE
	.size	megasas_get_peer_instance, .-megasas_get_peer_instance
	.comm	megasas_mgmt_info,4,4
	.comm	MEGASAS_CLUSTER_ID_SIZE,4,4
	.comm	MAX_MGMT_ADAPTERS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
