	.file	"extr_sbitmap.c_sbitmap_prepare_to_wait.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sbitmap_prepare_to_wait
	.type	sbitmap_prepare_to_wait, @function
sbitmap_prepare_to_wait:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	mov	rsi, rdx
	mov	edx, ecx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR 8[rsi], 0
	je	.L5
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	prepare_to_wait_exclusive@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rbx, rdi
	mov	QWORD PTR [rsp], rsi
	mov	DWORD PTR 12[rsp], ecx
	call	atomic_inc@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	edx, DWORD PTR 12[rsp]
	mov	rdi, rbp
	mov	QWORD PTR 8[rsi], rbx
	add	rsp, 24
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	prepare_to_wait_exclusive@PLT
	.cfi_endproc
.LFE0:
	.size	sbitmap_prepare_to_wait, .-sbitmap_prepare_to_wait
	.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_sbitmap.c_sbitmap_prepare_to_wait.c"
	.text
	.align	2
	.global	sbitmap_prepare_to_wait
	.syntax unified
	.arm
	.fpu softvfp
	.type	sbitmap_prepare_to_wait, %function
sbitmap_prepare_to_wait:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	ldr	r2, [r2, #4]
	mov	r5, r1
	cmp	r2, #0
	sub	sp, sp, #8
	mov	r2, r3
	beq	.L5
.L2:
	mov	r1, r4
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	prepare_to_wait_exclusive
.L5:
	mov	r6, r0
	str	r3, [sp, #4]
	bl	atomic_inc
	ldr	r2, [sp, #4]
	str	r6, [r4, #4]
	b	.L2
	.size	sbitmap_prepare_to_wait, .-sbitmap_prepare_to_wait
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
