	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venus_helper_check_codec       ## -- Begin function venus_helper_check_codec
	.p2align	4, 0x90
_venus_helper_check_codec:              ## @venus_helper_check_codec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	addl	$-128, %esi
	xorl	%eax, %eax
	cmpl	$10, %esi
	ja	LBB0_6
## %bb.1:
	movq	8(%rdi), %rcx
	movl	(%rdi), %edi
	movslq	%esi, %rax
	leaq	l_switch.table.venus_helper_check_codec(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movl	(%rax), %edx
	movq	_VIDC_SESSION_TYPE_ENC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_3
## %bb.2:
	movl	$1, %eax
	testl	%edx, (%rcx)
	je	LBB0_3
LBB0_6:
	popq	%rbp
	retq
LBB0_3:
	movq	_VIDC_SESSION_TYPE_DEC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_5
## %bb.4:
	movl	$1, %eax
	testl	%edx, 4(%rcx)
	jne	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFI_VIDEO_CODEC_H264,4,2       ## @HFI_VIDEO_CODEC_H264
	.comm	_HFI_VIDEO_CODEC_H263,4,2       ## @HFI_VIDEO_CODEC_H263
	.comm	_HFI_VIDEO_CODEC_MPEG1,4,2      ## @HFI_VIDEO_CODEC_MPEG1
	.comm	_HFI_VIDEO_CODEC_MPEG2,4,2      ## @HFI_VIDEO_CODEC_MPEG2
	.comm	_HFI_VIDEO_CODEC_MPEG4,4,2      ## @HFI_VIDEO_CODEC_MPEG4
	.comm	_HFI_VIDEO_CODEC_VC1,4,2        ## @HFI_VIDEO_CODEC_VC1
	.comm	_HFI_VIDEO_CODEC_VP8,4,2        ## @HFI_VIDEO_CODEC_VP8
	.comm	_HFI_VIDEO_CODEC_VP9,4,2        ## @HFI_VIDEO_CODEC_VP9
	.comm	_HFI_VIDEO_CODEC_DIVX,4,2       ## @HFI_VIDEO_CODEC_DIVX
	.comm	_HFI_VIDEO_CODEC_HEVC,4,2       ## @HFI_VIDEO_CODEC_HEVC
	.comm	_VIDC_SESSION_TYPE_ENC,4,2      ## @VIDC_SESSION_TYPE_ENC
	.comm	_VIDC_SESSION_TYPE_DEC,4,2      ## @VIDC_SESSION_TYPE_DEC
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.venus_helper_check_codec
l_switch.table.venus_helper_check_codec:
	.quad	_HFI_VIDEO_CODEC_DIVX
	.quad	_HFI_VIDEO_CODEC_VP9
	.quad	_HFI_VIDEO_CODEC_VP8
	.quad	_HFI_VIDEO_CODEC_VC1
	.quad	_HFI_VIDEO_CODEC_VC1
	.quad	_HFI_VIDEO_CODEC_MPEG4
	.quad	_HFI_VIDEO_CODEC_MPEG2
	.quad	_HFI_VIDEO_CODEC_MPEG1
	.quad	_HFI_VIDEO_CODEC_HEVC
	.quad	_HFI_VIDEO_CODEC_H264
	.quad	_HFI_VIDEO_CODEC_H263

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venus_helper_check_codec       ; -- Begin function venus_helper_check_codec
	.p2align	2
_venus_helper_check_codec:              ; @venus_helper_check_codec
	.cfi_startproc
; %bb.0:
	sub	w9, w1, #128
	cmp	w9, #10
	b.hi	LBB0_7
; %bb.1:
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x10, l_switch.table.venus_helper_check_codec@PAGE
Lloh1:
	add	x10, x10, l_switch.table.venus_helper_check_codec@PAGEOFF
	ldr	x9, [x10, w9, sxtw #3]
	ldr	w10, [x0]
	ldr	w9, [x9]
Lloh2:
	adrp	x11, _VIDC_SESSION_TYPE_ENC@GOTPAGE
Lloh3:
	ldr	x11, [x11, _VIDC_SESSION_TYPE_ENC@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_4
; %bb.2:
	ldr	w11, [x8]
	tst	w11, w9
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #1
	ret
LBB0_4:
Lloh5:
	adrp	x11, _VIDC_SESSION_TYPE_DEC@GOTPAGE
Lloh6:
	ldr	x11, [x11, _VIDC_SESSION_TYPE_DEC@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [x8, #4]
	tst	w8, w9
	b.eq	LBB0_7
; %bb.6:
	mov	w0, #1
	ret
LBB0_7:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HFI_VIDEO_CODEC_H264,4,2       ; @HFI_VIDEO_CODEC_H264
	.comm	_HFI_VIDEO_CODEC_H263,4,2       ; @HFI_VIDEO_CODEC_H263
	.comm	_HFI_VIDEO_CODEC_MPEG1,4,2      ; @HFI_VIDEO_CODEC_MPEG1
	.comm	_HFI_VIDEO_CODEC_MPEG2,4,2      ; @HFI_VIDEO_CODEC_MPEG2
	.comm	_HFI_VIDEO_CODEC_MPEG4,4,2      ; @HFI_VIDEO_CODEC_MPEG4
	.comm	_HFI_VIDEO_CODEC_VC1,4,2        ; @HFI_VIDEO_CODEC_VC1
	.comm	_HFI_VIDEO_CODEC_VP8,4,2        ; @HFI_VIDEO_CODEC_VP8
	.comm	_HFI_VIDEO_CODEC_VP9,4,2        ; @HFI_VIDEO_CODEC_VP9
	.comm	_HFI_VIDEO_CODEC_DIVX,4,2       ; @HFI_VIDEO_CODEC_DIVX
	.comm	_HFI_VIDEO_CODEC_HEVC,4,2       ; @HFI_VIDEO_CODEC_HEVC
	.comm	_VIDC_SESSION_TYPE_ENC,4,2      ; @VIDC_SESSION_TYPE_ENC
	.comm	_VIDC_SESSION_TYPE_DEC,4,2      ; @VIDC_SESSION_TYPE_DEC
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.venus_helper_check_codec
l_switch.table.venus_helper_check_codec:
	.quad	_HFI_VIDEO_CODEC_DIVX
	.quad	_HFI_VIDEO_CODEC_VP9
	.quad	_HFI_VIDEO_CODEC_VP8
	.quad	_HFI_VIDEO_CODEC_VC1
	.quad	_HFI_VIDEO_CODEC_VC1
	.quad	_HFI_VIDEO_CODEC_MPEG4
	.quad	_HFI_VIDEO_CODEC_MPEG2
	.quad	_HFI_VIDEO_CODEC_MPEG1
	.quad	_HFI_VIDEO_CODEC_HEVC
	.quad	_HFI_VIDEO_CODEC_H264
	.quad	_HFI_VIDEO_CODEC_H263

.subsections_via_symbols
