	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function str_squeeze
_str_squeeze:                           ## @str_squeeze
	.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, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	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, -192(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movl	%esi, %edi
	callq	_mrb_str_ptr
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mrb_str_modify
	movl	%r12d, %edi
	callq	_mrb_nil_p
	movb	$1, %bl
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	-192(%rbp), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_tr_parse_pattern
	movq	%rax, %rbx
	leaq	-176(%rbp), %rdx
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_tr_compile_pattern
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_tr_free_pattern
	testq	%rbx, %rbx
	sete	%bl
LBB0_2:
	movl	%r15d, %edi
	callq	_RSTRING_PTR
	movq	%rax, %r12
	movl	%r15d, %edi
	callq	_RSTRING_LEN
	movq	%rax, %r13
	testb	%bl, %bl
	movl	%r15d, -196(%rbp)               ## 4-byte Spill
	je	LBB0_10
## %bb.3:
	testq	%r13, %r13
	je	LBB0_18
## %bb.4:
	movq	$-1, %rdx
	xorl	%eax, %eax
	movq	_TRUE@GOTPCREL(%rip), %rdi
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rax
	movzbl	%dl, %ecx
	subq	%rcx, %rbx
	incq	%rbx
	movq	%rsi, %rdx
	cmpq	%rax, %r13
	je	LBB0_19
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rax
	jbe	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%r12,%rax), %ecx
	movb	%cl, (%r12,%rbx)
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movsbq	(%r12,%rax), %rsi
	testq	%rsi, %rsi
	setns	%cl
	cmpq	%rsi, %rdx
	sete	%dl
	andb	%cl, %dl
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rdi), %rcx
	movq	%rcx, -184(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
LBB0_10:
	testq	%r13, %r13
	je	LBB0_18
## %bb.11:
	movq	$-1, %r14
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	incq	%rbx
	movq	%rax, %r14
	cmpq	%r15, %r13
	je	LBB0_19
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r15
	jbe	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movzbl	(%r12,%r15), %eax
	movb	%al, (%r12,%rbx)
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movsbl	(%r12,%r15), %esi
	leaq	-176(%rbp), %rdi
	callq	_tr_bitmap_detect
	testq	%rax, %rax
	setne	%cl
	movsbq	(%r12,%r15), %rax
	cmpq	%rax, %r14
	sete	%dl
	andb	%cl, %dl
	movzbl	%dl, %ecx
	subq	%rcx, %rbx
	testb	%cl, %cl
	je	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -184(%rbp)                ## 8-byte Spill
	jmp	LBB0_12
LBB0_18:
	xorl	%ebx, %ebx
LBB0_19:
	movq	-184(%rbp), %r14                ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_21
## %bb.20:
	movl	-196(%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_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movq	%r14, %rax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	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_squeeze
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function str_squeeze
_str_squeeze:                           ; @str_squeeze
	.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	x22, x2
	mov	x20, x1
	mov	x21, 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, x21
	bl	_mrb_str_modify
	mov	x0, x22
	bl	_mrb_nil_p
	cbz	w0, LBB0_2
; %bb.1:
	mov	w21, #1
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh11:
	ldr	x3, [x8]
	mov	x1, sp
	mov	x0, x21
	mov	x2, x22
	bl	_tr_parse_pattern
	mov	x23, x0
	add	x2, sp, #8
	mov	x1, x22
	bl	_tr_compile_pattern
	mov	x0, x21
	mov	x1, x23
	bl	_tr_free_pattern
	cmp	x23, #0
	cset	w21, eq
LBB0_3:
	mov	x0, x20
	bl	_RSTRING_PTR
	mov	x22, x0
	mov	x0, x20
	bl	_RSTRING_LEN
	mov	x23, x0
	tbz	w21, #0, LBB0_9
; %bb.4:
	cbz	x23, LBB0_14
; %bb.5:
	mov	x8, #0
	mov	x21, #0
	mov	x10, #-1
Lloh12:
	adrp	x9, _TRUE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrsb	x11, [x22, x8]
	cmp	x11, #0
	cset	w12, ge
	cmp	x10, x11
	cset	w10, eq
	ldr	x13, [x9]
	ands	w10, w12, w10
	csel	x19, x13, x19, ne
	add	x8, x8, #1
	sub	x10, x21, x10
	add	x21, x10, #1
	mov	x10, x11
	cmp	x23, x8
	b.eq	LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x21
	b.ls	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w11, [x22, x8]
	strb	w11, [x22, x21]
	b	LBB0_6
LBB0_9:
	cbz	x23, LBB0_19
; %bb.10:
	mov	x24, #0
	mov	x21, #0
	mov	x26, #-1
Lloh14:
	adrp	x25, _TRUE@GOTPAGE
Lloh15:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldrsb	w1, [x22, x24]
	add	x0, sp, #8
	bl	_tr_bitmap_detect
	cmp	x0, #0
	cset	w8, ne
	ldrsb	x9, [x22, x24]
	cmp	x26, x9
	cset	w10, eq
	ldr	x11, [x25]
	ands	w8, w8, w10
	csel	x19, x11, x19, ne
	sub	x8, x21, x8
	add	x24, x24, #1
	add	x21, x8, #1
	mov	x26, x9
	cmp	x23, x24
	b.eq	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cmp	x24, x21
	b.ls	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrb	w8, [x22, x24]
	strb	w8, [x22, x21]
	b	LBB0_11
LBB0_14:
	mov	x21, #0
LBB0_15:
	cbz	x19, LBB0_17
LBB0_16:
	mov	x0, x20
	bl	_RSTRING
	mov	x1, x21
	bl	_RSTR_SET_LEN
	mov	x0, x20
	bl	_RSTRING_PTR
	strb	wzr, [x0, x21]
LBB0_17:
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.18:
	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_19:
	mov	x21, #0
	cbnz	x19, LBB0_16
	b	LBB0_17
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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_squeeze
.subsections_via_symbols
