	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vaapi_encode_vp8_write_quant_table
_vaapi_encode_vp8_write_quant_table:    ## @vaapi_encode_vp8_write_quant_table
	.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
	testl	%edx, %edx
	jle	LBB0_2
## %bb.1:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	cmpq	$15, (%r9)
	ja	LBB0_3
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	movq	%r8, %r14
	movq	%rsi, %r15
	movq	(%rdi), %r13
	movq	_VAQMatrixBufferType@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	$16, (%r9)
	leaq	-56(%rbp), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	(%r15), %rax
	movq	_PICTURE_TYPE_P@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	movq	-56(%rbp), %rax
	movd	(%r13,%rdx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, (%rax)
	movq	-48(%rbp), %rax
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, (%rax)
	movdqu	%xmm0, 16(%rax)
	movq	$0, 32(%rax)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VAQMatrixBufferType,4,2        ## @VAQMatrixBufferType
	.comm	_PICTURE_TYPE_P,8,3             ## @PICTURE_TYPE_P
	.no_dead_strip	_vaapi_encode_vp8_write_quant_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vaapi_encode_vp8_write_quant_table
_vaapi_encode_vp8_write_quant_table:    ; @vaapi_encode_vp8_write_quant_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cmp	w2, #1
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_2:
	ldr	x8, [x5]
	cmp	x8, #15
	b.hi	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_AVERROR
LBB0_4:
	mov	x19, x4
	mov	x20, x1
	ldr	x21, [x0]
Lloh6:
	adrp	x8, _VAQMatrixBufferType@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VAQMatrixBufferType@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x3]
	mov	w8, #16
	str	x8, [x5]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _PICTURE_TYPE_P@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PICTURE_TYPE_P@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, ne
	add	x8, x21, w8, uxtw #2
	ldr	x9, [sp]
	ld1r.4s	{ v0 }, [x8]
	str	q0, [x9]
	ldr	x8, [sp, #8]
	str	xzr, [x8, #32]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #16
	bl	_memcpy
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VAQMatrixBufferType,4,2        ; @VAQMatrixBufferType
	.comm	_PICTURE_TYPE_P,8,3             ; @PICTURE_TYPE_P
	.no_dead_strip	_vaapi_encode_vp8_write_quant_table
.subsections_via_symbols
