	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdpau_pool_alloc
_vdpau_pool_alloc:                      ## @vdpau_pool_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	movq	(%rdx), %r14
	movl	(%rax), %edi
	movl	(%rcx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	leaq	-24(%rbp), %r8
	callq	*(%r14)
	movq	_VDP_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	-24(%rbp), %rdi
	movq	_vdpau_buffer_free@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AV_BUFFER_FLAG_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$8, %esi
	movq	%rbx, %rcx
	callq	_av_buffer_create
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	-24(%rbp), %rdi
	callq	*8(%r14)
	jmp	LBB0_4
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VDP_STATUS_OK,8,3              ## @VDP_STATUS_OK
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error allocating a VDPAU video surface\n"

	.comm	_vdpau_buffer_free,4,2          ## @vdpau_buffer_free
	.comm	_AV_BUFFER_FLAG_READONLY,4,2    ## @AV_BUFFER_FLAG_READONLY
	.no_dead_strip	_vdpau_pool_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdpau_pool_alloc
_vdpau_pool_alloc:                      ; @vdpau_pool_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldp	x9, x8, [x0, #8]
	ldr	x8, [x8]
	ldp	x9, x10, [x9]
	ldr	x20, [x9]
	ldr	x9, [x20]
	ldr	w0, [x10]
	ldr	w1, [x8]
	ldp	w3, w2, [x19]
	add	x4, sp, #8
	blr	x9
Lloh0:
	adrp	x8, _VDP_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VDP_STATUS_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [sp, #8]
Lloh3:
	adrp	x8, _vdpau_buffer_free@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vdpau_buffer_free@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _AV_BUFFER_FLAG_READONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_BUFFER_FLAG_READONLY@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	w1, #8
	mov	x3, x19
	bl	_av_buffer_create
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x0, [sp, #8]
	blr	x8
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_4:
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VDP_STATUS_OK,8,3              ; @VDP_STATUS_OK
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error allocating a VDPAU video surface\n"

	.comm	_vdpau_buffer_free,4,2          ; @vdpau_buffer_free
	.comm	_AV_BUFFER_FLAG_READONLY,4,2    ; @AV_BUFFER_FLAG_READONLY
	.no_dead_strip	_vdpau_pool_alloc
.subsections_via_symbols
