	.file	"extr_kgdb.c_insert_watchpoint.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"OK"
	.text
	.p2align 4
	.type	insert_watchpoint, @function
insert_watchpoint:
.LFB0:
	.cfi_startproc
	endbr64
	lea	eax, -49[rdi]
	mov	r10, QWORD PTR output_buffer[rip]
	mov	r11d, edi
	cmp	al, 3
	ja	.L18
	mov	r9d, DWORD PTR sreg[rip]
	cmp	dil, 51
	je	.L13
	cmp	dil, 49
	je	.L19
.L4:
	mov	ecx, 2
	xor	eax, eax
	mov	r8d, 3
.L8:
	mov	edi, r8d
	sal	edi, cl
	test	edi, r9d
	je	.L7
	add	eax, 1
	add	ecx, 4
	cmp	eax, 6
	jne	.L8
.L16:
	mov	rdx, QWORD PTR E04[rip]
	mov	rax, QWORD PTR error_message[rip]
	mov	rdi, r10
	mov	rsi, QWORD PTR [rax+rdx*8]
	jmp	gdb_cris_strcpy@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r11d, 52
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	lea	edi, -51[r11]
	cmp	dil, 1
	jbe	.L20
.L12:
	mov	edi, 2
	sal	edi, cl
	or	r9d, edi
	mov	DWORD PTR sreg[rip], r9d
.L10:
	add	eax, eax
	lea	rcx, sreg[rip+12]
	lea	edx, -1[rsi+rdx]
	cdqe
	mov	DWORD PTR [rcx+rax*4], esi
	mov	DWORD PTR 4[rcx+rax*4], edx
.L6:
	mov	ecx, DWORD PTR CCS_SHIFT[rip]
	mov	eax, 1
	add	ecx, DWORD PTR S_CCS_BITNR[rip]
	mov	rdi, r10
	sal	eax, cl
	or	DWORD PTR reg[rip], eax
	lea	rsi, .LC0[rip]
	jmp	gdb_cris_strcpy@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	mov	QWORD PTR [r10], 0
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, 1
	sal	edi, cl
	or	r9d, edi
	mov	DWORD PTR sreg[rip], r9d
	cmp	r11b, 52
	jne	.L10
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L19:
	test	r9b, 1
	jne	.L16
	lea	eax, -1[rsi+rdx]
	or	r9d, 1
	mov	DWORD PTR sreg[rip+4], esi
	mov	DWORD PTR sreg[rip+8], eax
	mov	DWORD PTR sreg[rip], r9d
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	insert_watchpoint, .-insert_watchpoint
	.comm	sreg,16,16
	.comm	reg,4,4
	.comm	output_buffer,8,8
	.comm	error_message,8,8
	.comm	S_CCS_BITNR,4,4
	.comm	E04,8,8
	.comm	CCS_SHIFT,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_kgdb.c_insert_watchpoint.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"OK\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert_watchpoint, %function
insert_watchpoint:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L22
	mov	lr, r0
	sub	r0, r0, #49
	cmp	r0, #3
	ldr	r0, [r3]
	bhi	.L19
	ldr	r6, .L22+4
	cmp	lr, #51
	ldr	r4, [r6]
	beq	.L13
	cmp	lr, #49
	beq	.L20
.L4:
	mov	ip, #2
	mov	r3, #0
	mov	r5, #3
.L8:
	ands	r7, r4, r5, lsl ip
	beq	.L7
	add	r3, r3, #1
	cmp	r3, #6
	add	ip, ip, #4
	bne	.L8
.L16:
	pop	{r4, r5, r6, r7, lr}
	ldr	r2, .L22+8
	ldr	r3, .L22+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r3, r2, lsl #2]
	b	gdb_cris_strcpy
.L13:
	mov	lr, #52
	b	.L4
.L7:
	sub	r5, lr, #51
	cmp	r5, #1
	bls	.L21
.L12:
	mov	lr, #2
	orr	ip, r4, lr, lsl ip
	str	ip, [r6]
.L10:
	ldr	ip, .L22+16
	add	r2, r1, r2
	sub	r2, r2, #1
	add	lr, ip, #4
	str	r1, [ip, r3, lsl #3]
	str	r2, [lr, r3, lsl #3]
.L6:
	mov	r1, #1
	ldr	r3, .L22+20
	ldr	r2, .L22+24
	ldr	ip, .L22+28
	ldr	lr, [r3]
	ldr	r2, [r2]
	ldr	r3, [ip]
	add	r2, r2, lr
	orr	r3, r3, r1, lsl r2
	pop	{r4, r5, r6, r7, lr}
	ldr	r1, .L22+32
	str	r3, [ip]
	b	gdb_cris_strcpy
.L19:
	mov	r3, #0
	str	r3, [r0]
	pop	{r4, r5, r6, r7, pc}
.L21:
	mov	r5, #1
	cmp	lr, #52
	orr	r4, r4, r5, lsl ip
	str	r4, [r6]
	bne	.L10
	b	.L12
.L20:
	tst	r4, #1
	bne	.L16
	add	r2, r1, r2
	sub	r2, r2, #1
	orr	r4, r4, #1
	str	r2, [r6, #8]
	str	r4, [r6]
	str	r1, [r6, #4]
	b	.L6
.L23:
	.align	2
.L22:
	.word	output_buffer
	.word	sreg
	.word	E04
	.word	error_message
	.word	sreg+12
	.word	CCS_SHIFT
	.word	S_CCS_BITNR
	.word	reg
	.word	.LC0
	.size	insert_watchpoint, .-insert_watchpoint
	.comm	sreg,16,4
	.comm	reg,4,4
	.comm	output_buffer,4,4
	.comm	error_message,4,4
	.comm	S_CCS_BITNR,4,4
	.comm	E04,4,4
	.comm	CCS_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
