	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function BF_swap
LCPI0_0:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_BF_swap:                               ## @BF_swap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	leal	-1(%rsi), %r8d
	cmpl	$7, %r8d
	jae	LBB0_2
## %bb.1:
	movq	%rdi, %rax
	jmp	LBB0_5
LBB0_2:
	incq	%r8
	movq	%r8, %rdx
	andq	$-8, %rdx
	subl	%edx, %esi
	leaq	(%rdi,%rdx,4), %rax
	xorl	%ecx, %ecx
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [255,0,255,0,255,0,255,0,255,0,255,0,255,0,255,0]
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rcx,4), %xmm1
	movdqu	16(%rdi,%rcx,4), %xmm2
	movdqa	%xmm1, %xmm3
	pslld	$16, %xmm3
	movdqa	%xmm2, %xmm4
	pslld	$16, %xmm4
	psrad	$16, %xmm1
	por	%xmm3, %xmm1
	psrad	$16, %xmm2
	por	%xmm4, %xmm2
	movdqa	%xmm1, %xmm3
	pslld	$8, %xmm3
	movdqa	%xmm2, %xmm4
	pslld	$8, %xmm4
	psrld	$8, %xmm1
	psrld	$8, %xmm2
	pblendvb	%xmm0, %xmm1, %xmm3
	pblendvb	%xmm0, %xmm2, %xmm4
	movdqu	%xmm3, (%rdi,%rcx,4)
	movdqu	%xmm4, 16(%rdi,%rcx,4)
	addq	$8, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_3
## %bb.4:
	cmpq	%rdx, %r8
	je	LBB0_7
LBB0_5:
	movl	%esi, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movl	%esi, %edi
	shll	$16, %edi
	sarl	$16, %esi
	orl	%edi, %esi
	bswapl	%esi
	rorl	$16, %esi
	movl	%esi, (%rax,%rdx,4)
	incq	%rdx
	cmpl	%edx, %ecx
	jne	LBB0_6
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_BF_swap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function BF_swap
_BF_swap:                               ; @BF_swap
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #1
	cmp	w8, #15
	b.hs	LBB0_2
; %bb.1:
	mov	x8, x0
	b	LBB0_5
LBB0_2:
	add	x9, x8, #1
	and	x10, x9, #0x1fffffff0
	sub	w1, w1, w10
	add	x8, x0, x10, lsl #2
	add	x11, x0, #32
	movi.2d	v0, #0xff00ff00ff00ff00
	mov	x12, x10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x11, #-32]
	ldp	q3, q4, [x11]
	shl.4s	v5, v1, #16
	shl.4s	v6, v2, #16
	shl.4s	v7, v3, #16
	shl.4s	v16, v4, #16
	sshr.4s	v1, v1, #16
	sshr.4s	v2, v2, #16
	sshr.4s	v3, v3, #16
	sshr.4s	v4, v4, #16
	orr.16b	v1, v5, v1
	orr.16b	v2, v6, v2
	orr.16b	v3, v7, v3
	orr.16b	v4, v16, v4
	shl.4s	v5, v1, #8
	shl.4s	v6, v2, #8
	shl.4s	v7, v3, #8
	shl.4s	v16, v4, #8
	ushr.4s	v1, v1, #8
	ushr.4s	v2, v2, #8
	ushr.4s	v3, v3, #8
	ushr.4s	v4, v4, #8
	bit.16b	v1, v5, v0
	bit.16b	v2, v6, v0
	bit.16b	v3, v7, v0
	stp	q1, q2, [x11, #-32]
	mov.16b	v1, v0
	bsl.16b	v1, v16, v4
	stp	q3, q1, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_3
; %bb.4:
	cmp	x9, x10
	b.eq	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8]
	lsl	w10, w9, #16
	orr	w9, w10, w9, asr #16
	rev16	w9, w9
	str	w9, [x8], #4
	subs	w1, w1, #1
	b.ne	LBB0_5
LBB0_6:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_BF_swap
.subsections_via_symbols
