	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grep_string
_grep_string:                           ## @grep_string
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_printf
	movq	_REG_EXTENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_regcomp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_regexec
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movq	_REG_NOMATCH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%al
	orb	%bl, %al
	movzbl	%al, %edi
	callq	_ATF_REQUIRE
	movq	%r14, %rdi
	callq	_regfree
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Looking for '%s' in '%s'\n"

	.comm	_REG_EXTENDED,4,2               ## @REG_EXTENDED
	.comm	_REG_NOMATCH,4,2                ## @REG_NOMATCH
	.no_dead_strip	_grep_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grep_string
_grep_string:                           ; @grep_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_printf
Lloh2:
	adrp	x8, _REG_EXTENDED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_EXTENDED@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	x1, x20
	bl	_regcomp
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	add	x0, sp, #12
	mov	x1, x19
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_regexec
	cmp	w0, #0
	cset	w19, eq
Lloh5:
	adrp	x8, _REG_NOMATCH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_NOMATCH@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w8, eq
	orr	w0, w19, w8
	bl	_ATF_REQUIRE
	add	x0, sp, #12
	bl	_regfree
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Looking for '%s' in '%s'\n"

	.comm	_REG_EXTENDED,4,2               ; @REG_EXTENDED
	.comm	_REG_NOMATCH,4,2                ; @REG_NOMATCH
	.no_dead_strip	_grep_string
.subsections_via_symbols
