	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function frame_alloc
_frame_alloc:                           ## @frame_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %ecx
	movq	_MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET@GOTPCREL(%rip), %rsi
	movq	_MFX_ERR_UNSUPPORTED@GOTPCREL(%rip), %rax
	testl	%ecx, (%rsi)
	je	LBB0_4
## %bb.1:
	movq	_MFX_MEMTYPE_FROM_VPPIN@GOTPCREL(%rip), %r8
	movq	_MFX_MEMTYPE_FROM_VPPOUT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%r8), %esi
	testl	%ecx, %esi
	je	LBB0_4
## %bb.2:
	movq	_MFX_MEMTYPE_EXTERNAL_FRAME@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_4
## %bb.3:
	movq	(%rdi), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 4(%rdx)
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movq	_MFX_ERR_NONE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET,4,2 ## @MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET
	.comm	_MFX_MEMTYPE_FROM_VPPIN,4,2     ## @MFX_MEMTYPE_FROM_VPPIN
	.comm	_MFX_MEMTYPE_FROM_VPPOUT,4,2    ## @MFX_MEMTYPE_FROM_VPPOUT
	.comm	_MFX_MEMTYPE_EXTERNAL_FRAME,4,2 ## @MFX_MEMTYPE_EXTERNAL_FRAME
	.comm	_MFX_ERR_UNSUPPORTED,4,2        ## @MFX_ERR_UNSUPPORTED
	.comm	_MFX_ERR_NONE,4,2               ## @MFX_ERR_NONE
	.no_dead_strip	_frame_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function frame_alloc
_frame_alloc:                           ; @frame_alloc
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _MFX_MEMTYPE_FROM_VPPIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MFX_MEMTYPE_FROM_VPPIN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MFX_MEMTYPE_FROM_VPPOUT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MFX_MEMTYPE_FROM_VPPOUT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh9:
	adrp	x9, _MFX_MEMTYPE_EXTERNAL_FRAME@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MFX_MEMTYPE_EXTERNAL_FRAME@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x0]
	ldr	d0, [x8]
	str	d0, [x2]
Lloh12:
	adrp	x8, _MFX_ERR_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MFX_ERR_NONE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ret
LBB0_4:
Lloh15:
	adrp	x8, _MFX_ERR_UNSUPPORTED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MFX_ERR_UNSUPPORTED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET,4,2 ; @MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET
	.comm	_MFX_MEMTYPE_FROM_VPPIN,4,2     ; @MFX_MEMTYPE_FROM_VPPIN
	.comm	_MFX_MEMTYPE_FROM_VPPOUT,4,2    ; @MFX_MEMTYPE_FROM_VPPOUT
	.comm	_MFX_MEMTYPE_EXTERNAL_FRAME,4,2 ; @MFX_MEMTYPE_EXTERNAL_FRAME
	.comm	_MFX_ERR_UNSUPPORTED,4,2        ; @MFX_ERR_UNSUPPORTED
	.comm	_MFX_ERR_NONE,4,2               ; @MFX_ERR_NONE
	.no_dead_strip	_frame_alloc
.subsections_via_symbols
