	.file	"extr_gdbstub.c_GspLoadBreakpoints.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"GspLoadBreakpoints\n"
.LC1:
	.string	"DR7 on entry: 0x%08x\n"
.LC2:
	.string	"Final DR7 value 0x%08x\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"Using real software breakpoint\n"
	.text
	.p2align 4
	.type	GspLoadBreakpoints, @function
GspLoadBreakpoints:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	mov	r12, rdi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	ebx, ebx
	call	DPRINT@PLT
	mov	esi, DWORD PTR [r12]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DPRINT@PLT
	mov	eax, DWORD PTR DR7_L0[rip]
	or	eax, DWORD PTR DR7_L1[rip]
	or	eax, DWORD PTR DR7_L2[rip]
	or	eax, DWORD PTR DR7_L3[rip]
	or	eax, DWORD PTR DR7_G0[rip]
	or	eax, DWORD PTR DR7_G1[rip]
	or	eax, DWORD PTR DR7_G2[rip]
	or	eax, DWORD PTR DR7_G3[rip]
	or	eax, DWORD PTR DR7_TYPE0_MASK[rip]
	or	eax, DWORD PTR DR7_LEN0_MASK[rip]
	or	eax, DWORD PTR DR7_TYPE1_MASK[rip]
	or	eax, DWORD PTR DR7_LEN1_MASK[rip]
	or	eax, DWORD PTR DR7_TYPE2_MASK[rip]
	or	eax, DWORD PTR DR7_LEN2_MASK[rip]
	or	eax, DWORD PTR DR7_TYPE3_MASK[rip]
	or	eax, DWORD PTR DR7_LEN3_MASK[rip]
	not	eax
	and	DWORD PTR [r12], eax
	mov	edx, DWORD PTR GspHwBreakpointCount[rip]
	test	edx, edx
	jne	.L2
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	mov	r8d, DWORD PTR I386_BP_TYPE_DATA_READWRITE[rip]
	cmp	edx, 130
	je	.L9
	mov	r8d, DWORD PTR I386_BP_TYPE_DATA_WRITE[rip]
	cmp	edx, 128
	je	.L9
	mov	edi, DWORD PTR FALSE[rip]
	call	ASSERT@PLT
	mov	rax, QWORD PTR GspHwBreakpoints[rip]
	mov	r8d, DWORD PTR I386_BP_TYPE_EXECUTE[rip]
	add	rax, rbp
.L9:
	mov	rsi, QWORD PTR 8[rax]
	mov	edx, DWORD PTR 16[rax]
	mov	rdi, r12
	lea	rcx, -1[rsi]
	mov	esi, ebx
	add	ebx, 1
	call	GspLoadHwBreakpoint@PLT
	cmp	DWORD PTR GspHwBreakpointCount[rip], ebx
	jbe	.L10
