	.file	"extr_arcmsr.c_arcmsr_iop_message_wrote.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	arcmsr_iop_message_wrote, @function
arcmsr_iop_message_wrote:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	add	eax, -128
	cmp	eax, 4
	ja	.L1
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 8[rdi]
	mov	edx, DWORD PTR ARCMSR_DRV2IOP_DATA_WRITE_OK[rip]
	xor	edi, edi
	mov	esi, DWORD PTR [rax]
	jmp	WRITE_CHIP_REG32@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ecx, DWORD PTR ARCMSR_INBOUND_DRIVER_DATA_WRITE_OK[rip]
	mov	edx, DWORD PTR inbound_doorbell[rip]
	xor	esi, esi
	mov	edi, DWORD PTR HBA_MessageUnit[rip]
	jmp	CHIP_REG_WRITE32@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	mov	ecx, DWORD PTR 4[rdi]
	xor	ecx, DWORD PTR ARCMSR_HBEMU_DRV2IOP_DATA_WRITE_OK[rip]
	xor	esi, esi
	mov	DWORD PTR 4[rdi], ecx
	mov	edx, DWORD PTR iobound_doorbell[rip]
	mov	edi, DWORD PTR HBE_MessageUnit[rip]
	jmp	CHIP_REG_WRITE32@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, DWORD PTR ARCMSR_HBDMU_DRV2IOP_DATA_IN_READY[rip]
	mov	edx, DWORD PTR inbound_doorbell[rip]
	xor	esi, esi
	mov	edi, DWORD PTR HBD_MessageUnit[rip]
	jmp	CHIP_REG_WRITE32@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ecx, DWORD PTR ARCMSR_HBCMU_DRV2IOP_DATA_WRITE_OK[rip]
	mov	edx, DWORD PTR inbound_doorbell[rip]
	xor	esi, esi
	mov	edi, DWORD PTR HBC_MessageUnit[rip]
	jmp	CHIP_REG_WRITE32@PLT
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	arcmsr_iop_message_wrote, .-arcmsr_iop_message_wrote
	.comm	iobound_doorbell,4,4
	.comm	inbound_doorbell,4,4
	.comm	HBE_MessageUnit,4,4
	.comm	HBD_MessageUnit,4,4
	.comm	HBC_MessageUnit,4,4
	.comm	HBA_MessageUnit,4,4
	.comm	ARCMSR_INBOUND_DRIVER_DATA_WRITE_OK,4,4
	.comm	ARCMSR_HBEMU_DRV2IOP_DATA_WRITE_OK,4,4
	.comm	ARCMSR_HBDMU_DRV2IOP_DATA_IN_READY,4,4
	.comm	ARCMSR_HBCMU_DRV2IOP_DATA_WRITE_OK,4,4
	.comm	ARCMSR_DRV2IOP_DATA_WRITE_OK,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_arcmsr.c_arcmsr_iop_message_wrote.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arcmsr_iop_message_wrote, %function
arcmsr_iop_message_wrote:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, [r0]
	sub	r3, r3, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L1
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r3, .L11
	ldr	r2, .L11+4
	ldr	r1, .L11+8
.L9:
	ldr	r0, [r1]
	ldr	r3, [r3]
	mov	r1, #0
	ldr	r2, [r2]
	b	CHIP_REG_WRITE32
.L8:
	ldr	r2, .L11+12
	ldr	r3, [r0, #4]
	ldr	ip, [r2]
	ldr	r1, .L11+16
	ldr	r2, .L11+20
	eor	r3, r3, ip
	str	r3, [r0, #4]
	ldr	r0, [r1]
	ldr	r2, [r2]
	mov	r1, #0
	b	CHIP_REG_WRITE32
.L7:
	ldr	r3, .L11+24
	ldr	r2, .L11+4
	ldr	r1, .L11+28
	b	.L9
.L6:
	ldr	r3, .L11+32
	ldr	r2, .L11+4
	ldr	r1, .L11+36
	b	.L9
.L5:
	ldr	r2, [r0, #8]
	ldr	r3, .L11+40
	ldr	r1, [r2]
	mov	r0, #0
	ldr	r2, [r3]
	b	WRITE_CHIP_REG32
.L1:
	bx	lr
.L12:
	.align	2
.L11:
	.word	ARCMSR_INBOUND_DRIVER_DATA_WRITE_OK
	.word	inbound_doorbell
	.word	HBA_MessageUnit
	.word	ARCMSR_HBEMU_DRV2IOP_DATA_WRITE_OK
	.word	HBE_MessageUnit
	.word	iobound_doorbell
	.word	ARCMSR_HBDMU_DRV2IOP_DATA_IN_READY
	.word	HBD_MessageUnit
	.word	ARCMSR_HBCMU_DRV2IOP_DATA_WRITE_OK
	.word	HBC_MessageUnit
	.word	ARCMSR_DRV2IOP_DATA_WRITE_OK
	.size	arcmsr_iop_message_wrote, .-arcmsr_iop_message_wrote
	.comm	iobound_doorbell,4,4
	.comm	inbound_doorbell,4,4
	.comm	HBE_MessageUnit,4,4
	.comm	HBD_MessageUnit,4,4
	.comm	HBC_MessageUnit,4,4
	.comm	HBA_MessageUnit,4,4
	.comm	ARCMSR_INBOUND_DRIVER_DATA_WRITE_OK,4,4
	.comm	ARCMSR_HBEMU_DRV2IOP_DATA_WRITE_OK,4,4
	.comm	ARCMSR_HBDMU_DRV2IOP_DATA_IN_READY,4,4
	.comm	ARCMSR_HBCMU_DRV2IOP_DATA_WRITE_OK,4,4
	.comm	ARCMSR_DRV2IOP_DATA_WRITE_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
