	.file	"extr_bfa_ioc.c_bfa_ioc_mbox_send.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bfa_ioc_mbox_send
	.type	bfa_ioc_mbox_send, @function
bfa_ioc_mbox_send:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movsx	rbp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR [rsi]
	call	bfa_trc@PLT
	mov	esi, ebp
	mov	rdi, r12
	call	bfa_trc@PLT
	xor	edi, edi
	cmp	DWORD PTR BFI_IOC_MSGLEN_MAX[rip], ebp
	setl	dil
	call	WARN_ON@PLT
	shr	rbp, 2
	je	.L7
	lea	r13, 0[0+rbp*4]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR [r15+rbx]
	mov	r14, QWORD PTR 8[r12]
	call	cpu_to_le32@PLT
	add	r14, rbx
	add	rbx, 4
	mov	edi, eax
	mov	rsi, r14
	call	writel@PLT
	cmp	r13, rbx
	jne	.L3
	movsx	rbx, ebp
.L2:
	movsx	rax, DWORD PTR BFI_IOC_MSGLEN_MAX[rip]
	add	rbx, 1
	shr	rax, 2
	cmp	rax, rbp
	jbe	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 8[r12]
	xor	edi, edi
	lea	rsi, [rax+rbp*4]
	mov	rbp, rbx
	add	rbx, 1
	call	writel@PLT
	movsx	rax, DWORD PTR BFI_IOC_MSGLEN_MAX[rip]
	shr	rax, 2
	cmp	rax, rbp
	ja	.L5
.L6:
	mov	rsi, QWORD PTR [r12]
	mov	edi, 1
	call	writel@PLT
	mov	rdi, QWORD PTR [r12]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	readl@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	ebx, ebx
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	bfa_ioc_mbox_send, .-bfa_ioc_mbox_send
	.comm	BFI_IOC_MSGLEN_MAX,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_bfa_ioc.c_bfa_ioc_mbox_send.c"
	.text
	.align	2
	.global	bfa_ioc_mbox_send
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfa_ioc_mbox_send, %function
bfa_ioc_mbox_send:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r2
	mov	r6, r0
	mov	r9, r1
	ldr	r7, .L12
	ldr	r1, [r1]
	bl	bfa_trc
	mov	r1, r5
	mov	r0, r6
	bl	bfa_trc
	ldr	r0, [r7]
	cmp	r0, r5
	movge	r0, #0
	movlt	r0, #1
	bl	WARN_ON
	lsrs	r5, r5, #2
	beq	.L6
	add	r10, r9, r5, lsl #2
	sub	r4, r9, #4
	sub	r10, r10, #4
	rsb	r9, r9, #4
.L3:
	add	r8, r9, r4
	ldr	r0, [r4, #4]!
	bl	cpu_to_le32
	ldr	r1, [r6, #4]
	add	r1, r8, r1
	bl	writel
	cmp	r10, r4
	bne	.L3
.L6:
	ldr	r3, [r7]
	mov	r4, r5
	cmp	r5, r3, lsr #2
	bcs	.L5
.L4:
	ldr	r1, [r6, #4]
	mov	r0, #0
	add	r1, r1, r5, lsl #2
	bl	writel
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r4, r3, lsr #2
	mov	r5, r4
	bcc	.L4
.L5:
	ldr	r1, [r6]
	mov	r0, #1
	bl	writel
	ldr	r0, [r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	readl
.L13:
	.align	2
.L12:
	.word	BFI_IOC_MSGLEN_MAX
	.size	bfa_ioc_mbox_send, .-bfa_ioc_mbox_send
	.comm	BFI_IOC_MSGLEN_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
