	.file	"406304.c"
	.intel_syntax noprefix
	.text
	.globl	swab
	.type	swab, @function
swab:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	.cfi_offset 3, -24
	mov	rax, rdi
	mov	rcx, rsi
	sar	edx
	add	edx, 1
	jmp	.L2
.L3:
	mov	rsi, rax
	lea	rax, 1[rsi]
	movzx	esi, BYTE PTR [rsi]
	movsx	rbx, sil
	mov	rdi, rax
	lea	rax, 1[rdi]
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	movzx	edi, BYTE PTR [rdi]
	mov	BYTE PTR [rsi], dil
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	mov	edi, ebx
	mov	BYTE PTR [rsi], dil
.L2:
	sub	edx, 1
	mov	esi, edx
	and	esi, 7
	test	esi, esi
	jne	.L3
	sar	edx, 3
	jmp	.L4
.L5:
	mov	rsi, rax
	lea	rax, 1[rsi]
	movzx	esi, BYTE PTR [rsi]
	movsx	rbx, sil
	mov	rdi, rax
	lea	rax, 1[rdi]
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	movzx	edi, BYTE PTR [rdi]
	mov	BYTE PTR [rsi], dil
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	mov	edi, ebx
	mov	BYTE PTR [rsi], dil
	mov	rsi, rax
	lea	rax, 1[rsi]
	movzx	esi, BYTE PTR [rsi]
	movsx	rbx, sil
	mov	rdi, rax
	lea	rax, 1[rdi]
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	movzx	edi, BYTE PTR [rdi]
	mov	BYTE PTR [rsi], dil
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	mov	edi, ebx
	mov	BYTE PTR [rsi], dil
	mov	rsi, rax
	lea	rax, 1[rsi]
	movzx	esi, BYTE PTR [rsi]
	movsx	rbx, sil
	mov	rdi, rax
	lea	rax, 1[rdi]
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	movzx	edi, BYTE PTR [rdi]
	mov	BYTE PTR [rsi], dil
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	mov	edi, ebx
	mov	BYTE PTR [rsi], dil
	mov	rsi, rax
	lea	rax, 1[rsi]
	movzx	esi, BYTE PTR [rsi]
	movsx	rbx, sil
	mov	rdi, rax
	lea	rax, 1[rdi]
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	movzx	edi, BYTE PTR [rdi]
	mov	BYTE PTR [rsi], dil
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	mov	edi, ebx
	mov	BYTE PTR [rsi], dil
	mov	rsi, rax
	lea	rax, 1[rsi]
	movzx	esi, BYTE PTR [rsi]
	movsx	rbx, sil
	mov	rdi, rax
	lea	rax, 1[rdi]
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	movzx	edi, BYTE PTR [rdi]
	mov	BYTE PTR [rsi], dil
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	mov	edi, ebx
	mov	BYTE PTR [rsi], dil
	mov	rsi, rax
	lea	rax, 1[rsi]
	movzx	esi, BYTE PTR [rsi]
	movsx	rbx, sil
	mov	rdi, rax
	lea	rax, 1[rdi]
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	movzx	edi, BYTE PTR [rdi]
	mov	BYTE PTR [rsi], dil
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	mov	edi, ebx
	mov	BYTE PTR [rsi], dil
	mov	rsi, rax
	lea	rax, 1[rsi]
	movzx	esi, BYTE PTR [rsi]
	movsx	rbx, sil
	mov	rdi, rax
	lea	rax, 1[rdi]
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	movzx	edi, BYTE PTR [rdi]
	mov	BYTE PTR [rsi], dil
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	mov	edi, ebx
	mov	BYTE PTR [rsi], dil
	mov	rsi, rax
	lea	rax, 1[rsi]
	movzx	esi, BYTE PTR [rsi]
	movsx	rbx, sil
	mov	rdi, rax
	lea	rax, 1[rdi]
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	movzx	edi, BYTE PTR [rdi]
	mov	BYTE PTR [rsi], dil
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	mov	edi, ebx
	mov	BYTE PTR [rsi], dil
.L4:
	sub	edx, 1
	test	edx, edx
	jns	.L5
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	swab, .-swab
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"406304.c"
	.text
	.align	2
	.global	swab
	.syntax unified
	.arm
	.fpu softvfp
	.type	swab, %function
swab:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, fp}
	add	fp, sp, #4
	mov	r3, r0
	asr	r2, r2, #1
	add	r2, r2, #1
	b	.L2
