	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3d11va_transfer_data
_d3d11va_transfer_data:                 ## @d3d11va_transfer_data
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	movq	(%rax), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	(%rdx), %rcx
	movq	_AV_PIX_FMT_D3D11@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	cmpq	%r12, %rcx
	movq	%rsi, %r14
	cmoveq	%rdx, %r14
	movq	16(%r14), %rax
	movq	(%rax), %rcx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	movl	8(%rax), %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	36(%rsi), %edi
	movl	36(%rdx), %esi
	callq	_FFMIN
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movl	32(%rbx), %edi
	movl	32(%r15), %esi
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	movq	24(%r14), %rcx
	cmpq	%r13, (%rcx)
	jne	LBB0_2
## %bb.1:
	cmpq	%r12, -168(%rbp)                ## 8-byte Folded Reload
	movq	%r15, %rcx
	cmoveq	%rbx, %rcx
	movq	(%rcx), %rcx
	cmpq	(%r13), %rcx
	jne	LBB0_2
## %bb.4:
	movq	%rbx, -176(%rbp)                ## 8-byte Spill
	movq	-168(%rbp), %rbx                ## 8-byte Reload
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	-152(%rbp), %r14                ## 8-byte Reload
	movl	(%r14), %edi
	callq	*24(%r14)
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r13
	testq	%r13, %r13
	jne	LBB0_7
## %bb.5:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_d3d11va_create_staging_texture
	testl	%eax, %eax
	js	LBB0_14
