	.file	"extr_chsc.c_chsc_process_sei_link_incident.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"chsc: link incident (rs=%02x, rs_id=%04x)\n"
	.align 8
.LC1:
	.string	"chsc: link incident - invalid LIR\n"
	.text
	.p2align 4
	.type	chsc_process_sei_link_incident, @function
chsc_process_sei_link_incident:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	ecx, DWORD PTR 8[rdi]
	mov	edx, DWORD PTR [rdi]
	mov	edi, 4
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	CIO_CRW_EVENT@PLT
	cmp	DWORD PTR [rbx], 4
	je	.L8
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	call	__get_chpid_from_lir@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L10
	lea	rdi, 4[rsp]
	call	chp_id_init@PLT
	mov	edi, ebp
	mov	DWORD PTR 4[rsp], ebp
	call	chsc_chp_offline@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rsi, .LC1[rip]
	mov	edi, 4
	xor	eax, eax
	call	CIO_CRW_EVENT@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	chsc_process_sei_link_incident, .-chsc_process_sei_link_incident
	.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_chsc.c_chsc_process_sei_link_incident.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"chsc: link incident (rs=%02x, rs_id=%04x)\012\000"
	.align	2
.LC1:
	.ascii	"chsc: link incident - invalid LIR\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	chsc_process_sei_link_incident, %function
chsc_process_sei_link_incident:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	ldr	ip, .L11
	ldr	r3, [r0, #8]
	ldr	r2, [r0]
	sub	sp, sp, #12
	mov	r0, #4
	ldr	r1, .L11+4
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	bl	CIO_CRW_EVENT
	ldr	r5, [r4]
	cmp	r5, #4
	beq	.L8
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L8:
	ldr	r0, [r4, #4]
	bl	__get_chpid_from_lir
	subs	r4, r0, #0
	blt	.L10
	mov	r0, sp
	bl	chp_id_init
	mov	r0, r4
	str	r4, [sp]
	bl	chsc_chp_offline
	b	.L1
.L10:
	mov	r0, r5
	ldr	r1, .L11+8
	bl	CIO_CRW_EVENT
	b	.L1
.L9:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	chsc_process_sei_link_incident, .-chsc_process_sei_link_incident
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
