	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function daala_match_pix_fmt
_daala_match_pix_fmt:                   ## @daala_match_pix_fmt
	.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
	movq	%rdi, %r12
	movq	_list_fmts@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FF_ARRAY_ELEMS
	movl	$-1, %ecx
	testl	%eax, %eax
	jle	LBB0_21
## %bb.1:
	xorl	%r13d, %r13d
	jmp	LBB0_2
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r8d, %ecx
	movq	_list_fmts@GOTPCREL(%rip), %rbx
	je	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %r13
	jge	LBB0_20
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	(%r12), %rax
	movq	(%rbx), %rdi
	leaq	(,%r13,4), %rcx
	addq	%r13, %rcx
	cmpq	(%rdi,%rcx,8), %rax
	jne	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %r8d
	cmpl	8(%rdi,%rcx,8), %r8d
	jne	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r8d, %r8d
	jle	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %r15
	movq	16(%rdi,%rcx,8), %r11
	leaq	(%rdi,%rcx,8), %r9
	addq	$24, %r9
	cmpl	$1, %r8d
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r8b
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15,%rdx,8), %rax
	cmpq	(%r11,%rdx,8), %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%rdx,8), %rax
	movq	(%r9), %rsi
	xorl	%ebx, %ebx
	cmpq	(%rsi,%rdx,8), %rax
	sete	%bl
	addl	%ebx, %ecx
	jmp	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r8d, %r10d
	andl	$-2, %r10d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	addq	$2, %rdx
	cmpq	%rdx, %r10
	je	LBB0_14
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15,%rdx,8), %rbx
	cmpq	(%r11,%rdx,8), %rbx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	24(%r12), %rbx
	movq	(%rbx,%rdx,8), %rbx
	movq	(%r9), %rax
	xorl	%r14d, %r14d
	cmpq	(%rax,%rdx,8), %rbx
	sete	%r14b
	addl	%r14d, %ecx
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	8(%r15,%rdx,8), %rax
	cmpq	8(%r11,%rdx,8), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	24(%r12), %rax
	movq	8(%rax,%rdx,8), %rax
	movq	(%r9), %rbx
	xorl	%esi, %esi
	cmpq	8(%rbx,%rdx,8), %rax
	sete	%sil
	addl	%esi, %ecx
	jmp	LBB0_13
LBB0_20:
	movl	$-1, %ecx
	jmp	LBB0_21
LBB0_18:
	movl	%r13d, %eax
	leaq	(%rax,%rax,4), %rax
	movl	32(%rdi,%rax,8), %ecx
LBB0_21:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_list_fmts,8,3                  ## @list_fmts
	.no_dead_strip	_daala_match_pix_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function daala_match_pix_fmt
_daala_match_pix_fmt:                   ; @daala_match_pix_fmt
	.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	x19, x0
Lloh0:
	adrp	x20, _list_fmts@GOTPAGE
Lloh1:
	ldr	x20, [x20, _list_fmts@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x21, #0
	mov	w22, #40
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #0
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, w8
	b.eq	LBB0_14
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	bl	_FF_ARRAY_ELEMS
	cmp	x21, w0, sxtw
	b.ge	LBB0_12
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x19]
	ldr	x0, [x20]
	mul	x9, x21, x22
	ldr	x9, [x0, x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #8]
	madd	x9, x21, x22, x0
	ldr	w9, [x9, #8]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x10, #0
	mov	w9, #0
	ldr	x11, [x19, #16]
	madd	x13, x21, x22, x0
	ldr	x12, [x13, #16]
	add	x13, x13, #24
	lsl	x14, x8, #3
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x10, x10, #8
	cmp	x14, x10
	b.eq	LBB0_3
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x11, x10]
	ldr	x16, [x12, x10]
	cmp	x15, x16
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x15, [x19, #24]
	ldr	x15, [x15, x10]
	ldr	x16, [x13]
	ldr	x16, [x16, x10]
	cmp	x15, x16
	cinc	w9, w9, eq
	b	LBB0_9
LBB0_12:
	mov	w0, #-1
LBB0_13:
	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
LBB0_14:
	and	x8, x21, #0xffffffff
	mov	w9, #40
	mul	x8, x8, x9
	add	x8, x0, x8
	ldr	w0, [x8, #32]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_list_fmts,8,3                  ; @list_fmts
	.no_dead_strip	_daala_match_pix_fmt
.subsections_via_symbols
