	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be8_to_le13
_be8_to_le13:                           ## @be8_to_le13
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	cmpq	$1, %rdx
	jne	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	movq	%rdx, %r8
	xorl	%r9d, %r9d
LBB0_12:
	movl	%r9d, %eax
	testb	$1, %dl
	je	LBB0_15
## %bb.13:
	movzbl	-1(%r8,%rsi), %eax
	shll	%cl, %eax
	orl	%r9d, %eax
	cmpl	$5, %ecx
	jl	LBB0_15
## %bb.14:
	movl	%eax, %ecx
	andl	$8191, %ecx                     ## imm = 0x1FFF
	movl	%ecx, (%rdi)
	sarl	$13, %eax
LBB0_15:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movq	%rdx, %r10
	andq	$-2, %r10
	xorl	%ecx, %ecx
	movq	%rdx, %r8
	xorl	%r9d, %r9d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r9d, %eax
	andl	$8191, %eax                     ## imm = 0x1FFF
	movl	%eax, (%rdi)
	addq	$4, %rdi
	sarl	$13, %r9d
	addl	$-5, %ecx
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$-2, %r8
	addq	$-2, %r10
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rsi,%r8), %r11d
	shll	%cl, %r11d
	orl	%r9d, %r11d
	cmpl	$5, %ecx
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r11d, %eax
	andl	$8191, %eax                     ## imm = 0x1FFF
	movl	%eax, (%rdi)
	addq	$4, %rdi
	sarl	$13, %r11d
	addl	$-5, %ecx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	addl	$8, %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movzbl	-2(%rsi,%r8), %r9d
	shll	%cl, %r9d
	orl	%r11d, %r9d
	cmpl	$5, %ecx
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	$8, %ecx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_be8_to_le13
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be8_to_le13
_be8_to_le13:                           ; @be8_to_le13
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_6
; %bb.1:
	mov	x8, x0
	mov	w10, #0
	mov	w0, #0
	sub	x9, x1, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	and	w10, w0, #0x1fff
	str	w10, [x8], #4
	asr	w0, w0, #13
	mov	x10, x11
	cbz	x2, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x9, x2]
	sub	x2, x2, #1
	lsl	w11, w11, w10
	orr	w0, w11, w0
	subs	w11, w10, #5
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w10, w10, #8
	cbnz	x2, LBB0_3
LBB0_5:
	ret
LBB0_6:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_be8_to_le13
.subsections_via_symbols
