	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_free_res                   ## -- Begin function ice_free_res
	.p2align	4, 0x90
_ice_free_res:                          ## @ice_free_res
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	(%rdi), %r8
	cmpq	%rsi, %r8
	jle	LBB0_7
## %bb.2:
	movslq	%esi, %r9
	xorl	%eax, %eax
	cmpq	%r9, %r8
	jle	LBB0_6
## %bb.3:
	movq	_ICE_RES_VALID_BIT@GOTPCREL(%rip), %rax
	orq	(%rax), %rdx
	leaq	(,%r9,8), %rsi
	addq	8(%rdi), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rsi,%rax,8)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, (%rsi,%rax,8)
	leaq	(%r9,%rax), %rcx
	incq	%rcx
	incq	%rax
	cmpq	%rcx, (%rdi)
	jg	LBB0_4
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ICE_RES_VALID_BIT,8,3          ## @ICE_RES_VALID_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_free_res                   ; -- Begin function ice_free_res
	.p2align	2
_ice_free_res:                          ; @ice_free_res
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_7
; %bb.1:
	mov	x8, x0
	ldr	x10, [x0]
	cmp	x10, x1
	b.le	LBB0_7
; %bb.2:
	sxtw	x9, w1
	cmp	x10, x9
	b.le	LBB0_8
; %bb.3:
	mov	x0, #0
Lloh0:
	adrp	x10, _ICE_RES_VALID_BIT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ICE_RES_VALID_BIT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	orr	x10, x10, x2
	ldr	x11, [x8, #8]
	add	x11, x11, x9, lsl #3
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11, x0, lsl #3]
	cmp	x12, x10
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x11, x0, lsl #3]
	ldr	x12, [x8]
	add	x0, x0, #1
	add	x13, x9, x0
	cmp	x12, x13
	b.gt	LBB0_4
LBB0_6:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_7:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_8:
	mov	w0, #0
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ICE_RES_VALID_BIT,8,3          ; @ICE_RES_VALID_BIT
.subsections_via_symbols
