	.file	"extr_sclp.c_sclp_check_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"sclp: unsolicited interrupt for buffer at 0x%x\n"
	.text
	.p2align 4
	.type	sclp_check_handler, @function
sclp_check_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edi, DWORD PTR IRQEXT_SCP[rip]
	mov	ebx, esi
	call	inc_irq_stat@PLT
	and	ebx, -8
	je	.L1
	cmp	ebx, DWORD PTR sclp_init_sccb[rip]
	jne	.L7
.L3:
	lea	rdi, sclp_lock[rip]
	call	spin_lock@PLT
	mov	rax, QWORD PTR sclp_running_state_running[rip]
	cmp	QWORD PTR sclp_running_state[rip], rax
	je	.L8
	lea	rdi, sclp_lock[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, ebx
	lea	rdi, .LC0[rip]
	call	panic@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR SCLP_REQ_DONE[rip]
	lea	rdi, sclp_lock[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR sclp_init_req[rip], eax
	mov	rax, QWORD PTR sclp_running_state_idle[rip]
	mov	QWORD PTR sclp_running_state[rip], rax
	jmp	spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sclp_check_handler, .-sclp_check_handler
	.comm	sclp_running_state_running,8,8
	.comm	sclp_running_state_idle,8,8
	.comm	sclp_running_state,8,8
	.comm	sclp_lock,4,4
	.comm	sclp_init_sccb,8,8
	.comm	sclp_init_req,4,4
	.comm	SCLP_REQ_DONE,4,4
	.comm	IRQEXT_SCP,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_sclp.c_sclp_check_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sclp: unsolicited interrupt for buffer at 0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sclp_check_handler, %function
sclp_check_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r1
	ldr	r3, .L9
	ldr	r0, [r3]
	bl	inc_irq_stat
	bics	r1, r4, #7
	popeq	{r4, pc}
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r3, r1
	bne	.L7
.L3:
	ldr	r0, .L9+8
	bl	spin_lock
	ldr	r3, .L9+12
	ldr	r2, .L9+16
	ldr	r1, [r3]
	ldr	r2, [r2]
	cmp	r1, r2
	beq	.L8
	pop	{r4, lr}
	ldr	r0, .L9+8
	b	spin_unlock
.L7:
	ldr	r0, .L9+20
	bl	panic
	b	.L3
.L8:
	ldr	r1, .L9+24
	ldr	r2, .L9+28
	ldr	r0, [r1]
	ldr	r1, .L9+32
	ldr	r2, [r2]
	str	r0, [r1]
	pop	{r4, lr}
	ldr	r0, .L9+8
	str	r2, [r3]
	b	spin_unlock
.L10:
	.align	2
.L9:
	.word	IRQEXT_SCP
	.word	sclp_init_sccb
	.word	sclp_lock
	.word	sclp_running_state
	.word	sclp_running_state_running
	.word	.LC0
	.word	SCLP_REQ_DONE
	.word	sclp_running_state_idle
	.word	sclp_init_req
	.size	sclp_check_handler, .-sclp_check_handler
	.comm	sclp_running_state_running,4,4
	.comm	sclp_running_state_idle,4,4
	.comm	sclp_running_state,4,4
	.comm	sclp_lock,4,4
	.comm	sclp_init_sccb,4,4
	.comm	sclp_init_req,4,4
	.comm	SCLP_REQ_DONE,4,4
	.comm	IRQEXT_SCP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
