	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxva2_hevc_end_frame
_dxva2_hevc_end_frame:                  ## @dxva2_hevc_end_frame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	cmpq	$0, (%rcx)
	jle	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rcx)
	jle	LBB0_3
## %bb.2:
	leaq	20(%rcx), %rdx
	movl	20(%rcx), %r9d
	andl	$1, %r9d
	addq	$16, %rcx
	xorl	%r8d, %r8d
	testl	%r9d, %r9d
	cmovneq	%rcx, %r8
	movl	(%rax), %esi
	shll	$2, %r9d
	movq	_commit_bitstream_and_slice_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movl	$4, %ecx
	callq	_ff_dxva2_common_end_frame
	jmp	LBB0_4
LBB0_3:
	movl	$-1, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_commit_bitstream_and_slice_buffer,4,2 ## @commit_bitstream_and_slice_buffer
	.no_dead_strip	_dxva2_hevc_end_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dxva2_hevc_end_frame
_dxva2_hevc_end_frame:                  ; @dxva2_hevc_end_frame
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x2, [x8, #8]
	ldr	x9, [x2]
	cmp	x9, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x2, #8]
	cmp	x9, #1
	b.lt	LBB0_3
; %bb.2:
	add	x9, x2, #16
	ldr	w10, [x2, #20]!
	ands	w10, w10, #0x1
	ldr	w1, [x8]
	csel	x4, xzr, x9, eq
	lsl	w5, w10, #2
Lloh0:
	adrp	x8, _commit_bitstream_and_slice_buffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _commit_bitstream_and_slice_buffer@GOTPAGEOFF]
Lloh2:
	ldr	w6, [x8]
	mov	w3, #4
	b	_ff_dxva2_common_end_frame
LBB0_3:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_commit_bitstream_and_slice_buffer,4,2 ; @commit_bitstream_and_slice_buffer
	.no_dead_strip	_dxva2_hevc_end_frame
.subsections_via_symbols
