	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coda_find_codec
_coda_find_codec:                       ## @coda_find_codec
	.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
	movl	%edx, %r14d
	movq	(%rdi), %rax
	movq	8(%rax), %r15
	movl	(%rax), %r12d
	movl	%esi, %edi
	callq	_coda_format_normalize_yuv
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_coda_format_normalize_yuv
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %ebx
	je	LBB0_10
## %bb.1:
	testl	%r12d, %r12d
	jle	LBB0_7
## %bb.2:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpq	%rdx, %r12
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%r15,%rdx,8)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ecx, 4(%r15,%rdx,8)
	jne	LBB0_5
## %bb.6:
	movl	%edx, %eax
LBB0_7:
	cmpl	%r12d, %eax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %eax
	leaq	(%r15,%rax,8), %rax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_coda_find_codec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coda_find_codec
_coda_find_codec:                       ; @coda_find_codec
	.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
	ldr	x8, [x0]
	ldr	x21, [x8, #8]
	ldr	w22, [x8]
	mov	x0, x1
	bl	_coda_format_normalize_yuv
	mov	x19, x0
	mov	x0, x20
	bl	_coda_format_normalize_yuv
	cmp	w19, w0
	b.ne	LBB0_2
LBB0_1:
	mov	x0, #0
	b	LBB0_9
LBB0_2:
	cmp	w22, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x8, #0
	add	x9, x21, #4
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	add	x9, x9, #8
	cmp	x22, x8
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x9, #-4]
	cmp	w10, w19
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x9]
	cmp	w10, w0
	b.ne	LBB0_4
	b	LBB0_8
LBB0_7:
	mov	w8, #0
LBB0_8:
	cmp	w8, w22
	add	x8, x21, w8, uxtw #3
	csel	x0, xzr, x8, eq
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_coda_find_codec
.subsections_via_symbols
