	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxva2_transfer_data_to
_dxva2_transfer_data_to:                ## @dxva2_transfer_data_to
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	24(%rdx), %eax
	cmpl	(%rdi), %eax
	jne	LBB0_1
## %bb.3:
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movl	24(%r15), %eax
	movl	%eax, 24(%rbx)
	movq	_AV_HWFRAME_MAP_WRITE@GOTPCREL(%rip), %rax
	movq	_AV_HWFRAME_MAP_OVERWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_dxva2_map_frame
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	16(%rbx), %rdi
	movl	8(%rbx), %esi
	movq	16(%r12), %rdx
	movl	8(%r12), %ecx
	movl	(%r14), %r8d
	movl	(%r12), %eax
	movl	4(%r12), %r9d
	movl	%eax, (%rsp)
	callq	_av_image_copy
LBB0_7:
	leaq	-40(%rbp), %rdi
	callq	_av_frame_free
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_HWFRAME_MAP_WRITE,4,2       ## @AV_HWFRAME_MAP_WRITE
	.comm	_AV_HWFRAME_MAP_OVERWRITE,4,2   ## @AV_HWFRAME_MAP_OVERWRITE
	.no_dead_strip	_dxva2_transfer_data_to
.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_to
_dxva2_transfer_data_to:                ; @dxva2_transfer_data_to
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x2, #24]
	ldr	w9, [x0]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_av_frame_alloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.2:
	mov	x22, x0
	ldr	w8, [x21, #24]
Lloh0:
	adrp	x9, _AV_HWFRAME_MAP_WRITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_HWFRAME_MAP_WRITE@GOTPAGEOFF]
	str	w8, [x0, #24]
Lloh2:
	ldr	w8, [x9]
Lloh3:
	adrp	x9, _AV_HWFRAME_MAP_OVERWRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_HWFRAME_MAP_OVERWRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_dxva2_map_frame
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldr	x0, [x22, #16]
	ldr	w1, [x22, #8]
	ldr	x2, [x19, #16]
	ldp	w5, w3, [x19, #4]
	ldr	w4, [x20]
	ldr	w6, [x19]
	bl	_av_image_copy
LBB0_4:
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
Lloh6:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_HWFRAME_MAP_WRITE,4,2       ; @AV_HWFRAME_MAP_WRITE
	.comm	_AV_HWFRAME_MAP_OVERWRITE,4,2   ; @AV_HWFRAME_MAP_OVERWRITE
	.no_dead_strip	_dxva2_transfer_data_to
.subsections_via_symbols
