	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_dirac_golomb_read_32bit     ## -- Begin function ff_dirac_golomb_read_32bit
	.p2align	4, 0x90
_ff_dirac_golomb_read_32bit:            ## @ff_dirac_golomb_read_32bit
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -92(%rbp)                 ## 4-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LUT_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movslq	(%rsi), %r15
	movq	_res@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_INIT_RESIDUE
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	leaq	(%r15,%r14,2), %rax
	leaq	(%rax,%rax,4), %rax
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	leaq	(%r12,%rax,8), %r13
	incl	%ebx
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	$1, %r12d
	movq	_res_bits@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	_res@GOTPCREL(%rip), %r15
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r14d, %r14
	leaq	(%rax,%r14,4), %rdi
	movl	32(%r13), %esi
	movq	_LUT_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	callq	_memcpy
	addl	24(%r13), %r14d
	movl	(%r15), %edi
	movl	16(%r13), %esi
	callq	_APPEND_RESIDUE
	movl	(%rbx), %eax
	movl	%eax, %ecx
	andl	$1, %ecx
	testl	%eax, %eax
	movl	$2, %eax
	cmovel	%eax, %ecx
	cmpq	$0, 8(%r13)
	movl	$3, %eax
	cmovneq	%rax, %rcx
	movq	-80(%rbp,%rcx,8), %r13
	incq	%r12
	cmpq	-104(%rbp), %r12                ## 8-byte Folded Reload
	je	LBB0_16
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movslq	(%rax,%r12,4), %rax
	leaq	(%rax,%rax,4), %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rax
	movq	%rax, -80(%rbp)
	movq	_LUT_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rcx,4), %rdx
	leaq	(%rax,%rdx,8), %rsi
	movq	%rsi, -72(%rbp)
	shlq	$4, %rdx
	addq	%rax, %rdx
	movq	%rdx, -64(%rbp)
	imulq	$120, %rcx, %rcx
	addq	%rax, %rcx
	movq	%rcx, -56(%rbp)
	cmpl	-92(%rbp), %r14d                ## 4-byte Folded Reload
	jge	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%r13)
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_res@GOTPCREL(%rip), %rax
	movq	%rbx, %r15
	movq	%rax, %rbx
	movl	(%rax), %edi
	movl	36(%r13), %esi
	callq	_APPEND_RESIDUE
	movq	%rbx, %r11
	movq	%r15, %rbx
	movl	(%r15), %ecx
	movl	$1, %eax
	cmpl	$4, %ecx
	jl	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	shrl	%ecx
	movl	(%r11), %edx
	movq	_RSIZE_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leal	-1(%rcx), %r8d
	cmpl	$2, %ecx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	movl	$1, %eax
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r8d, %r10d
	andl	$-2, %r10d
	leal	-4(%r9), %esi
	xorl	%edi, %edi
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	2(%rsi), %ecx
	movl	%edx, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %ebx
	andl	$1, %ebx
	addl	%ebx, %ebx
	leal	(%rbx,%rax,4), %ecx
	xorl	%eax, %eax
	btl	%esi, %edx
	setb	%al
	orl	%ecx, %eax
	addl	$2, %edi
	addl	$-4, %esi
	cmpl	%edi, %r10d
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r8b
	movq	%r15, %rbx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	addl	%edi, %edi
	subl	%edi, %r9d
	addb	$-2, %r9b
	movzbl	%r9b, %ecx
	xorl	%esi, %esi
	btl	%ecx, %edx
	setb	%sil
	leal	(%rsi,%rax,2), %eax
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	decl	%eax
	imull	(%r13), %eax
	movslq	%r14d, %rcx
	incl	%r14d
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	movq	%rdx, %rax
	movl	$0, (%r11)
	movl	$0, (%rbx)
	movq	%r11, %r15
	jmp	LBB0_15
