	.file	"extr_rtmutex.c_task_blocks_on_rt_mutex.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	task_blocks_on_rt_mutex, @function
task_blocks_on_rt_mutex:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	rt_mutex_owner@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	lockdep_assert_held@PLT
	cmp	r13, r12
	je	.L20
	mov	rdi, r12
	mov	r15, rbx
	call	raw_spin_lock@PLT
	mov	eax, DWORD PTR 20[r12]
	mov	QWORD PTR 16[rbx], r12
	mov	rdi, rbp
	mov	QWORD PTR 8[rbx], rbp
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR 16[r12]
	mov	DWORD PTR [rbx], eax
	call	rt_mutex_has_waiters@PLT
	test	rax, rax
	jne	.L21
.L4:
	mov	rdi, rbp
	mov	rsi, rbx
	call	rt_mutex_enqueue@PLT
	mov	QWORD PTR 8[r12], rbx
	mov	rdi, r12
	call	raw_spin_unlock@PLT
	test	r13, r13
	je	.L18
	mov	rdi, r13
	call	raw_spin_lock@PLT
	mov	rdi, rbp
	call	rt_mutex_top_waiter@PLT
	cmp	rbx, rax
	je	.L22
	mov	esi, r14d
	mov	rdi, rbx
	call	rt_mutex_cond_detect_deadlock@PLT
	test	rax, rax
	je	.L7
.L10:
	mov	rdi, r13
	call	task_blocked_on_lock@PLT
	mov	rdi, r13
	mov	r15, rax
	call	raw_spin_unlock@PLT
	test	r15, r15
	je	.L18
	mov	rdi, r13
	call	get_task_struct@PLT
	mov	rdi, rbp
	call	raw_spin_unlock_irq@PLT
	mov	r9, r12
	mov	rdi, r13
	mov	r8, rbx
	mov	rcx, r15
	mov	rdx, rbp
	mov	esi, r14d
	call	rt_mutex_adjust_prio_chain@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	raw_spin_lock_irq@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbp
	call	rt_mutex_top_waiter@PLT
	mov	r15, rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rsi, r15
	mov	rdi, r13
	call	rt_mutex_dequeue_pi@PLT
	mov	rsi, rbx
	mov	rdi, r13
	call	rt_mutex_enqueue_pi@PLT
	mov	rdi, r13
	call	rt_mutex_adjust_prio@PLT
	cmp	QWORD PTR 8[r13], 0
	jne	.L10
.L7:
	mov	rdi, r13
	call	task_blocked_on_lock@PLT
	mov	rdi, r13
	call	raw_spin_unlock@PLT
.L18:
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L20:
	.cfi_restore_state
	mov	r12d, DWORD PTR EDEADLK[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	task_blocks_on_rt_mutex, .-task_blocks_on_rt_mutex
	.comm	EDEADLK,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_rtmutex.c_task_blocks_on_rt_mutex.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	task_blocks_on_rt_mutex, %function
task_blocks_on_rt_mutex:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	mov	r5, r2
	mov	r4, r1
	mov	r8, r3
	mov	r6, r0
	bl	rt_mutex_owner
	mov	r7, r0
	mov	r0, r6
	bl	lockdep_assert_held
	cmp	r7, r5
	beq	.L22
	mov	r0, r5
	bl	raw_spin_lock
	ldr	r2, [r5, #12]
	ldr	r3, [r5, #8]
	mov	r0, r6
	stmib	r4, {r2, r6}
	str	r5, [r4, #12]
	str	r3, [r4]
	bl	rt_mutex_has_waiters
	cmp	r0, #0
	moveq	r9, r4
	bne	.L23
.L4:
	mov	r1, r4
	mov	r0, r6
	bl	rt_mutex_enqueue
	mov	r0, r5
	str	r4, [r5, #4]
	bl	raw_spin_unlock
	cmp	r7, #0
	beq	.L20
	mov	r0, r7
	bl	raw_spin_lock
	mov	r0, r6
	bl	rt_mutex_top_waiter
	cmp	r4, r0
	beq	.L24
	mov	r1, r8
	mov	r0, r4
	bl	rt_mutex_cond_detect_deadlock
	cmp	r0, #0
	beq	.L7
.L10:
	mov	r0, r7
	bl	task_blocked_on_lock
	mov	r9, r0
	mov	r0, r7
	bl	raw_spin_unlock
	cmp	r9, #0
	beq	.L20
	mov	r0, r7
	bl	get_task_struct
	mov	r0, r6
	bl	raw_spin_unlock_irq
	mov	r3, r9
	mov	r1, r8
	mov	r2, r6
	stm	sp, {r4, r5}
	mov	r0, r7
	bl	rt_mutex_adjust_prio_chain
	mov	r4, r0
	mov	r0, r6
	bl	raw_spin_lock_irq
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L23:
	mov	r0, r6
	bl	rt_mutex_top_waiter
	mov	r9, r0
	b	.L4
.L24:
	mov	r1, r9
	mov	r0, r7
	bl	rt_mutex_dequeue_pi
	mov	r1, r4
	mov	r0, r7
	bl	rt_mutex_enqueue_pi
	mov	r0, r7
	bl	rt_mutex_adjust_prio
	ldr	r3, [r7, #4]
	cmp	r3, #0
	bne	.L10
.L7:
	mov	r0, r7
	bl	task_blocked_on_lock
	mov	r0, r7
	bl	raw_spin_unlock
.L20:
	mov	r4, #0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L22:
	ldr	r3, .L25
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L26:
	.align	2
.L25:
	.word	EDEADLK
	.size	task_blocks_on_rt_mutex, .-task_blocks_on_rt_mutex
	.comm	EDEADLK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
