	.file	"extr_armada-37xx-rwtm-mailbox.c_a37xx_mbox_startup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Cannot request irq\n"
	.text
	.p2align 4
	.type	a37xx_mbox_startup, @function
a37xx_mbox_startup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r9, rdi
	xor	ecx, ecx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR [rdi]
	mov	edx, DWORD PTR a37xx_mbox_irq_handler[rip]
	mov	r8d, DWORD PTR DRIVER_NAME[rip]
	mov	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR 8[rbx]
	call	devm_request_irq@PLT
	test	eax, eax
	js	.L6
	mov	rdi, QWORD PTR RWTM_HOST_INT_MASK[rip]
	add	rdi, QWORD PTR [rbx]
	xor	r12d, r12d
	call	readl@PLT
	mov	edi, DWORD PTR SP_CMD_COMPLETE[rip]
	or	edi, DWORD PTR SP_CMD_QUEUE_FULL_ACCESS[rip]
	or	edi, DWORD PTR SP_CMD_QUEUE_FULL[rip]
	mov	rsi, QWORD PTR RWTM_HOST_INT_MASK[rip]
	not	edi
	add	rsi, QWORD PTR [rbx]
	and	edi, eax
	call	writel@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC0[rip]
	mov	r12d, eax
	call	dev_err@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	a37xx_mbox_startup, .-a37xx_mbox_startup
	.comm	a37xx_mbox_irq_handler,4,4
	.comm	SP_CMD_QUEUE_FULL_ACCESS,4,4
	.comm	SP_CMD_QUEUE_FULL,4,4
	.comm	SP_CMD_COMPLETE,4,4
	.comm	RWTM_HOST_INT_MASK,8,8
	.comm	DRIVER_NAME,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_armada-37xx-rwtm-mailbox.c_a37xx_mbox_startup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cannot request irq\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	a37xx_mbox_startup, %function
a37xx_mbox_startup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, lr}
	ldr	r2, .L7
	ldr	r5, [r0]
	ldr	ip, [r2]
	sub	sp, sp, #8
	ldr	r2, .L7+4
	ldmib	r5, {r0, r1}
	str	r3, [sp, #4]
	str	ip, [sp]
	mov	r3, #0
	ldr	r2, [r2]
	bl	devm_request_irq
	subs	r4, r0, #0
	blt	.L6
	ldr	r6, .L7+8
	ldr	r0, [r5]
	ldr	r3, [r6]
	mov	r4, #0
	add	r0, r0, r3
	bl	readl
	ldr	r2, .L7+12
	ldr	r3, .L7+16
	ldr	r1, .L7+20
	ldr	lr, [r2]
	ldr	r3, [r3]
	ldr	ip, [r1]
	ldr	r2, [r6]
	ldr	r1, [r5]
	orr	r3, r3, lr
	orr	r3, r3, ip
	add	r1, r1, r2
	bic	r0, r0, r3
	bl	writel
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r0, [r5, #4]
	ldr	r1, .L7+24
	bl	dev_err
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	DRIVER_NAME
	.word	a37xx_mbox_irq_handler
	.word	RWTM_HOST_INT_MASK
	.word	SP_CMD_QUEUE_FULL_ACCESS
	.word	SP_CMD_COMPLETE
	.word	SP_CMD_QUEUE_FULL
	.word	.LC0
	.size	a37xx_mbox_startup, .-a37xx_mbox_startup
	.comm	a37xx_mbox_irq_handler,4,4
	.comm	SP_CMD_QUEUE_FULL_ACCESS,4,4
	.comm	SP_CMD_QUEUE_FULL,4,4
	.comm	SP_CMD_COMPLETE,4,4
	.comm	RWTM_HOST_INT_MASK,4,4
	.comm	DRIVER_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
