	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_vdpau_bind_context          ## -- Begin function av_vdpau_bind_context
	.p2align	4, 0x90
_av_vdpau_bind_context:                 ## @av_vdpau_bind_context
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	_AV_HWACCEL_FLAG_IGNORE_LEVEL@GOTPCREL(%rip), %rax
	movq	_AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	testl	%ebx, %ecx
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	$24, %esi
	callq	_av_reallocp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	movq	(%r12), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_VDP_INVALID_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movl	%r15d, 16(%r12)
	movq	%r14, 8(%r12)
	movl	%ebx, (%r12)
	movl	$1, 4(%r12)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_HWACCEL_FLAG_IGNORE_LEVEL,4,2 ## @AV_HWACCEL_FLAG_IGNORE_LEVEL
	.comm	_AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH,4,2 ## @AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VDP_INVALID_HANDLE,4,2         ## @VDP_INVALID_HANDLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_vdpau_bind_context          ; -- Begin function av_vdpau_bind_context
	.p2align	2
_av_vdpau_bind_context:                 ; @av_vdpau_bind_context
	.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
Lloh0:
	adrp	x8, _AV_HWACCEL_FLAG_IGNORE_LEVEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_HWACCEL_FLAG_IGNORE_LEVEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bics	wzr, w3, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w1, #24
	bl	_av_reallocp
	cbz	x0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	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
LBB0_5:
	ldr	x22, [x22]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh10:
	adrp	x8, _VDP_INVALID_HANDLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VDP_INVALID_HANDLE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	stp	w21, w8, [x22, #16]
	str	x20, [x22, #8]
	mov	w8, #1
	stp	w19, w8, [x22]
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_HWACCEL_FLAG_IGNORE_LEVEL,4,2 ; @AV_HWACCEL_FLAG_IGNORE_LEVEL
	.comm	_AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH,4,2 ; @AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VDP_INVALID_HANDLE,4,2         ; @VDP_INVALID_HANDLE
.subsections_via_symbols