LBB0_1:
	xorl	%r14d, %r14d
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LUT_SIZE,4,2                   ## @LUT_SIZE
	.comm	_res,4,2                        ## @res
	.comm	_res_bits,4,2                   ## @res_bits
	.comm	_RSIZE_BITS,4,2                 ## @RSIZE_BITS
	.comm	_LUT_BITS,4,2                   ## @LUT_BITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_dirac_golomb_read_32bit     ; -- Begin function ff_dirac_golomb_read_32bit
	.p2align	2
_ff_dirac_golomb_read_32bit:            ; @ff_dirac_golomb_read_32bit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	w4, [sp, #4]                    ; 4-byte Folded Spill
	mov	x20, x3
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _LUT_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LUT_SIZE@GOTPAGEOFF]
	str	x8, [sp, #40]
Lloh5:
	ldr	w19, [x9]
	ldr	w25, [x1]
Lloh6:
	adrp	x26, _res@GOTPAGE
Lloh7:
	ldr	x26, [x26, _res@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_INIT_RESIDUE
	cmp	w24, #1
	b.lt	LBB0_11
; %bb.1:
	mov	w23, #0
	add	w8, w25, w19, lsl #1
	mov	w27, #40
	smaddl	x25, w8, w27, x22
	add	w24, w24, #1
	mov	w28, #1
Lloh8:
	adrp	x19, _res_bits@GOTPAGE
Lloh9:
	ldr	x19, [x19, _res_bits@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w11, #1
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	sub	w9, w11, #1
	mul	w8, w8, w9
	str	w8, [x20, w23, sxtw #2]
	add	w23, w23, #1
	str	wzr, [x26]
	str	wzr, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x20, w23, sxtw #2
	ldr	w1, [x25, #32]
Lloh10:
	adrp	x8, _LUT_BITS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LUT_BITS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	w8, [x25, #24]
	add	w23, w23, w8
	ldr	w0, [x26]
	ldr	w1, [x25, #16]
	bl	_APPEND_RESIDUE
	ldr	x8, [x25, #8]
	ldr	w9, [x19]
	and	w10, w9, #0x1
	cmp	w9, #0
	mov	w9, #2
	csel	w9, w9, w10, eq
	cmp	x8, #0
	mov	w8, #3
	csel	x8, x9, x8, eq
	add	x9, sp, #8
	ldr	x25, [x9, x8, lsl #3]
	add	x28, x28, #1
	cmp	x28, x24
	b.eq	LBB0_12
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldrsw	x8, [x21, x28, lsl #2]
	madd	x8, x8, x27, x22
Lloh13:
	adrp	x9, _LUT_SIZE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _LUT_SIZE@GOTPAGEOFF]
Lloh15:
	ldrsw	x9, [x9]
	madd	x10, x9, x27, x8
	stp	x8, x10, [sp, #8]
	mov	w10, #80
	madd	x10, x9, x10, x8
	mov	w11, #120
	madd	x8, x9, x11, x8
	stp	x10, x8, [sp, #24]
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w23, w8
	b.ge	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	cbz	w8, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	ldr	w1, [x25, #36]
	bl	_APPEND_RESIDUE
	ldr	w8, [x19]
	cmp	w8, #4
	b.lt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	lsr	w9, w8, #1
	ldr	w8, [x26]
Lloh16:
	adrp	x10, _RSIZE_BITS@GOTPAGE
Lloh17:
	ldr	x10, [x10, _RSIZE_BITS@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	sub	w9, w9, #1
	sub	w10, w10, #2
	mov	w12, #1
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	w11, w8, w10
	bfi	w11, w12, #1, #31
	sub	w10, w10, #2
	mov	x12, x11
	sub	w9, w9, #1
	cbnz	w9, LBB0_10
	b	LBB0_3
LBB0_11:
	mov	w23, #0
LBB0_12:
	ldr	x8, [sp, #40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_LUT_SIZE,4,2                   ; @LUT_SIZE
	.comm	_res,4,2                        ; @res
	.comm	_res_bits,4,2                   ; @res_bits
	.comm	_RSIZE_BITS,4,2                 ; @RSIZE_BITS
	.comm	_LUT_BITS,4,2                   ; @LUT_BITS
.subsections_via_symbols
