	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function munge_buf
LCPI0_0:
	.byte	127                             ## 0x7f
	.byte	127                             ## 0x7f
	.byte	127                             ## 0x7f
	.byte	127                             ## 0x7f
	.byte	127                             ## 0x7f
	.byte	127                             ## 0x7f
	.byte	127                             ## 0x7f
	.byte	127                             ## 0x7f
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_1:
	.space	16,1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_munge_buf:                             ## @munge_buf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2, %edx
	jae	LBB0_2
## %bb.1:
	movq	%rsi, %rax
	popq	%rbp
	retq
LBB0_2:
	movl	%edx, %r8d
	shrl	%r8d
	cmpl	$32, %edx
	jb	LBB0_3
## %bb.4:
	leaq	(%rdi,%r8), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_6
## %bb.5:
	leaq	(%rsi,%r8,2), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_6
LBB0_3:
	xorl	%edx, %edx
	movq	%rsi, %rax
LBB0_9:
	movq	%rdx, %rsi
	notq	%rsi
	testb	$1, %r8b
	je	LBB0_11
## %bb.10:
	movb	(%rdi,%rdx), %cl
	andb	$127, %cl
	movb	%cl, (%rax)
	movb	(%rdi,%rdx), %cl
	shrb	$7, %cl
	movb	%cl, 1(%rax)
	addq	$2, %rax
	orq	$1, %rdx
LBB0_11:
	addq	%r8, %rsi
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rdx), %ecx
	andb	$127, %cl
	movb	%cl, (%rax)
	movzbl	(%rdi,%rdx), %ecx
	shrb	$7, %cl
	movb	%cl, 1(%rax)
	movzbl	1(%rdi,%rdx), %ecx
	andb	$127, %cl
	movb	%cl, 2(%rax)
	movzbl	1(%rdi,%rdx), %ecx
	shrb	$7, %cl
	movb	%cl, 3(%rax)
	addq	$4, %rax
	addq	$2, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_12
	jmp	LBB0_13
LBB0_6:
	movl	%r8d, %edx
	andl	$-16, %edx
	leaq	(%rsi,%rdx,2), %rax
	xorl	%ecx, %ecx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <127,127,127,127,127,127,127,127,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rcx), %xmm2              ## xmm2 = mem[0],zero
	movq	8(%rdi,%rcx), %xmm3             ## xmm3 = mem[0],zero
	movdqa	%xmm2, %xmm4
	pand	%xmm0, %xmm4
	movdqa	%xmm3, %xmm5
	pand	%xmm0, %xmm5
	psrlw	$7, %xmm2
	pand	%xmm1, %xmm2
	punpcklbw	%xmm2, %xmm4            ## xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1],xmm4[2],xmm2[2],xmm4[3],xmm2[3],xmm4[4],xmm2[4],xmm4[5],xmm2[5],xmm4[6],xmm2[6],xmm4[7],xmm2[7]
	psrlw	$7, %xmm3
	pand	%xmm1, %xmm3
	punpcklbw	%xmm3, %xmm5            ## xmm5 = xmm5[0],xmm3[0],xmm5[1],xmm3[1],xmm5[2],xmm3[2],xmm5[3],xmm3[3],xmm5[4],xmm3[4],xmm5[5],xmm3[5],xmm5[6],xmm3[6],xmm5[7],xmm3[7]
	movdqu	%xmm4, (%rsi,%rcx,2)
	movdqu	%xmm5, 16(%rsi,%rcx,2)
	addq	$16, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_7
## %bb.8:
	cmpq	%r8, %rdx
	jne	LBB0_9
LBB0_13:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_munge_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function munge_buf
_munge_buf:                             ; @munge_buf
	.cfi_startproc
; %bb.0:
	cmp	w2, #2
	b.hs	LBB0_2
; %bb.1:
	mov	x0, x1
	ret
LBB0_2:
	lsr	w9, w2, #1
	cmp	w2, #64
	b.lo	LBB0_5
; %bb.3:
	add	x8, x0, x9
	cmp	x8, x1
	b.ls	LBB0_10
; %bb.4:
	add	x8, x1, x9, lsl #1
	cmp	x8, x0
	b.ls	LBB0_10
LBB0_5:
	mov	x10, #0
	mov	x8, x1
LBB0_6:
	add	x11, x0, x10
	sub	x9, x9, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x11]
	and	w10, w10, #0x7f
	strb	w10, [x8]
	ldrb	w10, [x11], #1
	lsr	w12, w10, #7
	add	x10, x8, #2
	strb	w12, [x8, #1]
	mov	x8, x10
	subs	x9, x9, #1
	b.ne	LBB0_7
; %bb.8:
	mov	x8, x10
LBB0_9:
	mov	x0, x8
	ret
LBB0_10:
	and	x10, x9, #0x7fffffe0
	add	x8, x1, x10, lsl #1
	add	x11, x1, #32
	movi.16b	v0, #127
	mov	x12, x10
	mov	x13, x0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x13], #32
	and.16b	v3, v1, v0
	ushr.16b	v4, v1, #7
	sub	x14, x11, #32
	st2.16b	{ v3, v4 }, [x14]
	and.16b	v3, v2, v0
	ushr.16b	v4, v2, #7
	st2.16b	{ v3, v4 }, [x11]
	add	x11, x11, #64
	subs	x12, x12, #32
	b.ne	LBB0_11
; %bb.12:
	cmp	x10, x9
	b.ne	LBB0_6
	b	LBB0_9
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_munge_buf
.subsections_via_symbols
