	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c_regex                        ## -- Begin function c_regex
	.p2align	4, 0x90
_c_regex:                               ## @c_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	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, %r15
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_err
LBB0_2:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_nextarg
	movq	%rax, %r13
	movq	_regexp_flags@GOTPCREL(%rip), %rax
	movq	_F_IGNCASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	(%r14), %edx
	je	LBB0_4
## %bb.3:
	movq	_REG_ICASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_4:
	orl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_regcomp
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_regerror
	movq	_F_IGNCASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %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	%r13, %rcx
	movq	%r15, %r8
	callq	_errx
LBB0_6:
	movq	%r14, %rdi
	callq	_palloc
	movq	%rbx, (%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LINE_MAX,4,2                   ## @LINE_MAX
	.comm	_regexp_flags,4,2               ## @regexp_flags
	.comm	_F_IGNCASE,4,2                  ## @F_IGNCASE
	.comm	_REG_ICASE,4,2                  ## @REG_ICASE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s: %s"

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	_c_regex                        ; -- Begin function c_regex
	.p2align	2
_c_regex:                               ; @c_regex
	.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
	sub	sp, sp, #16
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
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	x21, x8, x9
	mov	sp, x21
	mov	w0, #4
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	mov	x1, #0
	bl	_err
LBB0_2:
	mov	x0, x19
	mov	x1, x23
	bl	_nextarg
	mov	x23, x0
Lloh8:
	adrp	x8, _regexp_flags@GOTPAGE
Lloh9:
	ldr	x8, [x8, _regexp_flags@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19]
Lloh11:
	adrp	x24, _F_IGNCASE@GOTPAGE
Lloh12:
	ldr	x24, [x24, _F_IGNCASE@GOTPAGEOFF]
	ldr	w10, [x24]
Lloh13:
	adrp	x11, _REG_ICASE@GOTPAGE
Lloh14:
	ldr	x11, [x11, _REG_ICASE@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w2, w9, w8
	mov	x0, x20
	mov	x1, x23
	bl	_regcomp
	cbz	w0, LBB0_4
; %bb.3:
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_regerror
	ldr	w8, [x19]
	ldr	w9, [x24]
Lloh16:
	adrp	x10, l_.str.1@PAGE
Lloh17:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh18:
	adrp	x11, l_.str.2@PAGE
Lloh19:
	add	x11, x11, l_.str.2@PAGEOFF
	tst	w9, w8
	csel	x2, x11, x10, eq
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x3, x23
	mov	x4, x21
	bl	_errx
LBB0_4:
	mov	x0, x19
	bl	_palloc
	str	x20, [x0]
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	sub	sp, x29, #48
	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_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_LINE_MAX,4,2                   ; @LINE_MAX
	.comm	_regexp_flags,4,2               ; @regexp_flags
	.comm	_F_IGNCASE,4,2                  ; @F_IGNCASE
	.comm	_REG_ICASE,4,2                  ; @REG_ICASE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s: %s"

l_.str.1:                               ; @.str.1
	.asciz	"-iregex"

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

.subsections_via_symbols
