	.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_swap2
LCPI0_0:
	.byte	128                             ## 0x80
	.byte	0                               ## 0x0
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	4                               ## 0x4
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	8                               ## 0x8
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	12                              ## 0xc
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gl_swap2
	.p2align	4, 0x90
_gl_swap2:                              ## @gl_swap2
	.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_11
## %bb.1:
	cmpq	$8, %rsi
	jae	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	movq	%rsi, %rax
	andq	$-8, %rax
	leaq	-8(%rax), %rcx
	movq	%rcx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	%r8, %rdx
	andq	$-2, %rdx
	xorl	%ecx, %ecx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [128,0,128,128,128,4,128,128,128,8,128,128,128,12,128,128]
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rcx,4), %xmm1
	movdqu	16(%rdi,%rcx,4), %xmm2
	movdqu	32(%rdi,%rcx,4), %xmm3
	movdqu	48(%rdi,%rcx,4), %xmm4
	movdqa	%xmm1, %xmm5
	psrad	$8, %xmm5
	movdqa	%xmm2, %xmm6
	psrad	$8, %xmm6
	pshufb	%xmm0, %xmm1
	por	%xmm5, %xmm1
	pshufb	%xmm0, %xmm2
	por	%xmm6, %xmm2
	movdqu	%xmm1, (%rdi,%rcx,4)
	movdqu	%xmm2, 16(%rdi,%rcx,4)
	movdqa	%xmm3, %xmm1
	psrad	$8, %xmm1
	movdqa	%xmm4, %xmm2
	psrad	$8, %xmm2
	pshufb	%xmm0, %xmm3
	por	%xmm1, %xmm3
	pshufb	%xmm0, %xmm4
	por	%xmm2, %xmm4
	movdqu	%xmm3, 32(%rdi,%rcx,4)
	movdqu	%xmm4, 48(%rdi,%rcx,4)
	addq	$16, %rcx
	addq	$-2, %rdx
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movdqu	(%rdi,%rcx,4), %xmm0
	movdqu	16(%rdi,%rcx,4), %xmm1
	movdqa	%xmm0, %xmm2
	psrad	$8, %xmm2
	movdqa	%xmm1, %xmm3
	psrad	$8, %xmm3
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [128,0,128,128,128,4,128,128,128,8,128,128,128,12,128,128]
	pshufb	%xmm4, %xmm0
	por	%xmm2, %xmm0
	pshufb	%xmm4, %xmm1
	por	%xmm3, %xmm1
	movdqu	%xmm0, (%rdi,%rcx,4)
	movdqu	%xmm1, 16(%rdi,%rcx,4)
LBB0_9:
	cmpq	%rsi, %rax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rax,4), %ecx
	movl	%ecx, %edx
	sarl	$8, %edx
	shll	$8, %ecx
	movzwl	%cx, %ecx
	orl	%edx, %ecx
	movl	%ecx, (%rdi,%rax,4)
	incq	%rax
	cmpq	%rax, %rsi
	jne	LBB0_10
LBB0_11:
	popq	%rbp
	retq
LBB0_4:
	xorl	%ecx, %ecx
	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	_gl_swap2                       ; -- Begin function gl_swap2
	.p2align	2
_gl_swap2:                              ; @gl_swap2
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_8
; %bb.1:
	cmp	x1, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x8, #0
	b	LBB0_6
LBB0_3:
	and	x8, x1, #0xfffffffffffffff0
	add	x9, x0, #32
	movi.2d	v0, #0x00ff000000ff00
	mov	x10, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x9, #-32]
	ldp	q3, q4, [x9]
	sshr.4s	v5, v1, #8
	sshr.4s	v6, v2, #8
	sshr.4s	v7, v3, #8
	sshr.4s	v16, v4, #8
	shl.4s	v1, v1, #8
	shl.4s	v2, v2, #8
	shl.4s	v3, v3, #8
	shl.4s	v4, v4, #8
	and.16b	v1, v1, v0
	and.16b	v2, v2, v0
	and.16b	v3, v3, v0
	and.16b	v4, v4, v0
	orr.16b	v1, v1, v5
	orr.16b	v2, v2, v6
	orr.16b	v3, v3, v7
	stp	q1, q2, [x9, #-32]
	orr.16b	v1, v4, v16
	stp	q3, q1, [x9], #64
	subs	x10, x10, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x8, x1
	b.eq	LBB0_8
LBB0_6:
	sub	x9, x1, x8
	add	x8, x0, x8, lsl #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8]
	ubfiz	w11, w10, #8, #8
	orr	w10, w11, w10, asr #8
	str	w10, [x8], #4
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
