	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp78_update_probability_tables
_vp78_update_probability_tables:        ## @vp78_update_probability_tables
	.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	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_NUM_DCT_TOKENS@GOTPCREL(%rip), %rax
	movq	%rax, %rbx
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##       Child Loop BB0_10 Depth 3
                                        ##       Child Loop BB0_15 Depth 3
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=2
	incq	%r13
	cmpq	$8, %r13
	je	LBB0_19
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##       Child Loop BB0_10 Depth 3
                                        ##       Child Loop BB0_15 Depth 3
	cmpl	$2, %eax
	jl	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	_vp8_token_update_probs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vp56_rac_get_prob_branchy
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=3
	incq	%r14
	movslq	(%rbx), %rax
	leaq	-1(%rax), %rcx
	cmpq	%rcx, %r14
	jl	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=2
	cmpl	$2, %eax
	jl	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=2
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	_vp8_token_update_probs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax,%r13,8), %rax
	movq	8(%rax), %rax
	movl	(%rax,%r14,4), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vp56_rac_get_prob_branchy
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=3
	incq	%r14
	movslq	(%rbx), %rax
	leaq	-1(%rax), %rcx
	cmpq	%rcx, %r14
	jl	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=2
	cmpl	$2, %eax
	jl	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=2
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	_vp8_token_update_probs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax,%r13,8), %rax
	movq	16(%rax), %rax
	movl	(%rax,%r14,4), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vp56_rac_get_prob_branchy
	testq	%rax, %rax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=3
	incq	%r14
	movslq	(%rbx), %rax
	movq	%rax, %rcx
	decq	%rcx
	cmpq	%rcx, %r14
	jl	LBB0_15
	jmp	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%r12
	cmpq	$4, %r12
	jne	LBB0_1
## %bb.20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	$1, %r15d
LBB0_5:
	movl	%r12d, %r12d
	movl	%r13d, %r13d
	movl	%r14d, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %esi
	callq	_vp8_rac_get_uint
	movq	_vp8_coeff_band_indexes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%r12,8), %rdx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rsi
	movq	(%rdx,%rsi,8), %rsi
	movq	(%rsi,%r15,8), %rsi
	movl	%eax, (%rsi,%rbx,4)
	addq	$8, %rcx
	jmp	LBB0_6
LBB0_16:
	movl	$2, %r15d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_DCT_TOKENS,4,2             ## @NUM_DCT_TOKENS
	.comm	_vp8_token_update_probs,8,3     ## @vp8_token_update_probs
	.comm	_vp8_coeff_band_indexes,8,3     ## @vp8_coeff_band_indexes
	.no_dead_strip	_vp78_update_probability_tables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp78_update_probability_tables
_vp78_update_probability_tables:        ; @vp78_update_probability_tables
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	mov	x21, #0
	add	x20, x0, #8
Lloh0:
	adrp	x24, _NUM_DCT_TOKENS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NUM_DCT_TOKENS@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x25, _vp8_token_update_probs@GOTPAGE
Lloh3:
	ldr	x25, [x25, _vp8_token_update_probs@GOTPAGEOFF]
	mov	w22, #1
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
                                        ;       Child Loop BB0_5 Depth 3
                                        ;       Child Loop BB0_9 Depth 3
                                        ;       Child Loop BB0_13 Depth 3
	mov	x23, #0
	mov	x9, x8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=2
	add	x23, x23, #1
	cmp	x23, #8
	b.eq	LBB0_15
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_5 Depth 3
                                        ;       Child Loop BB0_9 Depth 3
                                        ;       Child Loop BB0_13 Depth 3
	cmp	w9, #2
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x26, #0
LBB0_5:                                 ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_3 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x25]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8]
	ldr	w1, [x8, x26, lsl #2]
	mov	x0, x20
	bl	_vp56_rac_get_prob_branchy
	cbnz	x0, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=3
	add	x26, x26, #1
	ldrsw	x9, [x24]
	sub	x8, x9, #1
	cmp	x26, x8
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x8, x9
	cmp	w9, #2
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x26, #0
LBB0_9:                                 ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_3 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x25]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, x26, lsl #2]
	mov	x0, x20
	bl	_vp56_rac_get_prob_branchy
	cbnz	x0, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	add	x26, x26, #1
	ldrsw	x10, [x24]
	sub	x8, x10, #1
	cmp	x26, x8
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=2
	mov	x8, x10
	mov	x9, x10
	cmp	w10, #2
	b.lt	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=2
	mov	x26, #0
LBB0_13:                                ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_3 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x25]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, #16]
	ldr	w1, [x8, x26, lsl #2]
	mov	x0, x20
	bl	_vp56_rac_get_prob_branchy
	cbnz	x0, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	add	x26, x26, #1
	ldrsw	x8, [x24]
	sub	x10, x8, #1
	mov	x9, x8
	cmp	x26, x10
	b.lt	LBB0_13
	b	LBB0_2
LBB0_15:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x21, x21, #1
	cmp	x21, #4
	b.ne	LBB0_1
; %bb.16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	x22, #0
LBB0_18:
	and	x24, x26, #0xffffffff
	mov	x0, x20
	mov	w1, #8
	bl	_vp8_rac_get_uint
Lloh4:
	adrp	x8, _vp8_coeff_band_indexes@GOTPAGE
Lloh5:
	ldr	x8, [x8, _vp8_coeff_band_indexes@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	x8, [x8, w23, uxtw #3]
	ldr	x9, [x19]
	ldr	x9, [x9]
	ldr	x9, [x9, w21, uxtw #3]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8], #8
	ldr	x10, [x9, x10, lsl #3]
	ldr	x10, [x10, x22, lsl #3]
	str	w0, [x10, x24, lsl #2]
	b	LBB0_19
LBB0_20:
	mov	w22, #2
	b	LBB0_18
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_DCT_TOKENS,4,2             ; @NUM_DCT_TOKENS
	.comm	_vp8_token_update_probs,8,3     ; @vp8_token_update_probs
	.comm	_vp8_coeff_band_indexes,8,3     ; @vp8_coeff_band_indexes
	.no_dead_strip	_vp78_update_probability_tables
.subsections_via_symbols
