	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_offset_lut
_generate_offset_lut:                   ## @generate_offset_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LUT_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movslq	%esi, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_res@GOTPCREL(%rip), %r12
	movq	_LUT_BITS@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, 4(%rbx)
	movl	$1, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, 8(%rbx)
	movl	(%r12), %esi
	movl	%r14d, %ecx
	shll	%cl, %esi
	movq	(%r13), %rdx
	subq	-48(%rbp), %rdx                 ## 8-byte Folded Reload
	movq	%rbx, %rdi
	callq	_search_for_golomb
	incq	%r15
	movq	_LUT_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$12, %rbx
	cmpq	%rax, %r15
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_INIT_RESIDUE
	movl	(%r12), %edi
	movq	(%r13), %rdx
	movl	%r15d, %esi
	callq	_SET_RESIDUE
	movl	%r14d, (%rbx)
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movq	_RSIZE_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	subl	%r14d, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edi
	movl	%r14d, %esi
	callq	_CONVERT_TO_RESIDUE
	movl	%eax, 4(%rbx)
	movq	_RSIZE_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	(%rbx), %ecx
	btl	%ecx, %eax
	movl	$-1, %eax
	movl	$1, %ecx
	cmovael	%ecx, %eax
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUT_SIZE,4,2                   ## @LUT_SIZE
	.comm	_res,4,2                        ## @res
	.comm	_LUT_BITS,8,3                   ## @LUT_BITS
	.comm	_RSIZE_BITS,4,2                 ## @RSIZE_BITS
	.no_dead_strip	_generate_offset_lut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_offset_lut
_generate_offset_lut:                   ; @generate_offset_lut
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x22, _LUT_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LUT_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
Lloh2:
	adrp	x23, _res@GOTPAGE
Lloh3:
	ldr	x23, [x23, _res@GOTPAGEOFF]
	sxtw	x24, w19
Lloh4:
	adrp	x25, _LUT_BITS@GOTPAGE
Lloh5:
	ldr	x25, [x25, _LUT_BITS@GOTPAGEOFF]
Lloh6:
	adrp	x26, _RSIZE_BITS@GOTPAGE
Lloh7:
	ldr	x26, [x26, _RSIZE_BITS@GOTPAGEOFF]
	mov	w27, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x20, #4]
	mov	w8, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [x20, #8]
	ldr	w8, [x23]
	lsl	w1, w8, w19
	ldr	x8, [x25]
	sub	x2, x8, x24
	mov	x0, x20
	bl	_search_for_golomb
	add	x21, x21, #1
	ldrsw	x8, [x22]
	add	x20, x20, #12
	cmp	x21, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_INIT_RESIDUE
	ldr	w0, [x23]
	ldr	x2, [x25]
	mov	x1, x21
	bl	_SET_RESIDUE
	str	w19, [x20]
	cbz	w19, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x26]
	sub	w9, w9, w19
	asr	w0, w8, w9
	mov	x1, x19
	bl	_CONVERT_TO_RESIDUE
	str	w0, [x20, #4]
	ldr	w8, [x26]
	ldr	w9, [x20]
	sub	w8, w8, w9
	lsr	w8, w0, w8
	tst	w8, #0x1
	cneg	w8, w27, ne
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_LUT_SIZE,4,2                   ; @LUT_SIZE
	.comm	_res,4,2                        ; @res
	.comm	_LUT_BITS,8,3                   ; @LUT_BITS
	.comm	_RSIZE_BITS,4,2                 ; @RSIZE_BITS
	.no_dead_strip	_generate_offset_lut
.subsections_via_symbols
