	.file	"extr_bitmap.c___bitmap_shift_right.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	__bitmap_shift_right
	.type	__bitmap_shift_right, @function
__bitmap_shift_right:
.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, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	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
	mov	edi, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	BITS_TO_LONGS@PLT
	mov	r12d, DWORD PTR BITS_PER_LONG[rip]
	mov	r11d, 1
	xor	r9d, r9d
	mov	r10d, eax
	mov	eax, r13d
	cdq
	lea	r13d, -1[r10]
	idiv	r12d
	mov	eax, r14d
	mov	esi, edx
	cdq
	idiv	r12d
	mov	ecx, esi
	sal	r11, cl
	sub	r11, 1
	sub	r12d, edx
	movsx	r8, eax
	cmp	r10d, eax
	jg	.L12
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L24:
	lea	r14d, 1[r8]
	cmp	r14d, r10d
	jge	.L17
	mov	r15, QWORD PTR 8[rbx+r8*8]
	cmp	r13d, r14d
	je	.L6
	mov	ecx, r12d
	sal	r15, cl
	test	esi, esi
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L15:
	mov	ecx, edx
	add	r8, 1
	shr	rdi, cl
	or	rdi, r15
	mov	QWORD PTR 0[rbp+r9*8], rdi
	add	r9, 1
	cmp	r10d, r8d
	jle	.L13
.L12:
	mov	rdi, QWORD PTR [rbx+r8*8]
	test	edx, edx
	jne	.L24
.L17:
	xor	r15d, r15d
	test	esi, esi
	je	.L15
.L9:
	mov	r14d, r13d
.L8:
	mov	rcx, rdi
	and	rcx, r11
	cmp	r14d, r8d
	cmove	rdi, rcx
	mov	ecx, edx
	shr	rdi, cl
	mov	rcx, r11
	or	rdi, r15
	and	rcx, rdi
	cmp	r14d, r9d
	cmove	rdi, rcx
	add	r8, 1
	mov	QWORD PTR 0[rbp+r9*8], rdi
	add	r9, 1
	cmp	r10d, r8d
	jg	.L12
.L13:
	test	eax, eax
	jne	.L25
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	test	esi, esi
	je	.L7
	and	r15, r11
	mov	ecx, r12d
	sal	r15, cl
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, r12d
	sal	r15, cl
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L25:
	sub	r10d, eax
	add	rsp, 8
	.cfi_def_cfa_offset 56
	lea	edx, 0[0+rax*8]
	xor	esi, esi
	movsx	r10, r10d
	pop	rbx
	.cfi_def_cfa_offset 48
	lea	rdi, 0[rbp+r10*8]
	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	memset@PLT
	.cfi_endproc
.LFE0:
	.size	__bitmap_shift_right, .-__bitmap_shift_right
	.comm	BITS_PER_LONG,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_bitmap.c___bitmap_shift_right.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.global	__bitmap_shift_right
	.syntax unified
	.arm
	.fpu softvfp
	.type	__bitmap_shift_right, %function
__bitmap_shift_right:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	sub	sp, sp, #12
	mov	r0, r3
	mov	r9, r2
	mov	r5, r3
	mov	r4, r1
	bl	BITS_TO_LONGS
	ldr	r3, .L25
	mov	r8, r0
	mov	r0, r5
	ldr	r5, [r3]
	mov	r1, r5
	bl	__aeabi_idivmod
	mov	r0, r9
	mov	r6, r1
	mov	r1, r5
	bl	__aeabi_idivmod
	mvn	r3, #0
	mvn	r3, r3, lsl r6
	cmp	r8, r0
	mov	r2, r0
	str	r3, [sp]
	ble	.L13
	sub	r0, r5, r1
	str	r0, [sp, #4]
	mov	r3, #0
	add	lr, r4, r2, lsl #2
	sub	r0, r8, r2
	sub	r10, r8, #1
	add	fp, r2, #1
	b	.L12
.L23:
	add	r4, fp, r3
	cmp	r8, r4
	ble	.L17
	cmp	r10, r4
	ldr	r5, [lr]
	beq	.L6
	ldr	r4, [sp, #4]
	cmp	r6, #0
	lsl	r5, r5, r4
	bne	.L9
.L15:
	orr	ip, r5, ip, lsr r1
	str	ip, [r7, r3, lsl #2]
	add	r3, r3, #1
	cmp	r0, r3
	beq	.L13
.L12:
	cmp	r1, #0
	ldr	ip, [lr], #4
	bne	.L23
.L17:
	cmp	r6, #0
	mov	r5, #0
	beq	.L15
.L9:
	mov	r4, r10
.L8:
	add	r9, r3, r2
	cmp	r4, r9
	ldreq	r9, [sp]
	andeq	ip, ip, r9
.L11:
	cmp	r3, r4
	orr	ip, r5, ip, lsr r1
	ldreq	r4, [sp]
	andeq	ip, ip, r4
.L21:
	str	ip, [r7, r3, lsl #2]
	add	r3, r3, #1
	cmp	r0, r3
	bne	.L12
.L13:
	cmp	r2, #0
	bne	.L24
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	cmp	r6, #0
	beq	.L7
	ldr	r9, [sp]
	and	r5, r5, r9
	ldr	r9, [sp, #4]
	lsl	r5, r5, r9
	b	.L8
.L7:
	ldr	r4, [sp, #4]
	lsl	r5, r5, r4
	b	.L15
.L24:
	mov	r1, #0
	sub	r0, r8, r2
	add	r0, r7, r0, lsl #2
	lsl	r2, r2, #2
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	memset
.L26:
	.align	2
.L25:
	.word	BITS_PER_LONG
	.size	__bitmap_shift_right, .-__bitmap_shift_right
	.comm	BITS_PER_LONG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
