	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_f_regex                        ## -- Begin function f_regex
	.p2align	4, 0x90
_f_regex:                               ## @f_regex
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LINE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %r14
	movq	(%rbx), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r13d
	movq	$0, -64(%rbp)
	movl	%eax, -56(%rbp)
	movq	_REG_STARTEND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-64(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_regexec
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_REG_NOMATCH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_3
## %bb.2:
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_regerror
	movq	_F_IGNCASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rcx
	callq	_errx
LBB0_3:
	testl	%ebx, %ebx
	sete	%al
	cmpq	$0, -64(%rbp)
	sete	%cl
	cmpl	%r13d, -56(%rbp)
	sete	%dl
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	-48(%rbp), %rsi
	jne	LBB0_5
## %bb.4:
	andb	%dl, %cl
	andb	%cl, %al
	movzbl	%al, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LINE_MAX,4,2                   ## @LINE_MAX
	.comm	_REG_STARTEND,4,2               ## @REG_STARTEND
	.comm	_REG_NOMATCH,4,2                ## @REG_NOMATCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s"

	.comm	_F_IGNCASE,4,2                  ## @F_IGNCASE
L_.str.1:                               ## @.str.1
	.asciz	"-iregex"

L_.str.2:                               ## @.str.2
	.asciz	"-regex"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_f_regex                        ; -- Begin function f_regex
	.p2align	2
_f_regex:                               ; @f_regex
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #32
	mov	x19, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _LINE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LINE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	ldr	x23, [x0, #8]
	ldr	x24, [x1]
	mov	x0, x24
	bl	_strlen
	mov	x21, x0
	stur	xzr, [x29, #-88]
	stur	w0, [x29, #-80]
Lloh8:
	adrp	x8, _REG_STARTEND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_STARTEND@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	sub	x3, x29, #88
	mov	x0, x23
	mov	x1, x24
	mov	w2, #1
	bl	_regexec
	mov	x24, x0
Lloh11:
	adrp	x8, _REG_NOMATCH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_NOMATCH@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w0, w8, #4, ne
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	mov	x3, x22
	bl	_regerror
	ldr	w8, [x19]
Lloh14:
	adrp	x9, _F_IGNCASE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _F_IGNCASE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, l_.str.1@PAGE
Lloh18:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh19:
	adrp	x11, l_.str.2@PAGE
Lloh20:
	add	x11, x11, l_.str.2@PAGEOFF
	tst	w9, w8
	csel	x2, x11, x10, eq
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x3, x20
	bl	_errx
LBB0_2:
	cmp	w24, #0
	ldur	x8, [x29, #-88]
	ccmp	x8, #0, #0, eq
	ldur	w8, [x29, #-80]
	ccmp	w8, w21, #0, eq
	cset	w0, eq
	mov	sp, x25
	ldur	x8, [x29, #-72]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_LINE_MAX,4,2                   ; @LINE_MAX
	.comm	_REG_STARTEND,4,2               ; @REG_STARTEND
	.comm	_REG_NOMATCH,4,2                ; @REG_NOMATCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s"

	.comm	_F_IGNCASE,4,2                  ; @F_IGNCASE
l_.str.1:                               ; @.str.1
	.asciz	"-iregex"

l_.str.2:                               ; @.str.2
	.asciz	"-regex"

.subsections_via_symbols
