	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_bitmap_free_range         ## -- Begin function mlx4_bitmap_free_range
	.p2align	4, 0x90
_mlx4_bitmap_free_range:                ## @mlx4_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, %r13d
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movl	4(%rdi), %ecx
	leal	(%rax,%rcx), %r12d
	decl	%r12d
	andl	%esi, %r12d
	leaq	20(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.1:
	movl	28(%rbx), %edi
	movl	%r12d, %esi
	callq	_min
	movl	%eax, 28(%rbx)
	movl	(%rbx), %eax
	addl	8(%rbx), %eax
	addl	4(%rbx), %eax
	andl	12(%rbx), %eax
	movl	%eax, 8(%rbx)
LBB0_2:
	movl	24(%rbx), %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_bitmap_clear
	addl	%r14d, 16(%rbx)
	movq	%r15, %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	_mlx4_bitmap_free_range         ; -- Begin function mlx4_bitmap_free_range
	.p2align	2
_mlx4_bitmap_free_range:                ; @mlx4_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	x23, x3
	mov	x19, x2
	mov	x20, x0
	ldp	w8, w9, [x0]
	add	w8, w8, w9
	sub	w8, w8, #1
	and	w22, w8, w1
	add	x21, x0, #20
	mov	x0, x21
	bl	_spin_lock
	cbnz	w23, LBB0_2
; %bb.1:
	ldr	w0, [x20, #28]
	mov	x1, x22
	bl	_min
	str	w0, [x20, #28]
	ldp	w8, w9, [x20]
	ldp	w10, w11, [x20, #8]
	add	w8, w8, w10
	add	w8, w8, w9
	and	w8, w8, w11
	str	w8, [x20, #8]
LBB0_2:
	ldr	w0, [x20, #24]
	mov	x1, x22
	mov	x2, x19
	bl	_bitmap_clear
	ldr	w8, [x20, #16]
	add	w8, w8, w19
	str	w8, [x20, #16]
	mov	x0, x21
	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
