	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vaapi_encode_vp8_init_picture_params
LCPI0_0:
	.space	4
	.long	1                               ## 0x1
	.space	4
	.space	4
LCPI0_1:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vaapi_encode_vp8_init_picture_params:  ## @vaapi_encode_vp8_init_picture_params
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r15
	movq	24(%rsi), %rbx
	movl	20(%rsi), %eax
	movl	%eax, 104(%rbx)
	movl	16(%rsi), %eax
	movl	%eax, 100(%rbx)
	movl	(%rsi), %eax
	leal	-129(%rax), %ecx
	xorl	%edi, %edi
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.5:
	cmpl	$0, 4(%r14)
	sete	%dil
	callq	_av_assert0
	movq	_VA_INVALID_SURFACE@GOTPCREL(%rip), %rax
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <u,1,u,u>
	pinsrd	$0, (%rax), %xmm0
	pshufd	$64, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,0,1]
	movdqu	%xmm0, 72(%rbx)
	jmp	LBB0_4
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.2:
	cmpl	$1, 4(%r14)
	sete	%dil
	callq	_av_assert0
	movl	$0, 96(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 88(%rbx)
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movl	%eax, 76(%rbx)
	movl	%eax, 80(%rbx)
	jmp	LBB0_4
LBB0_3:
	callq	_av_assert0
LBB0_4:
	xorl	%eax, %eax
	cmpl	$129, (%r14)
	setne	%al
	movl	%eax, 32(%rbx)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movups	%xmm0, 36(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
	movq	24(%rbx), %rax
	movl	4(%r15), %ecx
	movl	%ecx, (%rax)
	movl	4(%r15), %ecx
	movl	%ecx, 4(%rax)
	movl	4(%r15), %ecx
	movl	%ecx, 8(%rax)
	movl	4(%r15), %ecx
	movl	%ecx, 12(%rax)
	movl	(%r15), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movl	$127, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VA_INVALID_SURFACE,4,2         ## @VA_INVALID_SURFACE
	.no_dead_strip	_vaapi_encode_vp8_init_picture_params
.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_init_picture_params
_vaapi_encode_vp8_init_picture_params:  ; @vaapi_encode_vp8_init_picture_params
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	x21, [x0]
	ldr	x20, [x1, #24]
	ldr	d0, [x1, #16]
	stur	d0, [x20, #100]
	ldr	w8, [x1]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_av_assert0
Lloh0:
	adrp	x8, _VA_INVALID_SURFACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VA_INVALID_SURFACE@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	ldr	w8, [x8]
	stp	w8, w8, [x20, #72]
	stp	w8, w9, [x20, #80]
	b	LBB0_5
LBB0_2:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	cset	w0, eq
	bl	_av_assert0
	str	wzr, [x20, #96]
	movi.2s	v0, #1
	str	d0, [x20, #88]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	stp	w8, w8, [x20, #72]
	str	w8, [x20, #80]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
	bl	_av_assert0
LBB0_5:
	ldr	w8, [x19]
	cmp	w8, #129
	cset	w8, ne
	str	w8, [x20, #32]
	movi.4s	v0, #1
	stur	q0, [x20, #36]
	stp	xzr, xzr, [x20, #56]
	ldr	x8, [x20, #24]
	ldr	w9, [x21, #4]
	str	w9, [x8]
	ldr	w9, [x21, #4]
	str	w9, [x8, #4]
	ldr	w9, [x21, #4]
	str	w9, [x8, #8]
	ldr	w9, [x21, #4]
	str	w9, [x8, #12]
	ldr	w8, [x21]
	str	w8, [x20, #16]
	str	xzr, [x20, #8]
	mov	w8, #127
	str	w8, [x20]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VA_INVALID_SURFACE,4,2         ; @VA_INVALID_SURFACE
	.no_dead_strip	_vaapi_encode_vp8_init_picture_params
.subsections_via_symbols