## %bb.6:
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r13
LBB0_7:
	leaq	-108(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ID3D11Texture2D_GetDesc
	movl	16(%r14), %edi
	cmpq	%r12, %rbx
	jne	LBB0_10
## %bb.8:
	subq	$8, %rsp
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	-136(%rbp)                      ## 8-byte Folded Reload
	pushq	-144(%rbp)                      ## 8-byte Folded Reload
	callq	_ID3D11DeviceContext_CopySubresourceRegion
	addq	$32, %rsp
	movl	16(%r14), %edi
	movq	_D3D11_MAP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-100(%rbp), %r9
	movq	%r13, %r12
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_ID3D11DeviceContext_Map
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:
	leaq	-80(%rbp), %rdi
	leaq	-96(%rbp), %r13
	leaq	-108(%rbp), %rcx
	leaq	-100(%rbp), %r8
	movq	%r13, %rsi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_fill_texture_ptrs
	movq	-176(%rbp), %r15                ## 8-byte Reload
	movq	8(%r15), %rsi
	movq	16(%r15), %rdi
	movq	(%rbx), %r8
	subq	$8, %rsp
	leaq	-80(%rbp), %rdx
	movq	%r13, %rcx
	movl	-104(%rbp), %r9d                ## 4-byte Reload
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	callq	_av_image_copy
	addq	$16, %rsp
	movl	16(%r14), %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ID3D11DeviceContext_Unmap
	jmp	LBB0_12
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.3:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_10:
	movq	_D3D11_MAP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-100(%rbp), %r9
	movq	%r13, %r12
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_ID3D11DeviceContext_Map
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_11
LBB0_13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rcx
	callq	_av_log
	movl	(%r14), %edi
	callq	*8(%r14)
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_11:
	leaq	-80(%rbp), %r14
	leaq	-96(%rbp), %r13
	leaq	-108(%rbp), %rcx
	leaq	-100(%rbp), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_fill_texture_ptrs
	movq	8(%r15), %rcx
	movq	16(%r15), %rdx
	movq	(%rbx), %r8
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	-152(%rbp), %r14                ## 8-byte Reload
	movq	%r13, %rsi
	movl	-104(%rbp), %r9d                ## 4-byte Reload
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	callq	_av_image_copy
	addq	$16, %rsp
	movl	16(%r14), %edi
	movq	%r12, %rbx
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ID3D11DeviceContext_Unmap
	movl	16(%r14), %edi
	subq	$8, %rsp
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	movq	-136(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	%r12
	callq	_ID3D11DeviceContext_CopySubresourceRegion
	addq	$32, %rsp
LBB0_12:
	movl	(%r14), %edi
	callq	*8(%r14)
	xorl	%eax, %eax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_D3D11,8,3           ## @AV_PIX_FMT_D3D11
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_D3D11_MAP_READ,4,2             ## @D3D11_MAP_READ
	.comm	_D3D11_MAP_WRITE,4,2            ## @D3D11_MAP_WRITE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to lock D3D11VA surface (%lx)\n"

	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
	.no_dead_strip	_d3d11va_transfer_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3d11va_transfer_data
_d3d11va_transfer_data:                 ; @d3d11va_transfer_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x26, x2
	mov	x25, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldp	x9, x8, [x0, #8]
	ldr	x28, [x8]
	ldr	x20, [x9]
	ldr	x27, [x2]
Lloh3:
	adrp	x8, _AV_PIX_FMT_D3D11@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PIX_FMT_D3D11@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	cmp	x27, x22
	csel	x21, x2, x1, eq
	ldr	x8, [x21, #16]
	ldr	x24, [x8]
	ldr	w23, [x8, #8]
	ldr	w0, [x1, #36]
	ldr	w1, [x2, #36]
	bl	_FFMIN
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w0, [x25, #32]
	ldr	w1, [x26, #32]
	bl	_FFMIN
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_8
; %bb.1:
	cmp	x27, x22
	csel	x8, x25, x26, eq
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	mov	x21, x0
	ldr	x8, [x28, #24]
	ldr	w0, [x28]
	blr	x8
	ldr	x9, [x20]
	mov	x8, x9
	cbnz	x9, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_d3d11va_create_staging_texture
	tbnz	w0, #31, LBB0_14
; %bb.4:
	ldr	x8, [x20]
LBB0_5:
	add	x1, sp, #20
	mov	x20, x8
	mov	x0, x8
	bl	_ID3D11Texture2D_GetDesc
	ldr	w0, [x28, #16]
	cmp	x27, x22
	b.ne	LBB0_10
; %bb.6:
	str	xzr, [sp]
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	x6, x24
	mov	x7, x23
	bl	_ID3D11DeviceContext_CopySubresourceRegion
	ldr	w0, [x28, #16]
Lloh6:
	adrp	x8, _D3D11_MAP_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _D3D11_MAP_READ@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x5, sp, #16
	mov	x1, x20
	mov	w2, #0
	mov	w4, #0
	bl	_ID3D11DeviceContext_Map
	mov	x27, x0
	bl	_FAILED
	cbnz	x0, LBB0_11
; %bb.7:
	add	x0, sp, #40
	add	x1, sp, #24
	add	x3, sp, #20
	add	x4, sp, #16
	mov	x2, x19
	bl	_fill_texture_ptrs
	ldp	x1, x0, [x25, #8]
	ldr	x4, [x19]
	add	x2, sp, #40
	add	x3, sp, #24
	ldr	w5, [sp, #12]                   ; 4-byte Folded Reload
	mov	x6, x21
	bl	_av_image_copy
	ldr	w0, [x28, #16]
	mov	x1, x20
	mov	w2, #0
	bl	_ID3D11DeviceContext_Unmap
	b	LBB0_13
LBB0_8:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [sp, #72]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.9:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_AVERROR
LBB0_10:
Lloh15:
	adrp	x8, _D3D11_MAP_WRITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _D3D11_MAP_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	add	x5, sp, #16
	mov	x1, x20
	mov	w2, #0
	mov	w4, #0
	bl	_ID3D11DeviceContext_Map
	mov	x27, x0
	bl	_FAILED
	cbz	x0, LBB0_12
LBB0_11:
Lloh18:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x27
	bl	_av_log
	ldr	x8, [x28, #8]
	ldr	w0, [x28]
	blr	x8
Lloh23:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_12:
	add	x0, sp, #40
	add	x1, sp, #24
	add	x3, sp, #20
	add	x4, sp, #16
	mov	x2, x19
	bl	_fill_texture_ptrs
	ldp	x3, x2, [x26, #8]
	ldr	x4, [x19]
	add	x0, sp, #40
	add	x1, sp, #24
	ldr	w5, [sp, #12]                   ; 4-byte Folded Reload
	mov	x6, x21
	bl	_av_image_copy
	ldr	w0, [x28, #16]
	mov	x1, x20
	mov	w2, #0
	bl	_ID3D11DeviceContext_Unmap
	ldr	w0, [x28, #16]
	str	xzr, [sp]
	mov	x1, x24
	mov	x2, x23
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	x6, x20
	mov	w7, #0
	bl	_ID3D11DeviceContext_CopySubresourceRegion
LBB0_13:
	ldr	x8, [x28, #8]
	ldr	w0, [x28]
	blr	x8
	mov	w0, #0
LBB0_14:
	ldr	x8, [sp, #72]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_D3D11,8,3           ; @AV_PIX_FMT_D3D11
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_D3D11_MAP_READ,4,2             ; @D3D11_MAP_READ
	.comm	_D3D11_MAP_WRITE,4,2            ; @D3D11_MAP_WRITE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to lock D3D11VA surface (%lx)\n"

	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
	.no_dead_strip	_d3d11va_transfer_data
.subsections_via_symbols
