	.file	"extr_smb2misc.c_smb2_calc_size.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"SMB2 data length %d offset %d\n"
	.align 8
.LC1:
	.string	"data area offset %d overlaps SMB2 header %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"SMB2 len %d\n"
	.text
	.p2align 4
	.globl	smb2_calc_size
	.type	smb2_calc_size, @function
smb2_calc_size:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR [rbx]
	mov	r12, rax
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	rbp, QWORD PTR has_smb2_data_area[rip]
	add	r12d, eax
	call	le16_to_cpu@PLT
	mov	r13d, r12d
	mov	eax, DWORD PTR 0[rbp+rax*4]
	test	eax, eax
	jne	.L7
.L2:
	mov	edi, DWORD PTR FYI[rip]
	xor	eax, eax
	mov	edx, r13d
	lea	rsi, .LC2[rip]
	call	cifs_dbg@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L7:
	.cfi_restore_state
	lea	rdx, 4[rbx]
	lea	rsi, 4[rsp]
	mov	rdi, rsp
	call	smb2_get_data_area_len@PLT
	mov	ecx, DWORD PTR [rsp]
	mov	edx, DWORD PTR 4[rsp]
	xor	eax, eax
	mov	edi, DWORD PTR FYI[rip]
	lea	rsi, .LC0[rip]
	call	cifs_dbg@PLT
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	jle	.L2
	mov	edx, DWORD PTR [rsp]
	lea	r8d, 1[rdx]
	cmp	r8d, r12d
	jl	.L9
	lea	r13d, [rax+rdx]
	mov	r12d, r13d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR VFS[rip]
	mov	ecx, r12d
	mov	edx, r8d
	xor	eax, eax
	lea	rsi, .LC1[rip]
	call	cifs_dbg@PLT
	mov	DWORD PTR 4[rsp], 0
	jmp	.L2
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	smb2_calc_size, .-smb2_calc_size
	.comm	has_smb2_data_area,8,8
	.comm	VFS,4,4
	.comm	FYI,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_smb2misc.c_smb2_calc_size.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SMB2 data length %d offset %d\012\000"
	.align	2
.LC1:
	.ascii	"data area offset %d overlaps SMB2 header %d\012\000"
	.align	2
.LC2:
	.ascii	"SMB2 len %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	smb2_calc_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	smb2_calc_size, %function
smb2_calc_size:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L11
	sub	sp, sp, #20
	mov	r5, r0
	ldr	r0, [r0, #8]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	le16_to_cpu
	mov	r4, r0
	ldr	r0, [r5]
	bl	le16_to_cpu
	mov	r2, r0
	ldr	r3, .L11+4
	ldr	r0, [r5, #4]
	ldr	r6, [r3]
	add	r4, r4, r2
	bl	le16_to_cpu
	ldr	r3, [r6, r0, lsl #2]
	mov	r7, r4
	cmp	r3, #0
	ldr	r6, .L11+8
	bne	.L7
.L2:
	mov	r2, r7
	ldr	r0, [r6]
	ldr	r1, .L11+12
	bl	cifs_dbg
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	add	r2, r5, #4
	add	r1, sp, #8
	add	r0, sp, #4
	bl	smb2_get_data_area_len
	ldr	r3, [sp, #4]
	ldr	r0, [r6]
	ldr	r2, [sp, #8]
	ldr	r1, .L11+16
	bl	cifs_dbg
	ldr	r3, [sp, #8]
	cmp	r3, #0
	ble	.L2
	ldr	r1, [sp, #4]
	add	r2, r1, #1
	cmp	r2, r4
	addge	r7, r3, r1
	movge	r4, r7
	bge	.L2
	ldr	r3, .L11+20
	ldr	r1, .L11+24
	ldr	r0, [r3]
	mov	r3, r4
	bl	cifs_dbg
	mov	r3, #0
	str	r3, [sp, #8]
	b	.L2
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	has_smb2_data_area
	.word	FYI
	.word	.LC2
	.word	.LC0
	.word	VFS
	.word	.LC1
	.size	smb2_calc_size, .-smb2_calc_size
	.comm	has_smb2_data_area,4,4
	.comm	VFS,4,4
	.comm	FYI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
