	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function commit_bitstream_and_slice_buffer
_commit_bitstream_and_slice_buffer:     ## @commit_bitstream_and_slice_buffer
	.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	%rdx, %r14
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	callq	_DXVA_CONTEXT
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	movl	$128, %edi
	callq	_FFMIN
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movl	$-1, %eax
	jmp	LBB0_3
LBB0_1:
	movq	16(%rbx), %r12
	movl	$1, %edi
	callq	_av_assert0
	movl	$0, (%rsp)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%r12, %r8
	xorl	%r9d, %r9d
	callq	_ff_dxva2_commit_buffer
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.comm	_AV_PIX_FMT_DXVA2_VLD,8,3       ## @AV_PIX_FMT_DXVA2_VLD
	.comm	_D3D11_VIDEO_DECODER_BUFFER_BITSTREAM,4,2 ## @D3D11_VIDEO_DECODER_BUFFER_BITSTREAM
	.comm	_D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL,4,2 ## @D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL
	.comm	_DXVA2_BitStreamDateBufferType,4,2 ## @DXVA2_BitStreamDateBufferType
	.comm	_DXVA2_SliceControlBufferType,4,2 ## @DXVA2_SliceControlBufferType
	.no_dead_strip	_commit_bitstream_and_slice_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function commit_bitstream_and_slice_buffer
_commit_bitstream_and_slice_buffer:     ; @commit_bitstream_and_slice_buffer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x20, x0
	ldr	x22, [x0, #8]
	bl	_DXVA_CONTEXT
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x22, [x8]
	mov	w0, #128
	bl	_FFMIN
	ldr	w8, [x22]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #-1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x22, [x22, #16]
	mov	w0, #1
	bl	_av_assert0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x4, x22
	mov	w5, #0
	mov	w6, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ff_dxva2_commit_buffer
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.comm	_AV_PIX_FMT_DXVA2_VLD,8,3       ; @AV_PIX_FMT_DXVA2_VLD
	.comm	_D3D11_VIDEO_DECODER_BUFFER_BITSTREAM,4,2 ; @D3D11_VIDEO_DECODER_BUFFER_BITSTREAM
	.comm	_D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL,4,2 ; @D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL
	.comm	_DXVA2_BitStreamDateBufferType,4,2 ; @DXVA2_BitStreamDateBufferType
	.comm	_DXVA2_SliceControlBufferType,4,2 ; @DXVA2_SliceControlBufferType
	.no_dead_strip	_commit_bitstream_and_slice_buffer
.subsections_via_symbols
