	.file	"extr_kgdb.c_kgdb_arch_handle_exception.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kgdb_arch_handle_exception
	.type	kgdb_arch_handle_exception, @function
kgdb_arch_handle_exception:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rsi, rcx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, r9
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movzx	eax, BYTE PTR [rcx]
	cmp	al, 115
	je	.L2
	mov	r12d, -1
	jg	.L1
	mov	edx, eax
	and	edx, -9
	cmp	dl, 99
	je	.L4
	cmp	al, 68
	je	.L4
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r9
	call	kgdb_arch_update_addr@PLT
	xor	eax, eax
	call	raw_smp_processor_id@PLT
	lea	rdi, kgdb_cpu_doing_single_step[rip]
	mov	esi, eax
	call	atomic_set@PLT
	xor	eax, eax
	mov	DWORD PTR kgdb_single_step[rip], 1
	call	kernel_active_single_step@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L15
.L13:
	xor	r12d, r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	call	kgdb_arch_update_addr@PLT
	mov	esi, -1
	lea	rdi, kgdb_cpu_doing_single_step[rip]
	call	atomic_set@PLT
	xor	eax, eax
	mov	DWORD PTR kgdb_single_step[rip], 0
	call	kernel_active_single_step@PLT
	test	eax, eax
	je	.L13
	xor	eax, eax
	call	kernel_disable_single_step@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, rbp
	call	kernel_enable_single_step@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	kgdb_arch_handle_exception, .-kgdb_arch_handle_exception
	.comm	kgdb_single_step,4,4
	.comm	kgdb_cpu_doing_single_step,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_kgdb_arch_handle_exception.c"
	.text
	.align	2
	.global	kgdb_arch_handle_exception
	.syntax unified
	.arm
	.fpu softvfp
	.type	kgdb_arch_handle_exception, %function
kgdb_arch_handle_exception:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #115
	beq	.L2
	bhi	.L8
	and	r2, r3, #247
	cmp	r2, #99
	beq	.L4
	cmp	r3, #68
	beq	.L4
.L8:
	mvn	r4, #0
	mov	r0, r4
	pop	{r4, pc}
.L2:
	ldr	r0, [sp, #12]
	bl	kgdb_arch_update_addr
	bl	raw_smp_processor_id
	mov	r1, r0
	ldr	r0, .L15
	bl	atomic_set
	mov	r2, #1
	ldr	r3, .L15+4
	str	r2, [r3]
	bl	kernel_active_single_step
	subs	r4, r0, #0
	beq	.L14
.L6:
	mov	r4, #0
	mov	r0, r4
	pop	{r4, pc}
.L4:
	mov	r4, #0
	ldr	r0, [sp, #12]
	bl	kgdb_arch_update_addr
	mvn	r1, #0
	ldr	r0, .L15
	bl	atomic_set
	ldr	r3, .L15+4
	str	r4, [r3]
	bl	kernel_active_single_step
	cmp	r0, r4
	beq	.L6
	bl	kernel_disable_single_step
	mov	r0, r4
	pop	{r4, pc}
.L14:
	ldr	r0, [sp, #12]
	bl	kernel_enable_single_step
	mov	r0, r4
	pop	{r4, pc}
.L16:
	.align	2
.L15:
	.word	kgdb_cpu_doing_single_step
	.word	kgdb_single_step
	.size	kgdb_arch_handle_exception, .-kgdb_arch_handle_exception
	.comm	kgdb_single_step,4,4
	.comm	kgdb_cpu_doing_single_step,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
