	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdcd_process
_hdcd_process:                          ## @hdcd_process
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rsi), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	cmpl	$0, 4(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	_hdcd_analyze_prepare
LBB0_2:
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_hdcd_control
	testl	%r13d, %r13d
	jle	LBB0_3
## %bb.4:
	movl	%r14d, %eax
	imull	%r13d, %eax
	cltq
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	callq	_av_assert0
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	movq	%rbx, %rcx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r8d
	xorl	%r9d, %r9d
	callq	_hdcd_scan
	movl	%eax, %r13d
	decl	%r13d
	movl	%r13d, %eax
	imull	%r14d, %eax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movslq	%eax, %rcx
	xorl	%edi, %edi
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	cmpl	%r14d, %ecx
	setle	%dil
	callq	_av_assert0
	movl	4(%r15), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	-48(%rbp), %r8d
	movl	-52(%rbp), %r9d
	movl	4(%r12), %r10d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	pushq	$-1
	pushq	%r10
	pushq	%rax
	callq	_hdcd_analyze
	addq	$32, %rsp
	jmp	LBB0_7
LBB0_3:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_17
LBB0_6:
	movl	(%r15), %ecx
	movl	-48(%rbp), %r9d
	movl	-52(%rbp), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	pushq	%rax
	callq	_hdcd_envelope
	addq	$16, %rsp
LBB0_7:
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	(%rbx,%r14,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	subl	%r13d, %ebx
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_hdcd_control
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	cmpl	$2, %ebx
	movq	%r15, %r13
	jl	LBB0_8
## %bb.9:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r14), %ecx
	movl	-48(%rbp), %r9d
	movl	-52(%rbp), %eax
	subq	$8, %rsp
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	pushq	%rax
	callq	_hdcd_envelope
	addq	$16, %rsp
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	-96(%rbp), %r12                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %r13
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	subl	%r15d, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_hdcd_control
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %r14
	cmpl	$1, %ebx
	jle	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%r14,%rax,4), %r15
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %r14
	leal	-1(%rbx), %r13d
	movl	%r13d, %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	imull	%ebx, %eax
	cltq
	leaq	(%r15,%rax,4), %rax
	xorl	%edi, %edi
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	setbe	%dil
	callq	_av_assert0
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	movq	%r15, %rcx
	movl	%r13d, %r8d
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	xorl	%r9d, %r9d
	callq	_hdcd_scan
	movl	%eax, %r15d
	imull	%ebx, %eax
	cltq
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	xorl	%edi, %edi
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	setbe	%dil
	callq	_av_assert0
	movl	4(%r14), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-48(%rbp), %r8d
	movl	-52(%rbp), %r9d
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movl	4(%r12), %ebx
	subq	$8, %rsp
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	pushq	$-1
	pushq	%rbx
	pushq	%rax
	callq	_hdcd_analyze
	addq	$32, %rsp
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_13
LBB0_8:
	movq	%r14, %r15
LBB0_14:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%r15,%rax,4), %rax
	xorl	%edi, %edi
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	setbe	%dil
	callq	_av_assert0
	movl	4(%r13), %eax
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	-48(%rbp), %r8d
	movl	-52(%rbp), %r9d
	movl	4(%r12), %r10d
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	$1, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	pushq	$-1
	pushq	%r10
	pushq	%rax
	callq	_hdcd_analyze
	addq	$32, %rsp
	jmp	LBB0_17
LBB0_16:
	movl	(%r13), %ecx
	movl	-48(%rbp), %r9d
	movl	-52(%rbp), %eax
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	$1, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	pushq	%rax
	callq	_hdcd_envelope
	addq	$16, %rsp
LBB0_17:
	movl	%eax, (%r12)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hdcd_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdcd_process
_hdcd_process:                          ; @hdcd_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x4
	mov	x24, x3
	mov	x25, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w22, [x1]
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	mov	x3, x20
	bl	_hdcd_analyze_prepare
LBB0_2:
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x19
	bl	_hdcd_control
	cmp	w24, #1
	b.lt	LBB0_17
; %bb.3:
	mul	w27, w20, w24
	mov	w0, #1
	bl	_av_assert0
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	mov	x3, x25
	mov	x4, x24
	mov	w5, #0
	bl	_hdcd_scan
	sub	w26, w0, #1
	mul	w8, w26, w20
	add	x23, x25, w8, sxtw #2
	cmp	w8, w27
	cset	w0, le
	bl	_av_assert0
	ldr	w6, [x21, #4]
	cbz	w6, LBB0_5
; %bb.4:
	ldp	w4, w5, [sp, #8]
	ldr	w7, [x19, #4]
	mov	w8, #-1
	str	w8, [sp]
	mov	x0, x25
	mov	x1, x26
	mov	x2, x20
	mov	x3, x22
	bl	_hdcd_analyze
	b	LBB0_6
LBB0_5:
	ldr	w3, [x21]
	ldp	w5, w6, [sp, #8]
	mov	x0, x25
	mov	x1, x26
	mov	x2, x20
	mov	x4, x22
	bl	_hdcd_envelope
LBB0_6:
	mov	x22, x0
	add	x27, x25, w27, sxtw #2
	sub	w26, w24, w26
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x19
	bl	_hdcd_control
	cmp	w26, #2
	b.lt	LBB0_12
; %bb.7:
	sxtw	x28, w20
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w3, [x21]
	ldp	w5, w6, [sp, #8]
	mov	x0, x23
	mov	x1, x25
	mov	x2, x20
	mov	x4, x22
	bl	_hdcd_envelope
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x22, x0
	sub	w26, w26, w25
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x19
	bl	_hdcd_control
	mov	x23, x24
	cmp	w26, #1
	b.le	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x24, x23, x28, lsl #2
	sub	w25, w26, #1
	mul	w8, w25, w20
	add	x8, x24, w8, sxtw #2
	cmp	x8, x27
	cset	w0, ls
	bl	_av_assert0
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	mov	x3, x24
	mov	x4, x25
	mov	w5, #0
	bl	_hdcd_scan
	mov	x25, x0
	mul	w8, w0, w20
	add	x24, x23, w8, sxtw #2
	cmp	x24, x27
	cset	w0, ls
	bl	_av_assert0
	ldr	w6, [x21, #4]
	cbz	w6, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldp	w4, w5, [sp, #8]
	ldr	w7, [x19, #4]
	mov	w8, #-1
	str	w8, [sp]
	mov	x0, x23
	mov	x1, x25
	mov	x2, x20
	mov	x3, x22
	bl	_hdcd_analyze
	b	LBB0_9
LBB0_12:
	mov	x24, x23
LBB0_13:
	add	x8, x24, w20, sxtw #2
	cmp	x8, x27
	cset	w0, ls
	bl	_av_assert0
	ldr	w6, [x21, #4]
	cbz	w6, LBB0_15
; %bb.14:
	ldp	w4, w5, [sp, #8]
	ldr	w7, [x19, #4]
	mov	w8, #-1
	str	w8, [sp]
	mov	x0, x24
	mov	w1, #1
	mov	x2, x20
	mov	x3, x22
	bl	_hdcd_analyze
	b	LBB0_16
LBB0_15:
	ldr	w3, [x21]
	ldp	w5, w6, [sp, #8]
	mov	x0, x24
	mov	w1, #1
	mov	x2, x20
	mov	x4, x22
	bl	_hdcd_envelope
LBB0_16:
	mov	x22, x0
LBB0_17:
	str	w22, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hdcd_process
.subsections_via_symbols
