	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ice_vsi_get_qs_sc
___ice_vsi_get_qs_sc:                   ## @__ice_vsi_get_qs_sc
	.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, %r14
	movl	20(%rdi), %edi
	callq	_mutex_lock
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %esi
	movl	24(%r14), %edi
	movl	%ebx, %edx
	callq	_find_next_zero_bit
	cmpl	4(%r14), %eax
	jge	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	movl	24(%r14), %esi
	movl	%eax, %edi
	callq	_set_bit
	movq	8(%r14), %rax
	movslq	16(%r14), %rcx
	addq	%r15, %rcx
	movl	%ebx, (%rax,%rcx,4)
	incq	%r15
	cmpl	(%r14), %r15d
	jl	LBB0_2
LBB0_8:
	movl	20(%r14), %edi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.4:
	movq	8(%r14), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rbx,4), %edi
	movl	24(%r14), %esi
	callq	_clear_bit
	movq	8(%r14), %rax
	movslq	16(%r14), %rcx
	addq	%rbx, %rcx
	movl	$0, (%rax,%rcx,4)
	incq	%rbx
	decq	%r15
	jne	LBB0_5
LBB0_6:
	movl	20(%r14), %edi
	callq	_mutex_unlock
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	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_sc
.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_sc
___ice_vsi_get_qs_sc:                   ; @__ice_vsi_get_qs_sc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w0, [x0, #20]
	bl	_mutex_lock
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #24]
	ldr	w1, [x19, #4]
	mov	x2, x20
	bl	_find_next_zero_bit
	ldr	w8, [x19, #4]
	cmp	w0, w8
	b.ge	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x0
	ldr	w1, [x19, #24]
	bl	_set_bit
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #16]
	add	x9, x21, x9
	str	w20, [x8, x9, lsl #2]
	ldr	w8, [x19]
	add	x21, x21, #1
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_4:
	ldr	w0, [x19, #20]
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_9
LBB0_5:
	cbz	w21, LBB0_8
; %bb.6:
	mov	x20, #0
	ldr	x8, [x19, #8]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, x20, lsl #2]
	ldr	w1, [x19, #24]
	bl	_clear_bit
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #16]
	add	x9, x20, x9
	str	wzr, [x8, x9, lsl #2]
	add	x20, x20, #1
	subs	x21, x21, #1
	b.ne	LBB0_7
LBB0_8:
	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_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 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_sc
.subsections_via_symbols
