	.file	"extr_bitmap.c_bitmap_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bitmap_init
	.type	bitmap_init, @function
bitmap_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdx, QWORD PTR [rsi]
	mov	rax, QWORD PTR 16[rsi]
	mov	esi, 255
	mov	ecx, DWORD PTR LG_SIZEOF_BITMAP[rip]
	mov	edx, DWORD PTR [rax+rdx*4]
	sal	edx, cl
	call	memset@PLT
	mov	rax, QWORD PTR BITMAP_GROUP_NBITS_MASK[rip]
	mov	rdx, QWORD PTR 8[rbx]
	mov	rcx, QWORD PTR BITMAP_GROUP_NBITS[rip]
	and	rdx, rax
	sub	rcx, rdx
	and	rcx, rax
	je	.L2
	mov	rax, QWORD PTR 16[rbx]
	movsx	rax, DWORD PTR 4[rax]
	shr	QWORD PTR -8[rbp+rax*8], cl
.L2:
	cmp	QWORD PTR [rbx], 1
	jbe	.L1
	mov	rdi, QWORD PTR 16[rbx]
	mov	edx, 1
	mov	eax, 1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	ecx, -1[rdx]
	mov	rsi, QWORD PTR BITMAP_GROUP_NBITS_MASK[rip]
	mov	eax, DWORD PTR [rdi+rax*4]
	sub	eax, DWORD PTR [rdi+rcx*4]
	mov	rcx, QWORD PTR BITMAP_GROUP_NBITS[rip]
	cdqe
	and	rax, rsi
	sub	rcx, rax
	lea	eax, 1[rdx]
	mov	rdx, rax
	and	rcx, rsi
	je	.L4
	movsx	rsi, DWORD PTR [rdi+rax*4]
	shr	QWORD PTR -8[rbp+rsi*8], cl
.L4:
	cmp	QWORD PTR [rbx], rax
	ja	.L5
.L1:
	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	bitmap_init, .-bitmap_init
	.comm	LG_SIZEOF_BITMAP,4,4
	.comm	BITMAP_GROUP_NBITS_MASK,8,8
	.comm	BITMAP_GROUP_NBITS,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_bitmap.c_bitmap_init.c"
	.text
	.align	2
	.global	bitmap_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	bitmap_init, %function
bitmap_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r3, .L16
	ldr	r1, [r1]
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	ldr	r2, [r2, r1, lsl #2]
	ldr	r7, .L16+4
	lsl	r2, r2, r3
	mov	r1, #255
	ldr	r6, .L16+8
	mov	r5, r0
	bl	memset
	ldr	r2, [r7]
	ldr	r1, [r4, #4]
	ldr	r3, [r6]
	and	r1, r1, r2
	sub	r3, r3, r1
	ands	r3, r3, r2
	beq	.L2
	ldr	r2, [r4, #8]
	ldr	r2, [r2, #4]
	sub	r2, r2, #-1073741823
	ldr	r1, [r5, r2, lsl #2]
	lsr	r3, r1, r3
	str	r3, [r5, r2, lsl #2]
.L2:
	ldr	lr, [r4]
	cmp	lr, #1
	popls	{r4, r5, r6, r7, r8, pc}
	mov	r0, #1
	ldr	r1, [r4, #8]
.L5:
	ldr	r3, [r1]
	ldr	r2, [r1, #4]
	ldr	ip, [r7]
	sub	r2, r2, r3
	ldr	r3, [r6]
	and	r2, r2, ip
	sub	r3, r3, r2
	ands	r3, r3, ip
	add	r0, r0, #1
	add	r1, r1, #4
	beq	.L4
	ldr	r2, [r1, #4]
	sub	r2, r2, #-1073741823
	ldr	ip, [r5, r2, lsl #2]
	lsr	r3, ip, r3
	str	r3, [r5, r2, lsl #2]
	ldr	lr, [r4]
.L4:
	cmp	lr, r0
	bhi	.L5
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	.align	2
.L16:
	.word	LG_SIZEOF_BITMAP
	.word	BITMAP_GROUP_NBITS_MASK
	.word	BITMAP_GROUP_NBITS
	.size	bitmap_init, .-bitmap_init
	.comm	LG_SIZEOF_BITMAP,4,4
	.comm	BITMAP_GROUP_NBITS_MASK,4,4
	.comm	BITMAP_GROUP_NBITS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
