	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enc2_set_dynamic_metadata      ## -- Begin function enc2_set_dynamic_metadata
	.p2align	4, 0x90
_enc2_set_dynamic_metadata:             ## @enc2_set_dynamic_metadata
	.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
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_DCN10STRENC_FROM_STRENC
	movq	_DME_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movq	_METADATA_HUBP_REQUESTOR_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_METADATA_STREAM_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_dmdata_dolby_vision@GOTPCREL(%rip), %r13
	xorl	%r8d, %r8d
	cmpl	%r15d, (%r13)
	sete	%r8b
	movl	%r14d, %edx
	callq	_REG_UPDATE_2
	movq	_dmdata_dp@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_DP_SEC_METADATA_TRANSMISSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DP_SEC_METADATA_PACKET_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DP_SEC_METADATA_PACKET_LINE_REFERENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DP_SEC_METADATA_PACKET_LINE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$20, (%rsp)
	movl	$1, %r14d
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_3
	movq	_METADATA_ENGINE_EN@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_5:
	movq	_METADATA_ENGINE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_REG_UPDATE
	movq	_dmdata_dp@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_DP_SEC_METADATA_PACKET_ENABLE@GOTPCREL(%rip), %rbx
	movq	_DP_SEC_METADATA_TRANSMISSION@GOTPCREL(%rip), %r12
	jmp	LBB0_8
LBB0_3:
	movq	_HDMI_METADATA_PACKET_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HDMI_METADATA_PACKET_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HDMI_METADATA_PACKET_LINE_REFERENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_HDMI_METADATA_PACKET_LINE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$2, (%rsp)
	movl	$1, %r14d
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_3
	movq	_METADATA_ENGINE_EN@GOTPCREL(%rip), %rbx
	cmpl	%r15d, (%r13)
	jne	LBB0_8
## %bb.4:
	movq	_DIG_FE_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DOLBY_VISION_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %r14d
	movl	$1, %edx
	callq	_REG_UPDATE
	jmp	LBB0_8
LBB0_7:
	movq	_HDMI_METADATA_PACKET_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HDMI_METADATA_PACKET_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_REG_UPDATE
	movq	_DOLBY_VISION_EN@GOTPCREL(%rip), %rbx
	movq	_DIG_FE_CNTL@GOTPCREL(%rip), %r12
LBB0_8:
	movl	(%r12), %edi
	movl	(%rbx), %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_UPDATE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DME_CONTROL,4,2                ## @DME_CONTROL
	.comm	_METADATA_HUBP_REQUESTOR_ID,4,2 ## @METADATA_HUBP_REQUESTOR_ID
	.comm	_METADATA_STREAM_TYPE,4,2       ## @METADATA_STREAM_TYPE
	.comm	_dmdata_dolby_vision,4,2        ## @dmdata_dolby_vision
	.comm	_dmdata_dp,4,2                  ## @dmdata_dp
	.comm	_DP_SEC_METADATA_TRANSMISSION,4,2 ## @DP_SEC_METADATA_TRANSMISSION
	.comm	_DP_SEC_METADATA_PACKET_ENABLE,4,2 ## @DP_SEC_METADATA_PACKET_ENABLE
	.comm	_DP_SEC_METADATA_PACKET_LINE_REFERENCE,4,2 ## @DP_SEC_METADATA_PACKET_LINE_REFERENCE
	.comm	_DP_SEC_METADATA_PACKET_LINE,4,2 ## @DP_SEC_METADATA_PACKET_LINE
	.comm	_HDMI_METADATA_PACKET_CONTROL,4,2 ## @HDMI_METADATA_PACKET_CONTROL
	.comm	_HDMI_METADATA_PACKET_ENABLE,4,2 ## @HDMI_METADATA_PACKET_ENABLE
	.comm	_HDMI_METADATA_PACKET_LINE_REFERENCE,4,2 ## @HDMI_METADATA_PACKET_LINE_REFERENCE
	.comm	_HDMI_METADATA_PACKET_LINE,4,2  ## @HDMI_METADATA_PACKET_LINE
	.comm	_DIG_FE_CNTL,4,2                ## @DIG_FE_CNTL
	.comm	_DOLBY_VISION_EN,4,2            ## @DOLBY_VISION_EN
	.comm	_METADATA_ENGINE_EN,4,2         ## @METADATA_ENGINE_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enc2_set_dynamic_metadata      ; -- Begin function enc2_set_dynamic_metadata
	.p2align	2
_enc2_set_dynamic_metadata:             ; @enc2_set_dynamic_metadata
	.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, x3
	mov	x19, x2
	mov	x21, x1
	bl	_DCN10STRENC_FROM_STRENC
Lloh0:
	adrp	x8, _DME_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DME_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbz	w21, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _METADATA_HUBP_REQUESTOR_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _METADATA_HUBP_REQUESTOR_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _METADATA_STREAM_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _METADATA_STREAM_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x21, _dmdata_dolby_vision@GOTPAGE
Lloh10:
	ldr	x21, [x21, _dmdata_dolby_vision@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w20
	cset	w4, eq
	mov	x2, x19
	bl	_REG_UPDATE_2
Lloh11:
	adrp	x8, _dmdata_dp@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dmdata_dp@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.2:
Lloh14:
	adrp	x8, _DP_SEC_METADATA_TRANSMISSION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DP_SEC_METADATA_TRANSMISSION@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _DP_SEC_METADATA_PACKET_ENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DP_SEC_METADATA_PACKET_ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _DP_SEC_METADATA_PACKET_LINE_REFERENCE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DP_SEC_METADATA_PACKET_LINE_REFERENCE@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
Lloh23:
	adrp	x8, _DP_SEC_METADATA_PACKET_LINE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DP_SEC_METADATA_PACKET_LINE@GOTPAGEOFF]
