	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_cap
_get_cap:                               ## @get_cap
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	8(%rdi), %rax
	movl	(%rdi), %edx
	movl	4(%rdi), %esi
	movq	%rax, %rdi
	callq	_venus_caps_by_codec
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movl	(%rax), %ecx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.2:
	movq	8(%rax), %r8
	leaq	16(%r8), %rdi
	shlq	$5, %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, -16(%rdi)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$-32, %rdx
	addq	$32, %rdi
	movq	%rcx, %rsi
	addq	%rdx, %rsi
	jne	LBB0_3
	jmp	LBB0_15
LBB0_7:
	cmpq	$128, %r14
	je	LBB0_11
## %bb.8:
	cmpq	$130, %r14
	je	LBB0_12
## %bb.9:
	cmpq	$129, %r14
	jne	LBB0_14
## %bb.10:
	subq	%rdx, %r8
	addq	$8, %r8
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	subq	%rdx, %r8
	addq	$24, %r8
	jmp	LBB0_13
LBB0_12:
	subq	%rdx, %r8
	addq	$16, %r8
LBB0_13:
	movq	(%r8), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_cap
_get_cap:                               ; @get_cap
	.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, x2
	mov	x20, x1
	ldr	x8, [x0, #8]
	ldp	w2, w1, [x0]
	mov	x0, x8
	bl	_venus_caps_by_codec
	cbz	x0, LBB0_12
; %bb.1:
	ldr	w9, [x0]
	cbz	w9, LBB0_5
; %bb.2:
	ldr	x8, [x0, #8]
	add	x8, x8, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x8, #-16]
	cmp	x10, x20
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #32
	subs	x9, x9, #1
	b.ne	LBB0_3
LBB0_5:
	mov	x0, #0
	b	LBB0_12
LBB0_6:
	cmp	x19, #128
	b.eq	LBB0_10
; %bb.7:
	cmp	x19, #130
	b.eq	LBB0_11
; %bb.8:
	cmp	x19, #129
	b.ne	LBB0_5
; %bb.9:
	sub	x8, x8, #8
	b	LBB0_11
LBB0_10:
	add	x8, x8, #8
LBB0_11:
	ldr	x0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_cap
.subsections_via_symbols
