	.file	"extr_zstdmt_compress.c_ZSTDMT_createJobsTable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ZSTDMT_createJobsTable, @function
ZSTDMT_createJobsTable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, 1
	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, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR [rdi]
	mov	DWORD PTR 12[rsp], esi
	call	ZSTD_highbit32@PLT
	mov	esi, r15d
	lea	ecx, 1[rax]
	sal	r14d, cl
	lea	edi, 0[0+r14*8]
	call	ZSTD_calloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L1
	mov	DWORD PTR [rbx], r14d
	test	r14d, r14d
	jle	.L1
	lea	r15, 4[rax]
	lea	eax, -1[r14]
	xor	ebp, ebp
	lea	r12, 12[r13+rax*8]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r15
	xor	esi, esi
	call	ZSTD_pthread_mutex_init@PLT
	lea	rdi, -4[r15]
	xor	esi, esi
	add	r15, 8
	mov	ebx, eax
	call	ZSTD_pthread_cond_init@PLT
	or	ebx, eax
	or	ebp, ebx
	cmp	r15, r12
	jne	.L3
	test	ebp, ebp
	jne	.L13
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
.L13:
	.cfi_restore_state
	mov	edx, DWORD PTR 12[rsp]
	mov	rdi, r13
	mov	esi, r14d
	xor	r13d, r13d
	call	ZSTDMT_freeJobsTable@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ZSTDMT_createJobsTable, .-ZSTDMT_createJobsTable
	.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_zstdmt_compress.c_ZSTDMT_createJobsTable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ZSTDMT_createJobsTable, %function
ZSTDMT_createJobsTable:
	@ 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
	ldr	r0, [r0]
	mov	r9, r1
	mov	r8, #1
	bl	ZSTD_highbit32
	mov	r6, #8
	add	r3, r0, r8
	lsl	r6, r6, r3
	mov	r0, r6
	mov	r1, r9
	lsl	r8, r8, r3
	bl	ZSTD_calloc
	subs	r7, r0, #0
	beq	.L1
	cmp	r8, #0
	str	r8, [r4]
	ble	.L1
	mov	r10, #0
	add	r5, r7, #4
	add	r6, r6, r5
.L3:
	mov	r1, #0
	mov	r0, r5
	bl	ZSTD_pthread_mutex_init
	mov	r1, #0
	mov	r4, r0
	sub	r0, r5, #4
	bl	ZSTD_pthread_cond_init
	add	r5, r5, #8
	orr	r4, r4, r0
	cmp	r5, r6
	orr	r10, r10, r4
	bne	.L3
	cmp	r10, #0
	bne	.L13
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	mov	r0, r7
	mov	r2, r9
	mov	r1, r8
	bl	ZSTDMT_freeJobsTable
	mov	r7, #0
	b	.L1
	.size	ZSTDMT_createJobsTable, .-ZSTDMT_createJobsTable
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
