	.file	"extr_cloudabi_futex.c_futex_lock_set_owner.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	futex_lock_set_owner, @function
futex_lock_set_owner:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR CLOUDABI_LOCK_WRLOCKED[rip]
	mov	edx, eax
	not	edx
	test	edx, esi
	je	.L4
	or	eax, DWORD PTR CLOUDABI_LOCK_KERNEL_MANAGED[rip]
	not	eax
	and	eax, esi
	cmp	DWORD PTR LOCK_UNMANAGED[rip], eax
	je	.L4
	mov	DWORD PTR [rdi], eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR LOCK_OWNER_UNKNOWN[rip]
	mov	DWORD PTR [rdi], eax
	ret
	.cfi_endproc
.LFE0:
	.size	futex_lock_set_owner, .-futex_lock_set_owner
	.comm	LOCK_UNMANAGED,4,4
	.comm	LOCK_OWNER_UNKNOWN,8,8
	.comm	CLOUDABI_LOCK_WRLOCKED,4,4
	.comm	CLOUDABI_LOCK_KERNEL_MANAGED,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_cloudabi_futex.c_futex_lock_set_owner.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	futex_lock_set_owner, %function
futex_lock_set_owner:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L6
	ldr	r3, [r3]
	bics	r2, r1, r3
	beq	.L4
	ldr	ip, .L6+4
	ldr	r2, .L6+8
	ldr	ip, [ip]
	ldr	r2, [r2]
	orr	r3, r3, ip
	bic	r1, r1, r3
	cmp	r2, r1
	beq	.L4
	str	r1, [r0]
	bx	lr
.L4:
	ldr	r3, .L6+12
	ldr	r3, [r3]
	str	r3, [r0]
	bx	lr
.L7:
	.align	2
.L6:
	.word	CLOUDABI_LOCK_WRLOCKED
	.word	CLOUDABI_LOCK_KERNEL_MANAGED
	.word	LOCK_UNMANAGED
	.word	LOCK_OWNER_UNKNOWN
	.size	futex_lock_set_owner, .-futex_lock_set_owner
	.comm	LOCK_UNMANAGED,4,4
	.comm	LOCK_OWNER_UNKNOWN,4,4
	.comm	CLOUDABI_LOCK_WRLOCKED,4,4
	.comm	CLOUDABI_LOCK_KERNEL_MANAGED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
