	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function str_delete
_str_delete:                            ## @str_delete
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_STATIC_TR_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -184(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movl	%esi, %edi
	callq	_mrb_str_ptr
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mrb_str_modify
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	-184(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_tr_parse_pattern
	leaq	-176(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_tr_compile_pattern
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_tr_free_pattern
	movl	%ebx, %edi
	callq	_RSTRING_PTR
	movq	%rax, %r12
	movl	%ebx, -188(%rbp)                ## 4-byte Spill
	movl	%ebx, %edi
	callq	_RSTRING_LEN
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	xorl	%r15d, %r15d
	leaq	-176(%rbp), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movb	%al, %cl
	subq	%rcx, %rbx
	incq	%rbx
	cmpq	%r15, %r13
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r15
	jbe	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%r12,%r15), %eax
	movb	%al, (%r12,%rbx)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movsbl	(%r12,%r15), %esi
	movq	%r14, %rdi
	callq	_tr_bitmap_detect
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%al
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -200(%rbp)                ## 8-byte Spill
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
LBB0_8:
	movq	-200(%rbp), %r14                ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movl	-188(%rbp), %r15d               ## 4-byte Reload
	movl	%r15d, %edi
	callq	_RSTRING
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_RSTR_SET_LEN
	movl	%r15d, %edi
	callq	_RSTRING_PTR
	movb	$0, (%rax,%rbx)
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STATIC_TR_PATTERN,4,2          ## @STATIC_TR_PATTERN
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
	.no_dead_strip	_str_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function str_delete
_str_delete:                            ; @str_delete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _STATIC_TR_PATTERN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STATIC_TR_PATTERN@GOTPAGEOFF]
	stur	x8, [x29, #-72]
Lloh5:
	ldr	w8, [x9]
	str	w8, [sp]
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	x19, [x8]
	mov	x0, x1
	bl	_mrb_str_ptr
	mov	x1, x0
	mov	x0, x22
	bl	_mrb_str_modify
Lloh9:
	adrp	x24, _TRUE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _TRUE@GOTPAGEOFF]
	ldr	x3, [x24]
	mov	x1, sp
	mov	x0, x22
	mov	x2, x21
	bl	_tr_parse_pattern
	mov	x0, sp
	add	x2, sp, #8
	mov	x1, x21
	bl	_tr_compile_pattern
	mov	x1, sp
	mov	x0, x22
	bl	_tr_free_pattern
	mov	x0, x20
	bl	_RSTRING_PTR
	mov	x22, x0
	mov	x0, x20
	bl	_RSTRING_LEN
	cbz	x0, LBB0_5
; %bb.1:
	mov	x23, x0
	mov	x25, #0
	mov	x21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsb	w1, [x22, x25]
	add	x0, sp, #8
	bl	_tr_bitmap_detect
	ldr	x8, [x24]
	cmp	x0, #0
	csel	x19, x19, x8, eq
	cset	w8, ne
	add	x25, x25, #1
	sub	x8, x21, x8
	add	x21, x8, #1
	cmp	x23, x25
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x25, x21
	b.ls	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x22, x25]
	strb	w8, [x22, x21]
	b	LBB0_2
LBB0_5:
	mov	x21, #0
LBB0_6:
	cbz	x19, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_RSTRING
	mov	x1, x21
	bl	_RSTR_SET_LEN
	mov	x0, x20
	bl	_RSTRING_PTR
	strb	wzr, [x0, x21]
LBB0_8:
	ldur	x8, [x29, #-72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_STATIC_TR_PATTERN,4,2          ; @STATIC_TR_PATTERN
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
	.no_dead_strip	_str_delete
.subsections_via_symbols
