	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxva2_map_from
_dxva2_map_from:                        ## @dxva2_map_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rsi
	movq	(%rdi), %rdx
	cmpq	(%rsi), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rdx, %rax
	jmp	LBB0_3
LBB0_2:
	cmpq	%rdx, %rax
	jne	LBB0_6
LBB0_3:
	movq	%rax, (%rbx)
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_dxva2_map_frame
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_av_frame_copy_props
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_NONE,8,3            ## @AV_PIX_FMT_NONE
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_dxva2_map_from
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dxva2_map_from
_dxva2_map_from:                        ; @dxva2_map_from
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	ldr	x9, [x1]
Lloh0:
	adrp	x8, _AV_PIX_FMT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	x8, [x0]
	cmp	x9, x10
	b.eq	LBB0_2
; %bb.1:
	cmp	x9, x8
	mov	x8, x9
	b.ne	LBB0_5
LBB0_2:
	str	x8, [x20]
	mov	x1, x20
	mov	x2, x19
	bl	_dxva2_map_frame
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_av_frame_copy_props
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh3:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_NONE,8,3            ; @AV_PIX_FMT_NONE
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.no_dead_strip	_dxva2_map_from
.subsections_via_symbols