Lloh25:
	ldr	w5, [x8]
	mov	w19, #1
	mov	w2, #1
	mov	w4, #0
	mov	w6, #20
	bl	_REG_UPDATE_3
	b	LBB0_7
LBB0_3:
Lloh26:
	adrp	x8, _METADATA_ENGINE_EN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _METADATA_ENGINE_EN@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_REG_UPDATE
Lloh29:
	adrp	x8, _dmdata_dp@GOTPAGE
Lloh30:
	ldr	x8, [x8, _dmdata_dp@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_8
; %bb.4:
	mov	w19, #0
Lloh32:
	adrp	x8, _DP_SEC_METADATA_PACKET_ENABLE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DP_SEC_METADATA_PACKET_ENABLE@GOTPAGEOFF]
Lloh34:
	adrp	x9, _DP_SEC_METADATA_TRANSMISSION@GOTPAGE
Lloh35:
	ldr	x9, [x9, _DP_SEC_METADATA_TRANSMISSION@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh36:
	adrp	x8, _HDMI_METADATA_PACKET_CONTROL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HDMI_METADATA_PACKET_CONTROL@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _HDMI_METADATA_PACKET_ENABLE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HDMI_METADATA_PACKET_ENABLE@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _HDMI_METADATA_PACKET_LINE_REFERENCE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _HDMI_METADATA_PACKET_LINE_REFERENCE@GOTPAGEOFF]
Lloh44:
	ldr	w3, [x8]
Lloh45:
	adrp	x8, _HDMI_METADATA_PACKET_LINE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _HDMI_METADATA_PACKET_LINE@GOTPAGEOFF]
Lloh47:
	ldr	w5, [x8]
	mov	w19, #1
	mov	w2, #1
	mov	w4, #0
	mov	w6, #2
	bl	_REG_UPDATE_3
	ldr	w8, [x21]
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.6:
Lloh48:
	adrp	x8, _DIG_FE_CNTL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _DIG_FE_CNTL@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
Lloh51:
	adrp	x8, _DOLBY_VISION_EN@GOTPAGE
Lloh52:
	ldr	x8, [x8, _DOLBY_VISION_EN@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	w19, #1
	mov	w2, #1
	bl	_REG_UPDATE
LBB0_7:
Lloh54:
	adrp	x8, _METADATA_ENGINE_EN@GOTPAGE
Lloh55:
	ldr	x8, [x8, _METADATA_ENGINE_EN@GOTPAGEOFF]
Lloh56:
	adrp	x9, _DME_CONTROL@GOTPAGE
Lloh57:
	ldr	x9, [x9, _DME_CONTROL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh58:
	adrp	x8, _HDMI_METADATA_PACKET_CONTROL@GOTPAGE
Lloh59:
	ldr	x8, [x8, _HDMI_METADATA_PACKET_CONTROL@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
Lloh61:
	adrp	x8, _HDMI_METADATA_PACKET_ENABLE@GOTPAGE
Lloh62:
	ldr	x8, [x8, _HDMI_METADATA_PACKET_ENABLE@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_REG_UPDATE
	mov	w19, #0
Lloh64:
	adrp	x8, _DOLBY_VISION_EN@GOTPAGE
Lloh65:
	ldr	x8, [x8, _DOLBY_VISION_EN@GOTPAGEOFF]
Lloh66:
	adrp	x9, _DIG_FE_CNTL@GOTPAGE
Lloh67:
	ldr	x9, [x9, _DIG_FE_CNTL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x9]
	ldr	w1, [x8]
	mov	x2, x19
	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
	b	_REG_UPDATE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_DME_CONTROL,4,2                ; @DME_CONTROL
	.comm	_METADATA_HUBP_REQUESTOR_ID,4,2 ; @METADATA_HUBP_REQUESTOR_ID
	.comm	_METADATA_STREAM_TYPE,4,2       ; @METADATA_STREAM_TYPE
	.comm	_dmdata_dolby_vision,4,2        ; @dmdata_dolby_vision
	.comm	_dmdata_dp,4,2                  ; @dmdata_dp
	.comm	_DP_SEC_METADATA_TRANSMISSION,4,2 ; @DP_SEC_METADATA_TRANSMISSION
	.comm	_DP_SEC_METADATA_PACKET_ENABLE,4,2 ; @DP_SEC_METADATA_PACKET_ENABLE
	.comm	_DP_SEC_METADATA_PACKET_LINE_REFERENCE,4,2 ; @DP_SEC_METADATA_PACKET_LINE_REFERENCE
	.comm	_DP_SEC_METADATA_PACKET_LINE,4,2 ; @DP_SEC_METADATA_PACKET_LINE
	.comm	_HDMI_METADATA_PACKET_CONTROL,4,2 ; @HDMI_METADATA_PACKET_CONTROL
	.comm	_HDMI_METADATA_PACKET_ENABLE,4,2 ; @HDMI_METADATA_PACKET_ENABLE
	.comm	_HDMI_METADATA_PACKET_LINE_REFERENCE,4,2 ; @HDMI_METADATA_PACKET_LINE_REFERENCE
	.comm	_HDMI_METADATA_PACKET_LINE,4,2  ; @HDMI_METADATA_PACKET_LINE
	.comm	_DIG_FE_CNTL,4,2                ; @DIG_FE_CNTL
	.comm	_DOLBY_VISION_EN,4,2            ; @DOLBY_VISION_EN
	.comm	_METADATA_ENGINE_EN,4,2         ; @METADATA_ENGINE_EN
.subsections_via_symbols
