	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_str_succ_bang
_mrb_str_succ_bang:                     ## @mrb_str_succ_bang
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	%esi, %edi
	callq	_mrb_str_ptr
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_RSTRING_LEN
	testq	%rax, %rax
	je	LBB0_30
## %bb.1:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mrb_str_modify
	movl	%r12d, %edi
	callq	_RSTRING_LEN
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_RSTRING_PTR
	movq	%rax, %r14
	movslq	%ebx, %rax
	leaq	(%r14,%rax), %r15
	movb	$0, (%r14,%rax)
	leaq	(%r14,%rax), %rbx
	decq	%rbx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %rbx
	jb	LBB0_31
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rbx), %edi
	callq	_ISALNUM
	decq	%rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	incq	%rbx
	movq	%rbx, %r15
	cmpq	%r14, %rbx
	jbe	LBB0_12
## %bb.5:
	movq	%rbx, %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	decq	%r15
	cmpq	%r14, %r15
	jbe	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15), %edi
	callq	_ISALNUM
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%r15), %edi
	callq	_ISALNUM
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%r15), %eax
	cmpb	$57, %al
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$122, %al
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$90, %al
	je	LBB0_11
LBB0_12:
	movzbl	(%r15), %edi
	callq	_ISALNUM
	cmpq	$1, %rax
	adcq	$0, %r15
	movl	%r15d, %edx
	subl	%r14d, %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mrb_str_new
	movl	%eax, %r13d
	cmpq	%r15, %rbx
	jae	LBB0_14
	jmp	LBB0_29
LBB0_31:
	leaq	-1(%r15), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_mrb_str_new_lit
	movl	%eax, %r13d
	movq	%r14, %r15
	cmpq	%r15, %rbx
	jb	LBB0_29
LBB0_14:
	leaq	L_.str.2(%rip), %r14
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_15 Depth=1
	decq	%rbx
	cmpq	%r15, %rbx
	jb	LBB0_29
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %edi
	callq	_ISALNUM
	movzbl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$122, %cl
	je	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$90, %cl
	je	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$57, %cl
	jne	LBB0_27
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	movb	$48, (%rbx)
	movq	%r14, %rdx
	cmpq	%r15, %rbx
	jne	LBB0_24
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_15 Depth=1
	movb	$97, (%rbx)
	leaq	L_.str.3(%rip), %rdx
	cmpq	%r15, %rbx
	jne	LBB0_24
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_15 Depth=1
	movb	$65, (%rbx)
	leaq	L_.str.4(%rip), %rdx
	cmpq	%r15, %rbx
	jne	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_mrb_str_cat_cstr
	jmp	LBB0_24
LBB0_16:
	cmpb	$-1, %cl
	je	LBB0_17
LBB0_27:
	incb	%cl
	jmp	LBB0_28
LBB0_17:
	leaq	L_.str.1(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_mrb_str_cat_lit
	xorl	%ecx, %ecx
LBB0_28:
	movb	%cl, (%rbx)
LBB0_29:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	subl	%r15d, %ecx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_mrb_str_cat
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_RSTRING_LEN
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_mrb_str_resize
	movl	%r12d, %edi
	callq	_RSTRING_PTR
	movq	%rax, %r14
	movl	%r13d, %edi
	callq	_RSTRING_PTR
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_memcpy
LBB0_30:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"\001"

L_.str.2:                               ## @.str.2
	.asciz	"1"

L_.str.3:                               ## @.str.3
	.asciz	"a"

L_.str.4:                               ## @.str.4
	.asciz	"A"

	.no_dead_strip	_mrb_str_succ_bang
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_str_succ_bang
_mrb_str_succ_bang:                     ; @mrb_str_succ_bang
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_mrb_str_ptr
	mov	x21, x0
	mov	x0, x19
	bl	_RSTRING_LEN
	cbz	x0, LBB0_32
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_mrb_str_modify
	mov	x0, x19
	bl	_RSTRING_LEN
	mov	x21, x0
	mov	x0, x19
	bl	_RSTRING_PTR
	mov	x23, x0
	add	x24, x0, w21, sxtw
	mov	x21, x24
	strb	wzr, [x21], #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x21, x23
	b.lo	LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w0, [x21], #-1
	bl	_ISALNUM
	cbz	x0, LBB0_2
; %bb.4:
	add	x25, x21, #1
	mov	x21, x25
	cmp	x25, x23
	b.ls	LBB0_12
; %bb.5:
	mov	x21, x25
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	x21, x21, #1
	cmp	x21, x23
	b.ls	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x21]
	bl	_ISALNUM
	cbz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w0, [x21]
	bl	_ISALNUM
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x21]
	cmp	w8, #57
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #122
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #90
	b.eq	LBB0_6
LBB0_12:
	mov	x22, x21
	ldrb	w0, [x22], #1
	bl	_ISALNUM
	cmp	x0, #0
	csel	x21, x21, x22, ne
	sub	w2, w21, w23
	mov	x0, x20
	mov	x1, x23
	bl	_mrb_str_new
	mov	x22, x0
	cmp	x25, x21
	b.hs	LBB0_14
	b	LBB0_31
LBB0_13:
	sub	x25, x24, #1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mrb_str_new_lit
	mov	x22, x0
	mov	x21, x23
	cmp	x25, x21
	b.lo	LBB0_31
LBB0_14:
	mov	w23, #97
	mov	w27, #65
	mov	w26, #48
Lloh2:
	adrp	x28, l_.str.2@PAGE
Lloh3:
	add	x28, x28, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_mrb_str_cat_cstr
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	sub	x25, x25, #1
	cmp	x25, x21
	b.lo	LBB0_31
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x25]
	bl	_ISALNUM
	ldrb	w8, [x25]
	cbz	x0, LBB0_27
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w8, #122
	b.eq	LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w8, #90
	b.eq	LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w8, #57
	b.ne	LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=1
	strb	w26, [x25]
	cmp	x25, x21
	b.ne	LBB0_16
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x2, x28
	b	LBB0_15
LBB0_23:                                ;   in Loop: Header=BB0_17 Depth=1
	strb	w23, [x25]
	cmp	x25, x21
	b.ne	LBB0_16
; %bb.24:                               ;   in Loop: Header=BB0_17 Depth=1
Lloh4:
	adrp	x2, l_.str.3@PAGE
Lloh5:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_25:                                ;   in Loop: Header=BB0_17 Depth=1
	strb	w27, [x25]
	cmp	x25, x21
	b.ne	LBB0_16
; %bb.26:                               ;   in Loop: Header=BB0_17 Depth=1
Lloh6:
	adrp	x2, l_.str.4@PAGE
Lloh7:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_27:
	cmp	w8, #255
	b.eq	LBB0_29
LBB0_28:
	add	w8, w8, #1
	b	LBB0_30
LBB0_29:
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_mrb_str_cat_lit
	mov	w8, #0
LBB0_30:
	strb	w8, [x25]
LBB0_31:
	sub	w3, w24, w21
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_mrb_str_cat
	mov	x21, x0
	bl	_RSTRING_LEN
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_mrb_str_resize
	mov	x0, x19
	bl	_RSTRING_PTR
	mov	x20, x0
	mov	x0, x21
	bl	_RSTRING_PTR
	mov	x1, x0
	mov	x0, x20
	mov	x2, x22
	bl	_memcpy
LBB0_32:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"\001"

l_.str.2:                               ; @.str.2
	.asciz	"1"

l_.str.3:                               ; @.str.3
	.asciz	"a"

l_.str.4:                               ; @.str.4
	.asciz	"A"

	.no_dead_strip	_mrb_str_succ_bang
.subsections_via_symbols
