	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function maybe_byte_reverse
_maybe_byte_reverse:                    ## @maybe_byte_reverse
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_isLittleEndian
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	cmpl	$4, %r14d
	jl	LBB0_8
## %bb.2:
	shrl	$2, %r14d
	leal	-1(%r14), %eax
	cmpl	$3, %eax
	jb	LBB0_5
## %bb.3:
	movl	%r14d, %eax
	andl	$-4, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rbx), %xmm0
	movdqu	16(%rbx), %xmm1
	movdqu	32(%rbx), %xmm2
	movdqu	48(%rbx), %xmm3
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, (%rbx)
	pshufd	$27, %xmm1, %xmm0               ## xmm0 = xmm1[3,2,1,0]
	movdqu	%xmm0, 16(%rbx)
	pshufd	$27, %xmm2, %xmm0               ## xmm0 = xmm2[3,2,1,0]
	movdqu	%xmm0, 32(%rbx)
	pshufd	$27, %xmm3, %xmm0               ## xmm0 = xmm3[3,2,1,0]
	movdqu	%xmm0, 48(%rbx)
	addq	$64, %rbx
	addl	$-4, %eax
	jne	LBB0_4
LBB0_5:
	testb	$3, %r14b
	je	LBB0_8
## %bb.6:
	andl	$3, %r14d
	shlq	$4, %r14
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rbx,%rax), %xmm0
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, (%rbx,%rax)
	addq	$16, %rax
	cmpl	%eax, %r14d
	jne	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_maybe_byte_reverse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function maybe_byte_reverse
_maybe_byte_reverse:                    ; @maybe_byte_reverse
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_isLittleEndian
	cbz	x0, LBB0_9
; %bb.1:
	cmp	w20, #4
	b.lt	LBB0_9
; %bb.2:
	lsr	w9, w20, #2
	sub	w8, w9, #1
	cmp	w8, #7
	b.hs	LBB0_4
; %bb.3:
	mov	w10, #0
	mov	x8, x19
	b	LBB0_7
LBB0_4:
	add	x11, x8, #1
	and	x10, x11, #0x1fffffff8
	add	x8, x19, x10, lsl #4
	add	x12, x19, #64
	mov	x13, x10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x14, x12, #64
	ld4.4s	{ v0, v1, v2, v3 }, [x14]
	mov.16b	v4, v3
	mov.16b	v5, v2
	ld4.4s	{ v16, v17, v18, v19 }, [x12]
	mov.16b	v6, v1
	mov.16b	v7, v0
	mov.16b	v0, v19
	mov.16b	v1, v18
	mov.16b	v2, v17
	mov.16b	v3, v16
	st4.4s	{ v4, v5, v6, v7 }, [x14]
	st4.4s	{ v0, v1, v2, v3 }, [x12]
	add	x12, x12, #128
	subs	x13, x13, #8
	b.ne	LBB0_5
; %bb.6:
	cmp	x11, x10
	b.eq	LBB0_9
LBB0_7:
	sub	w9, w9, w10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q0, [x8]
	rev64.4s	v0, v0
	ext.16b	v0, v0, v0, #8
	str	q0, [x8], #16
	subs	w9, w9, #1
	b.ne	LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_maybe_byte_reverse
.subsections_via_symbols
