	.file	"extr_hw_breakpoint.c_hw_breakpoint_control.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Can't find any breakpoint slot"
	.text
	.p2align 4
	.type	hw_breakpoint_control, @function
hw_breakpoint_control:
.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, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	counter_arch_bp@PLT
	mov	r14, QWORD PTR current[rip]
	mov	edi, DWORD PTR 16[rax]
	mov	rbx, rax
	call	debug_exception_level@PLT
	mov	DWORD PTR 8[rsp], eax
	mov	rax, QWORD PTR ARM_BREAKPOINT_EXECUTE[rip]
	cmp	QWORD PTR 8[rbx], rax
	je	.L16
	mov	edi, DWORD PTR wp_on_reg[rip]
	mov	r13d, DWORD PTR AARCH64_DBG_REG_WCR[rip]
	mov	r15d, DWORD PTR AARCH64_DBG_REG_WVR[rip]
	call	this_cpu_ptr@PLT
	mov	r8d, DWORD PTR [r14]
	mov	esi, DWORD PTR core_num_wrps[rip]
	mov	rdi, rax
	xor	eax, eax
	test	r8d, r8d
	sete	al
	mov	DWORD PTR 12[rsp], eax
.L3:
	mov	ecx, ebp
	mov	rdx, r12
	call	hw_breakpoint_slot_setup@PLT
	lea	rsi, .LC0[rip]
	mov	edi, eax
	mov	r14d, eax
	shr	edi, 31
	call	WARN_ONCE@PLT
	test	rax, rax
	jne	.L1
	cmp	ebp, 129
	je	.L5
	cmp	ebp, 130
	je	.L6
	cmp	ebp, 128
	je	.L7
.L14:
	xor	r14d, r14d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rsp]
	call	enable_debug_monitors@PLT
.L5:
	mov	edx, DWORD PTR [rbx]
	mov	esi, r14d
	mov	edi, r15d
	call	write_wb_reg@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	rsi, QWORD PTR 16[rbx]
	call	encode_ctrl_reg@PLT
	mov	ecx, DWORD PTR 12[rsp]
	mov	esi, r14d
	mov	edi, r13d
	mov	edx, eax
	and	eax, -2
	or	edx, 1
	test	ecx, ecx
	cmove	edx, eax
	xor	r14d, r14d
	call	write_wb_reg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR bp_on_reg[rip]
	mov	r13d, DWORD PTR AARCH64_DBG_REG_BCR[rip]
	mov	r15d, DWORD PTR AARCH64_DBG_REG_BVR[rip]
	call	this_cpu_ptr@PLT
	mov	r9d, DWORD PTR 4[r14]
	mov	esi, DWORD PTR core_num_brps[rip]
	mov	rdi, rax
	xor	eax, eax
	test	r9d, r9d
	sete	al
	mov	DWORD PTR 12[rsp], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, r13d
	xor	edx, edx
	mov	esi, r14d
	call	write_wb_reg@PLT
	mov	edi, DWORD PTR 8[rsp]
	call	disable_debug_monitors@PLT
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	hw_breakpoint_control, .-hw_breakpoint_control
	.comm	wp_on_reg,4,4
	.comm	current,8,8
	.comm	core_num_wrps,4,4
	.comm	core_num_brps,4,4
	.comm	bp_on_reg,4,4
	.comm	ARM_BREAKPOINT_EXECUTE,8,8
	.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_control.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Can't find any breakpoint slot\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hw_breakpoint_control, %function
hw_breakpoint_control:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	mov	r7, r0
	bl	counter_arch_bp
	mov	r4, r0
	ldr	r3, .L18
	ldr	r0, [r0, #8]
	ldr	r6, [r3]
	bl	debug_exception_level
	ldr	r3, .L18+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	mov	r10, r0
	cmp	r2, r3
	beq	.L16
	ldr	r1, .L18+8
	ldr	r3, .L18+12
	ldr	r2, .L18+16
	ldr	r0, [r1]
	ldr	r9, [r3]
	ldr	r8, [r2]
	bl	this_cpu_ptr
	ldr	r6, [r6]
	ldr	r3, .L18+20
	clz	r6, r6
	ldr	r1, [r3]
	lsr	r6, r6, #5
.L3:
	mov	r2, r7
	mov	r3, r5
	bl	hw_breakpoint_slot_setup
	ldr	r1, .L18+24
	mov	r7, r0
	lsr	r0, r0, #31
	bl	WARN_ONCE
	subs	fp, r0, #0
	movne	fp, r7
	bne	.L1
	cmp	r5, #129
	beq	.L5
	cmp	r5, #130
	beq	.L6
	cmp	r5, #128
	beq	.L17
.L1:
	mov	r0, fp
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r0, r10
	bl	enable_debug_monitors
.L5:
	ldr	r2, [r4], #4
	mov	r1, r7
	mov	r0, r9
	bl	write_wb_reg
	ldm	r4, {r0, r1}
	bl	encode_ctrl_reg
	cmp	r6, #0
	orrne	r2, r0, #1
	biceq	r2, r0, #1
	mov	r1, r7
	mov	r0, r8
	bl	write_wb_reg
	mov	r0, fp
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r1, .L18+28
	ldr	r3, .L18+32
	ldr	r2, .L18+36
	ldr	r0, [r1]
	ldr	r9, [r3]
	ldr	r8, [r2]
	bl	this_cpu_ptr
	ldr	r6, [r6, #4]
	ldr	r3, .L18+40
	clz	r6, r6
	ldr	r1, [r3]
	lsr	r6, r6, #5
	b	.L3
.L17:
	mov	r1, r7
	mov	r2, fp
	mov	r0, r8
	bl	write_wb_reg
	mov	r0, r10
	bl	disable_debug_monitors
	mov	r0, fp
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	.align	2
.L18:
	.word	current
	.word	ARM_BREAKPOINT_EXECUTE
	.word	wp_on_reg
	.word	AARCH64_DBG_REG_WVR
	.word	AARCH64_DBG_REG_WCR
	.word	core_num_wrps
	.word	.LC0
	.word	bp_on_reg
	.word	AARCH64_DBG_REG_BVR
	.word	AARCH64_DBG_REG_BCR
	.word	core_num_brps
	.size	hw_breakpoint_control, .-hw_breakpoint_control
	.comm	wp_on_reg,4,4
	.comm	current,4,4
	.comm	core_num_wrps,4,4
	.comm	core_num_brps,4,4
	.comm	bp_on_reg,4,4
	.comm	ARM_BREAKPOINT_EXECUTE,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
