	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enc2_stream_encoder_dp_unblank ## -- Begin function enc2_stream_encoder_dp_unblank
	.p2align	4, 0x90
_enc2_stream_encoder_dp_unblank:        ## @enc2_stream_encoder_dp_unblank
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_DCN10STRENC_FROM_STRENC
	movq	8(%rbx), %rax
	movq	_LINK_RATE_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.1:
	leaq	16(%rbx), %rdi
	callq	_is_two_pixels_per_containter
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	xorl	%r14d, %r14d
	cmpl	$2, (%rbx)
	jl	LBB0_4
LBB0_3:
	movl	$1, %r14d
LBB0_4:
	movslq	16(%rbx), %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	shrq	$34, %rdi
	addl	%eax, %edi
	shll	$15, %edi
	movq	_LINK_RATE_REF_FREQ_IN_KHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	8(%rbx), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_div_u64
	movl	%eax, %ebx
	movq	_DP_VID_TIMING@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_DP_VID_M_N_GEN_EN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_REG_UPDATE
	movq	_DP_VID_N@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_REG_UPDATE
	movq	_DP_VID_M@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movl	%ebx, %edx
	callq	_REG_UPDATE
	movl	(%r15), %edi
	movl	(%r12), %esi
	movq	_DP_VID_N_MUL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %edx
	movl	%r14d, %r8d
	callq	_REG_UPDATE_2
LBB0_5:
	movq	_DIG_FE_CNTL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_DIG_START@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
	movl	(%r14), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_REG_UPDATE
	movq	_DP_STEER_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DP_STEER_FIFO_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_REG_UPDATE
	movl	$100, %edi
	callq	_udelay
	movq	_DP_VID_STREAM_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DP_VID_STREAM_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_UPDATE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LINK_RATE_UNKNOWN,8,3          ## @LINK_RATE_UNKNOWN
	.comm	_LINK_RATE_REF_FREQ_IN_KHZ,4,2  ## @LINK_RATE_REF_FREQ_IN_KHZ
	.comm	_DP_VID_TIMING,4,2              ## @DP_VID_TIMING
	.comm	_DP_VID_M_N_GEN_EN,4,2          ## @DP_VID_M_N_GEN_EN
	.comm	_DP_VID_N,4,2                   ## @DP_VID_N
	.comm	_DP_VID_M,4,2                   ## @DP_VID_M
	.comm	_DP_VID_N_MUL,4,2               ## @DP_VID_N_MUL
	.comm	_DIG_FE_CNTL,4,2                ## @DIG_FE_CNTL
	.comm	_DIG_START,4,2                  ## @DIG_START
	.comm	_DP_STEER_FIFO,4,2              ## @DP_STEER_FIFO
	.comm	_DP_STEER_FIFO_RESET,4,2        ## @DP_STEER_FIFO_RESET
	.comm	_DP_VID_STREAM_CNTL,4,2         ## @DP_VID_STREAM_CNTL
	.comm	_DP_VID_STREAM_ENABLE,4,2       ## @DP_VID_STREAM_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enc2_stream_encoder_dp_unblank ; -- Begin function enc2_stream_encoder_dp_unblank
	.p2align	2
_enc2_stream_encoder_dp_unblank:        ; @enc2_stream_encoder_dp_unblank
	.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, x1
	bl	_DCN10STRENC_FROM_STRENC
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _LINK_RATE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LINK_RATE_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.1:
	add	x0, x20, #16
	bl	_is_two_pixels_per_containter
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_4
LBB0_3:
	mov	w19, #1
	b	LBB0_5
LBB0_4:
	mov	w19, #0
LBB0_5:
	ldrsw	x8, [x20, #16]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	lsr	x8, x8, #34
	add	w8, w8, w9
	lsl	w0, w8, #15
	ldr	w8, [x20, #8]
Lloh3:
	adrp	x9, _LINK_RATE_REF_FREQ_IN_KHZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LINK_RATE_REF_FREQ_IN_KHZ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mul	w1, w9, w8
	bl	_div_u64
	mov	x20, x0
Lloh6:
	adrp	x21, _DP_VID_TIMING@GOTPAGE
Lloh7:
	ldr	x21, [x21, _DP_VID_TIMING@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh8:
	adrp	x22, _DP_VID_M_N_GEN_EN@GOTPAGE
Lloh9:
	ldr	x22, [x22, _DP_VID_M_N_GEN_EN@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_REG_UPDATE
Lloh10:
	adrp	x8, _DP_VID_N@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DP_VID_N@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x0
	mov	w2, #32768
	bl	_REG_UPDATE
Lloh13:
	adrp	x8, _DP_VID_M@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DP_VID_M@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x20
	bl	_REG_UPDATE
	ldr	w0, [x21]
	ldr	w1, [x22]
Lloh16:
	adrp	x8, _DP_VID_N_MUL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DP_VID_N_MUL@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	w2, #1
	mov	x4, x19
	bl	_REG_UPDATE_2
LBB0_6:
Lloh19:
	adrp	x19, _DIG_FE_CNTL@GOTPAGE
Lloh20:
	ldr	x19, [x19, _DIG_FE_CNTL@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh21:
	adrp	x20, _DIG_START@GOTPAGE
Lloh22:
	ldr	x20, [x20, _DIG_START@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #1
	bl	_REG_UPDATE
	ldr	w0, [x19]
	ldr	w1, [x20]
	mov	w2, #0
	bl	_REG_UPDATE
Lloh23:
	adrp	x8, _DP_STEER_FIFO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DP_STEER_FIFO@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _DP_STEER_FIFO_RESET@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DP_STEER_FIFO_RESET@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_REG_UPDATE
	mov	w0, #100
	bl	_udelay
Lloh29:
	adrp	x8, _DP_VID_STREAM_CNTL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DP_VID_STREAM_CNTL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _DP_VID_STREAM_ENABLE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DP_VID_STREAM_ENABLE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	w2, #1
	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	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_LINK_RATE_UNKNOWN,8,3          ; @LINK_RATE_UNKNOWN
	.comm	_LINK_RATE_REF_FREQ_IN_KHZ,4,2  ; @LINK_RATE_REF_FREQ_IN_KHZ
	.comm	_DP_VID_TIMING,4,2              ; @DP_VID_TIMING
	.comm	_DP_VID_M_N_GEN_EN,4,2          ; @DP_VID_M_N_GEN_EN
	.comm	_DP_VID_N,4,2                   ; @DP_VID_N
	.comm	_DP_VID_M,4,2                   ; @DP_VID_M
	.comm	_DP_VID_N_MUL,4,2               ; @DP_VID_N_MUL
	.comm	_DIG_FE_CNTL,4,2                ; @DIG_FE_CNTL
	.comm	_DIG_START,4,2                  ; @DIG_START
	.comm	_DP_STEER_FIFO,4,2              ; @DP_STEER_FIFO
	.comm	_DP_STEER_FIFO_RESET,4,2        ; @DP_STEER_FIFO_RESET
	.comm	_DP_VID_STREAM_CNTL,4,2         ; @DP_VID_STREAM_CNTL
	.comm	_DP_VID_STREAM_ENABLE,4,2       ; @DP_VID_STREAM_ENABLE
.subsections_via_symbols
