	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_pattern
_find_pattern:                          ## @find_pattern
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%rdx, %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_pr_debug
	testq	%r13, %r13
	je	LBB0_6
## %bb.1:
	cmpq	%rbx, %r13
	jbe	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_strnicmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpb	%cl, (%r15,%rbx)
	jne	LBB0_7
## %bb.4:
	movq	%rbx, %r14
	jmp	LBB0_10
LBB0_5:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_strnicmp
	xorl	%r14d, %r14d
	cmpq	$1, %rax
	sbbl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	-1(%r13), %rax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rax
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	1(%rbx), %r14
	cmpb	%cl, 1(%r15,%rbx)
	movq	%r14, %rbx
	jne	LBB0_8
LBB0_10:
	movq	16(%rbp), %r12
	movsbl	%cl, %esi
	leaq	1(%r14), %rbx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	%ebx, (%r12)
	leaq	(%r15,%r14), %rdi
	incq	%rdi
	subq	%rbx, %r13
	movsbl	-44(%rbp), %ecx                 ## 1-byte Folded Reload
	movq	%r13, %rsi
	movq	32(%rbp), %rdx
	callq	*40(%rbp)
	movq	24(%rbp), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	$1, %r14d
	jmp	LBB0_6
LBB0_13:
	movl	$-1, %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"find_pattern `%s': dlen = %Zu\n"

L_.str.1:                               ## @.str.1
	.asciz	"Pattern matches!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Skipped up to `%c'!\n"

L_.str.3:                               ## @.str.3
	.asciz	"Match succeeded!\n"

	.no_dead_strip	_find_pattern
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_pattern
_find_pattern:                          ; @find_pattern
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x22, x6
	mov	x20, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x21, x1
	mov	x23, x0
	stp	x2, x1, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	cbz	x21, LBB0_3
; %bb.1:
	cmp	x21, x25
	b.ls	LBB0_4
; %bb.2:
	mov	x0, x23
	mov	x1, x26
	mov	x2, x25
	bl	_strnicmp
	cbz	x0, LBB0_6
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x23
	mov	x1, x26
	mov	x2, x21
	bl	_strnicmp
	cmp	x0, #0
	csetm	w0, eq
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldrb	w8, [x23, x25]
	cmp	w8, w24, uxtb
	b.ne	LBB0_8
; %bb.7:
	mov	x10, x25
	b	LBB0_11
LBB0_8:
	sub	x8, x21, #1
	add	x9, x23, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x25
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x10, x25, #1
	ldrb	w11, [x9, x25]
	cmp	w11, w24, uxtb
	mov	x25, x10
	b.ne	LBB0_9
LBB0_11:
	ldp	x25, x26, [x29, #16]
	add	x27, x10, #1
	sxtw	x8, w24
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	str	w27, [x22]
	add	x0, x23, x27
	sub	x1, x21, x27
	mov	x2, x25
	mov	x3, x20
	blr	x26
	str	w0, [x19]
	cbz	w0, LBB0_13
; %bb.12:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
	mov	w0, #1
	b	LBB0_5
LBB0_13:
	mov	w0, #-1
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"find_pattern `%s': dlen = %Zu\n"

l_.str.1:                               ; @.str.1
	.asciz	"Pattern matches!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Skipped up to `%c'!\n"

l_.str.3:                               ; @.str.3
	.asciz	"Match succeeded!\n"

	.no_dead_strip	_find_pattern
.subsections_via_symbols
