	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdcd_analyze
_hdcd_analyze:                          ## @hdcd_analyze
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	jle	LBB0_10
## %bb.1:
	movslq	%ebx, %r13
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	shlq	$2, %r13
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	setne	%cl
	andl	$2, %eax
	shrl	%eax
	andb	%cl, %al
	movzbl	%al, %esi
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edx
	callq	_hdcd_analyze_gen
	movl	%eax, (%r15)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r13, %r15
	decq	%r14
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	movl	%eax, %edi
	shll	$15, %edi
	movl	%edi, (%r15)
	movl	16(%rbp), %ecx
	movq	_HDCD_ANA_PE@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %esi
	cmpl	$0, 32(%rbp)
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbp), %eax
	movq	_HDCD_ANA_TGM@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 24(%rbp)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbp), %eax
	movq	_HDCD_ANA_CDT@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_8
	jmp	LBB0_9
LBB0_10:
	movl	%r12d, %esi
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	subl	%eax, %esi
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	jle	LBB0_11
## %bb.17:
	sarl	$3, %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_FFMIN
	testl	%eax, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jle	LBB0_18
## %bb.19:
	movslq	%ebx, %rbx
	shlq	$2, %rbx
	movq	_HDCD_ANA_LLE@GOTPCREL(%rip), %r13
	movl	%eax, %r15d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	addq	%rbx, %r14
	decl	%r15d
	je	LBB0_23
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	addl	$-8, %r12d
	movl	16(%rbp), %eax
	cmpl	%eax, (%r13)
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r14), %edi
	movl	%r12d, %esi
	movl	$1920, %edx                     ## imm = 0x780
	callq	_hdcd_analyze_gen
	movl	%eax, (%r14)
	jmp	LBB0_22
LBB0_11:
	subl	%r12d, %eax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_FFMIN
	testl	%eax, %eax
	jle	LBB0_12
## %bb.13:
	movslq	%ebx, %r13
	shlq	$2, %r13
	movq	_HDCD_ANA_LLE@GOTPCREL(%rip), %r15
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	%r13, %r14
	decl	%ebx
	je	LBB0_24
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	incl	%r12d
	movl	16(%rbp), %eax
	cmpl	%eax, (%r15)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r14), %edi
	movl	%r12d, %esi
	movl	$1920, %edx                     ## imm = 0x780
	callq	_hdcd_analyze_gen
	movl	%eax, (%r14)
	jmp	LBB0_16
LBB0_18:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_23:
	leal	-8(%r12), %eax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	cmovll	%ecx, %r12d
LBB0_24:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_25
LBB0_12:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_25:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	subl	%eax, %ebx
	testl	%r12d, %r12d
	je	LBB0_31
## %bb.26:
	testl	%ebx, %ebx
	jle	LBB0_33
## %bb.27:
	movslq	-52(%rbp), %r15                 ## 4-byte Folded Reload
	incl	%ebx
	shlq	$2, %r15
	movq	_HDCD_ANA_LLE@GOTPCREL(%rip), %r13
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=1
	decl	%ebx
	addq	%r15, %r14
	cmpl	$1, %ebx
	jbe	LBB0_33
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%rbp), %eax
	cmpl	%eax, (%r13)
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	(%r14), %edi
	movl	%r12d, %esi
	movl	$1920, %edx                     ## imm = 0x780
	callq	_hdcd_analyze_gen
	movl	%eax, (%r14)
	jmp	LBB0_30
LBB0_31:
	testl	%ebx, %ebx
	jle	LBB0_33
## %bb.32:
	imull	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	movslq	%ebx, %rax
	leaq	(%r14,%rax,4), %r14
