	.file	"extr_zstd_ldm.c_ZSTD_ldm_getTableSize.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ZSTD_ldm_getTableSize
	.type	ZSTD_ldm_getTableSize, @function
ZSTD_ldm_getTableSize:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r12, QWORD PTR 32[rsp]
	mov	edi, DWORD PTR 48[rsp]
	mov	rsi, r12
	call	MIN@PLT
	mov	ecx, r12d
	mov	edi, 1
	sub	ecx, eax
	sal	rdi, cl
	call	ZSTD_cwksp_alloc_size@PLT
	mov	ecx, r12d
	mov	edi, 4
	sal	rdi, cl
	mov	rbx, rax
	call	ZSTD_cwksp_alloc_size@PLT
	cmp	QWORD PTR 40[rsp], 0
	lea	r8, [rbx+rax]
	jne	.L1
	xor	r8d, r8d
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rax, r8
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ZSTD_ldm_getTableSize, .-ZSTD_ldm_getTableSize
	.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_zstd_ldm.c_ZSTD_ldm_getTableSize.c"
	.text
	.align	2
	.global	ZSTD_ldm_getTableSize
	.syntax unified
	.arm
	.fpu softvfp
	.type	ZSTD_ldm_getTableSize, %function
ZSTD_ldm_getTableSize:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	sub	sp, sp, #16
	add	r3, sp, #16
	stmdb	r3, {r0, r1, r2}
	ldr	r4, [sp, #4]
	ldr	r0, [sp, #12]
	mov	r1, r4
	bl	MIN
	mov	r3, #1
	sub	r0, r4, r0
	lsl	r0, r3, r0
	bl	ZSTD_cwksp_alloc_size
	mov	r3, r0
	mov	r0, #4
	lsl	r0, r0, r4
	mov	r4, r3
	bl	ZSTD_cwksp_alloc_size
	ldr	r3, [sp, #8]
	cmp	r3, #0
	moveq	r0, r3
	addne	r0, r4, r0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
	.size	ZSTD_ldm_getTableSize, .-ZSTD_ldm_getTableSize
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
