	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_hdmi_handle_sink_scrambling ## -- Begin function intel_hdmi_handle_sink_scrambling
	.p2align	4, 0x90
_intel_hdmi_handle_sink_scrambling:     ## @intel_hdmi_handle_sink_scrambling
	.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, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_enc_to_intel_hdmi
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_intel_gmbus_get_adapter
	cmpl	$0, 8(%r13)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %ebx
	movl	%r14d, %edi
	callq	_yesno
	testl	%r15d, %r15d
	movl	$10, %ecx
	movl	$40, %r8d
	cmovel	%ecx, %r8d
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_DRM_DEBUG_KMS
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_drm_scdc_set_high_tmds_clock_ratio
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_drm_scdc_set_scrambling
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	jmp	LBB0_5
LBB0_1:
	movl	$1, %eax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[CONNECTOR:%d:%s] scrambling=%s, TMDS bit clock ratio=1/%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_hdmi_handle_sink_scrambling ; -- Begin function intel_hdmi_handle_sink_scrambling
	.p2align	2
_intel_hdmi_handle_sink_scrambling:     ; @intel_hdmi_handle_sink_scrambling
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_to_i915
	mov	x23, x0
	mov	x0, x21
	bl	_enc_to_intel_hdmi
	ldr	w1, [x0]
	mov	x0, x23
	bl	_intel_gmbus_get_adapter
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x21, x0
	ldp	w22, w23, [x22]
	mov	x0, x19
	bl	_yesno
	mov	x3, x0
	mov	w8, #40
	mov	w9, #10
	cmp	w20, #0
	csel	w4, w9, w8, eq
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	bl	_DRM_DEBUG_KMS
	mov	x0, x21
	mov	x1, x20
	bl	_drm_scdc_set_high_tmds_clock_ratio
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	bl	_drm_scdc_set_scrambling
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_4
LBB0_3:
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[CONNECTOR:%d:%s] scrambling=%s, TMDS bit clock ratio=1/%d\n"

.subsections_via_symbols
