	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_roce_bitmap_free_range     ## -- Begin function hns_roce_bitmap_free_range
	.p2align	4, 0x90
_hns_roce_bitmap_free_range:            ## @hns_roce_bitmap_free_range
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movl	4(%rdi), %ecx
	addl	%ecx, %eax
	decl	%eax
	movslq	%eax, %r12
	andq	%rsi, %r12
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	testl	%r13d, %r13d
	jle	LBB0_3
## %bb.1:
	movl	%r13d, %r13d
	movq	%r12, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r15), %esi
	movq	%rbx, %rdi
	callq	_clear_bit
	incq	%rbx
	decq	%r13
	jne	LBB0_2
LBB0_3:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_5
## %bb.4:
	movl	20(%r15), %edi
	movq	%r12, %rsi
	callq	_min
	movl	%eax, 20(%r15)
LBB0_5:
	movl	(%r15), %eax
	addl	8(%r15), %eax
	addl	4(%r15), %eax
	andl	12(%r15), %eax
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_roce_bitmap_free_range     ; -- Begin function hns_roce_bitmap_free_range
	.p2align	2
_hns_roce_bitmap_free_range:            ; @hns_roce_bitmap_free_range
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x23, x2
	mov	x19, x0
	ldp	w8, w9, [x0]
	add	w8, w8, w9
	sub	w8, w8, #1
	sxtw	x8, w8
	and	x22, x8, x1
	add	x20, x0, #16
	mov	x0, x20
	bl	_spin_lock
	cmp	w23, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w24, w23
	mov	x23, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #24]
	mov	x0, x23
	bl	_clear_bit
	add	x23, x23, #1
	subs	x24, x24, #1
	b.ne	LBB0_2
LBB0_3:
	cbnz	w21, LBB0_5
; %bb.4:
	ldr	w0, [x19, #20]
	mov	x1, x22
	bl	_min
	str	w0, [x19, #20]
LBB0_5:
	ldp	w8, w9, [x19]
	ldp	w10, w11, [x19, #8]
	add	w8, w8, w10
	add	w8, w8, w9
	and	w8, w8, w11
	str	w8, [x19, #8]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
