	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_parity_lut
_generate_parity_lut:                   ## @generate_parity_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
	subq	$24, %rsp
	.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_12
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edx
	subl	%r12d, %edx
	addb	$-2, %dl
	movl	%r15d, %ebx
	movl	%edx, %ecx
	shrl	%cl, %ebx
	movl	$-1, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	movl	%edx, %ecx
	sarl	%cl, %edi
	notl	%edi
	andl	%ebx, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%esi, 4(%rbx,%r13)
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_CONVERT_TO_RESIDUE
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, (%rdi)
	movq	_RSIZE_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	4(%rbx,%r13), %ecx
	btq	%rcx, %rax
	movl	$-1, %eax
	movl	$1, %ecx
	cmovael	%ecx, %eax
	movl	%eax, 16(%rbx,%r13)
	movq	_res@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movq	_LUT_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subl	%r12d, %edx
	addl	$-2, %edx
	callq	_search_for_golomb
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	_LUT_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jge	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r15, %r13
	shlq	$5, %r13
	leaq	(%rbx,%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_res@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_INIT_RESIDUE
	movl	(%rbx), %edi
	movq	_LUT_BITS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r15d, %esi
	callq	_SET_RESIDUE
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_res@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_RSIZE_BITS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	decl	%edx
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incl	%r12d
	decl	%edx
	cmpl	%r12d, %eax
	je	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r14d, %r14d
	sete	%bl
	btl	%edx, %ecx
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorb	%r12b, %bl
	testb	$1, %bl
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	2(%r12), %esi
	cmpl	%esi, %eax
	jge	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	$0, 4(%rbx,%r13)
	movq	_LUT_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 8(%rbx,%r13)
	movl	%r15d, %edi
	callq	_CONVERT_TO_RESIDUE
	movq	%rax, 24(%rbx,%r13)
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %eax
	andl	$1, %eax
	movl	%eax, 12(%rbx,%r13)
	jmp	LBB0_11
LBB0_12:
	addq	$24, %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,4,2                   ## @LUT_BITS
	.comm	_RSIZE_BITS,4,2                 ## @RSIZE_BITS
	.no_dead_strip	_generate_parity_lut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_parity_lut
_generate_parity_lut:                   ; @generate_parity_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	x24, _LUT_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LUT_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
Lloh2:
	adrp	x25, _res@GOTPAGE
Lloh3:
	ldr	x25, [x25, _res@GOTPAGEOFF]
Lloh4:
	adrp	x26, _LUT_BITS@GOTPAGE
Lloh5:
	ldr	x26, [x26, _LUT_BITS@GOTPAGEOFF]
Lloh6:
	adrp	x28, _RSIZE_BITS@GOTPAGE
Lloh7:
	ldr	x28, [x28, _RSIZE_BITS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w8, w27
	sub	w9, w9, #2
	lsr	w10, w21, w9
	mov	w11, #-1
	lsl	w8, w11, w8
	asr	w8, w8, w9
	bic	w0, w10, w8
	mov	x24, x28
	add	x28, x20, x21, lsl #5
	str	w23, [x28, #4]
	mov	x1, x23
	bl	_CONVERT_TO_RESIDUE
	str	w0, [x22]
	ldr	w8, [x24]
	ldr	w9, [x28, #4]
	sub	w8, w8, w9
	lsr	w8, w0, w8
	tst	w8, #0x1
	mov	w8, #1
	cneg	w8, w8, ne
	str	w8, [x28, #16]
	mov	x28, x24
Lloh8:
	adrp	x24, _LUT_SIZE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _LUT_SIZE@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	w1, w8, w23
	ldr	w8, [x26]
	sub	w8, w8, w27
	sub	w2, w8, #2
	mov	x0, x22
	bl	_search_for_golomb
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x24]
	cmp	x21, x8
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	add	x22, x20, x21, lsl #5
	ldr	w0, [x25]
	bl	_INIT_RESIDUE
	ldr	w0, [x25]
	ldr	w2, [x26]
	mov	x1, x21
	bl	_SET_RESIDUE
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #0
	ldr	w9, [x25]
	ldr	w10, [x28]
	sub	w10, w10, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w27, w27, #1
	sub	w10, w10, #1
	cmp	w8, w27
	b.eq	LBB0_10
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w19, #0
	cset	w11, eq
	lsr	w12, w9, w10
	tbz	w12, #0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	eor	w11, w11, w27
	tbz	w11, #0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w27, #2
	cmp	w8, w23
	b.ge	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x22]
	ldr	w1, [x26]
	str	w1, [x22, #8]
	mov	x0, x21
	bl	_CONVERT_TO_RESIDUE
	str	x0, [x22, #24]
	cbz	w19, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w21, #0x1
	add	x9, x20, x21, lsl #5
	str	w8, [x9, #12]
	b	LBB0_3
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LUT_SIZE,4,2                   ; @LUT_SIZE
	.comm	_res,4,2                        ; @res
	.comm	_LUT_BITS,4,2                   ; @LUT_BITS
	.comm	_RSIZE_BITS,4,2                 ; @RSIZE_BITS
	.no_dead_strip	_generate_parity_lut
.subsections_via_symbols
