	.file	"extr_spinlock_debug.c_debug_spin_unlock.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"bad magic"
.LC1:
	.string	"already unlocked"
.LC2:
	.string	"wrong owner"
.LC3:
	.string	"wrong CPU"
	.text
	.p2align 4
	.type	debug_spin_unlock, @function
debug_spin_unlock:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdx, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	xor	edi, edi
	mov	rsi, rbx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR SPINLOCK_MAGIC[rip]
	cmp	QWORD PTR [rbx], rax
	setne	dil
	call	SPIN_BUG_ON@PLT
	mov	rdi, rbx
	call	spin_is_locked@PLT
	xor	edi, edi
	mov	rsi, rbx
	lea	rdx, .LC1[rip]
	test	eax, eax
	sete	dil
	call	SPIN_BUG_ON@PLT
	mov	rax, QWORD PTR current[rip]
	xor	edi, edi
	cmp	QWORD PTR 8[rbx], rax
	setne	dil
	mov	rsi, rbx
	lea	rdx, .LC2[rip]
	call	SPIN_BUG_ON@PLT
	mov	ebp, DWORD PTR 16[rbx]
	xor	eax, eax
	call	raw_smp_processor_id@PLT
	xor	edi, edi
	mov	rsi, rbx
	lea	rdx, .LC3[rip]
	cmp	ebp, eax
	setne	dil
	call	SPIN_BUG_ON@PLT
	mov	rax, QWORD PTR SPINLOCK_OWNER_INIT[rip]
	mov	DWORD PTR 16[rbx], -1
	mov	QWORD PTR 8[rbx], rax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	debug_spin_unlock, .-debug_spin_unlock
	.comm	current,8,8
	.comm	SPINLOCK_OWNER_INIT,8,8
	.comm	SPINLOCK_MAGIC,8,8
	.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_spinlock_debug.c_debug_spin_unlock.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bad magic\000"
	.align	2
.LC1:
	.ascii	"already unlocked\000"
	.align	2
.LC2:
	.ascii	"wrong owner\000"
	.align	2
.LC3:
	.ascii	"wrong CPU\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	debug_spin_unlock, %function
debug_spin_unlock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L4
	ldr	r0, [r0]
	ldr	r3, [r3]
	mov	r1, r4
	subs	r0, r0, r3
	movne	r0, #1
	ldr	r2, .L4+4
	bl	SPIN_BUG_ON
	mov	r0, r4
	bl	spin_is_locked
	clz	r0, r0
	mov	r1, r4
	ldr	r2, .L4+8
	lsr	r0, r0, #5
	bl	SPIN_BUG_ON
	ldr	r3, .L4+12
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	mov	r1, r4
	subs	r0, r0, r3
	movne	r0, #1
	ldr	r2, .L4+16
	bl	SPIN_BUG_ON
	ldr	r5, [r4, #8]
	bl	raw_smp_processor_id
	subs	r0, r5, r0
	ldr	r2, .L4+20
	mov	r1, r4
	movne	r0, #1
	bl	SPIN_BUG_ON
	mvn	r2, #0
	ldr	r3, .L4+24
	str	r2, [r4, #8]
	ldr	r3, [r3]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	SPINLOCK_MAGIC
	.word	.LC0
	.word	.LC1
	.word	current
	.word	.LC2
	.word	.LC3
	.word	SPINLOCK_OWNER_INIT
	.size	debug_spin_unlock, .-debug_spin_unlock
	.comm	current,4,4
	.comm	SPINLOCK_OWNER_INIT,4,4
	.comm	SPINLOCK_MAGIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
