	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ff_vaapi_decode_destroy_buffers
_ff_vaapi_decode_destroy_buffers:       ## @ff_vaapi_decode_destroy_buffers
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	(%rax), %r15
	cmpl	$0, (%rsi)
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_VA_STATUS_SUCCESS@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_vaDestroyBuffer
	cmpq	(%r13), %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %r15d
	movq	%r14, %rdi
	callq	_vaErrorStr
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	_VA_STATUS_SUCCESS@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %ecx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %r8
	movl	%eax, %r9d
	callq	_av_log
	jmp	LBB0_4
LBB0_5:
	cmpl	$0, 4(%r12)
	jle	LBB0_10
## %bb.6:
	xorl	%r14d, %r14d
	movq	_VA_STATUS_SUCCESS@GOTPCREL(%rip), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movslq	4(%r12), %rax
	addq	%rax, %rax
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rax
	movl	(%rax,%r14,4), %esi
	callq	_vaDestroyBuffer
	cmpq	(%r13), %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rbx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	8(%r12), %rax
	movl	(%rax,%r14,4), %r15d
	movq	%rbx, %rdi
	callq	_vaErrorStr
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	_VA_STATUS_SUCCESS@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %rdx
	movl	%r15d, %ecx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %r8
	movl	%eax, %r9d
	callq	_av_log
	jmp	LBB0_9
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VA_STATUS_SUCCESS,8,3          ## @VA_STATUS_SUCCESS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to destroy parameter buffer %#x: %d (%s).\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to destroy slice slice buffer %#x: %d (%s).\n"

	.no_dead_strip	_ff_vaapi_decode_destroy_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ff_vaapi_decode_destroy_buffers
_ff_vaapi_decode_destroy_buffers:       ; @ff_vaapi_decode_destroy_buffers
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x25, [x8]
	ldr	w8, [x1]
Lloh0:
	adrp	x26, _VA_STATUS_SUCCESS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _VA_STATUS_SUCCESS@GOTPAGEOFF]
Lloh2:
	adrp	x27, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x27, [x27, _AV_LOG_ERROR@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x28, #0
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x19]
	cmp	x28, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
	ldr	w1, [x8, x28, lsl #2]
	bl	_vaDestroyBuffer
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	w23, [x27]
	ldr	x8, [x19, #16]
	ldr	w24, [x8, x28, lsl #2]
	bl	_vaErrorStr
	mov	x5, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	x3, x24
	mov	x4, x22
	bl	_av_log
	b	LBB0_2
LBB0_5:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x28, #0
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x19, #4]
	cmp	x28, x8, lsl #1
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x28, lsl #2]
	bl	_vaDestroyBuffer
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, x0
	ldr	w23, [x27]
	ldr	x8, [x19, #8]
	ldr	w24, [x8, x28, lsl #2]
	bl	_vaErrorStr
	mov	x5, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	x3, x24
	mov	x4, x22
	bl	_av_log
	b	LBB0_7
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VA_STATUS_SUCCESS,8,3          ; @VA_STATUS_SUCCESS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to destroy parameter buffer %#x: %d (%s).\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to destroy slice slice buffer %#x: %d (%s).\n"

	.no_dead_strip	_ff_vaapi_decode_destroy_buffers
.subsections_via_symbols
