	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vaapi_encode_mpeg2_init_picture_params
_vaapi_encode_mpeg2_init_picture_params: ## @vaapi_encode_mpeg2_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	32(%rsi), %r14
	movl	(%rsi), %ecx
	leal	-129(%rcx), %edx
	movq	24(%rsi), %r8
	cmpl	$1, %edx
	ja	LBB0_2
## %bb.1:
	movq	%r8, 8(%rbx)
	movl	$1, %edx
	xorl	%r8d, %r8d
	jmp	LBB0_3
LBB0_2:
	subq	8(%rbx), %r8
	xorl	%edx, %edx
	cmpl	$131, %ecx
	sete	%dl
	orl	$2, %edx
LBB0_3:
	movq	%r8, 32(%rbx)
	movl	%edx, 24(%rbx)
	cmpl	$131, %ecx
	je	LBB0_5
## %bb.4:
	cmpl	$128, %ecx
	jne	LBB0_6
LBB0_5:
	movl	(%rbx), %edi
	movq	16(%rbx), %rdx
	movq	(%rdx), %rcx
	movl	%edi, (%rcx)
	movl	4(%rbx), %edi
	jmp	LBB0_7
LBB0_6:
	movq	16(%rbx), %rdx
	movq	(%rdx), %rcx
	movl	$15, (%rcx)
	movl	$15, %edi
LBB0_7:
	movl	%edi, 4(%rcx)
	cmpl	$131, (%rsi)
	jne	LBB0_9
## %bb.8:
	movl	(%rbx), %edi
	movq	8(%rdx), %rdx
	movl	%edi, (%rdx)
	movl	4(%rbx), %edi
	jmp	LBB0_10
LBB0_9:
	movq	8(%rdx), %rdx
	movl	$15, (%rdx)
	movl	$15, %edi
LBB0_10:
	movl	%edi, 4(%rdx)
	movl	20(%rsi), %edi
	movl	%edi, 32(%r14)
	movl	16(%rsi), %edi
	movl	%edi, 28(%r14)
	movl	(%rsi), %edi
	leal	-129(%rdi), %eax
	cmpl	$2, %eax
	jb	LBB0_14
## %bb.11:
	cmpl	$128, %edi
	je	LBB0_15
## %bb.12:
	cmpl	$131, %edi
	jne	LBB0_16
