	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fixregex
_fixregex:                              ## @fixregex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%eax
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rdi
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rdi), %ecx
	cmpb	$92, %cl
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%cl, %cl
	jne	LBB0_7
## %bb.3:
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	incq	%rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%rax, %rcx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movb	$92, (%rcx)
	incq	%rcx
	movzbl	(%rbx), %edx
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movb	%dl, (%rcx)
	incq	%rcx
	incq	%rbx
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %edx
	cmpb	$92, %dl
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	testb	%dl, %dl
	jne	LBB0_14
## %bb.11:
	movb	$0, (%rcx)
	movq	%rax, %rbx
	jmp	LBB0_12
LBB0_5:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fixregex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fixregex
_fixregex:                              ; @fixregex
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x8, #0
	mov	w9, #0
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w9, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x19, x8]
	cmp	w10, #92
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w10, LBB0_2
; %bb.5:
	cbz	w9, LBB0_14
; %bb.6:
	add	x0, x8, #1
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_malloc
	cbz	x0, LBB0_13
; %bb.7:
	mov	w9, #92
	mov	x8, x0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	strb	w9, [x8], #1
	ldrb	w10, [x19]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	strb	w10, [x8], #1
	add	x19, x19, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x19]
	cmp	w10, #92
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cbnz	w10, LBB0_9
; %bb.12:
	strb	wzr, [x8]
	mov	x19, x0
	b	LBB0_14
LBB0_13:
	mov	x19, #0
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fixregex
.subsections_via_symbols
