	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_str_swapcase_bang
_mrb_str_swapcase_bang:                 ## @mrb_str_swapcase_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_mrb_str_ptr
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_mrb_str_modify
	movl	%r14d, %edi
	callq	_RSTRING_PTR
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_RSTRING_LEN
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	movslq	%eax, %r15
	addq	%rbx, %r15
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_TOLOWER
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	%al, (%rbx)
	movl	$1, %r12d
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%r15, %rbx
	jae	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_ISUPPER
	movzbl	(%rbx), %ecx
	movsbl	%cl, %edi
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_ISLOWER
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movsbl	(%rbx), %edi
	callq	_TOUPPER
	jmp	LBB0_6
LBB0_8:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_nil_value                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mrb_str_swapcase_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_swapcase_bang
_mrb_str_swapcase_bang:                 ; @mrb_str_swapcase_bang
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_mrb_str_ptr
	mov	x1, x0
	mov	x0, x20
	bl	_mrb_str_modify
	mov	x0, x19
	bl	_RSTRING_PTR
	mov	x20, x0
	mov	x0, x19
	bl	_RSTRING_LEN
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w22, #0
	add	x21, x20, w0, sxtw
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	sxtb	w0, w8
	bl	_TOLOWER
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	strb	w0, [x20]
	mov	w22, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	cmp	x20, x21
	b.hs	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20]
	bl	_ISUPPER
	ldrb	w8, [x20]
	cbnz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtb	w0, w8
	bl	_ISLOWER
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrsb	w0, [x20]
	bl	_TOUPPER
	b	LBB0_3
LBB0_8:
	cbz	w22, LBB0_10
; %bb.9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mrb_nil_value
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mrb_str_swapcase_bang
.subsections_via_symbols
