	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxva_get_decoder_guid
_dxva_get_decoder_guid:                 ## @dxva_get_decoder_guid
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %r12
	movl	%ecx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_DXVA_SHARED_CONTEXT
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %edx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rcx
	callq	_dxva_list_guids_debug
	movq	_ff_GUID_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r15)
	movq	_dxva_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.1:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	movq	_dxva_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%r13,8), %r14
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_dxva_check_codec_compatibility
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %ebx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rdi
	movq	%r12, %rsi
	callq	_IsEqualGUID
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	addq	$4, %r12
	leaq	1(%rbx), %rax
	cmpq	%r15, %rbx
	movq	%rax, %rbx
	jb	LBB0_5
	jmp	LBB0_7
LBB0_8:
	movq	_ff_GUID_NULL@GOTPCREL(%rip), %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_IsEqualGUID
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_9:
	movq	_ff_DXVADDI_Intel_ModeH264_E@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IsEqualGUID
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, 8(%rcx)
LBB0_11:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_GUID_NULL,4,2               ## @ff_GUID_NULL
	.comm	_dxva_modes,8,3                 ## @dxva_modes
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No decoder device for codec found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ff_DXVADDI_Intel_ModeH264_E,4,2 ## @ff_DXVADDI_Intel_ModeH264_E
	.comm	_FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO,4,2 ## @FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO
	.comm	_AV_PIX_FMT_D3D11,8,3           ## @AV_PIX_FMT_D3D11
	.comm	_AV_PIX_FMT_DXVA2_VLD,8,3       ## @AV_PIX_FMT_DXVA2_VLD
	.no_dead_strip	_dxva_get_decoder_guid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dxva_get_decoder_guid
_dxva_get_decoder_guid:                 ; @dxva_get_decoder_guid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x1
	mov	x21, x0
	bl	_DXVA_SHARED_CONTEXT
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	bl	_dxva_list_guids_debug
Lloh0:
	adrp	x8, _ff_GUID_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_GUID_NULL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh3:
	adrp	x26, _dxva_modes@GOTPAGE
Lloh4:
	ldr	x26, [x26, _dxva_modes@GOTPAGEOFF]
	ldr	x24, [x26]
	ldr	x8, [x24]
	cbz	x8, LBB0_7
; %bb.1:
	mov	w27, #0
	mov	w28, w23
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w27, w27, #1
	ldr	x8, [x26]
	add	x24, x8, w27, uxtw #3
	ldr	x8, [x24]
	cbz	x8, LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x21
	mov	x1, x24
	bl	_dxva_check_codec_compatibility
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w23, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w19, #1
	mov	x25, x22
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x24]
	mov	x1, x25
	bl	_IsEqualGUID
	add	x25, x25, #4
	cmp	x0, #0
	ccmp	x19, x28, #2, eq
	add	x19, x19, #1
	b.lo	LBB0_6
	b	LBB0_2
LBB0_7:
Lloh5:
	adrp	x1, _ff_GUID_NULL@GOTPAGE
Lloh6:
	ldr	x1, [x1, _ff_GUID_NULL@GOTPAGEOFF]
	mov	x0, x20
	bl	_IsEqualGUID
	cbz	x0, LBB0_9
; %bb.8:
Lloh7:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_AVERROR
LBB0_9:
Lloh15:
	adrp	x1, _ff_DXVADDI_Intel_ModeH264_E@GOTPAGE
Lloh16:
	ldr	x1, [x1, _ff_DXVADDI_Intel_ModeH264_E@GOTPAGEOFF]
	mov	x0, x20
	bl	_IsEqualGUID
	cbz	x0, LBB0_11
; %bb.10:
Lloh17:
	adrp	x8, _FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w9, [x10, #8]
	orr	w8, w9, w8
	str	w8, [x10, #8]
LBB0_11:
	mov	w0, #0
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_GUID_NULL,4,2               ; @ff_GUID_NULL
	.comm	_dxva_modes,8,3                 ; @dxva_modes
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No decoder device for codec found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ff_DXVADDI_Intel_ModeH264_E,4,2 ; @ff_DXVADDI_Intel_ModeH264_E
	.comm	_FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO,4,2 ; @FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO
	.comm	_AV_PIX_FMT_D3D11,8,3           ; @AV_PIX_FMT_D3D11
	.comm	_AV_PIX_FMT_DXVA2_VLD,8,3       ; @AV_PIX_FMT_DXVA2_VLD
	.no_dead_strip	_dxva_get_decoder_guid
.subsections_via_symbols
