	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_util_memsearch                 ## -- Begin function util_memsearch
	.p2align	4, 0x90
_util_memsearch:                        ## @util_memsearch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	$-1, %eax
	cmpl	%esi, %ecx
	jg	LBB0_7
## %bb.1:
	testl	%esi, %esi
	jle	LBB0_7
## %bb.2:
	movl	%esi, %r8d
	xorl	%r9d, %r9d
	xorl	%esi, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r9
	movl	%r10d, %esi
	cmpq	%r9, %r8
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%r9), %r11d
	movslq	%esi, %rbx
	movl	$0, %r10d
	cmpb	(%rdx,%rbx), %r11b
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%esi
	movl	%esi, %r10d
	cmpl	%ecx, %esi
	jne	LBB0_6
## %bb.5:
	incl	%r9d
	movl	%r9d, %eax
LBB0_7:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_util_memsearch                 ; -- Begin function util_memsearch
	.p2align	2
_util_memsearch:                        ; @util_memsearch
	.cfi_startproc
; %bb.0:
	mov	w8, #-1
	cmp	w3, w1
	b.gt	LBB0_8
; %bb.1:
	cmp	w1, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x8, #0
	mov	w10, #0
	mov	w9, w1
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w10, #0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x0, x8]
	ldrb	w12, [x2, w10, sxtw]
	cmp	w11, w12
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w10, w10, #1
	cmp	w10, w3
	b.ne	LBB0_4
; %bb.7:
	add	w8, w8, #1
LBB0_8:
	mov	x0, x8
	ret
LBB0_9:
	mov	w0, #-1
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
