	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_search_res
_ice_search_res:                        ## @ice_search_res
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
	movl	(%rdi), %r8d
	cmpl	%esi, %r8d
	jl	LBB0_21
## %bb.1:
	movq	_ICE_RES_VALID_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	orl	%r9d, %edx
	movq	8(%rdi), %r10
	cmpl	$2, %r8d
	movl	$1, %ecx
	cmovgel	%r8d, %ecx
	negq	%rcx
	movl	%esi, %r11d
	xorl	%eax, %eax
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r9d, -4(%r10,%rdi,4)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r11,%rdi), %rbx
	cmpl	%r8d, %ebx
	jg	LBB0_21
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rax,%rsi), %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %ebx
	cmpq	%rbx, %rdi
	je	LBB0_7
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rcx,%rdi), %rbx
	incq	%rbx
	incq	%rdi
	cmpq	$1, %rbx
	jne	LBB0_2
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_22:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	cmpl	%eax, %edi
	jne	LBB0_9
## %bb.8:
	movl	%edi, %eax
	jmp	LBB0_22
LBB0_9:
	movslq	%eax, %rsi
	movq	%rdi, %r8
	subq	%rsi, %r8
	cmpq	$8, %r8
	jb	LBB0_19
## %bb.10:
	movq	%r8, %r9
	andq	$-8, %r9
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%r9), %rcx
	movq	%rcx, %r11
	shrq	$3, %r11
	incq	%r11
	cmpq	$24, %rcx
	jae	LBB0_12
## %bb.11:
	xorl	%ecx, %ecx
	jmp	LBB0_14
LBB0_12:
	leaq	(%r10,%rsi,4), %rbx
	addq	$112, %rbx
	movq	%r11, %r14
	andq	$-4, %r14
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -112(%rbx,%rcx,4)
	movdqu	%xmm0, -96(%rbx,%rcx,4)
	movdqu	%xmm0, -80(%rbx,%rcx,4)
	movdqu	%xmm0, -64(%rbx,%rcx,4)
	movdqu	%xmm0, -48(%rbx,%rcx,4)
	movdqu	%xmm0, -32(%rbx,%rcx,4)
	movdqu	%xmm0, -16(%rbx,%rcx,4)
	movdqu	%xmm0, (%rbx,%rcx,4)
	addq	$32, %rcx
	addq	$-4, %r14
	jne	LBB0_13
LBB0_14:
	testb	$3, %r11b
	je	LBB0_17
## %bb.15:
	addq	%rsi, %rcx
	leaq	(%r10,%rcx,4), %rcx
	addq	$16, %rcx
	movl	%edi, %ebx
	subl	%eax, %ebx
	andb	$24, %bl
	addb	$-8, %bl
	shrb	$3, %bl
	incb	%bl
	movzbl	%bl, %r11d
	andl	$3, %r11d
	shlq	$5, %r11
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rcx,%rbx)
	movdqu	%xmm0, (%rcx,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r11
	jne	LBB0_16
LBB0_17:
	cmpq	%r9, %r8
	je	LBB0_22
## %bb.18:
	addq	%r9, %rsi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%r10,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rdi
	jne	LBB0_19
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ICE_RES_VALID_BIT,4,2          ## @ICE_RES_VALID_BIT
	.no_dead_strip	_ice_search_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_search_res
_ice_search_res:                        ; @ice_search_res
	.cfi_startproc
; %bb.0:
	ldr	w11, [x0]
	cmp	w11, w1
	b.lt	LBB0_7
; %bb.1:
	mov	x8, x0
	mov	x10, #0
	mov	w0, #0
Lloh0:
	adrp	x9, _ICE_RES_VALID_BIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICE_RES_VALID_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x9]
	orr	w9, w12, w2
	ldr	x8, [x8, #8]
	cmp	w11, #1
	csinc	w13, w11, wzr, gt
	add	w14, w1, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x15, x10, #1
	ldr	w16, [x8, x10, lsl #2]
	tst	w16, w12
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x16, x14, x10
	cmp	w16, w11
	b.gt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x15
	cmp	x15, w16, uxtw
	b.ne	LBB0_6
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w16, w0, w1
	cmp	x15, w16, uxtw
	b.eq	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x10, x15
	cmp	x13, x15
	b.ne	LBB0_2
LBB0_7:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_9:
	add	x11, x10, #1
	cmp	w11, w0
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x11
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_11:
	sxtw	x14, w0
	sub	x11, x10, x14
	add	x12, x11, #1
	mov	x11, x14
	cmp	x12, #16
	b.lo	LBB0_15
; %bb.12:
	and	x13, x12, #0xfffffffffffffff0
	add	x11, x13, x14
	dup.4s	v0, w9
	add	x14, x8, x14, lsl #2
	add	x14, x14, #32
	mov	x15, x13
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x14, #-32]
	stp	q0, q0, [x14], #64
	subs	x15, x15, #16
	b.ne	LBB0_13
; %bb.14:
	cmp	x12, x13
	b.eq	LBB0_8
LBB0_15:
	add	x10, x10, #1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	str	w9, [x8, x11, lsl #2]
	add	x12, x11, #1
	mov	x11, x12
	cmp	x10, x12
	b.ne	LBB0_16
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ICE_RES_VALID_BIT,4,2          ; @ICE_RES_VALID_BIT
	.no_dead_strip	_ice_search_res
.subsections_via_symbols
