	.file	"extr_string.c_mrb_str_swapcase_bang.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mrb_str_swapcase_bang, @function
mrb_str_swapcase_bang:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	mrb_str_ptr@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	mrb_str_modify@PLT
	mov	edi, r13d
	call	RSTRING_PTR@PLT
	mov	edi, r13d
	mov	rbx, rax
	call	RSTRING_LEN@PLT
	movsx	rbp, eax
	add	rbp, rbx
	cmp	rbx, rbp
	jnb	.L2
	xor	r12d, r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	call	TOLOWER@PLT
	mov	r12d, 1
	mov	BYTE PTR [rbx], al
.L4:
	add	rbx, 1
	cmp	rbp, rbx
	je	.L17
.L5:
	movsx	edi, BYTE PTR [rbx]
	call	ISUPPER@PLT
	movsx	edi, BYTE PTR [rbx]
	test	rax, rax
	jne	.L18
	call	ISLOWER@PLT
	test	rax, rax
	je	.L4
	movsx	edi, BYTE PTR [rbx]
	add	rbx, 1
	mov	r12d, 1
	call	TOUPPER@PLT
	mov	BYTE PTR -1[rbx], al
	cmp	rbp, rbx
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	test	r12d, r12d
	je	.L2
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mrb_nil_value@PLT
	.cfi_endproc
.LFE0:
	.size	mrb_str_swapcase_bang, .-mrb_str_swapcase_bang
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_string.c_mrb_str_swapcase_bang.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mrb_str_swapcase_bang, %function
mrb_str_swapcase_bang:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r6, r1
	bl	mrb_str_ptr
	mov	r1, r0
	mov	r0, r4
	bl	mrb_str_modify
	mov	r0, r6
	bl	RSTRING_PTR
	mov	r4, r0
	mov	r0, r6
	bl	RSTRING_LEN
	add	r5, r4, r0
	cmp	r4, r5
	bcs	.L2
	mov	r7, #0
	sub	r4, r4, #1
	sub	r5, r5, #1
	b	.L5
.L18:
	bl	TOLOWER
	mov	r7, #1
	strb	r0, [r4]
.L4:
	cmp	r4, r5
	beq	.L17
.L5:
	ldrb	r0, [r4, #1]!	@ zero_extendqisi2
	bl	ISUPPER
	cmp	r0, #0
	ldrb	r0, [r4]	@ zero_extendqisi2
	bne	.L18
	bl	ISLOWER
	cmp	r0, #0
	beq	.L4
	ldrb	r0, [r4]	@ zero_extendqisi2
	bl	TOUPPER
	cmp	r4, r5
	mov	r7, #1
	strb	r0, [r4]
	bne	.L5
.L17:
	cmp	r7, #0
	beq	.L2
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	pop	{r4, r5, r6, r7, r8, lr}
	b	mrb_nil_value
	.size	mrb_str_swapcase_bang, .-mrb_str_swapcase_bang
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
