	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_get_free_slot
_ice_get_free_slot:                     ## @ice_get_free_slot
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	leal	-1(%rsi), %ecx
	cmpl	%edx, %ecx
	jle	LBB0_2
## %bb.1:
	movl	%edx, %eax
	movslq	%edx, %rcx
	cmpq	$0, 8(%rdi,%rcx,8)
	je	LBB0_11
LBB0_2:
	testl	%esi, %esi
	jle	LBB0_10
## %bb.3:
	movl	%esi, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdi,%rax,8)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_4
## %bb.6:
	movl	%ecx, %eax
LBB0_7:
	cmpl	%esi, %eax
	je	LBB0_8
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	cmpl	%esi, %eax
	jne	LBB0_9
LBB0_8:
	movq	_ICE_NO_VSI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_11:
	incl	%eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_NO_VSI,4,2                 ## @ICE_NO_VSI
	.no_dead_strip	_ice_get_free_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_get_free_slot
_ice_get_free_slot:                     ; @ice_get_free_slot
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #1
	cmp	w8, w2
	b.le	LBB0_2
; %bb.1:
	add	w8, w2, #1
	ldr	x9, [x0, w8, sxtw #3]
	cbz	x9, LBB0_9
LBB0_2:
	cmp	w1, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x8, #0
	mov	w9, w1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x0, x8, lsl #3]
	cbz	x10, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.6:
	mov	x8, x9
	b	LBB0_8
LBB0_7:
	mov	w8, #0
LBB0_8:
Lloh0:
	adrp	x9, _ICE_NO_VSI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICE_NO_VSI@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w1
	csel	w8, w9, w8, eq
LBB0_9:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_NO_VSI,4,2                 ; @ICE_NO_VSI
	.no_dead_strip	_ice_get_free_slot
.subsections_via_symbols
