	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd__regex                     ## -- Begin function cmd__regex
	.p2align	4, 0x90
_cmd__regex:                            ## @cmd__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
	cmpl	$2, %edi
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_test_regex_bug                 ## TAILCALL
LBB0_3:
	jg	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_usage
LBB0_5:
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rax
	movq	24(%rbx), %r14
	testq	%r14, %r14
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.7:
	addq	$24, %rbx
	xorl	%r12d, %r12d
	movq	_reg_flags@GOTPCREL(%rip), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_die
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rbx), %r14
	addq	$8, %rbx
	testq	%r14, %r14
	je	LBB0_14
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	(%r15), %r13
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	addq	$16, %r13
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	(%r13), %rsi
	addq	$16, %r13
	testq	%rsi, %rsi
	jne	LBB0_10
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	orl	-8(%r13), %r12d
	jmp	LBB0_13
LBB0_6:
	xorl	%r12d, %r12d
LBB0_14:
	xorl	%eax, %eax
	callq	_git_setup_gettext
	leaq	-44(%rbp), %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_regcomp
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_die
LBB0_16:
	leaq	-44(%rbp), %rdi
	leaq	-68(%rbp), %rcx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_regexec
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--bug"

L_.str.1:                               ## @.str.1
	.asciz	"test-tool regex --bug\ntest-tool regex <pattern> <string> [<options>]"

	.comm	_reg_flags,8,3                  ## @reg_flags
L_.str.2:                               ## @.str.2
	.asciz	"do not recognize %s"

L_.str.3:                               ## @.str.3
	.asciz	"failed regcomp() for pattern '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd__regex                     ; -- Begin function cmd__regex
	.p2align	2
_cmd__regex:                            ; @cmd__regex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_test_regex_bug
LBB0_3:
	b.gt	LBB0_5
LBB0_4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_usage
LBB0_5:
	ldr	x24, [x20, #24]!
	ldp	x21, x19, [x20, #-16]
	mov	w22, #0
	cbz	x24, LBB0_13
; %bb.6:
Lloh4:
	adrp	x25, _reg_flags@GOTPAGE
Lloh5:
	ldr	x25, [x25, _reg_flags@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str.2@PAGE
Lloh7:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_die
	ldr	x24, [x20, #8]!
	cbz	x24, LBB0_13
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x25]
	ldr	x1, [x8]
	cbz	x1, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x26, x8, #16
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	bl	_strcmp
	cbz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x1, [x26], #16
	cbnz	x1, LBB0_10
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x26, #-8]
	orr	w22, w8, w22
	ldr	x24, [x20, #8]!
	cbnz	x24, LBB0_8
LBB0_13:
	bl	_git_setup_gettext
	add	x0, sp, #12
	mov	x1, x21
	mov	x2, x22
	bl	_regcomp
	cbz	x0, LBB0_15
; %bb.14:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_die
LBB0_15:
	add	x0, sp, #12
	add	x3, sp, #8
	mov	x1, x19
	mov	w2, #1
	mov	w4, #0
	bl	_regexec
	cmp	x0, #0
	cset	w0, ne
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--bug"

l_.str.1:                               ; @.str.1
	.asciz	"test-tool regex --bug\ntest-tool regex <pattern> <string> [<options>]"

	.comm	_reg_flags,8,3                  ; @reg_flags
l_.str.2:                               ; @.str.2
	.asciz	"do not recognize %s"

l_.str.3:                               ; @.str.3
	.asciz	"failed regcomp() for pattern '%s'"

.subsections_via_symbols
