	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hflip_byte_c
_hflip_byte_c:                          ## @hflip_byte_c
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	testl	%edx, %edx
	jle	LBB0_19
## %bb.1:
	movl	%edx, %r9d
	cmpl	$8, %edx
	jb	LBB0_2
## %bb.3:
	leaq	4(%rdi), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_6
## %bb.4:
	leaq	(%rsi,%r9,4), %rax
	movl	$1, %ecx
	subq	%r9, %rcx
	leaq	(%rdi,%rcx,4), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_6
LBB0_2:
	xorl	%ecx, %ecx
LBB0_12:
	movq	%rcx, %r8
	notq	%r8
	addq	%r9, %r8
	movq	%r9, %r10
	andq	$3, %r10
	je	LBB0_16
## %bb.13:
	leaq	(%rsi,%rcx,4), %rdx
	leaq	(,%rcx,4), %rax
	movq	%rdi, %r11
	subq	%rax, %r11
	negq	%r10
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r11,%rax,4), %ebx
	movl	%ebx, (%rdx)
	decq	%rax
	addq	$4, %rdx
	cmpq	%rax, %r10
	jne	LBB0_14
## %bb.15:
	subq	%rax, %rcx
LBB0_16:
	cmpq	$3, %r8
	jb	LBB0_19
## %bb.17:
	leaq	(,%rcx,4), %rax
	subq	%rax, %rdi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %eax
	movl	%eax, (%rsi,%rcx,4)
	movl	-4(%rdi), %eax
	movl	%eax, 4(%rsi,%rcx,4)
	movl	-8(%rdi), %eax
	movl	%eax, 8(%rsi,%rcx,4)
	movl	-12(%rdi), %eax
	movl	%eax, 12(%rsi,%rcx,4)
	addq	$4, %rcx
	addq	$-16, %rdi
	cmpq	%rcx, %r9
	jne	LBB0_18
	jmp	LBB0_19
LBB0_6:
	movl	%r9d, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_20
## %bb.7:
	movq	%r8, %r10
	andq	$-2, %r10
	leaq	48(%rsi), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-28(%rdi,%rdx,4), %xmm0
	movdqu	-12(%rdi,%rdx,4), %xmm1
	pshufd	$27, %xmm1, %xmm1               ## xmm1 = xmm1[3,2,1,0]
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm1, -48(%rax)
	movdqu	%xmm0, -32(%rax)
	movdqu	-60(%rdi,%rdx,4), %xmm0
	movdqu	-44(%rdi,%rdx,4), %xmm1
	pshufd	$27, %xmm1, %xmm1               ## xmm1 = xmm1[3,2,1,0]
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm1, -16(%rax)
	movdqu	%xmm0, (%rax)
	addq	$64, %rax
	addq	$-16, %rdx
	addq	$-2, %r10
	jne	LBB0_8
## %bb.9:
	negq	%rdx
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	leaq	(,%rdx,4), %r8
	movq	%rdi, %rax
	subq	%r8, %rax
	movdqu	-28(%rax), %xmm0
	movdqu	-12(%rax), %xmm1
	pshufd	$27, %xmm1, %xmm1               ## xmm1 = xmm1[3,2,1,0]
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm1, (%rsi,%rdx,4)
	movdqu	%xmm0, 16(%rsi,%rdx,4)
LBB0_11:
	cmpq	%r9, %rcx
	jne	LBB0_12
LBB0_19:
	popq	%rbx
	popq	%rbp
	retq
LBB0_20:
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hflip_byte_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hflip_byte_c
_hflip_byte_c:                          ; @hflip_byte_c
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w8, w2
	cmp	w2, #16
	b.lo	LBB0_4
; %bb.2:
	add	x9, x0, #4
	cmp	x9, x1
	b.ls	LBB0_8
; %bb.3:
	add	x9, x1, x8, lsl #2
	mov	w10, #1
	sub	x10, x10, x8
	add	x10, x0, x10, lsl #2
	cmp	x10, x9
	b.hs	LBB0_8
LBB0_4:
	mov	x9, #0
LBB0_5:
	lsl	x11, x9, #2
	sub	x10, x0, x11
	add	x11, x1, x11
	sub	x8, x8, x9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10], #-4
	str	w9, [x11], #4
	subs	x8, x8, #1
	b.ne	LBB0_6
LBB0_7:
	ret
LBB0_8:
	and	x9, x8, #0xfffffff0
	add	x10, x1, #32
	sub	x11, x0, #28
	mov	x12, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q0, [x11]
	rev64.4s	v0, v0
	ext.16b	v0, v0, v0, #8
	rev64.4s	v1, v1
	ext.16b	v1, v1, v1, #8
	ldp	q3, q2, [x11, #-32]
	rev64.4s	v2, v2
	ext.16b	v2, v2, v2, #8
	rev64.4s	v3, v3
	ext.16b	v3, v3, v3, #8
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	sub	x11, x11, #64
	sub	x12, x12, #16
	cbnz	x12, LBB0_9
; %bb.10:
	cmp	x9, x8
	b.eq	LBB0_7
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hflip_byte_c
.subsections_via_symbols
