	.file	"extr_hw_breakpoint.c_hw_breakpoint_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hw_breakpoint_reset, @function
hw_breakpoint_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR bp_on_reg[rip]
	call	this_cpu_ptr@PLT
	mov	edx, DWORD PTR core_num_brps[rip]
	test	edx, edx
	jle	.L2
	mov	rbp, rax
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR HW_BREAKPOINT_RESTORE[rip]
	add	rbx, 1
	call	hw_breakpoint_control@PLT
	cmp	DWORD PTR core_num_brps[rip], ebx
	jle	.L2
.L5:
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	test	rdi, rdi
	jne	.L14
	mov	edi, DWORD PTR AARCH64_DBG_REG_BCR[rip]
	xor	edx, edx
	mov	esi, ebx
	call	write_wb_reg@PLT
	mov	edi, DWORD PTR AARCH64_DBG_REG_BVR[rip]
	xor	edx, edx
	mov	esi, ebx
	add	rbx, 1
	call	write_wb_reg@PLT
	cmp	DWORD PTR core_num_brps[rip], ebx
	jg	.L5
.L2:
	mov	edi, DWORD PTR wp_on_reg[rip]
	call	this_cpu_ptr@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR core_num_wrps[rip]
	test	eax, eax
	jle	.L6
	xor	ebx, ebx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, DWORD PTR HW_BREAKPOINT_RESTORE[rip]
	add	rbx, 1
	call	hw_breakpoint_control@PLT
	cmp	DWORD PTR core_num_wrps[rip], ebx
	jle	.L6
.L9:
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	test	rdi, rdi
	jne	.L15
	mov	edi, DWORD PTR AARCH64_DBG_REG_WCR[rip]
	xor	edx, edx
	mov	esi, ebx
	call	write_wb_reg@PLT
	mov	edi, DWORD PTR AARCH64_DBG_REG_WVR[rip]
	xor	edx, edx
	mov	esi, ebx
	add	rbx, 1
	call	write_wb_reg@PLT
	cmp	DWORD PTR core_num_wrps[rip], ebx
	jg	.L9
.L6:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	hw_breakpoint_reset, .-hw_breakpoint_reset
	.comm	wp_on_reg,4,4
	.comm	core_num_wrps,4,4
	.comm	core_num_brps,4,4
	.comm	bp_on_reg,4,4
	.comm	HW_BREAKPOINT_RESTORE,4,4
	.comm	AARCH64_DBG_REG_WVR,4,4
	.comm	AARCH64_DBG_REG_WCR,4,4
	.comm	AARCH64_DBG_REG_BVR,4,4
	.comm	AARCH64_DBG_REG_BCR,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_hw_breakpoint.c_hw_breakpoint_reset.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hw_breakpoint_reset, %function
hw_breakpoint_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L16+4
	ldr	r0, [r3]
	bl	this_cpu_ptr
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	ldr	r10, .L16+8
	ldr	r9, .L16+12
	ldr	r8, .L16+16
	sub	r6, r0, #4
	b	.L5
.L14:
	mov	r0, r5
	ldr	r1, [r8]
	bl	hw_breakpoint_control
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L2
.L5:
	ldr	r5, [r6, #4]!
	cmp	r5, #0
	bne	.L14
	mov	r1, r4
	mov	r2, r5
	ldr	r0, [r10]
	bl	write_wb_reg
	mov	r1, r4
	mov	r2, r5
	ldr	r0, [r9]
	bl	write_wb_reg
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L5
.L2:
	ldr	r3, .L16+20
	ldr	r7, .L16+24
	ldr	r0, [r3]
	bl	this_cpu_ptr
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L6
	mov	r4, #0
	ldr	r10, .L16+28
	ldr	r9, .L16+32
	ldr	r8, .L16+16
	sub	r6, r0, #4
	b	.L9
.L15:
	mov	r0, r5
	ldr	r1, [r8]
	bl	hw_breakpoint_control
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L6
.L9:
	ldr	r5, [r6, #4]!
	cmp	r5, #0
	bne	.L15
	mov	r1, r4
	mov	r2, r5
	ldr	r0, [r10]
	bl	write_wb_reg
	mov	r1, r4
	mov	r2, r5
	ldr	r0, [r9]
	bl	write_wb_reg
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L9
.L6:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	.align	2
.L16:
	.word	bp_on_reg
	.word	core_num_brps
	.word	AARCH64_DBG_REG_BCR
	.word	AARCH64_DBG_REG_BVR
	.word	HW_BREAKPOINT_RESTORE
	.word	wp_on_reg
	.word	core_num_wrps
	.word	AARCH64_DBG_REG_WCR
	.word	AARCH64_DBG_REG_WVR
	.size	hw_breakpoint_reset, .-hw_breakpoint_reset
	.comm	wp_on_reg,4,4
	.comm	core_num_wrps,4,4
	.comm	core_num_brps,4,4
	.comm	bp_on_reg,4,4
	.comm	HW_BREAKPOINT_RESTORE,4,4
	.comm	AARCH64_DBG_REG_WVR,4,4
	.comm	AARCH64_DBG_REG_WCR,4,4
	.comm	AARCH64_DBG_REG_BVR,4,4
	.comm	AARCH64_DBG_REG_BCR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