.L3:
	mov	r0, r3
	add	r3, r0, #1
	ldrb	r0, [r0]	@ zero_extendqisi2
	mov	r4, r0
	mov	ip, r3
	add	r3, ip, #1
	mov	r0, r1
	add	r1, r0, #1
	ldrb	ip, [ip]	@ zero_extendqisi2
	strb	ip, [r0]
	mov	r0, r1
	add	r1, r0, #1
	and	ip, r4, #255
	strb	ip, [r0]
.L2:
	sub	r2, r2, #1
	and	r0, r2, #7
	cmp	r0, #0
	bne	.L3
	asr	r2, r2, #3
	b	.L4
.L5:
	mov	r0, r3
	add	r3, r0, #1
	ldrb	r0, [r0]	@ zero_extendqisi2
	mov	r4, r0
	mov	ip, r3
	add	r3, ip, #1
	mov	r0, r1
	add	r1, r0, #1
	ldrb	ip, [ip]	@ zero_extendqisi2
	strb	ip, [r0]
	mov	r0, r1
	add	r1, r0, #1
	and	ip, r4, #255
	strb	ip, [r0]
	mov	r0, r3
	add	r3, r0, #1
	ldrb	r0, [r0]	@ zero_extendqisi2
	mov	r4, r0
	mov	ip, r3
	add	r3, ip, #1
	mov	r0, r1
	add	r1, r0, #1
	ldrb	ip, [ip]	@ zero_extendqisi2
	strb	ip, [r0]
	mov	r0, r1
	add	r1, r0, #1
	and	ip, r4, #255
	strb	ip, [r0]
	mov	r0, r3
	add	r3, r0, #1
	ldrb	r0, [r0]	@ zero_extendqisi2
	mov	r4, r0
	mov	ip, r3
	add	r3, ip, #1
	mov	r0, r1
	add	r1, r0, #1
	ldrb	ip, [ip]	@ zero_extendqisi2
	strb	ip, [r0]
	mov	r0, r1
	add	r1, r0, #1
	and	ip, r4, #255
	strb	ip, [r0]
	mov	r0, r3
	add	r3, r0, #1
	ldrb	r0, [r0]	@ zero_extendqisi2
	mov	r4, r0
	mov	ip, r3
	add	r3, ip, #1
	mov	r0, r1
	add	r1, r0, #1
	ldrb	ip, [ip]	@ zero_extendqisi2
	strb	ip, [r0]
	mov	r0, r1
	add	r1, r0, #1
	and	ip, r4, #255
	strb	ip, [r0]
	mov	r0, r3
	add	r3, r0, #1
	ldrb	r0, [r0]	@ zero_extendqisi2
	mov	r4, r0
	mov	ip, r3
	add	r3, ip, #1
	mov	r0, r1
	add	r1, r0, #1
	ldrb	ip, [ip]	@ zero_extendqisi2
	strb	ip, [r0]
	mov	r0, r1
	add	r1, r0, #1
	and	ip, r4, #255
	strb	ip, [r0]
	mov	r0, r3
	add	r3, r0, #1
	ldrb	r0, [r0]	@ zero_extendqisi2
	mov	r4, r0
	mov	ip, r3
	add	r3, ip, #1
	mov	r0, r1
	add	r1, r0, #1
	ldrb	ip, [ip]	@ zero_extendqisi2
	strb	ip, [r0]
	mov	r0, r1
	add	r1, r0, #1
	and	ip, r4, #255
	strb	ip, [r0]
	mov	r0, r3
	add	r3, r0, #1
	ldrb	r0, [r0]	@ zero_extendqisi2
	mov	r4, r0
	mov	ip, r3
	add	r3, ip, #1
	mov	r0, r1
	add	r1, r0, #1
	ldrb	ip, [ip]	@ zero_extendqisi2
	strb	ip, [r0]
	mov	r0, r1
	add	r1, r0, #1
	and	ip, r4, #255
	strb	ip, [r0]
	mov	r0, r3
	add	r3, r0, #1
	ldrb	r0, [r0]	@ zero_extendqisi2
	mov	r4, r0
	mov	ip, r3
	add	r3, ip, #1
	mov	r0, r1
	add	r1, r0, #1
	ldrb	ip, [ip]	@ zero_extendqisi2
	strb	ip, [r0]
	mov	r0, r1
	add	r1, r0, #1
	and	ip, r4, #255
	strb	ip, [r0]
.L4:
	sub	r2, r2, #1
	cmp	r2, #0
	bge	.L5
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{r4, fp}
	bx	lr
	.size	swab, .-swab
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