## %bb.13:
	movq	_VAEncPictureTypeBidirectional@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	8(%rsi), %rax
	movq	(%rax), %rsi
	movl	(%rsi), %esi
	movl	%esi, 20(%r14)
	movq	8(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_17
LBB0_14:
	movq	_VAEncPictureTypeIntra@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	jmp	LBB0_17
LBB0_15:
	movq	_VAEncPictureTypePredictive@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	jmp	LBB0_17
LBB0_16:
	xorl	%edi, %edi
	callq	_av_assert0
	movq	16(%rbx), %rax
	movq	32(%rbx), %r8
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
LBB0_17:
	movq	%r8, 8(%r14)
	movl	(%rcx), %eax
	movq	(%r14), %rsi
	movq	(%rsi), %rdi
	movl	%eax, (%rdi)
	movl	4(%rcx), %eax
	movl	%eax, 4(%rdi)
	movl	(%rdx), %eax
	movq	8(%rsi), %rcx
	movl	%eax, (%rcx)
	movl	4(%rdx), %eax
	movl	%eax, 4(%rcx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VAEncPictureTypeIntra,4,2      ## @VAEncPictureTypeIntra
	.comm	_VAEncPictureTypePredictive,4,2 ## @VAEncPictureTypePredictive
	.comm	_VAEncPictureTypeBidirectional,4,2 ## @VAEncPictureTypeBidirectional
	.no_dead_strip	_vaapi_encode_mpeg2_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_mpeg2_init_picture_params
_vaapi_encode_mpeg2_init_picture_params: ; @vaapi_encode_mpeg2_init_picture_params
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	ldr	w9, [x1]
	sub	w8, w9, #129
	ldp	x10, x19, [x1, #24]
	cmp	w8, #1
	b.hi	LBB0_2
; %bb.1:
	mov	x8, #0
	str	x10, [x20, #8]
	mov	w10, #1
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20, #8]
	sub	x8, x10, x8
	cmp	w9, #131
	mov	w10, #2
	cinc	w10, w10, eq
LBB0_3:
	str	x8, [x20, #32]
	str	w10, [x20, #24]
	cmp	w9, #131
	b.eq	LBB0_5
; %bb.4:
	cmp	w9, #128
	b.ne	LBB0_6
LBB0_5:
	ldr	w11, [x20]
	ldr	x10, [x20, #16]
	ldr	x9, [x10]
	str	w11, [x9]
	ldr	w11, [x20, #4]
	b	LBB0_7
LBB0_6:
	ldr	x10, [x20, #16]
	ldr	x9, [x10]
	mov	w11, #15
	str	w11, [x9]
LBB0_7:
	str	w11, [x9, #4]
	ldr	w11, [x1]
	cmp	w11, #131
	b.ne	LBB0_9
; %bb.8:
	ldr	w11, [x20]
	ldr	x10, [x10, #8]
	str	w11, [x10]
	ldr	w11, [x20, #4]
	b	LBB0_10
LBB0_9:
	ldr	x10, [x10, #8]
	mov	w11, #15
	str	w11, [x10]
LBB0_10:
	str	w11, [x10, #4]
	ldr	d0, [x1, #16]
	stur	d0, [x19, #28]
	ldr	w11, [x1]
	sub	w12, w11, #129
	cmp	w12, #2
	b.lo	LBB0_14
; %bb.11:
	cmp	w11, #128
	b.eq	LBB0_15
; %bb.12:
	cmp	w11, #131
	b.ne	LBB0_16
; %bb.13:
Lloh0:
	adrp	x11, _VAEncPictureTypeBidirectional@GOTPAGE
Lloh1:
	ldr	x11, [x11, _VAEncPictureTypeBidirectional@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	str	w11, [x19, #24]
	ldr	x11, [x1, #8]
	ldp	x12, x11, [x11]
	ldr	w12, [x12]
	ldr	w11, [x11]
	stp	w11, w12, [x19, #16]
	b	LBB0_17
LBB0_14:
Lloh3:
	adrp	x11, _VAEncPictureTypeIntra@GOTPAGE
Lloh4:
	ldr	x11, [x11, _VAEncPictureTypeIntra@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	str	w11, [x19, #24]
	b	LBB0_17
LBB0_15:
Lloh6:
	adrp	x11, _VAEncPictureTypePredictive@GOTPAGE
Lloh7:
	ldr	x11, [x11, _VAEncPictureTypePredictive@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	ldr	x12, [x1, #8]
	ldr	x12, [x12]
	ldr	w12, [x12]
	stp	w12, w11, [x19, #20]
	b	LBB0_17
LBB0_16:
	mov	w0, #0
	bl	_av_assert0
	ldr	x8, [x20, #32]
	ldr	x10, [x20, #16]
	ldp	x9, x10, [x10]
LBB0_17:
	str	x8, [x19, #8]
	ldr	w8, [x9]
	ldr	x11, [x19]
	ldp	x12, x11, [x11]
	str	w8, [x12]
	ldr	w8, [x9, #4]
	str	w8, [x12, #4]
	ldr	w8, [x10]
	str	w8, [x11]
	ldr	w8, [x10, #4]
	str	w8, [x11, #4]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VAEncPictureTypeIntra,4,2      ; @VAEncPictureTypeIntra
	.comm	_VAEncPictureTypePredictive,4,2 ; @VAEncPictureTypePredictive
	.comm	_VAEncPictureTypeBidirectional,4,2 ; @VAEncPictureTypeBidirectional
	.no_dead_strip	_vaapi_encode_mpeg2_init_picture_params
.subsections_via_symbols
