	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ff_xvmc_field_start
_ff_xvmc_field_start:                   ## @ff_xvmc_field_start
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	40(%r15), %rax
	movq	(%rax), %rax
	movq	16(%rax), %r14
	movb	(%r15), %cl
	movl	$1, %r12d
	shll	%cl, %r12d
	callq	_assert
	testq	%r14, %r14
	je	LBB0_10
## %bb.1:
	movq	(%r14), %rdx
	movq	_AV_XVMC_ID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_10
## %bb.2:
	cmpl	$0, 68(%r14)
	je	LBB0_10
## %bb.3:
	cmpl	$0, 64(%r14)
	je	LBB0_10
## %bb.4:
	movl	8(%r14), %eax
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$715827883, %rcx, %rsi          ## imm = 0x2AAAAAAB
	movq	%rsi, %rdi
	shrq	$63, %rdi
	sarq	$38, %rsi
	addl	%edi, %esi
	cmpl	%esi, %eax
	ja	LBB0_10
## %bb.5:
	movl	12(%r14), %esi
	leal	63(%rcx), %edi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edi
	sarl	$6, %edi
	cmpl	%edi, %esi
	ja	LBB0_10
## %bb.6:
	cmpq	$0, 24(%r14)
	je	LBB0_10
## %bb.7:
	movq	56(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_12
LBB0_10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_11:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	testl	%eax, %eax
	jle	LBB0_18
## %bb.15:
	addl	$4, %r12d
	movl	%eax, %ecx
	imull	%r12d, %ecx
	cmpl	%ecx, %esi
	jl	LBB0_18
## %bb.16:
	movl	16(%r14), %ecx
	subl	%eax, %ecx
	jge	LBB0_18
## %bb.17:
	imull	%r12d, %ecx
	addl	%esi, %ecx
	cmpl	%ecx, 20(%r14)
	jle	LBB0_19
LBB0_18:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_11
LBB0_19:
	movl	32(%r15), %eax
	movl	%eax, 52(%r14)
	xorl	%eax, %eax
	cmpq	$0, 24(%r15)
	movl	$0, %ecx
	jne	LBB0_21
## %bb.20:
	movq	_XVMC_SECOND_FIELD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_21:
	movl	%ecx, 48(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r14)
	movl	4(%r15), %ecx
	cmpl	$128, %ecx
	je	LBB0_27
## %bb.22:
	cmpl	$129, %ecx
	je	LBB0_13
## %bb.23:
	cmpl	$130, %ecx
	jne	LBB0_12
## %bb.24:
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.25:
	cmpq	%rdx, (%rcx)
	jne	LBB0_13
## %bb.26:
	movq	24(%rcx), %rax
	movq	%rax, 40(%r14)
LBB0_27:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	cmoveq	%r14, %rcx
	movl	$-1, %eax
	cmpq	%rdx, (%rcx)
	jne	LBB0_13
## %bb.28:
	addq	$32, %r14
	movq	24(%rcx), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_XVMC_ID,8,3                 ## @AV_XVMC_ID
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Render token doesn't look as expected.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Rendering surface contains %i unprocessed blocks.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Rendering surface doesn't provide enough block structures to work with.\n"

	.comm	_XVMC_SECOND_FIELD,4,2          ## @XVMC_SECOND_FIELD
	.no_dead_strip	_ff_xvmc_field_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ff_xvmc_field_start
_ff_xvmc_field_start:                   ; @ff_xvmc_field_start
	.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
	mov	x19, x0
	ldr	x21, [x0]
	ldr	x8, [x21, #40]
	ldr	x8, [x8]
	ldr	x20, [x8, #16]
	ldr	w22, [x21]
	bl	_assert
	cbz	x20, LBB0_9
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AV_XVMC_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_XVMC_ID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	ldr	w9, [x20, #68]
	cbz	w9, LBB0_9
; %bb.3:
	ldr	w9, [x20, #64]
	cbz	w9, LBB0_9
; %bb.4:
	ldr	w9, [x20, #8]
Lloh3:
	adrp	x10, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldrsw	x11, [x10]
	mov	w10, #43691
	movk	w10, #10922, lsl #16
	mul	x10, x11, x10
	lsr	x12, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w12
	cmp	w9, w10
	b.hi	LBB0_9
; %bb.5:
	ldr	w10, [x20, #12]
	add	w12, w11, #63
	cmp	w11, #0
	csel	w11, w12, w11, lt
	cmp	w10, w11, asr #6
	b.hi	LBB0_9
; %bb.6:
	ldr	x11, [x20, #24]
	cbz	x11, LBB0_9
; %bb.7:
	ldr	x11, [x20, #56]
	cbz	x11, LBB0_13
; %bb.8:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	str	x11, [sp]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_av_log
LBB0_11:
	mov	w0, #-1
LBB0_12:
	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
LBB0_13:
	mov	w11, #1
	lsl	w11, w11, w22
	add	w11, w11, #4
	mul	w12, w9, w11
	cmp	w9, #1
	ccmp	w10, w12, #8, ge
	b.lt	LBB0_16
; %bb.14:
	ldr	w12, [x20, #16]
	subs	w9, w12, w9
	b.ge	LBB0_16
; %bb.15:
	ldr	w12, [x20, #20]
	madd	w9, w9, w11, w10
	cmp	w12, w9
	b.le	LBB0_17
LBB0_16:
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_17:
	ldr	w10, [x21, #32]
	ldr	x11, [x21, #24]
	mov	x9, x20
	str	xzr, [x9, #32]!
Lloh21:
	adrp	x12, _XVMC_SECOND_FIELD@GOTPAGE
Lloh22:
	ldr	x12, [x12, _XVMC_SECOND_FIELD@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x12]
	cmp	x11, #0
	csel	w11, w12, wzr, eq
	stp	w11, w10, [x9, #16]
	str	xzr, [x9, #8]
	ldr	w10, [x21, #4]
	cmp	w10, #128
	b.eq	LBB0_23
; %bb.18:
	cmp	w10, #129
	b.eq	LBB0_25
; %bb.19:
	cmp	w10, #130
	b.ne	LBB0_11
; %bb.20:
	ldr	x10, [x21, #16]
	ldr	x10, [x10]
	ldr	x10, [x10, #16]
	cbz	x10, LBB0_11
; %bb.21:
	ldr	x11, [x10]
	cmp	x11, x8
	b.ne	LBB0_11
; %bb.22:
	ldr	x10, [x10, #24]
	str	x10, [x20, #40]
LBB0_23:
	ldr	x10, [x21, #8]
	ldr	x10, [x10]
	ldr	x10, [x10, #16]
	cmp	x10, #0
	csel	x10, x20, x10, eq
	ldr	x11, [x10]
	cmp	x11, x8
	b.ne	LBB0_11
; %bb.24:
	mov	w0, #0
	ldr	x8, [x10, #24]
	str	x8, [x9]
	b	LBB0_12
LBB0_25:
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_XVMC_ID,8,3                 ; @AV_XVMC_ID
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Render token doesn't look as expected.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Rendering surface contains %i unprocessed blocks.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Rendering surface doesn't provide enough block structures to work with.\n"

	.comm	_XVMC_SECOND_FIELD,4,2          ; @XVMC_SECOND_FIELD
	.no_dead_strip	_ff_xvmc_field_start
.subsections_via_symbols
