	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdpau_vc1_start_frame
_vdpau_vc1_start_frame:                 ## @vdpau_vc1_start_frame
	.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	%rsi, %r15
	movq	(%rdi), %r13
	movq	48(%r13), %rax
	movq	(%rax), %rbx
	movq	_VDP_INVALID_HANDLE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, 128(%rbx)
	movq	%rax, 136(%rbx)
	movl	16(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.2:
	cmpl	$0, 40(%r13)
	je	LBB0_4
## %bb.3:
	movl	36(%r13), %edi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_ff_vdpau_get_surface_id
	movq	%rax, %r12
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	setne	%dil
	callq	_assert
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, 136(%rbx)
LBB0_4:
	cmpl	$0, 32(%r13)
	je	LBB0_6
## %bb.5:
	movl	28(%r13), %edi
	movq	%r15, %r14
	movl	%edx, %r15d
	callq	_ff_vdpau_get_surface_id
	movq	%rax, %r12
	xorl	%edi, %edi
	movq	_VDP_INVALID_HANDLE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	setne	%dil
	callq	_assert
	movl	%r15d, %edx
	movq	%r14, %r15
	movq	%r12, 128(%rbx)
LBB0_6:
	movq	$0, 120(%rbx)
	movl	$4, %eax
	cmpq	$0, 144(%r13)
	jne	LBB0_8
## %bb.7:
	movslq	16(%r13), %rax
	imulq	$1431655766, %rax, %rcx         ## imm = 0x55555556
	movq	%rcx, %rsi
	shrq	$63, %rsi
	shrq	$32, %rcx
	addl	%esi, %ecx
	addl	%ecx, %eax
	decl	%eax
LBB0_8:
	movl	%eax, (%rbx)
	movq	136(%r13), %rax
	leaq	1(%rax), %rcx
	testq	%rax, %rax
	cmoveq	%rax, %rcx
	movq	%rcx, 112(%rbx)
	movl	(%r13), %eax
	movl	%eax, 4(%rbx)
	movl	132(%r13), %ecx
	movl	%ecx, 104(%rbx)
	movups	116(%r13), %xmm0
	movups	%xmm0, 88(%rbx)
	movups	100(%r13), %xmm0
	movups	%xmm0, 72(%rbx)
	movups	84(%r13), %xmm0
	movups	%xmm0, 56(%rbx)
	movl	24(%r13), %ecx
	movl	%ecx, 52(%rbx)
	movl	80(%r13), %ecx
	movl	%ecx, 48(%rbx)
	movl	76(%r13), %ecx
	movl	%ecx, 44(%rbx)
	movl	72(%r13), %ecx
	movl	%ecx, 40(%rbx)
	movups	56(%r13), %xmm0
	movups	%xmm0, 24(%rbx)
	movl	8(%r13), %ecx
	addl	%ecx, %ecx
	orl	4(%r13), %ecx
	movl	%ecx, 8(%rbx)
	movl	20(%r13), %ecx
	movl	%ecx, 20(%rbx)
	andl	$1, %eax
	movl	%eax, 12(%rbx)
	movl	12(%r13), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_vdpau_common_start_frame    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VDP_INVALID_HANDLE,8,3         ## @VDP_INVALID_HANDLE
	.no_dead_strip	_vdpau_vc1_start_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdpau_vc1_start_frame
_vdpau_vc1_start_frame:                 ; @vdpau_vc1_start_frame
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	ldr	x23, [x0]
	ldr	x8, [x23, #48]
Lloh0:
	adrp	x24, _VDP_INVALID_HANDLE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VDP_INVALID_HANDLE@GOTPAGEOFF]
	ldr	x21, [x8]
	ldr	x8, [x24]
	stp	x8, x8, [x21, #128]
	ldr	w8, [x23, #16]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x23, #40]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w0, [x23, #36]
	bl	_ff_vdpau_get_surface_id
	mov	x22, x0
	ldr	x8, [x24]
	cmp	x0, x8
	cset	w0, ne
	bl	_assert
	str	x22, [x21, #136]
LBB0_4:
	ldr	w8, [x23, #32]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	w0, [x23, #28]
	bl	_ff_vdpau_get_surface_id
	mov	x22, x0
	ldr	x8, [x24]
	cmp	x0, x8
	cset	w0, ne
	bl	_assert
	str	x22, [x21, #128]
LBB0_6:
	str	xzr, [x21, #120]
	ldr	x8, [x23, #144]
	cbz	x8, LBB0_8
; %bb.7:
	mov	w8, #4
	b	LBB0_9
LBB0_8:
	ldrsw	x8, [x23, #16]
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	mul	x9, x8, x9
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	add	w8, w8, w9
	sub	w8, w8, #1
LBB0_9:
	str	w8, [x21]
	ldr	x8, [x23, #136]
	cmp	x8, #0
	csinc	x8, xzr, x8, eq
	str	x8, [x21, #112]
	ldr	w8, [x23]
	str	w8, [x21, #4]
	ldr	w9, [x23, #132]
	str	w9, [x21, #104]
	ldur	q0, [x23, #116]
	stur	q0, [x21, #88]
	ldur	q0, [x23, #100]
	stur	q0, [x21, #72]
	ldur	q0, [x23, #84]
	stur	q0, [x21, #56]
	ldr	w9, [x23, #24]
	ldr	w10, [x23, #80]
	stp	w10, w9, [x21, #48]
	ldr	d0, [x23, #72]
	str	d0, [x21, #40]
	ldur	q0, [x23, #56]
	stur	q0, [x21, #24]
	ldp	w9, w10, [x23, #4]
	orr	w9, w9, w10, lsl #1
	ldr	w10, [x23, #20]
	and	w8, w8, #0x1
	stp	w9, w8, [x21, #8]
	ldr	w8, [x23, #12]
	stp	w8, w10, [x21, #16]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ff_vdpau_common_start_frame
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VDP_INVALID_HANDLE,8,3         ; @VDP_INVALID_HANDLE
	.no_dead_strip	_vdpau_vc1_start_frame
.subsections_via_symbols
