	.file	"extr_locks.c_lck_spin_sleep.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid lock sleep action %x\n"
	.text
	.p2align 4
	.globl	lck_spin_sleep
	.type	lck_spin_sleep, @function
lck_spin_sleep:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR LCK_SLEEP_MASK[rip]
	not	eax
	test	eax, esi
	jne	.L13
.L2:
	mov	edi, r12d
	mov	esi, r13d
	call	assert_wait@PLT
	cmp	QWORD PTR THREAD_WAITING[rip], rax
	mov	r12, rax
	je	.L14
	test	DWORD PTR LCK_SLEEP_UNLOCK[rip], ebx
	jne	.L15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	panic@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, rbp
	call	lck_spin_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, rbp
	call	lck_spin_unlock@PLT
	mov	edi, DWORD PTR THREAD_CONTINUE_NULL[rip]
	call	thread_block@PLT
	mov	r12, rax
	test	DWORD PTR LCK_SLEEP_UNLOCK[rip], ebx
	jne	.L1
	mov	rdi, rbp
	call	lck_spin_lock@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	lck_spin_sleep, .-lck_spin_sleep
	.comm	THREAD_WAITING,8,8
	.comm	THREAD_CONTINUE_NULL,4,4
	.comm	LCK_SLEEP_UNLOCK,4,4
	.comm	LCK_SLEEP_MASK,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_locks.c_lck_spin_sleep.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid lock sleep action %x\012\000"
	.text
	.align	2
	.global	lck_spin_sleep
	.syntax unified
	.arm
	.fpu softvfp
	.type	lck_spin_sleep, %function
lck_spin_sleep:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L16
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r0, [ip]
	mov	r4, r2
	bics	r2, r1, r0
	mov	r5, r1
	mov	r6, r3
	bne	.L13
.L2:
	mov	r0, r4
	mov	r1, r6
	bl	assert_wait
	ldr	r3, .L16+4
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L14
	ldr	r3, .L16+8
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L15
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r0, .L16+12
	bl	panic
	b	.L2
.L15:
	mov	r0, r7
	bl	lck_spin_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r0, r7
	bl	lck_spin_unlock
	ldr	r3, .L16+16
	ldr	r0, [r3]
	bl	thread_block
	ldr	r3, .L16+8
	mov	r4, r0
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L1
	mov	r0, r7
	bl	lck_spin_lock
	b	.L1
.L17:
	.align	2
.L16:
	.word	LCK_SLEEP_MASK
	.word	THREAD_WAITING
	.word	LCK_SLEEP_UNLOCK
	.word	.LC0
	.word	THREAD_CONTINUE_NULL
	.size	lck_spin_sleep, .-lck_spin_sleep
	.comm	THREAD_WAITING,4,4
	.comm	THREAD_CONTINUE_NULL,4,4
	.comm	LCK_SLEEP_UNLOCK,4,4
	.comm	LCK_SLEEP_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
