	.file	"extr_rockchip-mailbox.c_rockchip_mbox_isr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Chan[%d]: B2A message is NULL\n"
	.align 8
.LC1:
	.string	"Chan[%d]: B2A message, cmd 0x%08x\n"
	.text
	.p2align 4
	.type	rockchip_mbox_isr, @function
rockchip_mbox_isr:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR [rsi]
	test	edx, edx
	jle	.L8
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	sub	edx, 1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	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	r13, rbp
	mov	rbx, rsi
	sal	r13, 4
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 16[rsi]
	cmp	DWORD PTR [rax], edi
	je	.L3
.L12:
	lea	rcx, 1[rbp]
	add	rax, 16
	cmp	rbp, rdx
	je	.L2
	mov	rbp, rcx
	mov	r13, rbp
	sal	r13, 4
	cmp	DWORD PTR [rax], edi
	jne	.L12
.L3:
	mov	r12, QWORD PTR 8[rax]
	test	r12, r12
	je	.L13
	mov	rax, QWORD PTR 8[rbx]
	mov	rsi, r12
	lea	rdi, [rax+rbp*4]
	call	mbox_chan_received_data@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR 4[rbx]
	mov	edx, ebp
	mov	ecx, DWORD PTR [r12]
	lea	rsi, .LC1[rip]
	mov	QWORD PTR 8[rax+r13], 0
	call	dev_dbg@PLT
.L2:
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 8
	.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
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	mov	edx, ebp
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	rockchip_mbox_isr, .-rockchip_mbox_isr
	.comm	IRQ_HANDLED,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_rockchip-mailbox.c_rockchip_mbox_isr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Chan[%d]: B2A message is NULL\012\000"
	.align	2
.LC1:
	.ascii	"Chan[%d]: B2A message, cmd 0x%08x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rockchip_mbox_isr, %function
rockchip_mbox_isr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r1, [r1]
	cmp	r1, #0
	ble	.L2
	mov	r6, #0
	mov	r5, r6
	ldr	r3, [r4, #12]
.L4:
	ldr	r2, [r3, r5, lsl #3]
	add	ip, r3, r6
	cmp	r2, r0
	beq	.L3
	add	r5, r5, #1
	cmp	r1, r5
	add	r6, r6, #8
	bne	.L4
.L2:
	ldr	r3, .L10
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r7, [ip, #4]
	cmp	r7, #0
	beq	.L9
	ldr	r0, [r4, #8]
	mov	r1, r7
	add	r0, r0, r5, lsl #2
	bl	mbox_chan_received_data
	mov	r1, #0
	ldr	r2, [r4, #12]
	ldr	r3, [r7]
	add	r6, r2, r6
	ldr	r0, [r4, #4]
	mov	r2, r5
	str	r1, [r6, #4]
	ldr	r1, .L10+4
	bl	dev_dbg
	b	.L2
.L9:
	mov	r2, r5
	ldr	r0, [r4, #4]
	ldr	r1, .L10+8
	bl	dev_err
	b	.L2
.L11:
	.align	2
.L10:
	.word	IRQ_HANDLED
	.word	.LC1
	.word	.LC0
	.size	rockchip_mbox_isr, .-rockchip_mbox_isr
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
