	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_regex_bug
_test_regex_bug:                        ## @test_regex_bug
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_REG_EXTENDED@GOTPCREL(%rip), %rax
	movq	_REG_NEWLINE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-12(%rbp), %rdi
	callq	_regcomp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-12(%rbp), %rdi
	leaq	-8(%rbp), %rcx
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_regexec
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_die
LBB0_4:
	cmpl	$3, -8(%rbp)
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_6:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[^={} \t]+"

L_.str.1:                               ## @.str.1
	.asciz	"={}\nfred"

	.comm	_REG_EXTENDED,4,2               ## @REG_EXTENDED
	.comm	_REG_NEWLINE,4,2                ## @REG_NEWLINE
L_.str.2:                               ## @.str.2
	.asciz	"failed regcomp() for pattern '%s'"

L_.str.3:                               ## @.str.3
	.asciz	"no match of pattern '%s' to string '%s'"

L_.str.4:                               ## @.str.4
	.asciz	"regex bug confirmed: re-build git with NO_REGEX=1"

	.no_dead_strip	_test_regex_bug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_regex_bug
_test_regex_bug:                        ; @test_regex_bug
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, _REG_EXTENDED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_EXTENDED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _REG_NEWLINE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REG_NEWLINE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh6:
	adrp	x19, l_.str@PAGE
Lloh7:
	add	x19, x19, l_.str@PAGEOFF
	sub	x0, x29, #20
	mov	x1, x19
	bl	_regcomp
	cbz	x0, LBB0_2
; %bb.1:
	str	x19, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
LBB0_2:
Lloh10:
	adrp	x20, l_.str.1@PAGE
Lloh11:
	add	x20, x20, l_.str.1@PAGEOFF
	sub	x0, x29, #20
	add	x3, sp, #24
	mov	x1, x20
	mov	w2, #1
	mov	w4, #0
	bl	_regexec
	cbz	x0, LBB0_4
; %bb.3:
	stp	x19, x20, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_die
LBB0_4:
	ldr	w8, [sp, #24]
	cmp	w8, #3
	b.ne	LBB0_6
; %bb.5:
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_die
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[^={} \t]+"

l_.str.1:                               ; @.str.1
	.asciz	"={}\nfred"

	.comm	_REG_EXTENDED,4,2               ; @REG_EXTENDED
	.comm	_REG_NEWLINE,4,2                ; @REG_NEWLINE
l_.str.2:                               ; @.str.2
	.asciz	"failed regcomp() for pattern '%s'"

l_.str.3:                               ; @.str.3
	.asciz	"no match of pattern '%s' to string '%s'"

l_.str.4:                               ; @.str.4
	.asciz	"regex bug confirmed: re-build git with NO_REGEX=1"

	.no_dead_strip	_test_regex_bug
.subsections_via_symbols
