	.file	"extr_mptsas.c_mptsas_send_expander_event.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mptsas_send_expander_event, @function
mptsas_send_expander_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	edx, 8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r15, QWORD PTR [rdi]
	mov	r14, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rdi, 16[rsp]
	lea	rsi, 24[r15]
	call	memcpy@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	le64_to_cpu@PLT
	mov	rdi, r14
	mov	rsi, rax
	mov	QWORD PTR 16[rsp], rax
	call	mptsas_find_portinfo_by_sas_address@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR [r15]
	cmp	rax, QWORD PTR MPI_EVENT_SAS_EXP_RC_ADDED[rip]
	je	.L11
	cmp	rax, QWORD PTR MPI_EVENT_SAS_EXP_RC_NOT_RESPONDING[rip]
	je	.L12
.L6:
	mov	rsi, r13
	mov	rdi, r14
	call	mptsas_free_fw_event@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	test	rbp, rbp
	je	.L3
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jle	.L4
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, QWORD PTR 8[rbp]
	mov	rbx, r12
	mov	edi, DWORD PTR 20[r15]
	add	r12, 1
	sal	rbx, 5
	add	rdx, rbx
	mov	QWORD PTR 24[rdx], rbp
	mov	QWORD PTR 8[rsp], rdx
	call	le16_to_cpu@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	QWORD PTR 16[rdx], rax
	mov	rdx, QWORD PTR 8[rbp]
	add	rdx, rbx
	mov	QWORD PTR 8[rsp], rdx
	call	le64_to_cpu@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 16[r15]
	add	rbx, QWORD PTR 8[rbp]
	mov	QWORD PTR 8[rdx], rax
	call	le16_to_cpu@PLT
	mov	QWORD PTR [rbx], rax
	cmp	DWORD PTR 0[rbp], r12d
	jg	.L5
.L4:
	mov	rsi, rbp
	mov	rdi, r14
	call	mptsas_expander_refresh@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, r14
	call	mptsas_expander_delete@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	QWORD PTR 8[r15], 0
	je	.L6
	mov	rsi, r15
	mov	rdi, r14
	call	mptsas_expander_event_add@PLT
	jmp	.L6
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mptsas_send_expander_event, .-mptsas_send_expander_event
	.comm	MPI_EVENT_SAS_EXP_RC_NOT_RESPONDING,8,8
	.comm	MPI_EVENT_SAS_EXP_RC_ADDED,8,8
	.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_send_expander_event.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_send_expander_event, %function
mptsas_send_expander_event:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r0
	ldr	r7, [r0]
	sub	sp, sp, #8
	ldr	r3, .L18
	mov	r2, #4
	add	r1, r7, #16
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r10, [r9, #4]
	bl	memcpy
	ldr	r0, [sp]
	bl	le64_to_cpu
	mov	r8, r0
	mov	r0, r10
	mov	r1, r8
	str	r8, [sp]
	bl	mptsas_find_portinfo_by_sas_address
	ldr	r2, .L18+4
	ldr	r3, [r7]
	ldr	r2, [r2]
	mov	r4, r0
	cmp	r3, r2
	beq	.L15
	ldr	r2, .L18+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L16
.L6:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r1, r9
	mov	r0, r10
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	mptsas_free_fw_event
.L15:
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r0]
	cmp	r3, #0
	ble	.L4
	mov	r5, #0
.L5:
	ldr	r6, [r4, #4]
	ldr	r0, [r7, #12]
	add	r6, r6, r5, lsl #4
	str	r4, [r6, #12]
	bl	le16_to_cpu
	ldr	r3, [r4, #4]
	str	r0, [r6, #8]
	lsl	r6, r5, #4
	mov	r0, r8
	add	r6, r3, r6
	bl	le64_to_cpu
	mov	r3, r0
	ldr	r0, [r7, #8]
	str	r3, [r6, #4]
	ldr	r6, [r4, #4]
	bl	le16_to_cpu
	ldr	r3, [r4]
	str	r0, [r6, r5, lsl #4]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L5
.L4:
	mov	r1, r4
	mov	r0, r10
	bl	mptsas_expander_refresh
	b	.L6
.L16:
	mov	r1, r0
	mov	r2, #0
	mov	r0, r10
	bl	mptsas_expander_delete
	b	.L6
.L3:
	ldr	r3, [r7, #4]
	cmp	r3, #0
	beq	.L6
	mov	r1, r7
	mov	r0, r10
	bl	mptsas_expander_event_add
	b	.L6
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	MPI_EVENT_SAS_EXP_RC_ADDED
	.word	MPI_EVENT_SAS_EXP_RC_NOT_RESPONDING
	.size	mptsas_send_expander_event, .-mptsas_send_expander_event
	.comm	MPI_EVENT_SAS_EXP_RC_NOT_RESPONDING,4,4
	.comm	MPI_EVENT_SAS_EXP_RC_ADDED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