.L2:
	mov	eax, ebx
	lea	rbp, [rax+rax*2]
	mov	rax, QWORD PTR GspHwBreakpoints[rip]
	sal	rbp, 3
	add	rax, rbp
	mov	edx, DWORD PTR [rax]
	cmp	edx, 129
	jne	.L23
	mov	r8d, DWORD PTR I386_BP_TYPE_EXECUTE[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR GspSwBreakpointCount[rip]
	xor	ebx, ebx
	lea	rbp, .LC3[rip]
	test	eax, eax
	je	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	xor	eax, eax
	call	DPRINT@PLT
	mov	edi, ebx
	add	ebx, 1
	call	GspLoadSwBreakpoint@PLT
	cmp	DWORD PTR GspSwBreakpointCount[rip], ebx
	ja	.L3
.L4:
	mov	esi, DWORD PTR [r12]
	pop	rbx
	.cfi_def_cfa_offset 24
	lea	rdi, .LC2[rip]
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	DPRINT@PLT
	.cfi_endproc
.LFE0:
	.size	GspLoadBreakpoints, .-GspLoadBreakpoints
	.comm	I386_BP_TYPE_EXECUTE,4,4
	.comm	I386_BP_TYPE_DATA_WRITE,4,4
	.comm	I386_BP_TYPE_DATA_READWRITE,4,4
	.comm	GspSwBreakpointCount,4,4
	.comm	GspHwBreakpoints,8,8
	.comm	GspHwBreakpointCount,4,4
	.comm	FALSE,4,4
	.comm	DR7_TYPE3_MASK,4,4
	.comm	DR7_TYPE2_MASK,4,4
	.comm	DR7_TYPE1_MASK,4,4
	.comm	DR7_TYPE0_MASK,4,4
	.comm	DR7_LEN3_MASK,4,4
	.comm	DR7_LEN2_MASK,4,4
	.comm	DR7_LEN1_MASK,4,4
	.comm	DR7_LEN0_MASK,4,4
	.comm	DR7_L3,4,4
	.comm	DR7_L2,4,4
	.comm	DR7_L1,4,4
	.comm	DR7_L0,4,4
	.comm	DR7_G3,4,4
	.comm	DR7_G2,4,4
	.comm	DR7_G1,4,4
	.comm	DR7_G0,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_gdbstub.c_GspLoadBreakpoints.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"GspLoadBreakpoints\012\000"
	.align	2
.LC1:
	.ascii	"DR7 on entry: 0x%08x\012\000"
	.align	2
.LC2:
	.ascii	"Final DR7 value 0x%08x\012\000"
	.align	2
.LC3:
	.ascii	"Using real software breakpoint\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	GspLoadBreakpoints, %function
GspLoadBreakpoints:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	sub	sp, sp, #12
	ldr	r0, .L20
	bl	DPRINT
	ldr	r1, [r5]
	ldr	r0, .L20+4
	bl	DPRINT
	ldr	r1, .L20+8
	ldr	r3, .L20+12
	ldr	r2, .L20+16
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r1, .L20+20
	ldr	ip, [r2]
	ldr	r2, .L20+24
	orr	r3, r3, r0
	ldr	r0, [r1]
	ldr	r1, .L20+28
	orr	r3, r3, ip
	ldr	ip, [r2]
	ldr	r2, .L20+32
	orr	r3, r3, r0
	ldr	r0, [r1]
	ldr	r1, .L20+36
	orr	r3, r3, ip
	ldr	ip, [r2]
	ldr	r2, .L20+40
	orr	r3, r3, r0
	ldr	r0, [r1]
	ldr	r1, .L20+44
	orr	r3, r3, ip
	ldr	ip, [r2]
	ldr	r2, .L20+48
	orr	r3, r3, r0
	ldr	r0, [r1]
	ldr	r1, .L20+52
	orr	r3, r3, ip
	ldr	ip, [r2]
	ldr	r2, .L20+56
	orr	r3, r3, r0
	ldr	r0, [r1]
	ldr	r1, .L20+60
	orr	r3, r3, ip
	ldr	ip, [r2]
	ldr	r2, .L20+64
	orr	r3, r3, r0
	ldr	r0, [r1]
	ldr	r1, .L20+68
	ldr	r2, [r2]
	orr	r3, r3, ip
	ldr	r1, [r1]
	orr	r3, r3, r0
	orr	r3, r3, r2
	ldr	r2, [r5]
	orr	r3, r3, r1
	bic	r3, r2, r3
	ldr	r7, .L20+72
	str	r3, [r5]
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L10
	mov	r4, #0
	ldr	r6, .L20+76
	mov	r9, r4
	ldr	r8, .L20+80
	ldr	fp, .L20+84
	ldr	r10, .L20+88
	b	.L2
.L19:
	cmp	r3, #128
	beq	.L18
	ldr	r0, [r10]
	bl	ASSERT
	ldr	r2, [r6]
	ldr	r1, [r8]
	add	r2, r2, r4
.L9:
	ldr	r3, [r2, #4]
	mov	r0, r5
	ldr	r2, [r2, #8]
	sub	r3, r3, #1
	str	r1, [sp]
	mov	r1, r9
	bl	GspLoadHwBreakpoint
	ldr	r3, [r7]
	add	r9, r9, #1
	cmp	r3, r9
	add	r4, r4, #12
	bls	.L10
.L2:
	ldr	r2, [r6]
	ldr	r3, [r2, r4]
	add	r2, r2, r4
	cmp	r3, #129
	beq	.L5
	cmp	r3, #130
	bne	.L19
	ldr	r1, [fp]
	b	.L9
.L5:
	ldr	r1, [r8]
	b	.L9
.L18:
	ldr	r3, .L20+92
	ldr	r1, [r3]
	b	.L9
.L10:
	ldr	r6, .L20+96
	ldr	r3, [r6]
	cmp	r3, #0
	movne	r4, #0
	ldrne	r7, .L20+100
	beq	.L4
.L3:
	mov	r0, r7
	bl	DPRINT
	mov	r0, r4
	bl	GspLoadSwBreakpoint
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L3
.L4:
	ldr	r1, [r5]
	ldr	r0, .L20+104
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	DPRINT
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	.LC1
	.word	DR7_L1
	.word	DR7_L0
	.word	DR7_L2
	.word	DR7_L3
	.word	DR7_G0
	.word	DR7_G1
	.word	DR7_G2
	.word	DR7_G3
	.word	DR7_TYPE0_MASK
	.word	DR7_LEN0_MASK
	.word	DR7_TYPE1_MASK
	.word	DR7_LEN1_MASK
	.word	DR7_TYPE2_MASK
	.word	DR7_LEN2_MASK
	.word	DR7_TYPE3_MASK
	.word	DR7_LEN3_MASK
	.word	GspHwBreakpointCount
	.word	GspHwBreakpoints
	.word	I386_BP_TYPE_EXECUTE
	.word	I386_BP_TYPE_DATA_READWRITE
	.word	FALSE
	.word	I386_BP_TYPE_DATA_WRITE
	.word	GspSwBreakpointCount
	.word	.LC3
	.word	.LC2
	.size	GspLoadBreakpoints, .-GspLoadBreakpoints
	.comm	I386_BP_TYPE_EXECUTE,4,4
	.comm	I386_BP_TYPE_DATA_WRITE,4,4
	.comm	I386_BP_TYPE_DATA_READWRITE,4,4
	.comm	GspSwBreakpointCount,4,4
	.comm	GspHwBreakpoints,4,4
	.comm	GspHwBreakpointCount,4,4
	.comm	FALSE,4,4
	.comm	DR7_TYPE3_MASK,4,4
	.comm	DR7_TYPE2_MASK,4,4
	.comm	DR7_TYPE1_MASK,4,4
	.comm	DR7_TYPE0_MASK,4,4
	.comm	DR7_LEN3_MASK,4,4
	.comm	DR7_LEN2_MASK,4,4
	.comm	DR7_LEN1_MASK,4,4
	.comm	DR7_LEN0_MASK,4,4
	.comm	DR7_L3,4,4
	.comm	DR7_L2,4,4
	.comm	DR7_L1,4,4
	.comm	DR7_L0,4,4
	.comm	DR7_G3,4,4
	.comm	DR7_G2,4,4
	.comm	DR7_G1,4,4
	.comm	DR7_G0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
