	.file	"extr_mpr_mapping.c_mpr_mapping_pcie_topology_change_event.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mpr_mapping_pcie_topology_change_event
	.type	mpr_mapping_pcie_topology_change_event, @function
mpr_mapping_pcie_topology_change_event:
.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	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 72
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR 32[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	le16toh@PLT
	mov	edi, DWORD PTR 28[rbx]
	mov	QWORD PTR 40[rsp], rax
	call	le16toh@PLT
	mov	r13d, DWORD PTR [rbx]
	mov	rdx, QWORD PTR 16[rbx]
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 32[rsp], rax
	mov	eax, DWORD PTR 24[rbx]
	mov	DWORD PTR [rsp], r13d
	mov	rbx, QWORD PTR 8[rbx]
	mov	QWORD PTR 16[rsp], rdx
	mov	DWORD PTR 24[rsp], eax
	test	r13d, r13d
	jne	.L19
.L2:
	mov	esi, DWORD PTR M_MPR[rip]
	mov	rdi, rbp
	call	free@PLT
	mov	rdi, r12
	call	_mapping_flush_dpm_pages@PLT
	mov	rax, QWORD PTR [r12]
	test	rax, rax
	je	.L1
	sub	rax, 1
	mov	QWORD PTR [r12], rax
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 72
	.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
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	esi, DWORD PTR M_MPR[rip]
	mov	edi, r13d
	mov	edx, DWORD PTR M_NOWAIT[rip]
	sal	edi, 4
	or	edx, DWORD PTR M_ZERO[rip]
	call	malloc@PLT
	mov	QWORD PTR 8[rsp], rax
	mov	rbp, rax
	test	rax, rax
	je	.L2
	test	r13d, r13d
	jle	.L5
	sub	r13d, 1
	add	r13, 1
	sal	r13, 4
	add	r13, rax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 4[rbx]
	add	rbp, 16
	add	rbx, 8
	call	le16toh@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -8[rbx]
	mov	DWORD PTR -16[rbp], eax
	cmp	r13, rbp
	jne	.L4
.L5:
	mov	rbp, rsp
	mov	rdi, r12
	mov	rsi, rbp
	call	_mapping_update_pcie_missing_count@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	_mapping_get_pcie_dev_info@PLT
	mov	rdi, r12
	call	_mapping_clear_removed_entries@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	_mapping_add_new_pcie_device@PLT
	mov	rbp, QWORD PTR 8[rsp]
	jmp	.L2
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mpr_mapping_pcie_topology_change_event, .-mpr_mapping_pcie_topology_change_event
	.comm	M_ZERO,4,4
	.comm	M_NOWAIT,4,4
	.comm	M_MPR,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_mpr_mapping.c_mpr_mapping_pcie_topology_change_event.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mpr_mapping_pcie_topology_change_event
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpr_mapping_pcie_topology_change_event, %function
mpr_mapping_pcie_topology_change_event:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L20
	sub	sp, sp, #36
	mov	r7, r0
	ldr	r0, [r1, #24]
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	le16toh
	mov	r3, r0
	mov	r6, #0
	ldr	r0, [r4, #20]
	str	r3, [sp, #24]
	bl	le16toh
	ldr	r3, [r4, #16]
	ldr	r9, [r4]
	ldr	r2, [r4, #12]
	str	r3, [sp, #16]
	ldr	r3, [r4, #8]
	cmp	r9, r6
	ldr	r5, [r4, #4]
	str	r0, [sp, #20]
	str	r9, [sp]
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	str	r6, [sp, #4]
	bne	.L18
	mov	r0, r9
	ldr	r8, .L20+4
.L2:
	ldr	r1, [r8]
	bl	free
	mov	r0, r7
	bl	_mapping_flush_dpm_pages
	ldr	r3, [r7]
	cmp	r3, #0
	subne	r3, r3, #1
	strne	r3, [r7]
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L18:
	ldr	r2, .L20+8
	ldr	r3, .L20+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r8, .L20+4
	orr	r2, r2, r3
	ldr	r1, [r8]
	lsl	r0, r9, #3
	bl	malloc
	cmp	r0, r6
	str	r0, [sp, #4]
	beq	.L2
	cmp	r9, r6
	addgt	r5, r5, #8
	addgt	r4, r0, #8
	ble	.L5
.L4:
	ldr	r0, [r5, #-4]
	bl	le16toh
	add	r6, r6, #1
	ldr	r3, [r5, #-8]
	cmp	r9, r6
	str	r0, [r4, #-4]
	str	r3, [r4, #-8]
	add	r5, r5, #8
	add	r4, r4, #8
	bne	.L4
.L5:
	mov	r1, sp
	mov	r0, r7
	bl	_mapping_update_pcie_missing_count
	mov	r1, sp
	mov	r0, r7
	bl	_mapping_get_pcie_dev_info
	mov	r0, r7
	bl	_mapping_clear_removed_entries
	mov	r1, sp
	mov	r0, r7
	bl	_mapping_add_new_pcie_device
	ldr	r0, [sp, #4]
	b	.L2
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	M_MPR
	.word	M_NOWAIT
	.word	M_ZERO
	.size	mpr_mapping_pcie_topology_change_event, .-mpr_mapping_pcie_topology_change_event
	.comm	M_ZERO,4,4
	.comm	M_NOWAIT,4,4
	.comm	M_MPR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
