	.file	"extr_hfi_venus.c_venus_session_unset_buffers.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	venus_session_unset_buffers, @function
venus_session_unset_buffers:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rsi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdi
	sub	rsp, 16
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	call	to_hfi_priv@PLT
	mov	rcx, rsp
	mov	r14, rax
	movsx	rax, DWORD PTR IFACEQ_VAR_LARGE_PKT_SIZE[rip]
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L13:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L13
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L14
.L4:
	mov	rsi, QWORD PTR HFI_BUFFER_INPUT[rip]
	mov	r15, rsp
	xor	eax, eax
	cmp	QWORD PTR 0[r13], rsi
	je	.L1
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, r15
	call	pkt_session_unset_buffers@PLT
	test	eax, eax
	jne	.L1
	mov	rsi, r15
	mov	rdi, r14
	call	venus_iface_cmdq_write@PLT
.L1:
	mov	rcx, QWORD PTR -40[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	lea	rsp, -32[rbp]
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	venus_session_unset_buffers, .-venus_session_unset_buffers
	.comm	IFACEQ_VAR_LARGE_PKT_SIZE,4,4
	.comm	HFI_BUFFER_INPUT,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_hfi_venus.c_venus_session_unset_buffers.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	venus_session_unset_buffers, %function
venus_session_unset_buffers:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	mov	r5, r1
	ldr	r3, .L9
	mov	r4, r0
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	to_hfi_priv
	ldr	r3, .L9+4
	ldr	r2, .L9+8
	ldr	r3, [r3]
	ldr	r1, [r5]
	ldr	r2, [r2]
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	cmp	r1, r2
	moveq	r0, #0
	sub	sp, sp, r3
	beq	.L1
	mov	r7, sp
	mov	r6, r0
	mov	r2, r5
	mov	r1, r4
	mov	r0, r7
	bl	pkt_session_unset_buffers
	cmp	r0, #0
	beq	.L7
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L7:
	mov	r1, r7
	mov	r0, r6
	bl	venus_iface_cmdq_write
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	IFACEQ_VAR_LARGE_PKT_SIZE
	.word	HFI_BUFFER_INPUT
	.size	venus_session_unset_buffers, .-venus_session_unset_buffers
	.comm	IFACEQ_VAR_LARGE_PKT_SIZE,4,4
	.comm	HFI_BUFFER_INPUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
