	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function str_tr
_str_tr:                                ## @str_tr
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_STATIC_TR_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%eax, -64(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%esi, %edi
	callq	_mrb_str_ptr
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mrb_str_modify
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r13d, -76(%rbp)                ## 4-byte Spill
	movl	%r13d, %edx
	callq	_tr_parse_pattern
	movq	(%r14), %rcx
	leaq	-64(%rbp), %rsi
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	movl	%r12d, %edx
	callq	_tr_parse_pattern
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_RSTRING_PTR
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_RSTRING_LEN
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	$-1, %r13
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	decq	%r12
	movq	%r13, %r14
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	incq	%r12
	movq	%r14, %r13
	cmpq	%r15, -120(%rbp)                ## 8-byte Folded Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	callq	_RSTRING_PTR
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movsbl	(%rcx,%r15), %edx
	leaq	-48(%rbp), %rdi
	movq	%rax, %rsi
	callq	_tr_find_character
	movq	%rax, %r14
	cmpq	%r12, %r15
	jbe	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movzbl	(%rcx,%r15), %eax
	movb	%al, (%rcx,%r12)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rbx, %rbx
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_RSTRING_PTR
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_tr_get_character
	movq	%rax, %r14
	cmpq	$0, -104(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r13, %r14
	je	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$129, %r14
	jb	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_E_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_mrb_fixnum_value
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	callq	_mrb_raisef
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movb	%r14b, (%rax,%r15)
	jmp	LBB0_12
LBB0_1:
	xorl	%r12d, %r12d
LBB0_13:
	leaq	-48(%rbp), %rsi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_tr_free_pattern
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_tr_free_pattern
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.14:
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_RSTRING
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_RSTR_SET_LEN
	movl	%r14d, %edi
	callq	_RSTRING_PTR
	movb	$0, (%rax,%r12)
LBB0_15:
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATIC_TR_PATTERN,4,2          ## @STATIC_TR_PATTERN
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_E_ARGUMENT_ERROR,4,2           ## @E_ARGUMENT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"character (%S) out of range"

	.no_dead_strip	_str_tr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function str_tr
_str_tr:                                ; @str_tr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x4, [sp, #24]                   ; 8-byte Folded Spill
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _STATIC_TR_PATTERN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATIC_TR_PATTERN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	w8, [sp, #32]
Lloh3:
	adrp	x19, _FALSE@GOTPAGE
Lloh4:
	ldr	x19, [x19, _FALSE@GOTPAGEOFF]
	ldr	x22, [x19]
	mov	x0, x1
	bl	_mrb_str_ptr
	mov	x1, x0
	mov	x0, x21
	bl	_mrb_str_modify
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	x3, [x8]
	add	x1, sp, #40
	mov	x0, x21
	mov	x2, x24
	bl	_tr_parse_pattern
	ldr	x3, [x19]
	add	x1, sp, #32
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x21
	mov	x2, x23
	bl	_tr_parse_pattern
	mov	x26, x0
	mov	x0, x20
	bl	_RSTRING_PTR
	mov	x27, x0
	mov	x0, x20
	bl	_RSTRING_LEN
	cbz	x0, LBB0_13
; %bb.1:
	mov	x28, x0
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	mov	x21, #0
	mov	x25, #0
	mov	x20, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x25, x25, #1
	mov	x19, x20
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	add	x25, x25, #1
	mov	x20, x19
	cmp	x28, x21
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_RSTRING_PTR
	mov	x1, x0
	ldrsb	w2, [x27, x21]
	add	x0, sp, #40
	bl	_tr_find_character
	mov	x19, x0
	cmp	x21, x25
	b.ls	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x27, x21]
	strb	w8, [x27, x25]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	x22, [x8]
	cbz	x26, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_RSTRING_PTR
	mov	x1, x0
	mov	x0, x26
	mov	x2, x19
	bl	_tr_get_character
	mov	x19, x0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x19, x20
	b.eq	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x19, #129
	b.lo	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x8, _E_ARGUMENT_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_mrb_fixnum_value
	mov	x3, x0
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x20
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mrb_raisef
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w19, [x27, x21]
	b	LBB0_3
LBB0_12:
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_14
LBB0_13:
	mov	x25, #0
LBB0_14:
	add	x1, sp, #40
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x19
	bl	_tr_free_pattern
	mov	x0, x19
	mov	x1, x26
	bl	_tr_free_pattern
	cbz	x22, LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_RSTRING
	mov	x1, x25
	bl	_RSTR_SET_LEN
	mov	x0, x20
	bl	_RSTRING_PTR
	strb	wzr, [x0, x25]
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.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
	.comm	_E_ARGUMENT_ERROR,4,2           ; @E_ARGUMENT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"character (%S) out of range"

	.no_dead_strip	_str_tr
.subsections_via_symbols
