	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_swab                   ## -- Begin function cx231xx_swab
	.p2align	4, 0x90
_cx231xx_swab:                          ## @cx231xx_swab
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2, %edx
	jl	LBB0_14
## %bb.1:
	movl	%edx, %r9d
	shrl	%r9d
	xorl	%ecx, %ecx
	cmpl	$16, %edx
	jb	LBB0_10
## %bb.2:
	movq	%rsi, %rax
	subq	%rdi, %rax
	cmpq	$32, %rax
	jb	LBB0_10
## %bb.3:
	movl	%r9d, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r8, %rax
	andq	$-2, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rdx,4), %xmm0
	movdqu	16(%rdi,%rdx,4), %xmm1
	movdqa	%xmm0, %xmm2
	pslld	$8, %xmm2
	movdqa	%xmm1, %xmm3
	pslld	$8, %xmm3
	psrad	$8, %xmm0
	por	%xmm2, %xmm0
	psrad	$8, %xmm1
	por	%xmm3, %xmm1
	movdqu	%xmm0, (%rsi,%rdx,4)
	movdqu	%xmm1, 16(%rsi,%rdx,4)
	movdqu	32(%rdi,%rdx,4), %xmm0
	movdqu	48(%rdi,%rdx,4), %xmm1
	movdqa	%xmm0, %xmm2
	pslld	$8, %xmm2
	movdqa	%xmm1, %xmm3
	pslld	$8, %xmm3
	psrad	$8, %xmm0
	por	%xmm2, %xmm0
	psrad	$8, %xmm1
	por	%xmm3, %xmm1
	movdqu	%xmm0, 32(%rsi,%rdx,4)
	movdqu	%xmm1, 48(%rsi,%rdx,4)
	addq	$16, %rdx
	addq	$-2, %rax
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movdqu	(%rdi,%rdx,4), %xmm0
	movdqu	16(%rdi,%rdx,4), %xmm1
	movdqa	%xmm0, %xmm2
	pslld	$8, %xmm2
	movdqa	%xmm1, %xmm3
	pslld	$8, %xmm3
	psrad	$8, %xmm0
	por	%xmm2, %xmm0
	psrad	$8, %xmm1
	por	%xmm3, %xmm1
	movdqu	%xmm0, (%rsi,%rdx,4)
	movdqu	%xmm1, 16(%rsi,%rdx,4)
LBB0_9:
	cmpq	%r9, %rcx
	je	LBB0_14
LBB0_10:
	movq	%rcx, %rax
	notq	%rax
	testb	$1, %r9b
	je	LBB0_12
## %bb.11:
	movl	(%rdi,%rcx,4), %edx
	movl	%edx, %r8d
	shll	$8, %r8d
	sarl	$8, %edx
	orl	%r8d, %edx
	movl	%edx, (%rsi,%rcx,4)
	orq	$1, %rcx
LBB0_12:
	addq	%r9, %rax
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rcx,4), %eax
	movl	%eax, %edx
	shll	$8, %edx
	sarl	$8, %eax
	orl	%edx, %eax
	movl	%eax, (%rsi,%rcx,4)
	movl	4(%rdi,%rcx,4), %eax
	movl	%eax, %edx
	shll	$8, %edx
	sarl	$8, %eax
	orl	%edx, %eax
	movl	%eax, 4(%rsi,%rcx,4)
	addq	$2, %rcx
	cmpq	%rcx, %r9
	jne	LBB0_13
LBB0_14:
	popq	%rbp
	retq
LBB0_4:
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_swab                   ; -- Begin function cx231xx_swab
	.p2align	2
_cx231xx_swab:                          ; @cx231xx_swab
	.cfi_startproc
; %bb.0:
	cmp	w2, #2
	b.lt	LBB0_8
; %bb.1:
	mov	x9, #0
	lsr	w8, w2, #1
	cmp	w2, #32
	b.lo	LBB0_6
; %bb.2:
	sub	x10, x1, x0
	cmp	x10, #64
	b.lo	LBB0_6
; %bb.3:
	and	x9, x8, #0x7ffffff0
	add	x10, x1, #32
	add	x11, x0, #32
	mov	x12, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	shl.4s	v4, v0, #8
	shl.4s	v5, v1, #8
	shl.4s	v6, v2, #8
	shl.4s	v7, v3, #8
	sshr.4s	v0, v0, #8
	sshr.4s	v1, v1, #8
	sshr.4s	v2, v2, #8
	sshr.4s	v3, v3, #8
	orr.16b	v0, v4, v0
	orr.16b	v1, v5, v1
	orr.16b	v2, v6, v2
	stp	q0, q1, [x10, #-32]
	orr.16b	v0, v7, v3
	stp	q2, q0, [x10], #64
	subs	x12, x12, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_6:
	lsl	x11, x9, #2
	add	x10, x1, x11
	add	x11, x0, x11
	sub	x8, x8, x9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x11], #4
	lsl	w12, w9, #8
	orr	w9, w12, w9, asr #8
	str	w9, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
