	.file	"extr_bitext.c_bit_map_clear.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bit_map_clear
	.type	bit_map_clear, @function
bit_map_clear:
.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, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	DWORD PTR [rdi], edx
	jl	.L10
.L2:
	lea	r15, 8[rbp]
	mov	rdi, r15
	call	spin_lock@PLT
	test	r13d, r13d
	jle	.L3
	mov	ebx, r14d
	lea	r12d, 0[r13+r14]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR 12[rbp]
	mov	edi, ebx
	add	ebx, 1
	call	__clear_bit@PLT
	cmp	ebx, r12d
	je	.L3
.L5:
	mov	esi, DWORD PTR 12[rbp]
	mov	edi, ebx
	call	test_bit@PLT
	test	rax, rax
	jne	.L4
	call	BUG@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	DWORD PTR 4[rbp], r14d
	jle	.L6
	mov	DWORD PTR 4[rbp], r14d
.L6:
	sub	DWORD PTR 0[rbp], r13d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r15
	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
	jmp	spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xor	eax, eax
	call	BUG@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	bit_map_clear, .-bit_map_clear
	.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_bitext.c_bit_map_clear.c"
	.text
	.align	2
	.global	bit_map_clear
	.syntax unified
	.arm
	.fpu softvfp
	.type	bit_map_clear, %function
bit_map_clear:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r3, r2
	mov	r5, r0
	mov	r7, r2
	mov	r8, r1
	blt	.L10
.L2:
	add	r9, r5, #8
	mov	r0, r9
	bl	spin_lock
	cmp	r7, #0
	ble	.L3
	mov	r4, r8
	add	r6, r7, r8
	b	.L5
.L4:
	mov	r0, r4
	ldr	r1, [r5, #12]
	add	r4, r4, #1
	bl	__clear_bit
	cmp	r4, r6
	beq	.L3
.L5:
	mov	r0, r4
	ldr	r1, [r5, #12]
	bl	test_bit
	cmp	r0, #0
	bne	.L4
	bl	BUG
	b	.L4
.L3:
	ldr	r3, [r5, #4]
	ldr	r2, [r5]
	cmp	r3, r8
	sub	r7, r2, r7
	mov	r0, r9
	strgt	r8, [r5, #4]
	str	r7, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	spin_unlock
.L10:
	bl	BUG
	b	.L2
	.size	bit_map_clear, .-bit_map_clear
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
