	.file	"extr_gdb-stub.c_gdbstub_set_breakpoint.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gdbstub_set_breakpoint, @function
gdbstub_set_breakpoint:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	cmp	rdi, 1
	je	.L2
	ja	.L47
	test	sil, 3
	jne	.L4
	cmp	rdx, 28
	ja	.L4
	mov	rax, QWORD PTR gdbstub_bkpts[rip]
	mov	ebx, 6120
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L9:
	sub	rbx, 24
	cmp	rbx, -24
	je	.L13
.L12:
	mov	r14, QWORD PTR [rax+rbx]
	lea	rcx, [rax+rbx]
	test	r14, r14
	jne	.L9
	mov	rdx, r12
	shr	rdx, 2
	mov	QWORD PTR 8[rsp], rdx
	je	.L10
	lea	r13, 0[0+rdx*4]
	xor	r15d, r15d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L14:
	add	r15, 4
	cmp	r13, r15
	je	.L15
	mov	rax, QWORD PTR gdbstub_bkpts[rip]
.L11:
	mov	rsi, QWORD PTR 16[rax+rbx]
	lea	rdi, 0[rbp+r15]
	add	rsi, r15
	call	gdbstub_read_dword@PLT
	test	eax, eax
	jne	.L14
.L19:
	mov	eax, DWORD PTR EFAULT[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L47:
	lea	rax, -2[rdi]
	mov	rbx, rdi
	cmp	rax, 2
	ja	.L4
	lea	rax, -1[rsi+rdx]
	xor	rax, rsi
	test	rax, -8
	je	.L48
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L49
	add	rsp, 72
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	sil, 3
	jne	.L4
	cmp	rdx, 4
	jne	.L4
	mov	rcx, QWORD PTR __debug_regs[rip]
	mov	esi, DWORD PTR DCR_IBE0[rip]
	mov	edx, DWORD PTR [rcx]
	mov	eax, edx
	and	eax, esi
	je	.L50
	mov	esi, DWORD PTR DCR_IBE1[rip]
	mov	eax, edx
	and	eax, esi
	je	.L51
	mov	esi, DWORD PTR DCR_IBE2[rip]
	mov	eax, edx
	and	eax, esi
	je	.L52
	mov	esi, DWORD PTR DCR_IBE3[rip]
	mov	eax, edx
	and	eax, esi
	je	.L53
.L13:
	mov	eax, DWORD PTR ENOSPC[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L48:
	lea	r13, 16[rsp]
	mov	r14, rsi
	mov	edx, 32
	mov	esi, 255
	mov	rdi, r13
	and	r14d, 7
	call	memset@PLT
	test	r12, r12
	je	.L29
	add	r12, r14
	lea	rax, 0[r13+r14*4]
	lea	rdx, 0[r13+r12*4]
	.p2align 4,,10
	.p2align 3
.L28:
	mov	DWORD PTR [rax], 0
	add	rax, 4
	cmp	rdx, rax
	jne	.L28
.L29:
	mov	rdx, QWORD PTR __debug_regs[rip]
	mov	r8, QWORD PTR DCR_DRBE0[rip]
	and	rbp, -8
	mov	rsi, QWORD PTR DCR_DWBE0[rip]
	movsx	rdi, DWORD PTR [rdx]
	mov	rax, r8
	or	rax, rsi
	mov	rcx, rdi
	test	rdi, rax
	je	.L54
	mov	r8, QWORD PTR DCR_DRBE1[rip]
	mov	r9, QWORD PTR DCR_DWBE1[rip]
	mov	eax, DWORD PTR ENOSPC[rip]
	mov	rsi, r8
	or	rsi, r9
	neg	eax
	test	rdi, rsi
	jne	.L1
	cmp	rbx, 2
	je	.L35
	cmp	rbx, 3
	cmove	rsi, r8
.L32:
	mov	rax, QWORD PTR 16[rdx]
	or	ecx, esi
	mov	DWORD PTR [rdx], ecx
	mov	rcx, QWORD PTR 16[rsp]
	mov	QWORD PTR 8[rax], rbp
	mov	rax, QWORD PTR 24[rdx]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR [rax], rcx
	mov	rcx, QWORD PTR 24[rsp]
	mov	QWORD PTR 8[rax], rcx
	mov	rax, QWORD PTR 32[rdx]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR 16[rsp]
	mov	rdx, QWORD PTR 24[rsp]
#APP
# 183 "data/fastsocket/kernel/arch/frv/kernel/extr_gdb-stub.c_gdbstub_set_breakpoint.c" 1
		movgs	rbp,dbar1	
	movgs	rax,dbmr10	
	movgs	rdx,dbmr11	
	movgs	gr0,dbdr10	
	movgs	gr0,dbdr11	

# 0 "" 2
#NO_APP
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L51:
	or	edx, esi
	mov	DWORD PTR [rcx], edx
	mov	rdx, QWORD PTR 8[rcx]
	mov	QWORD PTR 8[rdx], rbp
#APP
# 115 "data/fastsocket/kernel/arch/frv/kernel/extr_gdb-stub.c_gdbstub_set_breakpoint.c" 1
	movgs rbp,ibar1
# 0 "" 2
#NO_APP
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L54:
	cmp	rbx, 2
	je	.L34
	cmp	rbx, 3
	cmove	rax, r8
.L30:
	or	ecx, eax
	mov	rax, QWORD PTR 16[rdx]
	mov	DWORD PTR [rdx], ecx
	mov	QWORD PTR [rax], rbp
	mov	rax, QWORD PTR 24[rdx]
	mov	rcx, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rax], rcx
	mov	rcx, QWORD PTR 24[rsp]
	mov	QWORD PTR 8[rax], rcx
	mov	rax, QWORD PTR 32[rdx]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR 16[rsp]
	mov	rdx, QWORD PTR 24[rsp]
#APP
# 163 "data/fastsocket/kernel/arch/frv/kernel/extr_gdb-stub.c_gdbstub_set_breakpoint.c" 1
		movgs	rbp,dbar0	
	movgs	rax,dbmr00	
	movgs	rdx,dbmr01	
	movgs	gr0,dbdr00	
	movgs	gr0,dbdr01	

# 0 "" 2
#NO_APP
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r15, rbp
	xor	r13d, r13d
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L16:
	add	r13d, 1
	add	r15, 4
	cmp	r13d, DWORD PTR 8[rsp]
	je	.L55
.L20:
	mov	esi, DWORD PTR BREAK_INSN[rip]
	mov	rdi, r15
	call	gdbstub_write_dword@PLT
	test	eax, eax
	jne	.L16
	test	r13d, r13d
	je	.L19
	lea	eax, -1[r13]
	lea	r12, 4[0+rax*4]
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rax, QWORD PTR gdbstub_bkpts[rip]
	lea	rdi, 0[rbp+r14]
	mov	rax, QWORD PTR 16[rax+rbx]
	mov	esi, DWORD PTR [rax+r14]
	add	r14, 4
	call	gdbstub_write_dword@PLT
	cmp	r12, r14
	jne	.L18
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L50:
	or	edx, esi
	mov	DWORD PTR [rcx], edx
	mov	rdx, QWORD PTR 8[rcx]
	mov	QWORD PTR [rdx], rbp
#APP
# 107 "data/fastsocket/kernel/arch/frv/kernel/extr_gdb-stub.c_gdbstub_set_breakpoint.c" 1
	movgs rbp,ibar0
# 0 "" 2
#NO_APP
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L55:
	mov	rcx, QWORD PTR gdbstub_bkpts[rip]
	add	rcx, rbx
.L10:
	mov	QWORD PTR [rcx], rbp
	xor	eax, eax
	mov	QWORD PTR 8[rcx], r12
	jmp	.L1
.L34:
	mov	rax, rsi
	jmp	.L30
.L52:
	or	edx, esi
	mov	DWORD PTR [rcx], edx
	mov	rdx, QWORD PTR 8[rcx]
	mov	QWORD PTR 16[rdx], rbp
#APP
# 123 "data/fastsocket/kernel/arch/frv/kernel/extr_gdb-stub.c_gdbstub_set_breakpoint.c" 1
	movgs rbp,ibar2
# 0 "" 2
#NO_APP
	jmp	.L1
.L35:
	mov	rsi, r9
	jmp	.L32
.L53:
	or	edx, esi
	mov	DWORD PTR [rcx], edx
	mov	rdx, QWORD PTR 8[rcx]
	mov	QWORD PTR 24[rdx], rbp
#APP
# 131 "data/fastsocket/kernel/arch/frv/kernel/extr_gdb-stub.c_gdbstub_set_breakpoint.c" 1
	movgs rbp,ibar3
# 0 "" 2
#NO_APP
	jmp	.L1
.L49:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gdbstub_set_breakpoint, .-gdbstub_set_breakpoint
	.comm	gdbstub_bkpts,8,8
	.comm	__debug_regs,8,8
	.comm	ENOSPC,4,4
	.comm	EINVAL,4,4
	.comm	EFAULT,4,4
	.comm	DCR_IBE3,4,4
	.comm	DCR_IBE2,4,4
	.comm	DCR_IBE1,4,4
	.comm	DCR_IBE0,4,4
	.comm	DCR_DWBE1,8,8
	.comm	DCR_DWBE0,8,8
	.comm	DCR_DRBE1,8,8
	.comm	DCR_DRBE0,8,8
	.comm	BREAK_INSN,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_gdb-stub.c_gdbstub_set_breakpoint.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gdbstub_set_breakpoint, %function
gdbstub_set_breakpoint:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L54
	sub	sp, sp, #44
	cmp	r0, #1
	mov	r5, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	beq	.L2
	bhi	.L46
	ands	r3, r1, #3
	movne	r3, #1
	cmp	r2, #28
	orrhi	r3, r3, #1
	cmp	r3, #0
	beq	.L6
.L4:
	ldr	r3, .L54+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L47
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L46:
	sub	r3, r0, #2
	cmp	r3, #2
	mov	r4, r0
	bhi	.L4
	sub	r2, r2, #1
	add	r2, r2, r1
	eor	r2, r2, r1
	bics	r7, r2, #7
	bne	.L4
	mov	r2, #32
	mov	r1, #255
	add	r0, sp, #4
	bl	memset
	cmp	r6, #0
	and	r3, r5, #7
	beq	.L28
	mov	r2, r7
	add	r6, r6, r3
	add	r1, sp, #4
	add	r6, r1, r6, lsl #2
	add	r3, r1, r3, lsl #2
.L27:
	str	r2, [r3], #4
	cmp	r3, r6
	bne	.L27
.L28:
	ldr	r3, .L54+8
	ldr	r1, .L54+12
	ldr	r2, .L54+16
	ldr	r3, [r3]
	ldr	r0, [r1]
	ldr	r1, [r2]
	ldr	r2, [r3]
	orr	ip, r0, r1
	tst	r2, ip
	bic	r5, r5, #7
	beq	.L48
	ldr	r1, .L54+20
	ldr	r0, .L54+24
	ldr	ip, [r1]
	ldr	r0, [r0]
	orr	r1, r0, ip
	tst	r2, r1
	beq	.L49
.L30:
	ldr	r3, .L54+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L2:
	ands	r2, r1, #3
	movne	r2, #1
	cmp	r6, #4
	orrne	r2, r2, #1
	cmp	r2, #0
	bne	.L4
	ldr	r2, .L54+8
	ldr	r3, .L54+32
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, [r1]
	ands	r0, r3, r2
	beq	.L50
	ldr	r2, .L54+36
	ldr	r2, [r2]
	ands	r0, r3, r2
	beq	.L51
	ldr	r2, .L54+40
	ldr	r2, [r2]
	ands	r0, r3, r2
	beq	.L52
	ldr	r2, .L54+44
	ldr	r2, [r2]
	ands	r0, r3, r2
	bne	.L30
	ldr	ip, [r1, #4]
	orr	r3, r3, r2
	str	r3, [r1]
	str	r5, [ip, #12]
	.syntax divided
@ 131 "data/fastsocket/kernel/arch/frv/kernel/extr_gdb-stub.c_gdbstub_set_breakpoint.c" 1
	movgs r5,ibar3
@ 0 "" 2
	.arm
	.syntax unified
	b	.L1
.L6:
	ldr	r7, .L54+48
	ldr	r4, .L54+52
	ldr	r3, [r7]
	b	.L11
.L8:
	sub	r4, r4, #12
	cmn	r4, #12
	beq	.L30
.L11:
	ldr	r10, [r3, r4]
	add	r2, r3, r4
	cmp	r10, #0
	mov	r1, r2
	bne	.L8
	lsrs	r9, r6, #2
	beq	.L9
	mov	fp, r10
	lsl	r8, r9, #2
	b	.L10
.L13:
	add	fp, fp, #4
	cmp	r8, fp
	beq	.L14
	ldr	r3, [r7]
	add	r2, r3, r4
.L10:
	ldr	r1, [r2, #8]
	add	r0, r5, fp
	add	r1, r1, fp
	bl	gdbstub_read_dword
	cmp	r0, #0
	bne	.L13
.L18:
	ldr	r3, .L54+56
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L51:
	ldr	ip, [r1, #4]
	orr	r3, r3, r2
	str	r3, [r1]
	str	r5, [ip, #4]
	.syntax divided
@ 115 "data/fastsocket/kernel/arch/frv/kernel/extr_gdb-stub.c_gdbstub_set_breakpoint.c" 1
	movgs r5,ibar1
@ 0 "" 2
	.arm
	.syntax unified
	b	.L1
.L48:
	cmp	r4, #2
	moveq	ip, r1
	beq	.L29
	cmp	r4, #3
	moveq	ip, r0
.L29:
	mov	r0, #0
	ldr	r1, [r3, #8]
	orr	r2, r2, ip
	ldr	ip, [r3, #12]
	str	r2, [r3]
	str	r5, [r1]
	ldr	r2, [ip]
	ldr	r1, [sp, #4]
	ldr	r3, [r3, #16]
	str	r1, [r2]
	ldr	r3, [r3]
	ldr	r1, [sp, #8]
	str	r1, [r2, #4]
	str	r0, [r3]
	str	r0, [r3, #4]
	ldr	r2, [sp, #8]
	ldr	r3, [sp, #4]
	.syntax divided
@ 163 "data/fastsocket/kernel/arch/frv/kernel/extr_gdb-stub.c_gdbstub_set_breakpoint.c" 1
		movgs	r5,dbar0	
	movgs	r3,dbmr00	
	movgs	r2,dbmr01	
	movgs	gr0,dbdr00	
	movgs	gr0,dbdr01	

@ 0 "" 2
	.arm
	.syntax unified
	b	.L1
.L14:
	mov	fp, r5
	mov	r8, #0
	b	.L19
.L15:
	add	r8, r8, #1
	cmp	r8, r9
	add	fp, fp, #4
	beq	.L53
.L19:
	ldr	r3, .L54+60
	mov	r0, fp
	ldr	r1, [r3]
	bl	gdbstub_write_dword
	cmp	r0, #0
	bne	.L15
	cmp	r8, #0
	lslne	r8, r8, #2
	beq	.L18
.L17:
	ldr	r3, [r7]
	add	r0, r5, r10
	add	r3, r3, r4
	ldr	r3, [r3, #8]
	ldr	r1, [r3, r10]
	add	r10, r10, #4
	bl	gdbstub_write_dword
	cmp	r8, r10
	bne	.L17
	b	.L18
.L50:
	ldr	ip, [r1, #4]
	orr	r3, r3, r2
	str	r3, [r1]
	str	r5, [ip]
	.syntax divided
@ 107 "data/fastsocket/kernel/arch/frv/kernel/extr_gdb-stub.c_gdbstub_set_breakpoint.c" 1
	movgs r5,ibar0
@ 0 "" 2
	.arm
	.syntax unified
	b	.L1
.L49:
	cmp	r4, #2
	moveq	r1, ip
	beq	.L31
	cmp	r4, #3
	moveq	r1, r0
.L31:
	mov	r0, #0
	ldr	ip, [r3, #12]
	orr	r2, r2, r1
	ldr	r1, [ip, #4]
	str	r2, [r3]
	ldr	ip, [r3, #8]
	ldr	r2, [sp, #4]
	ldr	r3, [r3, #16]
	str	r5, [ip, #4]
	str	r2, [r1]
	ldr	r3, [r3, #4]
	ldr	r2, [sp, #8]
	str	r2, [r1, #4]
	str	r0, [r3]
	str	r0, [r3, #4]
	ldr	r2, [sp, #8]
	ldr	r3, [sp, #4]
	.syntax divided
@ 183 "data/fastsocket/kernel/arch/frv/kernel/extr_gdb-stub.c_gdbstub_set_breakpoint.c" 1
		movgs	r5,dbar1	
	movgs	r3,dbmr10	
	movgs	r2,dbmr11	
	movgs	gr0,dbdr10	
	movgs	gr0,dbdr11	

@ 0 "" 2
	.arm
	.syntax unified
	b	.L1
.L53:
	ldr	r1, [r7]
	add	r1, r1, r4
.L9:
	mov	r0, #0
	stm	r1, {r5, r6}
	b	.L1
.L52:
	ldr	ip, [r1, #4]
	orr	r3, r3, r2
	str	r3, [r1]
	str	r5, [ip, #8]
	.syntax divided
@ 123 "data/fastsocket/kernel/arch/frv/kernel/extr_gdb-stub.c_gdbstub_set_breakpoint.c" 1
	movgs r5,ibar2
@ 0 "" 2
	.arm
	.syntax unified
	b	.L1
.L47:
	bl	__stack_chk_fail
.L55:
	.align	2
.L54:
	.word	.LC0
	.word	EINVAL
	.word	__debug_regs
	.word	DCR_DRBE0
	.word	DCR_DWBE0
	.word	DCR_DWBE1
	.word	DCR_DRBE1
	.word	ENOSPC
	.word	DCR_IBE0
	.word	DCR_IBE1
	.word	DCR_IBE2
	.word	DCR_IBE3
	.word	gdbstub_bkpts
	.word	3060
	.word	EFAULT
	.word	BREAK_INSN
	.size	gdbstub_set_breakpoint, .-gdbstub_set_breakpoint
	.comm	gdbstub_bkpts,4,4
	.comm	__debug_regs,4,4
	.comm	ENOSPC,4,4
	.comm	EINVAL,4,4
	.comm	EFAULT,4,4
	.comm	DCR_IBE3,4,4
	.comm	DCR_IBE2,4,4
	.comm	DCR_IBE1,4,4
	.comm	DCR_IBE0,4,4
	.comm	DCR_DWBE1,4,4
	.comm	DCR_DWBE0,4,4
	.comm	DCR_DRBE1,4,4
	.comm	DCR_DRBE0,4,4
	.comm	BREAK_INSN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
