	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdcd_detect_onech
_hdcd_detect_onech:                     ## @hdcd_detect_onech
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	cmpl	$0, 68(%rdi)
	setne	%al
	orl	%eax, (%rsi)
	movq	(%rdi), %rdx
	movq	8(%rdi), %rcx
	leaq	(%rcx,%rdx), %rax
	addl	%eax, 28(%rsi)
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	_HDCD_PVER_A@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 24(%r14)
LBB0_2:
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movq	_HDCD_PVER_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 24(%r14)
LBB0_4:
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.5:
	movq	_HDCD_PE_INTERMITTENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, 20(%r14)
	je	LBB0_9
## %bb.6:
	cmpq	%rax, %rdx
	jne	LBB0_8
## %bb.7:
	movq	_HDCD_PE_PERMANENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_8:
	movl	%ecx, 20(%r14)
LBB0_9:
	movl	16(%r14), %r15d
	movl	64(%rbx), %edi
	callq	_GAINTOFLOAT
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_FFMIN
	movl	%eax, 16(%r14)
	movl	48(%rbx), %eax
	addl	56(%rbx), %eax
	addl	40(%rbx), %eax
	addl	%eax, 12(%r14)
	cmpq	$0, 32(%rbx)
	je	LBB0_11
## %bb.10:
	incl	8(%r14)
LBB0_11:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	js	LBB0_13
## %bb.12:
	movl	4(%r14), %ecx
	xorl	%edx, %edx
	cmpl	$-1, %ecx
	cmovnel	%ecx, %edx
	addl	%edx, %eax
	movl	%eax, 4(%r14)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDCD_PE_NEVER,4,2              ## @HDCD_PE_NEVER
	.comm	_HDCD_PVER_A,4,2                ## @HDCD_PVER_A
	.comm	_HDCD_PVER_B,4,2                ## @HDCD_PVER_B
	.comm	_HDCD_PE_PERMANENT,4,2          ## @HDCD_PE_PERMANENT
	.comm	_HDCD_PE_INTERMITTENT,4,2       ## @HDCD_PE_INTERMITTENT
	.no_dead_strip	_hdcd_detect_onech
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdcd_detect_onech
_hdcd_detect_onech:                     ; @hdcd_detect_onech
	.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, x1
	mov	x20, x0
	ldr	w8, [x0, #68]
	cmp	w8, #0
	cset	w8, ne
	ldr	w9, [x1]
	orr	w8, w9, w8
	str	w8, [x1]
	ldp	x10, x9, [x0]
	ldr	w11, [x1, #28]
	add	x8, x9, x10
	add	w11, w11, w8
	str	w11, [x1, #28]
	cbz	x10, LBB0_2
; %bb.1:
Lloh0:
	adrp	x10, _HDCD_PVER_A@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HDCD_PVER_A@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	ldr	w11, [x19, #24]
	orr	w10, w11, w10
	str	w10, [x19, #24]
LBB0_2:
	cbz	x9, LBB0_4
; %bb.3:
Lloh3:
	adrp	x9, _HDCD_PVER_B@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HDCD_PVER_B@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x19, #24]
	orr	w9, w10, w9
	str	w9, [x19, #24]
LBB0_4:
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_7
; %bb.5:
	ldr	w11, [x19, #20]
Lloh6:
	adrp	x10, _HDCD_PE_INTERMITTENT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HDCD_PE_INTERMITTENT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w11, w10
	b.eq	LBB0_7
; %bb.6:
Lloh9:
	adrp	x11, _HDCD_PE_PERMANENT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _HDCD_PE_PERMANENT@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	cmp	x9, x8
	csel	w8, w11, w10, eq
	str	w8, [x19, #20]
LBB0_7:
	ldr	w21, [x19, #16]
	ldr	w0, [x20, #64]
	bl	_GAINTOFLOAT
	mov	x1, x0
	mov	x0, x21
	bl	_FFMIN
	ldr	w8, [x20, #56]
	ldr	w9, [x20, #48]
	ldr	w10, [x20, #40]
	add	w8, w9, w8
	add	w8, w8, w10
	ldr	w9, [x19, #12]
	add	w8, w9, w8
	stp	w8, w0, [x19, #12]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_9:
	ldr	x8, [x20, #24]
	tbnz	x8, #63, LBB0_11
; %bb.10:
	ldr	w9, [x19, #4]
	cmn	w9, #1
	csel	w9, wzr, w9, eq
	add	w8, w9, w8
	str	w8, [x19, #4]
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HDCD_PE_NEVER,4,2              ; @HDCD_PE_NEVER
	.comm	_HDCD_PVER_A,4,2                ; @HDCD_PVER_A
	.comm	_HDCD_PVER_B,4,2                ; @HDCD_PVER_B
	.comm	_HDCD_PE_PERMANENT,4,2          ; @HDCD_PE_PERMANENT
	.comm	_HDCD_PE_INTERMITTENT,4,2       ; @HDCD_PE_INTERMITTENT
	.no_dead_strip	_hdcd_detect_onech
.subsections_via_symbols
