	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_stream_signal           ## -- Begin function update_stream_signal
	.p2align	4, 0x90
_update_stream_signal:                  ## @update_stream_signal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rdi
	movq	_SIGNAL_TYPE_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_2
## %bb.1:
	movq	24(%rbx), %rax
	movq	(%rax), %rdi
LBB0_2:
	movq	%rdi, (%rbx)
	callq	_dc_is_dvi_signal
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.4:
	movslq	8(%rbx), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movq	_TMDS_MAX_PIXEL_CLOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_7
## %bb.5:
	movq	(%r14), %rax
	movq	_SIGNAL_TYPE_DVI_SINGLE_LINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_7:
	movq	_SIGNAL_TYPE_DVI_SINGLE_LINK@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_SIGNAL_TYPE_DVI_DUAL_LINK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGNAL_TYPE_NONE,8,3           ## @SIGNAL_TYPE_NONE
	.comm	_TMDS_MAX_PIXEL_CLOCK,4,2       ## @TMDS_MAX_PIXEL_CLOCK
	.comm	_SIGNAL_TYPE_DVI_SINGLE_LINK,8,3 ## @SIGNAL_TYPE_DVI_SINGLE_LINK
	.comm	_SIGNAL_TYPE_DVI_DUAL_LINK,8,3  ## @SIGNAL_TYPE_DVI_DUAL_LINK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_stream_signal           ; -- Begin function update_stream_signal
	.p2align	2
_update_stream_signal:                  ; @update_stream_signal
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x1]
Lloh0:
	adrp	x8, _SIGNAL_TYPE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGNAL_TYPE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
LBB0_2:
	str	x0, [x19]
	bl	_dc_is_dvi_signal
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.4:
	ldrsw	x8, [x19, #8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
Lloh3:
	adrp	x10, _TMDS_MAX_PIXEL_CLOCK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TMDS_MAX_PIXEL_CLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	add	w8, w8, w9
	cmp	w8, w10
	b.le	LBB0_6
; %bb.5:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _SIGNAL_TYPE_DVI_SINGLE_LINK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SIGNAL_TYPE_DVI_SINGLE_LINK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_6:
Lloh9:
	adrp	x8, _SIGNAL_TYPE_DVI_SINGLE_LINK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIGNAL_TYPE_DVI_SINGLE_LINK@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh11:
	adrp	x8, _SIGNAL_TYPE_DVI_DUAL_LINK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIGNAL_TYPE_DVI_DUAL_LINK@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGNAL_TYPE_NONE,8,3           ; @SIGNAL_TYPE_NONE
	.comm	_TMDS_MAX_PIXEL_CLOCK,4,2       ; @TMDS_MAX_PIXEL_CLOCK
	.comm	_SIGNAL_TYPE_DVI_SINGLE_LINK,8,3 ; @SIGNAL_TYPE_DVI_SINGLE_LINK
	.comm	_SIGNAL_TYPE_DVI_DUAL_LINK,8,3  ; @SIGNAL_TYPE_DVI_DUAL_LINK
.subsections_via_symbols
