	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function gl_flip_bytes
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	8                               ## 0x8
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_1:
	.space	16,15
LCPI0_2:
	.byte	0                               ## 0x0
	.byte	128                             ## 0x80
	.byte	64                              ## 0x40
	.byte	192                             ## 0xc0
	.byte	32                              ## 0x20
	.byte	160                             ## 0xa0
	.byte	96                              ## 0x60
	.byte	224                             ## 0xe0
	.byte	16                              ## 0x10
	.byte	144                             ## 0x90
	.byte	80                              ## 0x50
	.byte	208                             ## 0xd0
	.byte	48                              ## 0x30
	.byte	176                             ## 0xb0
	.byte	112                             ## 0x70
	.byte	240                             ## 0xf0
LCPI0_3:
	.byte	0                               ## 0x0
	.byte	8                               ## 0x8
	.byte	4                               ## 0x4
	.byte	12                              ## 0xc
	.byte	2                               ## 0x2
	.byte	10                              ## 0xa
	.byte	6                               ## 0x6
	.byte	14                              ## 0xe
	.byte	1                               ## 0x1
	.byte	9                               ## 0x9
	.byte	5                               ## 0x5
	.byte	13                              ## 0xd
	.byte	3                               ## 0x3
	.byte	11                              ## 0xb
	.byte	7                               ## 0x7
	.byte	15                              ## 0xf
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gl_flip_bytes
	.p2align	4, 0x90
_gl_flip_bytes:                         ## @gl_flip_bytes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	cmpq	$4, %rsi
	jae	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	%rsi, %rax
	andq	$-4, %rax
	xorl	%ecx, %ecx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <0,8,u,u,u,u,u,u,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [0,128,64,192,32,160,96,224,16,144,80,208,48,176,112,240]
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = [0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15]
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rcx,8), %xmm4
	movdqu	16(%rdi,%rcx,8), %xmm5
	pshufb	%xmm0, %xmm4
	pshufb	%xmm0, %xmm5
	movdqa	%xmm4, %xmm6
	pand	%xmm1, %xmm6
	movdqa	%xmm2, %xmm7
	pshufb	%xmm6, %xmm7
	psrlw	$4, %xmm4
	pand	%xmm1, %xmm4
	movdqa	%xmm3, %xmm6
	pshufb	%xmm4, %xmm6
	por	%xmm7, %xmm6
	movdqa	%xmm5, %xmm4
	pand	%xmm1, %xmm4
	movdqa	%xmm2, %xmm7
	pshufb	%xmm4, %xmm7
	psrlw	$4, %xmm5
	pand	%xmm1, %xmm5
	movdqa	%xmm3, %xmm4
	pshufb	%xmm5, %xmm4
	por	%xmm7, %xmm4
	pmovzxbq	%xmm6, %xmm5                    ## xmm5 = xmm6[0],zero,zero,zero,zero,zero,zero,zero,xmm6[1],zero,zero,zero,zero,zero,zero,zero
	pmovzxbq	%xmm4, %xmm4                    ## xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
	movdqu	%xmm5, (%rdi,%rcx,8)
	movdqu	%xmm4, 16(%rdi,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_4
## %bb.5:
	cmpq	%rsi, %rax
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rax,8), %ecx
	rolb	$4, %cl
	movl	%ecx, %edx
	andb	$51, %dl
	shlb	$2, %dl
	shrb	$2, %cl
	andb	$51, %cl
	orb	%dl, %cl
	movl	%ecx, %edx
	andb	$85, %dl
	addb	%dl, %dl
	shrb	%cl
	andb	$85, %cl
	orb	%dl, %cl
	movzbl	%cl, %ecx
	movq	%rcx, (%rdi,%rax,8)
	incq	%rax
	cmpq	%rax, %rsi
	jne	LBB0_6
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_flip_bytes                  ; -- Begin function gl_flip_bytes
	.p2align	2
_gl_flip_bytes:                         ; @gl_flip_bytes
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_8
; %bb.1:
	cmp	x1, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x8, #0
	b	LBB0_6
LBB0_3:
	and	x8, x1, #0xfffffffffffffff8
	add	x9, x0, #32
	mov	x10, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x9, #-32]
	ldp	q2, q3, [x9]
	xtn.2s	v0, v0
	xtn.2s	v1, v1
	xtn.2s	v2, v2
	xtn.2s	v3, v3
	rev32.8b	v0, v0
	rbit.8b	v0, v0
	ushr.2s	v0, v0, #24
	rev32.8b	v1, v1
	rbit.8b	v1, v1
	ushr.2s	v1, v1, #24
	rev32.8b	v2, v2
	rbit.8b	v2, v2
	ushr.2s	v2, v2, #24
	rev32.8b	v3, v3
	rbit.8b	v3, v3
	ushr.2s	v3, v3, #24
	ushll.2d	v0, v0, #0
	ushll.2d	v1, v1, #0
	ushll.2d	v2, v2, #0
	stp	q0, q1, [x9, #-32]
	ushll.2d	v0, v3, #0
	stp	q2, q0, [x9], #64
	subs	x10, x10, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x8, x1
	b.eq	LBB0_8
LBB0_6:
	sub	x9, x1, x8
	add	x8, x0, x8, lsl #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8]
	rbit	w10, w10
	lsr	w10, w10, #24
	str	x10, [x8], #8
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
