	.file	"extr_opensolaris_taskq.c_taskq_create_impl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
	.text
	.p2align 4
	.type	taskq_create_impl, @function
taskq_create_impl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	test	DWORD PTR TASKQ_THREADS_CPU_PCT[rip], r8d
	jne	.L8
.L2:
	mov	esi, DWORD PTR KM_SLEEP[rip]
	mov	edi, 4
	call	kmem_alloc@PLT
	mov	edx, DWORD PTR taskqueue_thread_enqueue[rip]
	mov	esi, DWORD PTR M_WAITOK[rip]
	mov	rdi, rbx
	mov	rcx, rax
	mov	r12, rax
	call	taskqueue_create@PLT
	mov	r9, rbx
	mov	rcx, r14
	mov	edx, r13d
	mov	DWORD PTR [r12], eax
	mov	esi, ebp
	mov	rdi, r12
	lea	r8, .LC0[rip]
	call	taskqueue_start_threads_in_proc@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	imul	ebp, DWORD PTR mp_ncpus[rip]
	mov	esi, 1
	movsx	rdi, ebp
	sar	ebp, 31
	imul	rdi, rdi, 1374389535
	sar	rdi, 37
	sub	edi, ebp
	call	MAX@PLT
	mov	ebp, eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	taskq_create_impl, .-taskq_create_impl
	.comm	taskqueue_thread_enqueue,4,4
	.comm	mp_ncpus,4,4
	.comm	TASKQ_THREADS_CPU_PCT,4,4
	.comm	M_WAITOK,4,4
	.comm	KM_SLEEP,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_opensolaris_taskq.c_taskq_create_impl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	taskq_create_impl, %function
taskq_create_impl:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	ip, .L9
	sub	sp, sp, #8
	ldr	lr, [sp, #32]
	ldr	ip, [ip]
	mov	r6, r0
	tst	lr, ip
	mov	r5, r1
	mov	r7, r2
	mov	r8, r3
	bne	.L8
.L2:
	ldr	r3, .L9+4
	mov	r0, #4
	ldr	r1, [r3]
	bl	kmem_alloc
	ldr	r2, .L9+8
	ldr	r1, .L9+12
	mov	r4, r0
	mov	r3, r0
	ldr	r2, [r2]
	mov	r0, r6
	ldr	r1, [r1]
	bl	taskqueue_create
	ldr	ip, .L9+16
	str	r0, [r4]
	mov	r3, r8
	mov	r2, r7
	mov	r1, r5
	mov	r0, r4
	str	r6, [sp, #4]
	str	ip, [sp]
	bl	taskqueue_start_threads_in_proc
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r2, .L9+20
	ldr	r3, .L9+24
	ldr	r0, [r2]
	mov	r1, #1
	mul	r5, r0, r5
	smull	r2, r0, r3, r5
	asr	r5, r5, #31
	rsb	r0, r5, r0, asr #5
	bl	MAX
	mov	r5, r0
	b	.L2
.L10:
	.align	2
.L9:
	.word	TASKQ_THREADS_CPU_PCT
	.word	KM_SLEEP
	.word	taskqueue_thread_enqueue
	.word	M_WAITOK
	.word	.LC0
	.word	mp_ncpus
	.word	1374389535
	.size	taskq_create_impl, .-taskq_create_impl
	.comm	taskqueue_thread_enqueue,4,4
	.comm	mp_ncpus,4,4
	.comm	TASKQ_THREADS_CPU_PCT,4,4
	.comm	M_WAITOK,4,4
	.comm	KM_SLEEP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
