	.file	"extr_workqueue.c_create_workqueue_thread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%s/%d"
	.text
	.p2align 4
	.type	create_workqueue_thread, @function
create_workqueue_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MAX_RT_PRIO[rip]
	mov	rdi, rbp
	sub	eax, 1
	mov	DWORD PTR 4[rsp], eax
	call	is_wq_single_threaded@PLT
	mov	ecx, DWORD PTR 8[rbp]
	mov	r8d, r12d
	mov	rsi, rbx
	test	rax, rax
	lea	rdx, .LC0[rip]
	lea	rax, .LC1[rip]
	mov	edi, DWORD PTR worker_thread[rip]
	cmove	rdx, rax
	call	kthread_create@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L10
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR [rax], 0
	jne	.L11
.L5:
	mov	QWORD PTR [rbx], rbp
	mov	esi, r12d
	mov	rdi, rbp
	call	trace_workqueue_creation@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR SCHED_FIFO[rip]
	lea	rdx, 4[rsp]
	mov	rdi, rbp
	call	sched_setscheduler_nocheck@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	call	PTR_ERR@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	create_workqueue_thread, .-create_workqueue_thread
	.comm	worker_thread,4,4
	.comm	SCHED_FIFO,4,4
	.comm	MAX_RT_PRIO,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_workqueue.c_create_workqueue_thread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"%s/%d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_workqueue_thread, %function
create_workqueue_thread:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L16
	ldr	r5, [r0, #4]
	ldr	r3, [r3]
	ldr	r2, .L16+4
	sub	sp, sp, #20
	sub	r3, r3, #1
	mov	r4, r0
	mov	r0, r5
	mov	r7, r1
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r3, [sp, #8]
	bl	is_wq_single_threaded
	ldr	ip, .L16+8
	ldr	r1, .L16+12
	cmp	r0, #0
	ldr	r3, [r5, #4]
	ldr	r2, .L16+16
	ldr	r0, [ip]
	moveq	r2, r1
	str	r7, [sp]
	mov	r1, r4
	bl	kthread_create
	mov	r6, r0
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L13
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
.L5:
	mov	r1, r7
	mov	r0, r6
	str	r6, [r4]
	bl	trace_workqueue_creation
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	ldr	r3, .L16+20
	mov	r0, r6
	ldr	r1, [r3]
	add	r2, sp, #8
	bl	sched_setscheduler_nocheck
	b	.L5
.L13:
	mov	r0, r6
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	MAX_RT_PRIO
	.word	.LC2
	.word	worker_thread
	.word	.LC1
	.word	.LC0
	.word	SCHED_FIFO
	.size	create_workqueue_thread, .-create_workqueue_thread
	.comm	worker_thread,4,4
	.comm	SCHED_FIFO,4,4
	.comm	MAX_RT_PRIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
