	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ice_vsi_get_qs_contig
___ice_vsi_get_qs_contig:               ## @__ice_vsi_get_qs_contig
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	20(%rdi), %edi
	callq	_mutex_lock
	movl	24(%rbx), %edi
	movl	(%rbx), %esi
	movl	4(%rbx), %ecx
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_bitmap_find_next_zero_area
	cmpl	(%rbx), %eax
	jge	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movl	4(%rbx), %edx
	movl	24(%rbx), %edi
	movl	%eax, %esi
	callq	_bitmap_set
	cmpl	$0, 4(%rbx)
	jle	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	movl	%r15d, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rcx,%rdx), %esi
	movslq	16(%rbx), %rdi
	addq	%rdx, %rdi
	movl	%esi, (%rax,%rdi,4)
	incq	%rdx
	cmpl	4(%rbx), %edx
	jl	LBB0_4
LBB0_5:
	movl	20(%rbx), %edi
	callq	_mutex_unlock
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_1:
	movl	20(%rbx), %edi
	callq	_mutex_unlock
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	___ice_vsi_get_qs_contig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ice_vsi_get_qs_contig
___ice_vsi_get_qs_contig:               ; @__ice_vsi_get_qs_contig
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #20]
	bl	_mutex_lock
	ldr	w0, [x19, #24]
	ldp	w1, w3, [x19]
	mov	w2, #0
	mov	w4, #0
	bl	_bitmap_find_next_zero_area
	ldr	w8, [x19]
	cmp	w0, w8
	b.ge	LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #24]
	ldr	w2, [x19, #4]
	mov	x1, x20
	bl	_bitmap_set
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x8, #0
	ldr	x9, [x19, #8]
	mov	w10, w20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w10, w8
	ldrsw	x12, [x19, #16]
	add	x12, x8, x12
	str	w11, [x9, x12, lsl #2]
	ldr	w11, [x19, #4]
	add	x8, x8, #1
	cmp	w8, w11
	b.lt	LBB0_3
LBB0_4:
	ldr	w0, [x19, #20]
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19, #20]
	bl	_mutex_unlock
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	___ice_vsi_get_qs_contig
.subsections_via_symbols
