	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __setup_engine_capabilities
___setup_engine_capabilities:           ## @__setup_engine_capabilities
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	24(%rdi), %r14
	movq	_VIDEO_DECODE_CLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$10, %eax
	jle	LBB0_2
LBB0_4:
	movq	_I915_VIDEO_CLASS_CAPABILITY_HEVC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
	jmp	LBB0_5
LBB0_9:
	movq	_VIDEO_ENHANCEMENT_CLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jge	LBB0_11
	jmp	LBB0_12
LBB0_2:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jl	LBB0_5
## %bb.3:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jl	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_RUNTIME_INFO
	movl	16(%rbx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_11
LBB0_7:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jl	LBB0_12
## %bb.8:
	cmpq	$0, 8(%rbx)
	jne	LBB0_12
LBB0_11:
	movq	_I915_VIDEO_AND_ENHANCE_CLASS_CAPABILITY_SFC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_DECODE_CLASS,8,3         ## @VIDEO_DECODE_CLASS
	.comm	_I915_VIDEO_CLASS_CAPABILITY_HEVC,4,2 ## @I915_VIDEO_CLASS_CAPABILITY_HEVC
	.comm	_I915_VIDEO_AND_ENHANCE_CLASS_CAPABILITY_SFC,4,2 ## @I915_VIDEO_AND_ENHANCE_CLASS_CAPABILITY_SFC
	.comm	_VIDEO_ENHANCEMENT_CLASS,8,3    ## @VIDEO_ENHANCEMENT_CLASS
	.no_dead_strip	___setup_engine_capabilities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __setup_engine_capabilities
___setup_engine_capabilities:           ; @__setup_engine_capabilities
	.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, x0
	ldr	x20, [x0, #24]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _VIDEO_DECODE_CLASS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VIDEO_DECODE_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #10
	b.le	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _I915_VIDEO_CLASS_CAPABILITY_HEVC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_VIDEO_CLASS_CAPABILITY_HEVC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x9, _VIDEO_ENHANCEMENT_CLASS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VIDEO_ENHANCEMENT_CLASS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.4:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #9
	b.ge	LBB0_11
	b	LBB0_12
LBB0_5:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #9
	b.lt	LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
LBB0_7:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #11
	b.lt	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_RUNTIME_INFO
	ldr	w8, [x0]
	ldr	w9, [x19, #16]
	tst	w9, w8
	b.ne	LBB0_11
LBB0_9:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #9
	b.lt	LBB0_12
; %bb.10:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_12
LBB0_11:
Lloh9:
	adrp	x8, _I915_VIDEO_AND_ENHANCE_CLASS_CAPABILITY_SFC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I915_VIDEO_AND_ENHANCE_CLASS_CAPABILITY_SFC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_DECODE_CLASS,8,3         ; @VIDEO_DECODE_CLASS
	.comm	_I915_VIDEO_CLASS_CAPABILITY_HEVC,4,2 ; @I915_VIDEO_CLASS_CAPABILITY_HEVC
	.comm	_I915_VIDEO_AND_ENHANCE_CLASS_CAPABILITY_SFC,4,2 ; @I915_VIDEO_AND_ENHANCE_CLASS_CAPABILITY_SFC
	.comm	_VIDEO_ENHANCEMENT_CLASS,8,3    ; @VIDEO_ENHANCEMENT_CLASS
	.no_dead_strip	___setup_engine_capabilities
.subsections_via_symbols
