	.file	"extr_enetc_msg.c_enetc_msg_psi_free.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	enetc_msg_psi_free
	.type	enetc_msg_psi_free, @function
enetc_msg_psi_free:
.LFB0:
	.cfi_startproc
	endbr64
	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
	add	rdi, 4
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 4[rdi]
	call	cancel_work_sync@PLT
	lea	rdi, 4[r12]
	call	enetc_msg_disable_mr_int@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, ebx
	mov	rdi, r12
	add	ebx, 1
	call	enetc_msg_free_mbx@PLT
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L3
.L2:
	mov	edi, DWORD PTR [r12]
	mov	esi, DWORD PTR ENETC_SI_INT_IDX[rip]
	call	pci_irq_vector@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rsi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	edi, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	free_irq@PLT
	.cfi_endproc
.LFE0:
	.size	enetc_msg_psi_free, .-enetc_msg_psi_free
	.comm	ENETC_SI_INT_IDX,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_enetc_msg.c_enetc_msg_psi_free.c"
	.text
	.align	2
	.global	enetc_msg_psi_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	enetc_msg_psi_free, %function
enetc_msg_psi_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r6, [r0, #8]
	add	r0, r0, #4
	bl	cancel_work_sync
	add	r0, r6, #4
	bl	enetc_msg_disable_mr_int
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
.L3:
	mov	r1, r4
	mov	r0, r6
	bl	enetc_msg_free_mbx
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
.L2:
	ldr	r3, .L7
	ldr	r0, [r6]
	ldr	r1, [r3]
	bl	pci_irq_vector
	mov	r1, r6
	pop	{r4, r5, r6, lr}
	b	free_irq
.L8:
	.align	2
.L7:
	.word	ENETC_SI_INT_IDX
	.size	enetc_msg_psi_free, .-enetc_msg_psi_free
	.comm	ENETC_SI_INT_IDX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
