	.file	"extr_layer2.c_l2_st5_dm_release.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	l2_st5_dm_release, @function
l2_st5_dm_release:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rsi, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	r12, QWORD PTR [rdi]
	mov	rbp, rdi
	mov	rdi, r12
	call	get_PollFlagFree@PLT
	test	rax, rax
	jne	.L12
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	esi, 7
	mov	rdi, r12
	lea	r13, 8[r12]
	call	stop_t200@PLT
	mov	edi, DWORD PTR FLG_L3_INIT[rip]
	mov	rsi, r13
	call	test_bit@PLT
	test	rax, rax
	je	.L13
.L4:
	mov	edi, DWORD PTR FLG_LAPB[rip]
	mov	rsi, r13
	call	test_bit@PLT
	test	rax, rax
	jne	.L14
.L5:
	mov	rdi, r12
	call	st5_dl_release_l2l3@PLT
	mov	esi, DWORD PTR ST_L2_4[rip]
	mov	rdi, rbp
	call	mISDN_FsmChangeState@PLT
	cmp	QWORD PTR [r12], 0
	je	.L1
	mov	esi, DWORD PTR MDL_STATUS_DOWN_IND[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	xor	edx, edx
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	l2_tei@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, r12
	call	l2_newid@PLT
	mov	esi, DWORD PTR PH_DEACTIVATE_REQ[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edx, eax
	mov	rdi, r12
	call	l2down_create@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rdi, 12[r12]
	call	skb_queue_purge@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	l2_st5_dm_release, .-l2_st5_dm_release
	.comm	ST_L2_4,4,4
	.comm	PH_DEACTIVATE_REQ,4,4
	.comm	MDL_STATUS_DOWN_IND,4,4
	.comm	FLG_LAPB,4,4
	.comm	FLG_L3_INIT,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_layer2.c_l2_st5_dm_release.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	l2_st5_dm_release, %function
l2_st5_dm_release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	mov	r4, r0
	mov	r1, r2
	mov	r0, r5
	sub	sp, sp, #8
	bl	get_PollFlagFree
	cmp	r0, #0
	bne	.L15
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	mov	r1, #7
	mov	r0, r5
	bl	stop_t200
	ldr	r3, .L18
	add	r6, r5, #4
	mov	r1, r6
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L16
.L4:
	ldr	r3, .L18+4
	mov	r1, r6
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L17
.L5:
	mov	r0, r5
	bl	st5_dl_release_l2l3
	ldr	r3, .L18+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	mISDN_FsmChangeState
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L1
	mov	r0, r5
	mov	r2, #0
	ldr	r3, .L18+12
	ldr	r1, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	l2_tei
.L17:
	ldr	r3, .L18+16
	mov	r0, r5
	ldr	r6, [r3]
	bl	l2_newid
	mov	r3, #0
	mov	r2, r0
	mov	r1, r6
	mov	r0, r5
	str	r3, [sp]
	bl	l2down_create
	b	.L5
.L16:
	add	r0, r5, #8
	bl	skb_queue_purge
	b	.L4
.L19:
	.align	2
.L18:
	.word	FLG_L3_INIT
	.word	FLG_LAPB
	.word	ST_L2_4
	.word	MDL_STATUS_DOWN_IND
	.word	PH_DEACTIVATE_REQ
	.size	l2_st5_dm_release, .-l2_st5_dm_release
	.comm	ST_L2_4,4,4
	.comm	PH_DEACTIVATE_REQ,4,4
	.comm	MDL_STATUS_DOWN_IND,4,4
	.comm	FLG_LAPB,4,4
	.comm	FLG_L3_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
