	.file	"extr_capi.c_cmtp_release_appl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ctrl %p appl %d"
.LC1:
	.string	"Can't find application"
	.text
	.p2align 4
	.type	cmtp_release_appl, @function
cmtp_release_appl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edx, esi
	mov	r13d, esi
	mov	rsi, rdi
	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]
	lea	rdi, .LC0[rip]
	call	BT_DBG@PLT
	mov	esi, DWORD PTR CMTP_APPLID[rip]
	mov	edx, r13d
	mov	rdi, r12
	call	cmtp_application_get@PLT
	test	rax, rax
	je	.L5
	mov	rdi, r12
	mov	rbp, rax
	call	cmtp_msgnum_get@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	edx, DWORD PTR 12[rbp]
	xor	r9d, r9d
	mov	DWORD PTR 8[rbp], eax
	mov	r8d, DWORD PTR CAPI_FUNCTION_RELEASE[rip]
	mov	rdi, r12
	mov	ecx, eax
	push	0
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR CAPI_REQ[rip]
	call	cmtp_send_interopmsg@PLT
	mov	edi, DWORD PTR [r12]
	mov	rax, QWORD PTR BT_CLOSED[rip]
	xor	esi, esi
	mov	edx, DWORD PTR CMTP_INTEROP_TIMEOUT[rip]
	cmp	QWORD PTR 0[rbp], rax
	sete	sil
	call	wait_event_interruptible_timeout@PLT
	pop	rax
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	pop	rdx
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	cmtp_application_del@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	pop	rbp
	.cfi_def_cfa_offset 24
	lea	rdi, .LC1[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	BT_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	cmtp_release_appl, .-cmtp_release_appl
	.comm	CMTP_INTEROP_TIMEOUT,4,4
	.comm	CMTP_APPLID,4,4
	.comm	CAPI_REQ,4,4
	.comm	CAPI_FUNCTION_RELEASE,4,4
	.comm	BT_CLOSED,8,8
	.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_capi.c_cmtp_release_appl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ctrl %p appl %d\000"
	.align	2
.LC1:
	.ascii	"Can't find application\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmtp_release_appl, %function
cmtp_release_appl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r1
	mov	r3, r0
	mov	r1, r0
	mov	r2, r4
	sub	sp, sp, #20
	ldr	r0, .L6
	ldr	r5, [r3]
	bl	BT_DBG
	ldr	r3, .L6+4
	mov	r2, r4
	mov	r0, r5
	ldr	r1, [r3]
	bl	cmtp_application_get
	subs	r4, r0, #0
	beq	.L5
	mov	r0, r5
	bl	cmtp_msgnum_get
	mov	r1, #0
	mov	r3, r0
	ldr	r0, .L6+8
	ldr	r2, [r4, #8]
	ldr	ip, [r0]
	ldr	r0, .L6+12
	str	r3, [r4, #4]
	str	ip, [sp]
	str	r1, [sp, #8]
	str	r1, [sp, #4]
	ldr	r1, [r0]
	mov	r0, r5
	bl	cmtp_send_interopmsg
	ldr	r3, .L6+16
	ldr	r1, [r4]
	ldr	r2, [r3]
	ldr	r3, .L6+20
	sub	r1, r1, r2
	clz	r1, r1
	ldr	r2, [r3]
	ldr	r0, [r5]
	lsr	r1, r1, #5
	bl	wait_event_interruptible_timeout
	mov	r1, r4
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, lr}
	b	cmtp_application_del
.L5:
	ldr	r0, .L6+24
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, lr}
	b	BT_ERR
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	CMTP_APPLID
	.word	CAPI_FUNCTION_RELEASE
	.word	CAPI_REQ
	.word	BT_CLOSED
	.word	CMTP_INTEROP_TIMEOUT
	.word	.LC1
	.size	cmtp_release_appl, .-cmtp_release_appl
	.comm	CMTP_INTEROP_TIMEOUT,4,4
	.comm	CMTP_APPLID,4,4
	.comm	CAPI_REQ,4,4
	.comm	CAPI_FUNCTION_RELEASE,4,4
	.comm	BT_CLOSED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
