	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_endian
_convert_endian:                        ## @convert_endian
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	je	LBB0_10
## %bb.1:
	movl	%esi, %eax
	andl	$-4, %eax
	jle	LBB0_2
## %bb.3:
	movl	%eax, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rax,4), %xmm0
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, (%rdx,%rax,4)
	addq	$4, %rax
	cmpq	%rcx, %rax
	jb	LBB0_4
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
LBB0_5:
	andl	$3, %esi
	cmpl	$2, %esi
	jb	LBB0_10
## %bb.6:
	movl	%eax, %ecx
	cmpl	$3, %esi
	jne	LBB0_7
## %bb.8:
	orl	$2, %eax
	jmp	LBB0_9
LBB0_7:
	orl	$1, %eax
LBB0_9:
	movl	(%rdx,%rax,4), %esi
	movl	(%rdx,%rcx,4), %edi
	movl	%edi, (%rdx,%rax,4)
	movl	%esi, (%rdx,%rcx,4)
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_convert_endian
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_endian
_convert_endian:                        ; @convert_endian
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_15
; %bb.1:
	and	w9, w1, #0xfffffffc
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w8, #4
	cmp	x9, #4
	csel	x8, x9, x8, hi
	sub	x8, x8, #1
	cmp	x8, #12
	b.hs	LBB0_5
; %bb.3:
	mov	x8, #0
	b	LBB0_8
LBB0_4:
	mov	w8, #0
	b	LBB0_10
LBB0_5:
	lsr	x8, x8, #2
	add	x10, x8, #1
	and	x11, x10, #0x7ffffffffffffffc
	lsl	x8, x11, #2
	mov	x12, x11
	mov	x13, x2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ld4.4s	{ v0, v1, v2, v3 }, [x13]
	mov.16b	v4, v3
	mov.16b	v5, v2
	mov.16b	v6, v1
	mov.16b	v7, v0
	st4.4s	{ v4, v5, v6, v7 }, [x13], #64
	subs	x12, x12, #4
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x11
	b.eq	LBB0_10
LBB0_8:
	add	x10, x2, x8, lsl #2
	add	x10, x10, #8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w12, w11, [x10]
	ldp	w13, w14, [x10, #-8]
	stp	w14, w13, [x10]
	stp	w11, w12, [x10, #-8]
	add	x8, x8, #4
	add	x10, x10, #16
	cmp	x8, x9
	b.lo	LBB0_9
LBB0_10:
	and	w9, w1, #0x3
	cmp	w9, #2
	b.lo	LBB0_15
; %bb.11:
	cmp	w9, #3
	b.ne	LBB0_13
; %bb.12:
	orr	w9, w8, #0x2
	b	LBB0_14
LBB0_13:
	orr	w9, w8, #0x1
LBB0_14:
	lsl	x9, x9, #2
	ldr	w10, [x2, x9]
	mov	w8, w8
	lsl	x8, x8, #2
	ldr	w11, [x2, x8]
	str	w11, [x2, x9]
	str	w10, [x2, x8]
LBB0_15:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_convert_endian
.subsections_via_symbols
