	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_format
_find_format:                           ## @find_format
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_venc_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_1
## %bb.6:
	movl	%eax, %edx
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rsi)
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rcx
	addq	$16, %rsi
	cmpq	%rcx, %rdx
	jne	LBB0_7
	jmp	LBB0_9
LBB0_1:
	xorl	%ecx, %ecx
LBB0_2:
	cmpl	%eax, %ecx
	je	LBB0_9
## %bb.3:
	movl	%ecx, %eax
	shlq	$4, %rax
	cmpq	%r15, 8(%r12,%rax)
	jne	LBB0_9
## %bb.4:
	addq	%rax, %r12
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_10
## %bb.5:
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_venus_helper_check_codec
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:
	xorl	%r12d, %r12d
LBB0_10:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_venc_formats,8,3               ## @venc_formats
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.no_dead_strip	_find_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_format
_find_format:                           ; @find_format
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _venc_formats@GOTPAGE
Lloh1:
	ldr	x8, [x8, _venc_formats@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_4
; %bb.1:
	mov	x8, #0
	mov	w9, w0
	mov	x10, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x11, x22
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	add	x10, x10, #16
	cmp	x9, x8
	b.ne	LBB0_2
	b	LBB0_9
LBB0_4:
	mov	w8, #0
LBB0_5:
	cmp	w8, w0
	b.eq	LBB0_9
; %bb.6:
	add	x21, x21, w8, uxtw #4
	ldr	x8, [x21, #8]
	cmp	x8, x20
	b.ne	LBB0_9
; %bb.7:
Lloh3:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_10
; %bb.8:
	ldr	x1, [x21]
	mov	x0, x19
	bl	_venus_helper_check_codec
	cbnz	w0, LBB0_10
LBB0_9:
	mov	x21, #0
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_venc_formats,8,3               ; @venc_formats
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.no_dead_strip	_find_format
.subsections_via_symbols
