	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bitmap_alloc_range
_bitmap_alloc_range:                    ## @bitmap_alloc_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	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %r15
	cmpl	$1, %esi
	jne	LBB0_2
## %bb.1:
	cmpl	$1, %r13d
	jne	LBB0_2
## %bb.16:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_bitmap_alloc              ## TAILCALL
LBB0_2:
	movl	(%r15), %edx
	movl	$-1, %eax
	cmpl	%r14d, %edx
	jl	LBB0_15
## %bb.3:
	movl	4(%r15), %esi
	movl	20(%r15), %edi
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	callq	_find_aligned_range
	movl	(%r15), %edx
	cmpl	%edx, %eax
	jge	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	cmpl	%edx, %r12d
	jl	LBB0_7
	jmp	LBB0_14
LBB0_5:
	movl	8(%r15), %eax
	addl	%edx, %eax
	andl	12(%r15), %eax
	movl	%eax, 8(%r15)
	movl	20(%r15), %edi
	xorl	%esi, %esi
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	callq	_find_aligned_range
	movl	%eax, %r12d
	movl	(%r15), %edx
	cmpl	%edx, %r12d
	jge	LBB0_14
LBB0_7:
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.8:
	movl	%r12d, %ebx
	movl	%r14d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%r15), %esi
	movl	%ebx, %edi
	callq	_mlx5_set_bit
	incl	%ebx
	decl	%r13d
	jne	LBB0_9
LBB0_10:
	cmpl	4(%r15), %r12d
	jne	LBB0_12
## %bb.11:
	leal	(%r12,%r14), %eax
	xorl	%ecx, %ecx
	cmpl	(%r15), %eax
	cmovll	%eax, %ecx
	movl	%ecx, 4(%r15)
LBB0_12:
	orl	8(%r15), %r12d
	cmpl	$-1, %r12d
	movl	$-1, %eax
	je	LBB0_15
## %bb.13:
	subl	%r14d, 16(%r15)
LBB0_14:
	movl	%r12d, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bitmap_alloc_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bitmap_alloc_range
_bitmap_alloc_range:                    ; @bitmap_alloc_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	x22, x2
	mov	x20, x1
	mov	x19, x0
	cmp	w1, #1
	b.ne	LBB0_3
; %bb.1:
	cmp	w22, #1
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	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	_mlx5_bitmap_alloc
LBB0_3:
	ldr	w2, [x19]
	cmp	w2, w20
	b.ge	LBB0_5
; %bb.4:
	mov	w21, #-1
	b	LBB0_15
LBB0_5:
	ldr	w0, [x19, #20]
	ldr	w1, [x19, #4]
	mov	x3, x20
	mov	x4, x22
	bl	_find_aligned_range
	ldr	w2, [x19]
	cmp	w0, w2
	b.ge	LBB0_7
; %bb.6:
	mov	x21, x0
	cmp	w21, w2
	b.lt	LBB0_8
	b	LBB0_15
LBB0_7:
	ldp	w8, w9, [x19, #8]
	add	w8, w8, w2
	and	w8, w8, w9
	str	w8, [x19, #8]
	ldr	w0, [x19, #20]
	mov	w1, #0
	mov	x3, x20
	mov	x4, x22
	bl	_find_aligned_range
	mov	x21, x0
	ldr	w2, [x19]
	cmp	w21, w2
	b.ge	LBB0_15
LBB0_8:
	cmp	w20, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x22, x21
	mov	x23, x20
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #20]
	mov	x0, x22
	bl	_mlx5_set_bit
	add	w22, w22, #1
	subs	w23, w23, #1
	b.ne	LBB0_10
LBB0_11:
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.ne	LBB0_13
; %bb.12:
	ldr	w8, [x19]
	add	w9, w21, w20
	cmp	w9, w8
	csel	w8, w9, wzr, lt
	str	w8, [x19, #4]
LBB0_13:
	ldr	w8, [x19, #8]
	orr	w21, w8, w21
	cmn	w21, #1
	b.eq	LBB0_15
; %bb.14:
	ldr	w8, [x19, #16]
	sub	w8, w8, w20
	str	w8, [x19, #16]
LBB0_15:
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bitmap_alloc_range
.subsections_via_symbols
