	.file	"extr_cn23xx_pf_device.c_cn23xx_pf_mbox_thread.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cn23xx_pf_mbox_thread, @function
cn23xx_pf_mbox_thread:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR OCTEON_CN23XX_REV_1_1[rip]
	mov	rbp, QWORD PTR 8[r12]
	cmp	QWORD PTR 0[rbp], rax
	jge	.L2
	mov	r13, rdi
	mov	edi, DWORD PTR 4[r12]
	call	readq@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	rdi, rax
	call	writeq@PLT
	cmp	QWORD PTR 16[rbp], 0
	je	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r12, QWORD PTR 24[rbp]
	mov	rax, QWORD PTR 8[rbp]
	imul	r12, rbx
	mov	rax, QWORD PTR [rax+r12*8]
	mov	edi, DWORD PTR [rax]
	call	readq@PLT
	test	rax, rax
	je	.L5
	cmp	QWORD PTR OCTEON_PFVFACK[rip], rax
	je	.L5
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR [rax+r12*8]
	call	octeon_mbox_read@PLT
	test	rax, rax
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L5:
	add	rbx, 1
	cmp	QWORD PTR 16[rbp], rbx
	ja	.L7
.L3:
	mov	edi, 10
	call	msecs_to_jiffies@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	schedule_delayed_work@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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
	jmp	octeon_mbox_process_message@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR [rax+r12*8]
	call	octeon_mbox_process_message@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	cn23xx_pf_mbox_thread, .-cn23xx_pf_mbox_thread
	.comm	OCTEON_PFVFACK,8,8
	.comm	OCTEON_CN23XX_REV_1_1,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_cn23xx_pf_device.c_cn23xx_pf_mbox_thread.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cn23xx_pf_mbox_thread, %function
cn23xx_pf_mbox_thread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0, #4]
	ldr	r3, .L18
	ldr	r6, [r4, #8]
	ldr	r3, [r3]
	ldr	r2, [r6]
	cmp	r2, r3
	bge	.L2
	mov	r7, r0
	ldr	r0, [r4, #4]
	bl	readq
	ldr	r1, [r4, #4]
	bl	writeq
	ldr	r3, [r6, #8]
	cmp	r3, #0
	beq	.L3
	mov	r5, #0
	ldr	r8, .L18+4
.L7:
	ldr	r4, [r6, #12]
	ldr	r3, [r6, #4]
	mul	r4, r5, r4
	ldr	r3, [r3, r4, lsl #2]
	add	r5, r5, #1
	ldr	r0, [r3]
	bl	readq
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r8]
	cmp	r3, r0
	beq	.L5
	ldr	r3, [r6, #4]
	ldr	r0, [r3, r4, lsl #2]
	bl	octeon_mbox_read
	cmp	r0, #0
	bne	.L17
.L5:
	ldr	r3, [r6, #8]
	cmp	r3, r5
	bhi	.L7
.L3:
	mov	r0, #10
	bl	msecs_to_jiffies
	mov	r1, r0
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	schedule_delayed_work
.L2:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	octeon_mbox_process_message
.L17:
	ldr	r3, [r6, #4]
	ldr	r0, [r3, r4, lsl #2]
	bl	octeon_mbox_process_message
	b	.L5
.L19:
	.align	2
.L18:
	.word	OCTEON_CN23XX_REV_1_1
	.word	OCTEON_PFVFACK
	.size	cn23xx_pf_mbox_thread, .-cn23xx_pf_mbox_thread
	.comm	OCTEON_PFVFACK,4,4
	.comm	OCTEON_CN23XX_REV_1_1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
