	.file	"extr_q6asm.c___q6asm_memory_unmap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"invalid mem handle\n"
	.text
	.p2align 4
	.type	__q6asm_memory_unmap, @function
__q6asm_memory_unmap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movsx	r14, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR [rax]
	call	dev_get_drvdata@PLT
	mov	r15, rax
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR [rax+r14*8], 0
	je	.L8
	mov	eax, DWORD PTR APR_HDR_SIZE[rip]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	r13d, 8[rax]
	mov	edi, r13d
	call	kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rbp, rax
	neg	r12d
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR APR_SEQ_CMD_HDR_FIELD[rip]
	mov	r12, r14
	xor	ecx, ecx
	mov	rsi, rbx
	movsx	rax, DWORD PTR APR_HDR_SIZE[rip]
	mov	QWORD PTR 24[rbp], 0
	mov	rdi, r15
	mov	DWORD PTR 32[rbp], edx
	mov	edx, DWORD PTR [rbx]
	mov	QWORD PTR 16[rbp], 0
	sal	edx, 8
	mov	DWORD PTR 0[rbp], r13d
	or	r12d, edx
	mov	edx, DWORD PTR ASM_CMD_SHARED_MEM_UNMAP_REGIONS[rip]
	mov	DWORD PTR 4[rbp], r12d
	mov	DWORD PTR 8[rbp], edx
	mov	rdx, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR [rdx+r14*8]
	mov	QWORD PTR 0[rbp+rax], rdx
	mov	rdx, rbp
	call	q6asm_apr_send_session_pkt@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L9
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbp
	xor	r12d, r12d
	mov	QWORD PTR [rax+r14*8], 0
	call	kfree@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, rbp
	call	kfree@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	__q6asm_memory_unmap, .-__q6asm_memory_unmap
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	ASM_CMD_SHARED_MEM_UNMAP_REGIONS,4,4
	.comm	APR_SEQ_CMD_HDR_FIELD,4,4
	.comm	APR_HDR_SIZE,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_q6asm.c___q6asm_memory_unmap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid mem handle\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__q6asm_memory_unmap, %function
__q6asm_memory_unmap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r6, r2
	ldr	r3, [r0, #8]
	ldr	r0, [r3]
	bl	dev_get_drvdata
	ldr	r3, [r4, #4]
	ldr	r3, [r3, r6, lsl #2]
	cmp	r3, #0
	beq	.L8
	ldr	r10, .L11
	ldr	r3, .L11+4
	ldr	r7, [r10]
	mov	r8, r0
	add	r7, r7, #4
	mov	r0, r7
	ldr	r1, [r3]
	bl	kzalloc
	subs	r5, r0, #0
	beq	.L9
	mov	r9, #0
	ldr	r3, .L11+8
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	ldr	r0, .L11+12
	ldr	r1, [r1, r6, lsl #2]
	str	r3, [r5, #20]
	ldr	r3, [r4]
	ldr	ip, [r0]
	ldr	r2, [r10]
	orr	r3, r6, r3, lsl #8
	stmib	r5, {r3, ip}
	str	r7, [r5]
	str	r9, [r5, #16]
	str	r9, [r5, #12]
	mov	r0, r8
	str	r1, [r5, r2]
	mov	r3, r9
	mov	r2, r5
	mov	r1, r4
	bl	q6asm_apr_send_session_pkt
	subs	r7, r0, #0
	blt	.L10
	mov	r7, r9
	ldr	r3, [r4, #4]
	mov	r0, r5
	str	r9, [r3, r6, lsl #2]
	bl	kfree
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	ldr	r3, .L11+16
	ldr	r7, [r3]
	rsb	r7, r7, #0
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	ldr	r0, [r4, #8]
	ldr	r1, .L11+20
	bl	dev_err
	ldr	r3, .L11+24
	ldr	r7, [r3]
	rsb	r7, r7, #0
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r0, r5
	bl	kfree
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	APR_HDR_SIZE
	.word	GFP_KERNEL
	.word	APR_SEQ_CMD_HDR_FIELD
	.word	ASM_CMD_SHARED_MEM_UNMAP_REGIONS
	.word	ENOMEM
	.word	.LC0
	.word	EINVAL
	.size	__q6asm_memory_unmap, .-__q6asm_memory_unmap
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	ASM_CMD_SHARED_MEM_UNMAP_REGIONS,4,4
	.comm	APR_SEQ_CMD_HDR_FIELD,4,4
	.comm	APR_HDR_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
