	.file	"extr_bitmap.c_hfs_clear_vbm_bits.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"clear_bits: %u,%u\n"
	.text
	.p2align 4
	.globl	hfs_clear_vbm_bits
	.type	hfs_clear_vbm_bits, @function
hfs_clear_vbm_bits:
.LFB0:
	.cfi_startproc
	endbr64
	xor	eax, eax
	test	rdx, rdx
	jne	.L23
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rcx, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	mov	rdx, rsi
	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
	mov	rbx, rsi
	lea	rsi, .LC0[rip]
	lea	r13, [r12+rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR BITMAP[rip]
	call	hfs_dbg@PLT
	mov	rdi, rbp
	call	HFS_SB@PLT
	cmp	r13, QWORD PTR [rax]
	jg	.L11
	mov	rdi, rbp
	mov	r13d, r12d
	call	HFS_SB@PLT
	lea	rdi, 12[rax]
	call	mutex_lock@PLT
	mov	rdi, rbp
	call	HFS_SB@PLT
	test	rbx, rbx
	mov	r8, rax
	lea	rax, 31[rbx]
	cmovns	rax, rbx
	mov	rdx, QWORD PTR 16[r8]
	sar	rax, 5
	lea	r14, [rdx+rax*4]
	test	bl, 31
	je	.L3
	mov	rax, rbx
	mov	ecx, 32
	sar	rax, 63
	shr	rax, 59
	add	rbx, rax
	and	ebx, 31
	sub	rbx, rax
	mov	eax, -1
	sub	ecx, ebx
	mov	edi, eax
	movsx	r15, ecx
	sal	edi, cl
	cmp	r15, r12
	jg	.L24
	call	cpu_to_be32@PLT
	sub	r12, r15
	lea	rdx, 4[r14]
	and	DWORD PTR [r14], eax
	mov	r14, rdx
	cmp	r12, 31
	jg	.L8
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	r12, 31
	jle	.L9
.L8:
	mov	rdx, r14
	mov	rax, r12
	.p2align 4,,10
	.p2align 3
.L7:
	sub	rax, 32
	add	rdx, 4
	mov	DWORD PTR -4[rdx], 0
	cmp	rax, 31
	jg	.L7
	lea	rcx, -32[r12]
	mov	esi, 4
	mov	rax, rcx
	shr	rax, 5
	cmp	r12, 31
	lea	rdx, 4[0+rax*4]
	cmovle	rdx, rsi
	neg	rax
	sal	rax, 5
	add	r14, rdx
	cmp	r12, 31
	mov	r12d, 0
	cmovg	r12, rax
	add	r12, rcx
.L6:
	test	r12, r12
	jne	.L9
.L5:
	mov	rdi, rbp
	call	HFS_SB@PLT
	mov	rdi, rbp
	add	DWORD PTR 8[rax], r13d
	call	HFS_SB@PLT
	lea	rdi, 12[rax]
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	hfs_bitmap_dirty@PLT
	xor	eax, eax
.L1:
	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
.L24:
	.cfi_restore_state
	lea	ecx, [r12+rbx]
	shr	eax, cl
	or	edi, eax
	call	cpu_to_be32@PLT
	and	DWORD PTR [r14], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ecx, r12d
	mov	edi, -1
	shr	edi, cl
	call	cpu_to_be32@PLT
	and	DWORD PTR [r14], eax
	jmp	.L5
.L11:
	mov	eax, -2
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	hfs_clear_vbm_bits, .-hfs_clear_vbm_bits
	.comm	BITMAP,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_hfs_clear_vbm_bits.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"clear_bits: %u,%u\012\000"
	.text
	.align	2
	.global	hfs_clear_vbm_bits
	.syntax unified
	.arm
	.fpu softvfp
	.type	hfs_clear_vbm_bits, %function
hfs_clear_vbm_bits:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r4, r2, #0
	bne	.L23
.L15:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
	mov	r6, r0
	ldr	r2, .L25
	mov	r3, r4
	mov	r5, r1
	ldr	r0, [r2]
	mov	r2, r1
	ldr	r1, .L25+4
	bl	hfs_dbg
	mov	r0, r6
	bl	HFS_SB
	ldr	r3, [r0]
	add	r2, r4, r5
	cmp	r2, r3
	bgt	.L10
	mov	r0, r6
	bl	HFS_SB
	add	r0, r0, #8
	bl	mutex_lock
	mov	r0, r6
	bl	HFS_SB
	cmp	r5, #0
	add	r8, r5, #31
	movge	r8, r5
	ldr	r9, [r0, #12]
	asr	r8, r8, #5
	ands	r0, r5, #31
	add	r7, r9, r8, lsl #2
	beq	.L3
	mov	r3, r0
	mvn	r2, #0
	rsbs	r5, r5, #0
	and	r5, r5, #31
	rsbpl	r3, r5, #0
	rsb	r5, r3, #32
	cmp	r4, r5
	lsl	r0, r2, r5
	blt	.L24
	bl	cpu_to_be32
	ldr	r3, [r9, r8, lsl #2]
	sub	r2, r4, r5
	and	r3, r3, r0
	cmp	r2, #31
	add	r7, r7, #4
	str	r3, [r9, r8, lsl #2]
	bgt	.L8
	b	.L6
.L3:
	cmp	r4, #31
	mov	r2, r4
	ble	.L9
.L8:
	mov	r3, r7
	mov	r1, r2
	mov	r0, #0
.L7:
	sub	r1, r1, #32
	cmp	r1, #31
	str	r0, [r3], #4
	bgt	.L7
	sub	r1, r2, #32
	lsr	r3, r1, #5
	cmp	r2, #31
	rsb	r2, r3, r3, lsl #27
	add	r3, r3, #1
	movle	r2, #0
	movgt	r2, r2, lsl #5
	movle	r3, #4
	movgt	r3, r3, lsl #2
	add	r2, r1, r2
	add	r7, r7, r3
.L6:
	cmp	r2, #0
	bne	.L9
.L5:
	mov	r0, r6
	bl	HFS_SB
	mov	r1, r0
	ldr	r3, [r0, #4]
	mov	r0, r6
	add	r3, r3, r4
	str	r3, [r1, #4]
	bl	HFS_SB
	mov	r4, #0
	add	r0, r0, #8
	bl	mutex_unlock
	mov	r0, r6
	bl	hfs_bitmap_dirty
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L24:
	add	r3, r4, r3
	orr	r0, r0, r2, lsr r3
	bl	cpu_to_be32
	ldr	r3, [r9, r8, lsl #2]
	and	r3, r3, r0
	str	r3, [r9, r8, lsl #2]
	b	.L5
.L9:
	mvn	r0, #0
	lsr	r0, r0, r2
	bl	cpu_to_be32
	ldr	r3, [r7]
	and	r3, r3, r0
	str	r3, [r7]
	b	.L5
.L10:
	mvn	r4, #1
	b	.L15
.L26:
	.align	2
.L25:
	.word	BITMAP
	.word	.LC0
	.size	hfs_clear_vbm_bits, .-hfs_clear_vbm_bits
	.comm	BITMAP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
