	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extract_pattern                ## -- Begin function extract_pattern
	.p2align	4, 0x90
_extract_pattern:                       ## @extract_pattern
	.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	_ibufp@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	movsbl	(%rbx), %eax
	cmpl	$10, %eax
	je	LBB0_11
## %bb.1:
	movl	%edi, %r14d
	cmpl	%edi, %eax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$92, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$91, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	%rbx, %rdi
	callq	_parse_char_class
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$10, 1(%rbx)
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movsbl	1(%rbx), %eax
	incq	%rbx
	cmpl	$10, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %eax
	jne	LBB0_2
LBB0_9:
	movq	(%r15), %rax
	jmp	LBB0_12
LBB0_11:
	movq	%rbx, %rax
LBB0_12:
	movl	%ebx, %r14d
	subl	%eax, %r14d
	leal	1(%r14), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_REALLOC
	movq	(%r15), %rsi
	xorl	%edi, %edi
	movl	%r14d, %edx
	callq	_memcpy
	movq	%rbx, (%r15)
	movq	_isbinary@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.13:
	xorl	%edi, %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NUL_TO_NEWLINE                 ## TAILCALL
LBB0_14:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.1(%rip), %rax
LBB0_16:
	movq	_errmsg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_17:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ibufp,8,3                      ## @ibufp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unbalanced brackets ([])"

	.comm	_errmsg,8,3                     ## @errmsg
L_.str.1:                               ## @.str.1
	.asciz	"trailing backslash (\\)"

	.comm	_isbinary,8,3                   ## @isbinary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extract_pattern                ; -- Begin function extract_pattern
	.p2align	2
_extract_pattern:                       ; @extract_pattern
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x21, _ibufp@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ibufp@GOTPAGEOFF]
	ldr	x19, [x21]
	ldrsb	w8, [x19]
	cmp	w8, #10
	ccmp	w8, w0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x8, x19
	b	LBB0_10
LBB0_2:
	mov	x20, x0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x19, #1]!
	cmp	w8, #10
	b.eq	LBB0_12
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrsb	w8, [x19, #1]!
	cmp	w8, #10
	ccmp	w8, w20, #4, ne
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #92
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #91
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x19, #1
	bl	_parse_char_class
	mov	x19, x0
	cbnz	x0, LBB0_4
; %bb.8:
Lloh2:
	adrp	x8, _errmsg@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errmsg@GOTPAGEOFF]
Lloh4:
	adrp	x9, l_.str@PAGE
Lloh5:
	add	x9, x9, l_.str@PAGEOFF
	b	LBB0_13
LBB0_9:
	ldr	x8, [x21]
LBB0_10:
	sub	w20, w19, w8
	add	w2, w20, #1
	mov	x0, #0
	mov	w1, #0
	mov	x3, #0
	bl	_REALLOC
	ldr	x1, [x21]
	mov	x0, #0
	mov	x2, x20
	bl	_memcpy
	str	x19, [x21]
Lloh6:
	adrp	x8, _isbinary@GOTPAGE
Lloh7:
	ldr	x8, [x8, _isbinary@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.11:
	mov	x0, #0
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_NUL_TO_NEWLINE
LBB0_12:
Lloh9:
	adrp	x8, _errmsg@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errmsg@GOTPAGEOFF]
Lloh11:
	adrp	x9, l_.str.1@PAGE
Lloh12:
	add	x9, x9, l_.str.1@PAGEOFF
LBB0_13:
	str	x9, [x8]
LBB0_14:
	mov	x0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ibufp,8,3                      ; @ibufp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unbalanced brackets ([])"

	.comm	_errmsg,8,3                     ; @errmsg
l_.str.1:                               ; @.str.1
	.asciz	"trailing backslash (\\)"

	.comm	_isbinary,8,3                   ; @isbinary
.subsections_via_symbols
