	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reverse_lut
_reverse_lut:                           ## @reverse_lut
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_USHORT_RANGE@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	$0, (%rsi)
	movl	(%r8), %edx
	movl	$1, %r14d
	cmpl	$2, %edx
	jl	LBB0_7
## %bb.3:
	movl	$1, %r14d
	movl	$1, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ecx
	cmpl	%edx, %ecx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	shrl	$3, %eax
	movl	(%rdi,%rax,4), %eax
	movl	%ecx, %ebx
	andb	$7, %bl
	movzbl	%bl, %ebx
	btl	%ebx, %eax
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r14d, %rax
	incl	%r14d
	movl	%ecx, (%rsi,%rax,4)
	movl	(%r8), %edx
	jmp	LBB0_6
LBB0_1:
	xorl	%r14d, %r14d
LBB0_7:
	movslq	%r14d, %rax
	decl	%r14d
	leaq	(%rsi,%rax,4), %rdi
	subl	%eax, %edx
	addl	%edx, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USHORT_RANGE,4,2               ## @USHORT_RANGE
	.no_dead_strip	_reverse_lut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reverse_lut
_reverse_lut:                           ; @reverse_lut
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x9, _USHORT_RANGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USHORT_RANGE@GOTPAGEOFF]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	str	wzr, [x1]
	ldr	w8, [x9]
	mov	w10, #1
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.2:
	mov	w11, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w11, w11, #1
	cmp	w11, w8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w12, w11, #3
	ldr	w12, [x0, w12, uxtw #2]
	and	w13, w11, #0x7
	lsr	w12, w12, w13
	tbz	w12, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w11, [x1, w10, sxtw #2]
	add	w10, w10, #1
	ldr	w8, [x9]
	b	LBB0_3
LBB0_6:
	mov	w10, #0
LBB0_7:
	sub	w19, w10, #1
	add	x0, x1, w10, sxtw #2
	sub	w8, w8, w10
	lsl	w2, w8, #1
	mov	w1, #0
	bl	_memset
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_USHORT_RANGE,4,2               ; @USHORT_RANGE
	.no_dead_strip	_reverse_lut
.subsections_via_symbols