LBB0_33:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
	cltq
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	xorl	%edi, %edi
	cmpq	%rax, %r14
	sete	%dil
	callq	_av_assert0
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDCD_ANA_PE,4,2                ## @HDCD_ANA_PE
	.comm	_HDCD_ANA_TGM,4,2               ## @HDCD_ANA_TGM
	.comm	_HDCD_ANA_CDT,4,2               ## @HDCD_ANA_CDT
	.comm	_HDCD_ANA_LLE,4,2               ## @HDCD_ANA_LLE
	.no_dead_strip	_hdcd_analyze
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdcd_analyze
_hdcd_analyze:                          ; @hdcd_analyze
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x6
	stp	w4, w1, [sp, #8]                ; 8-byte Folded Spill
	mov	x19, x3
	stp	x0, x2, [sp, #16]               ; 16-byte Folded Spill
	cmp	w1, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x25, x7
	mov	x26, x5
	ldr	w27, [x29, #16]
	ldp	x20, x8, [sp, #16]              ; 16-byte Folded Reload
	sbfiz	x28, x8, #2, #32
Lloh0:
	adrp	x21, _HDCD_ANA_PE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HDCD_ANA_PE@GOTPAGEOFF]
Lloh2:
	adrp	x22, _HDCD_ANA_TGM@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HDCD_ANA_TGM@GOTPAGEOFF]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	mov	w24, w8
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, #0
	cset	w9, ne
	and	w8, w8, #0x2
	and	w1, w9, w8, lsr #1
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w2, #1
	bl	_hdcd_analyze_gen
	str	w0, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, x28
	subs	x24, x24, #1
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	lsl	w0, w8, #15
	str	w0, [x20]
	ldr	w9, [x21]
	cmp	w9, w23
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w27, #1
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x22]
	cmp	w8, w23
	b.eq	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w25, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh4:
	adrp	x8, _HDCD_ANA_CDT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HDCD_ANA_CDT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w1, #1
	b	LBB0_3
LBB0_11:
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	subs	w8, w19, w9
	b.le	LBB0_17
; %bb.12:
	asr	w1, w8, #3
	ldr	w28, [sp, #12]                  ; 4-byte Folded Reload
	mov	x0, x28
	bl	_FFMIN
	mov	x25, x0
	cmp	w0, #1
	ldp	x27, x24, [sp, #16]             ; 16-byte Folded Reload
	b.lt	LBB0_23
; %bb.13:
	mov	x8, x24
	sbfiz	x20, x8, #2, #32
Lloh7:
	adrp	x21, _HDCD_ANA_LLE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _HDCD_ANA_LLE@GOTPAGEOFF]
	mov	x22, x25
	mov	x26, x27
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x26, x26, x20
	subs	w22, w22, #1
	b.eq	LBB0_24
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	sub	w19, w19, #8
	ldr	w8, [x21]
	cmp	w8, w23
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x26]
	mov	x1, x19
	mov	w2, #1920
	bl	_hdcd_analyze_gen
	str	w0, [x26]
	b	LBB0_14
LBB0_17:
	sub	w1, w9, w19
	ldr	w28, [sp, #12]                  ; 4-byte Folded Reload
	mov	x0, x28
	bl	_FFMIN
	mov	x25, x0
	cmp	w0, #1
	ldp	x27, x24, [sp, #16]             ; 16-byte Folded Reload
	b.lt	LBB0_25
; %bb.18:
	mov	w20, #0
	mov	x8, x24
	sbfiz	x21, x8, #2, #32
Lloh9:
	adrp	x22, _HDCD_ANA_LLE@GOTPAGE
Lloh10:
	ldr	x22, [x22, _HDCD_ANA_LLE@GOTPAGEOFF]
	mov	x26, x27
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	w20, w20, #1
	add	x26, x26, x21
	cmp	w25, w20
	b.eq	LBB0_22
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	w8, w23
	b.ne	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	w8, w19, w20
	add	w1, w8, #1
	ldr	w0, [x26]
	mov	w2, #1920
	bl	_hdcd_analyze_gen
	str	w0, [x26]
	b	LBB0_19
LBB0_22:
	add	w19, w19, w20
	b	LBB0_26
LBB0_23:
	mov	x26, x27
LBB0_24:
	sub	w8, w19, #8
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w8, w9
	csel	w19, w9, w19, lt
	b	LBB0_26
LBB0_25:
	mov	x26, x27
LBB0_26:
	sub	w8, w28, w25
	cmp	w8, #1
	cbz	w19, LBB0_32
; %bb.27:
	b.lt	LBB0_33
; %bb.28:
	add	w20, w8, #1
	mov	x8, x24
	sbfiz	x21, x8, #2, #32
Lloh11:
	adrp	x22, _HDCD_ANA_LLE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _HDCD_ANA_LLE@GOTPAGEOFF]
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	sub	w20, w20, #1
	add	x26, x26, x21
	cmp	w20, #1
	b.ls	LBB0_33
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	w8, w23
	b.ne	LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	w0, [x26]
	mov	x1, x19
	mov	w2, #1920
	bl	_hdcd_analyze_gen
	str	w0, [x26]
	b	LBB0_29
LBB0_32:
	mul	w8, w8, w24
	add	x8, x26, w8, sxtw #2
	csel	x26, x26, x8, lt
LBB0_33:
	mul	w8, w24, w28
	add	x8, x27, w8, sxtw #2
	cmp	x26, x8
	cset	w0, eq
	bl	_av_assert0
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HDCD_ANA_PE,4,2                ; @HDCD_ANA_PE
	.comm	_HDCD_ANA_TGM,4,2               ; @HDCD_ANA_TGM
	.comm	_HDCD_ANA_CDT,4,2               ; @HDCD_ANA_CDT
	.comm	_HDCD_ANA_LLE,4,2               ; @HDCD_ANA_LLE
	.no_dead_strip	_hdcd_analyze
.subsections_via_symbols
