	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxva2_transfer_data_from
_dxva2_transfer_data_from:              ## @dxva2_transfer_data_from
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rsi), %rax
	cmpq	(%rdi), %rax
	jne	LBB0_1
## %bb.4:
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %rbx
	movq	24(%r13), %rax
	movq	%rax, 24(%rbx)
	movq	_AV_HWFRAME_MAP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_dxva2_map_frame
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movq	16(%r13), %rax
	movq	16(%rbx), %rcx
	movl	(%rax), %edx
	movl	%edx, -64(%rbp)
	movl	4(%rax), %edx
	movl	8(%rax), %esi
	movl	12(%rax), %eax
	movd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movl	%edx, -60(%rbp)
	pinsrd	$1, 4(%rcx), %xmm0
	movl	%esi, -56(%rbp)
	pinsrd	$2, 8(%rcx), %xmm0
	movl	%eax, -52(%rbp)
	pinsrd	$3, 12(%rcx), %xmm0
	movdqa	%xmm0, -96(%rbp)
	movq	8(%r13), %rdi
	movq	8(%rbx), %rdx
	movq	(%r15), %r8
	movl	(%r14), %eax
	movl	4(%r14), %r9d
	movl	%eax, (%rsp)
	leaq	-64(%rbp), %rsi
	leaq	-96(%rbp), %rcx
	callq	_av_image_copy_uc_from
LBB0_9:
	leaq	-72(%rbp), %rdi
	callq	_av_frame_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.10:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.3:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_HWFRAME_MAP_READ,4,2        ## @AV_HWFRAME_MAP_READ
	.no_dead_strip	_dxva2_transfer_data_from
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dxva2_transfer_data_from
_dxva2_transfer_data_from:              ; @dxva2_transfer_data_from
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x1, #24]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_av_frame_alloc
	str	x0, [sp, #16]
	cbz	x0, LBB0_7
; %bb.2:
	mov	x23, x0
	ldr	x8, [x22, #24]
	str	x8, [x0, #24]
Lloh3:
	adrp	x8, _AV_HWFRAME_MAP_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_HWFRAME_MAP_READ@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	bl	_dxva2_map_frame
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldr	x8, [x23, #16]
	ldp	x0, x9, [x22, #8]
	ldp	w10, w11, [x9]
	str	w10, [sp, #24]
	add	x10, x8, #4
	add	x12, x8, #8
	ldp	w13, w9, [x9, #8]
	add	x14, x8, #12
	ldr	s0, [x8]
	str	w11, [sp, #28]
	ld1.s	{ v0 }[1], [x10]
	str	w13, [sp, #32]
	ld1.s	{ v0 }[2], [x12]
	str	w9, [sp, #36]
	ld1.s	{ v0 }[3], [x14]
	str	q0, [sp]
	ldr	x2, [x23, #8]
	ldr	x4, [x20]
	ldp	w6, w5, [x19]
	add	x1, sp, #24
	mov	x3, sp
	bl	_av_image_copy_uc_from
LBB0_4:
	add	x0, sp, #16
	bl	_av_frame_free
	ldr	x8, [sp, #40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.5:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
Lloh9:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldr	x8, [sp, #40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_AVERROR
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_HWFRAME_MAP_READ,4,2        ; @AV_HWFRAME_MAP_READ
	.no_dead_strip	_dxva2_transfer_data_from
.subsections_via_symbols
