	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxva2_h264_end_frame
_dxva2_h264_end_frame:                  ## @dxva2_h264_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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	8(%r15), %rax
	movq	8(%rax), %r8
	movl	$-1, %ebx
	cmpq	$0, (%r8)
	jle	LBB0_4
## %bb.1:
	cmpq	$0, 8(%r8)
	jle	LBB0_4
## %bb.2:
	movq	16(%r15), %r14
	movl	(%rax), %esi
	leaq	20(%r8), %rdx
	addq	$16, %r8
	movq	_commit_bitstream_and_slice_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movl	$4, %ecx
	movl	$4, %r9d
	callq	_ff_dxva2_common_end_frame
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ff_h264_draw_horiz_band
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_commit_bitstream_and_slice_buffer,4,2 ## @commit_bitstream_and_slice_buffer
	.no_dead_strip	_dxva2_h264_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_h264_end_frame
_dxva2_h264_end_frame:                  ; @dxva2_h264_end_frame
	.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	x19, [x0]
	ldr	x9, [x19, #8]
	ldr	x8, [x9, #8]
	ldr	x10, [x8]
	cmp	x10, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x10, [x8, #8]
	cmp	x10, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	x20, [x19, #16]
	ldr	w1, [x9]
	add	x2, x8, #20
	add	x4, x8, #16
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
	mov	w5, #4
	bl	_ff_dxva2_common_end_frame
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x19]
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_ff_h264_draw_horiz_band
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	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_h264_end_frame
.subsections_via_symbols
