	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp8_get_quants
_vp8_get_quants:                        ## @vp8_get_quants
	.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	%rdi, %r14
	leaq	56(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$7, %esi
	callq	_vp8_rac_get_uint
	movl	%eax, 8(%r14)
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_vp8_rac_get_sint
	movl	%eax, 12(%r14)
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_vp8_rac_get_sint
	movl	%eax, 16(%r14)
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_vp8_rac_get_sint
	movl	%eax, 20(%r14)
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_vp8_rac_get_sint
	movl	%eax, 24(%r14)
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_vp8_rac_get_sint
	movl	%eax, 28(%r14)
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r14), %ebx
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_vp8_dc_qlookup@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	12(%r14), %edi
	addl	%ebx, %edi
	movl	$7, %esi
	callq	_av_clip_uintp2
	movl	(%r13,%rax,4), %eax
	movq	(%r14), %rcx
	movq	(%rcx,%r12), %rcx
	movl	%eax, (%rcx)
	movq	_vp8_ac_qlookup@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	%ebx, %edi
	movl	$7, %esi
	callq	_av_clip_uintp2
	movl	(%r13,%rax,4), %eax
	movq	(%r14), %rcx
	movq	(%rcx,%r12), %rcx
	movl	%eax, 4(%rcx)
	movq	_vp8_dc_qlookup@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	16(%r14), %edi
	addl	%ebx, %edi
	movl	$7, %esi
	callq	_av_clip_uintp2
	movl	(%r13,%rax,4), %eax
	addl	%eax, %eax
	movq	(%r14), %rcx
	movq	8(%rcx,%r12), %rcx
	movl	%eax, (%rcx)
	movq	_vp8_ac_qlookup@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	20(%r14), %edi
	addl	%ebx, %edi
	movl	$7, %esi
	callq	_av_clip_uintp2
	imull	$101581, (%r13,%rax,4), %eax    ## imm = 0x18CCD
	sarl	$16, %eax
	movq	(%r14), %rcx
	movq	8(%rcx,%r12), %rcx
	movl	%eax, 4(%rcx)
	movq	_vp8_dc_qlookup@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	24(%r14), %edi
	addl	%ebx, %edi
	movl	$7, %esi
	callq	_av_clip_uintp2
	movl	(%r13,%rax,4), %eax
	movq	(%r14), %rcx
	movq	16(%rcx,%r12), %rcx
	movl	%eax, (%rcx)
	movq	_vp8_ac_qlookup@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	addl	28(%r14), %ebx
	movl	%ebx, %edi
	movl	$7, %esi
	callq	_av_clip_uintp2
	movl	(%r13,%rax,4), %eax
	movq	(%r14), %rcx
	movq	16(%rcx,%r12), %rdx
	movl	%eax, 4(%rdx)
	movq	8(%rcx,%r12), %rax
	movl	4(%rax), %edi
	movl	$8, %esi
	callq	_FFMAX
	movq	(%r14), %rcx
	movq	8(%rcx,%r12), %rdx
	movl	%eax, 4(%rdx)
	movq	16(%rcx,%r12), %rax
	movl	(%rax), %edi
	movl	$132, %esi
	callq	_FFMIN
	movq	(%r14), %rcx
	movq	16(%rcx,%r12), %rcx
	movl	%eax, (%rcx)
	addq	$24, %r12
	addq	$4, %r15
	cmpq	$96, %r12
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 48(%r14)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%r14), %rax
	movl	(%rax,%r15), %ebx
	cmpl	$0, 40(%r14)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	8(%r14), %ebx
	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	_vp8_dc_qlookup,8,3             ## @vp8_dc_qlookup
	.comm	_vp8_ac_qlookup,8,3             ## @vp8_ac_qlookup
	.no_dead_strip	_vp8_get_quants
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp8_get_quants
_vp8_get_quants:                        ; @vp8_get_quants
	.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
	add	x20, x0, #56
	mov	x0, x20
	mov	w1, #7
	bl	_vp8_rac_get_uint
	str	w0, [x19, #8]
	mov	x0, x20
	mov	w1, #4
	bl	_vp8_rac_get_sint
	str	w0, [x19, #12]
	mov	x0, x20
	mov	w1, #4
	bl	_vp8_rac_get_sint
	str	w0, [x19, #16]
	mov	x0, x20
	mov	w1, #4
	bl	_vp8_rac_get_sint
	str	w0, [x19, #20]
	mov	x0, x20
	mov	w1, #4
	bl	_vp8_rac_get_sint
	str	w0, [x19, #24]
	mov	x0, x20
	mov	w1, #4
	bl	_vp8_rac_get_sint
	mov	x21, #0
	mov	x22, #0
	str	w0, [x19, #28]
Lloh0:
	adrp	x23, _vp8_dc_qlookup@GOTPAGE
Lloh1:
	ldr	x23, [x23, _vp8_dc_qlookup@GOTPAGEOFF]
Lloh2:
	adrp	x24, _vp8_ac_qlookup@GOTPAGE
Lloh3:
	ldr	x24, [x24, _vp8_ac_qlookup@GOTPAGEOFF]
	mov	w25, #36045
	movk	w25, #1, lsl #16
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w20, [x19, #8]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x26, [x23]
	ldr	w8, [x19, #12]
	add	w0, w8, w20
	mov	w1, #7
	bl	_av_clip_uintp2
	ldr	w8, [x26, x0, lsl #2]
	ldr	x9, [x19]
	ldr	x9, [x9, x22]
	str	w8, [x9]
	ldr	x26, [x24]
	mov	x0, x20
	mov	w1, #7
	bl	_av_clip_uintp2
	ldr	w8, [x26, x0, lsl #2]
	ldr	x9, [x19]
	ldr	x9, [x9, x22]
	str	w8, [x9, #4]
	ldr	x26, [x23]
	ldr	w8, [x19, #16]
	add	w0, w8, w20
	mov	w1, #7
	bl	_av_clip_uintp2
	ldr	w8, [x26, x0, lsl #2]
	lsl	w8, w8, #1
	ldr	x9, [x19]
	add	x9, x9, x22
	ldr	x9, [x9, #8]
	str	w8, [x9]
	ldr	x26, [x24]
	ldr	w8, [x19, #20]
	add	w0, w8, w20
	mov	w1, #7
	bl	_av_clip_uintp2
	ldr	w8, [x26, x0, lsl #2]
	mul	w8, w8, w25
	asr	w8, w8, #16
	ldr	x9, [x19]
	add	x9, x9, x22
	ldr	x9, [x9, #8]
	str	w8, [x9, #4]
	ldr	x26, [x23]
	ldr	w8, [x19, #24]
	add	w0, w8, w20
	mov	w1, #7
	bl	_av_clip_uintp2
	ldr	w8, [x26, x0, lsl #2]
	ldr	x9, [x19]
	add	x9, x9, x22
	ldr	x9, [x9, #16]
	str	w8, [x9]
	ldr	x26, [x24]
	ldr	w8, [x19, #28]
	add	w0, w8, w20
	mov	w1, #7
	bl	_av_clip_uintp2
	ldr	w8, [x26, x0, lsl #2]
	ldr	x9, [x19]
	add	x9, x9, x22
	ldp	x9, x10, [x9, #8]
	str	w8, [x10, #4]
	ldr	w0, [x9, #4]
	mov	w1, #8
	bl	_FFMAX
	ldr	x8, [x19]
	add	x8, x8, x22
	ldp	x9, x8, [x8, #8]
	str	w0, [x9, #4]
	ldr	w0, [x8]
	mov	w1, #132
	bl	_FFMIN
	ldr	x8, [x19]
	add	x8, x8, x22
	ldr	x8, [x8, #16]
	str	w0, [x8]
	add	x22, x22, #24
	add	x21, x21, #4
	cmp	x22, #96
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #32]
	ldr	w20, [x8, x21]
	ldr	w8, [x19, #40]
	cbnz	w8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	add	w20, w8, w20
	b	LBB0_2
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_vp8_dc_qlookup,8,3             ; @vp8_dc_qlookup
	.comm	_vp8_ac_qlookup,8,3             ; @vp8_ac_qlookup
	.no_dead_strip	_vp8_get_quants
.subsections_via_symbols
