	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vivid_cec_find_dest_adap
_vivid_cec_find_dest_adap:              ## @vivid_cec_find_dest_adap
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	cmpl	$14, %edx
	jg	LBB0_14
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	cmpq	%rsi, %rdi
	je	LBB0_5
## %bb.2:
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.4:
	movl	%r14d, %esi
	callq	_cec_has_log_addr
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_14
LBB0_5:
	movq	_MAX_OUTPUTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$0, %r12d
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movl	%eax, %ecx
	cmpq	%rcx, %r13
	jae	LBB0_14
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	movq	(%rcx,%r13,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%r15, %rdi
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, (%rdi)
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r14d, %esi
	callq	_cec_has_log_addr
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_MAX_OUTPUTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_11:
	movl	$1, %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_OUTPUTS,4,2                ## @MAX_OUTPUTS
	.no_dead_strip	_vivid_cec_find_dest_adap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vivid_cec_find_dest_adap
_vivid_cec_find_dest_adap:              ; @vivid_cec_find_dest_adap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cmp	w2, #14
	b.gt	LBB0_13
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x0, #8]
	cmp	x0, x1
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x1, x19
	bl	_cec_has_log_addr
	cbz	x0, LBB0_5
LBB0_4:
	mov	w0, #1
	b	LBB0_14
LBB0_5:
Lloh0:
	adrp	x22, _MAX_OUTPUTS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_OUTPUTS@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_13
; %bb.6:
	mov	x23, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, uxtw
	b.hs	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	ldr	x0, [x9, x23, lsl #3]
	cbz	x0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x0, x20
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x0]
	cbz	x9, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x19
	bl	_cec_has_log_addr
	cbnz	x0, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x22]
	b	LBB0_7
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_OUTPUTS,4,2                ; @MAX_OUTPUTS
	.no_dead_strip	_vivid_cec_find_dest_adap
.subsections_via_symbols
