	.file	"extr_isar.c_sendmsg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sendmsg, @function
sendmsg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	mov	esi, 4000
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	waitforHIA@PLT
	test	eax, eax
	je	.L1
	xor	esi, esi
	mov	edx, DWORD PTR ISAR_CTRL_H[rip]
	mov	ecx, r15d
	mov	rdi, rbp
	call	[QWORD PTR 8[rbp]]
	xor	esi, esi
	mov	edx, DWORD PTR ISAR_CTRL_L[rip]
	mov	ecx, r12d
	mov	rdi, rbp
	call	[QWORD PTR 8[rbp]]
	xor	ecx, ecx
	xor	esi, esi
	mov	edx, DWORD PTR ISAR_WADR[rip]
	mov	rdi, rbp
	call	[QWORD PTR 8[rbp]]
	test	r13, r13
	je	.L3
	test	r12d, r12d
	je	.L3
	mov	ecx, DWORD PTR 0[r13]
	mov	edx, DWORD PTR ISAR_MBOX[rip]
	mov	esi, 1
	mov	rdi, rbp
	call	[QWORD PTR 8[rbp]]
	cmp	r12d, 1
	jle	.L3
	lea	eax, -2[r12]
	lea	rbx, 4[r13]
	lea	r12, 8[r13+rax*4]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	ecx, DWORD PTR [rbx]
	add	rbx, 4
	mov	edx, DWORD PTR ISAR_MBOX[rip]
	mov	rdi, rbp
	mov	esi, 2
	call	[QWORD PTR 8[rbp]]
	cmp	rbx, r12
	jne	.L4
.L3:
	mov	edx, DWORD PTR ISAR_HIS[rip]
	mov	ecx, r14d
	mov	esi, 1
	mov	rdi, rbp
	call	[QWORD PTR 8[rbp]]
	mov	esi, 10000
	mov	rdi, rbp
	call	waitforHIA@PLT
	mov	eax, 1
.L1:
	add	rsp, 8
	.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
	ret
	.cfi_endproc
.LFE0:
	.size	sendmsg, .-sendmsg
	.comm	L1_DEB_HSCX_FIFO,4,4
	.comm	L1_DEB_HSCX,4,4
	.comm	ISAR_WADR,4,4
	.comm	ISAR_MBOX,4,4
	.comm	ISAR_HIS,4,4
	.comm	ISAR_CTRL_L,4,4
	.comm	ISAR_CTRL_H,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_isar.c_sendmsg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendmsg, %function
sendmsg:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r1
	mov	r1, #4000
	mov	r8, r2
	mov	r6, r3
	mov	r4, r0
	ldr	r5, [sp, #32]
	bl	waitforHIA
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, .L14
	mov	r3, r8
	mov	r1, #0
	ldr	r2, [r2]
	ldr	r8, [r4, #4]
	mov	r0, r4
	blx	r8
	ldr	r3, .L14+4
	mov	r1, #0
	ldr	r2, [r3]
	ldr	r8, [r4, #4]
	mov	r3, r6
	mov	r0, r4
	blx	r8
	mov	r3, #0
	ldr	r2, .L14+8
	mov	r1, r3
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r8, [r4, #4]
	blx	r8
	cmp	r5, #0
	cmpne	r6, #0
	beq	.L3
	ldr	r9, .L14+12
	mov	r1, #1
	mov	r0, r4
	ldr	r8, [r4, #4]
	ldr	r2, [r9]
	ldr	r3, [r5]
	blx	r8
	cmp	r6, #1
	ble	.L3
	sub	r8, r5, #4
	add	r8, r8, r6, lsl #2
.L4:
	ldr	r3, [r5, #4]!
	mov	r1, #2
	mov	r0, r4
	ldr	r6, [r4, #4]
	ldr	r2, [r9]
	blx	r6
	cmp	r5, r8
	bne	.L4
.L3:
	ldr	r2, .L14+16
	mov	r3, r7
	ldr	r2, [r2]
	mov	r1, #1
	mov	r0, r4
	ldr	r5, [r4, #4]
	blx	r5
	mov	r0, r4
	ldr	r1, .L14+20
	bl	waitforHIA
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	.align	2
.L14:
	.word	ISAR_CTRL_H
	.word	ISAR_CTRL_L
	.word	ISAR_WADR
	.word	ISAR_MBOX
	.word	ISAR_HIS
	.word	10000
	.size	sendmsg, .-sendmsg
	.comm	L1_DEB_HSCX_FIFO,4,4
	.comm	L1_DEB_HSCX,4,4
	.comm	ISAR_WADR,4,4
	.comm	ISAR_MBOX,4,4
	.comm	ISAR_HIS,4,4
	.comm	ISAR_CTRL_L,4,4
	.comm	ISAR_CTRL_H,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
