	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vdpau_add_buffer            ## -- Begin function ff_vdpau_add_buffer
	.p2align	4, 0x90
_ff_vdpau_add_buffer:                   ## @ff_vdpau_add_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	leaq	16(%rbx), %rsi
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %eax
	leal	24(,%rax,8), %edx
	callq	_av_fast_realloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, 8(%rbx)
	movslq	(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rbx)
	movq	_VDP_BITSTREAM_BUFFER_VERSION@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leaq	(%rcx,%rcx,2), %rcx
	movl	%edx, 16(%rax,%rcx,8)
	movq	%r15, 8(%rax,%rcx,8)
	movl	%r14d, (%rax,%rcx,8)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VDP_BITSTREAM_BUFFER_VERSION,4,2 ## @VDP_BITSTREAM_BUFFER_VERSION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vdpau_add_buffer            ; -- Begin function ff_vdpau_add_buffer
	.p2align	2
_ff_vdpau_add_buffer:                   ; @ff_vdpau_add_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, x1
	mov	x21, x0
	ldr	x0, [x0, #8]
	add	x1, x21, #16
	ldr	w8, [x21]
	mov	w9, #24
	orr	w10, wzr, #0x18
	madd	w2, w8, w9, w10
	bl	_av_fast_realloc
	cbz	x0, LBB0_2
; %bb.1:
	str	x0, [x21, #8]
	ldrsw	x8, [x21]
	add	w9, w8, #1
	str	w9, [x21]
Lloh0:
	adrp	x9, _VDP_BITSTREAM_BUFFER_VERSION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VDP_BITSTREAM_BUFFER_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	w10, #24
	madd	x8, x8, x10, x0
	str	w9, [x8, #16]
	str	x20, [x8, #8]
	str	w19, [x8]
	mov	w0, #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
	ret
LBB0_2:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VDP_BITSTREAM_BUFFER_VERSION,4,2 ; @VDP_BITSTREAM_BUFFER_VERSION
.subsections_via_symbols
