	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strnstr                        ## -- Begin function strnstr
	.p2align	4, 0x90
_strnstr:                               ## @strnstr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_strlen
	cmpq	%r15, %rax
	jbe	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rax, %r13
	movb	(%rbx), %al
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testb	%al, %al
	je	LBB0_10
## %bb.3:
	subq	%r13, %r15
	js	LBB0_10
## %bb.4:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movb	(%rcx), %r14b
	addq	%rbx, %r15
	incq	%rbx
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	%r14b, %al
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	-1(%rbx), %r12
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%rbx), %eax
	testb	%al, %al
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%rbx), %rcx
	cmpq	%r15, %rbx
	movq	%rcx, %rbx
	jbe	LBB0_5
	jmp	LBB0_10
LBB0_9:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strnstr                        ; -- Begin function strnstr
	.p2align	2
_strnstr:                               ; @strnstr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_strlen
	cmp	x0, x23
	b.ls	LBB0_3
LBB0_1:
	mov	x21, #0
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x21, #0
	ldrb	w8, [x22]
	cbz	w8, LBB0_2
; %bb.4:
	mov	x20, x0
	sub	x9, x23, x0
	tbnz	x9, #63, LBB0_2
; %bb.5:
	ldrb	w23, [x19]
	add	x24, x22, x9
	add	x22, x22, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x9, x22
	ldrb	w8, [x9], #1
	cmp	w8, #0
	ccmp	x22, x24, #2, ne
	mov	x22, x9
	b.hi	LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, w23
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x21, x22, #1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_strncmp
	cbnz	w0, LBB0_6
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
