	.file	"extr_kstack.h_kstack_is_trap_frame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kstack_is_trap_frame, @function
kstack_is_trap_frame:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	rdi, rsi
	ja	.L2
	mov	rax, QWORD PTR THREAD_SIZE[rip]
	lea	rax, -4[rdi+rax]
	cmp	rax, rsi
	jnb	.L3
.L2:
	mov	rax, QWORD PTR hardirq_stack[rip]
	mov	rcx, QWORD PTR [rdi]
	mov	rdx, QWORD PTR [rax+rcx*8]
	xor	eax, eax
	test	rdx, rdx
	je	.L1
	cmp	rsi, rdx
	jb	.L5
	mov	rax, QWORD PTR THREAD_SIZE[rip]
	lea	rax, -4[rdx+rax]
	cmp	rax, rsi
	jnb	.L3
.L5:
	mov	rax, QWORD PTR softirq_stack[rip]
	mov	rdx, QWORD PTR [rax+rcx*8]
	xor	eax, eax
	cmp	rsi, rdx
	jb	.L1
	mov	rcx, QWORD PTR THREAD_SIZE[rip]
	lea	rdx, -4[rdx+rcx]
	cmp	rdx, rsi
	jnb	.L3
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR [rsi]
	and	eax, -512
	cmp	eax, DWORD PTR PT_REGS_MAGIC[rip]
	sete	al
	movzx	eax, al
	ret
	.cfi_endproc
.LFE0:
	.size	kstack_is_trap_frame, .-kstack_is_trap_frame
	.comm	softirq_stack,8,8
	.comm	hardirq_stack,8,8
	.comm	THREAD_SIZE,8,8
	.comm	PT_REGS_MAGIC,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_kstack.h_kstack_is_trap_frame.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kstack_is_trap_frame, %function
kstack_is_trap_frame:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	cmp	r0, r1
	bhi	.L2
	ldr	r3, .L12
	ldr	r3, [r3]
	sub	r3, r3, #4
	add	r3, r3, r0
	cmp	r3, r1
	bcs	.L3
.L2:
	ldr	r2, .L12+4
	ldr	r3, [r0]
	ldr	r2, [r2]
	ldr	r0, [r2, r3, lsl #2]
	cmp	r0, #0
	bxeq	lr
	cmp	r1, r0
	bcc	.L5
	ldr	r2, .L12
	ldr	r2, [r2]
	sub	r2, r2, #4
	add	r0, r2, r0
	cmp	r0, r1
	bcs	.L3
.L5:
	ldr	r2, .L12+8
	ldr	r2, [r2]
	ldr	r2, [r2, r3, lsl #2]
	cmp	r1, r2
	bcc	.L7
	ldr	r3, .L12
	ldr	r3, [r3]
	sub	r3, r3, #4
	add	r3, r3, r2
	cmp	r3, r1
	bcs	.L3
.L7:
	mov	r0, #0
	bx	lr
.L3:
	ldr	r0, [r1]
	ldr	r3, .L12+12
	bic	r0, r0, #508
	ldr	r3, [r3]
	bic	r0, r0, #3
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bx	lr
.L13:
	.align	2
.L12:
	.word	THREAD_SIZE
	.word	hardirq_stack
	.word	softirq_stack
	.word	PT_REGS_MAGIC
	.size	kstack_is_trap_frame, .-kstack_is_trap_frame
	.comm	softirq_stack,4,4
	.comm	hardirq_stack,4,4
	.comm	THREAD_SIZE,4,4
	.comm	PT_REGS_MAGIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
