	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_finish_row
_decode_finish_row:                     ## @decode_finish_row
	.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, %r14
	movq	%rdi, %r15
	movl	(%rsi), %ebx
	callq	_FIELD_PICTURE
	movl	%eax, %ecx
	sarl	%cl, %ebx
	shll	$4, %ebx
	movl	(%r15), %r13d
	shll	$4, %r13d
	movq	%r15, %rdi
	callq	_FIELD_PICTURE
	movl	%eax, %ecx
	sarl	%cl, %r13d
	movq	%r15, %rdi
	callq	_FRAME_MBAFF
	movl	$16, %r12d
	movl	%eax, %ecx
	shll	%cl, %r12d
	movq	%r15, %rdi
	callq	_FRAME_MBAFF
	cmpq	$0, 16(%r14)
	je	LBB0_2
## %bb.1:
	movl	$20, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	leal	(%r12,%rbx), %eax
	xorl	%ecx, %ecx
	cmpl	%r13d, %eax
	cmovgel	%edx, %ecx
	addl	%r12d, %ecx
	subl	%edx, %ebx
	movl	%ecx, %r12d
LBB0_2:
	subl	%ebx, %r13d
	jle	LBB0_6
## %bb.3:
	movl	%ebx, %eax
	addl	%r12d, %eax
	js	LBB0_6
## %bb.4:
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_FFMIN
	movl	%ebx, %r13d
	sarl	$31, %r13d
	andl	%ebx, %r13d
	addl	%eax, %r13d
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	cmovgl	%ebx, %r12d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_ff_h264_draw_horiz_band
	cmpq	$0, 24(%r15)
	jne	LBB0_6
## %bb.5:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	8(%r15), %rax
	movq	16(%r15), %rdi
	leal	(%r12,%r13), %esi
	decl	%esi
	movq	_PICT_BOTTOM_FIELD@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_thread_report_progress      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PICT_BOTTOM_FIELD,8,3          ## @PICT_BOTTOM_FIELD
	.no_dead_strip	_decode_finish_row
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_finish_row
_decode_finish_row:                     ; @decode_finish_row
	.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	x20, x1
	mov	x19, x0
	ldr	w21, [x1]
	bl	_FIELD_PICTURE
	asr	w8, w21, w0
	lsl	w21, w8, #4
	ldr	w8, [x19]
	lsl	w22, w8, #4
	mov	x0, x19
	bl	_FIELD_PICTURE
	asr	w23, w22, w0
	mov	x0, x19
	bl	_FRAME_MBAFF
	mov	w8, #16
	lsl	w22, w8, w0
	mov	x0, x19
	bl	_FRAME_MBAFF
	ldr	x8, [x20, #16]
	mov	w9, #20
	lsl	w9, w9, w0
	add	w10, w22, w21
	cmp	w10, w23
	csel	w10, wzr, w9, lt
	add	w10, w10, w22
	sub	w9, w21, w9
	cmp	x8, #0
	csel	w0, w22, w10, eq
	csel	w22, w21, w9, eq
	subs	w1, w23, w22
	b.le	LBB0_4
; %bb.1:
	add	w8, w22, w0
	tbnz	w8, #31, LBB0_4
; %bb.2:
	bl	_FFMIN
	cmp	w22, #0
	csel	w8, w22, wzr, lt
	add	w21, w0, w8
	csel	w22, w22, wzr, gt
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_ff_h264_draw_horiz_band
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
LBB0_4:
	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
	ret
LBB0_5:
	add	w8, w22, w21
	sub	w1, w8, #1
	ldp	x8, x0, [x19, #8]
Lloh0:
	adrp	x9, _PICT_BOTTOM_FIELD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PICT_BOTTOM_FIELD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w2, eq
	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_thread_report_progress
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PICT_BOTTOM_FIELD,8,3          ; @PICT_BOTTOM_FIELD
	.no_dead_strip	_decode_finish_row
.subsections_via_symbols
