	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dal_ddc_service_write_scdc_data ## -- Begin function dal_ddc_service_write_scdc_data
	.p2align	4, 0x90
_dal_ddc_service_write_scdc_data:       ## @dal_ddc_service_write_scdc_data
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_HDMI_SCDC_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_HDMI_SCDC_SINK_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	$0, -40(%rbp)
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %r8
	movl	%ebx, %esi
	movl	$4, %ecx
	movl	$4, %r9d
	callq	_dal_ddc_service_query_ddc_data
	cmpl	$1, -44(%rbp)
	jne	LBB0_2
## %bb.1:
	movq	_HDMI_SCDC_SOURCE_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	$1, -36(%rbp)
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$8, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_dal_ddc_service_query_ddc_data
LBB0_2:
	movq	_HDMI_SCDC_TMDS_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	cmpl	$340001, %r12d                  ## imm = 0x53021
	jl	LBB0_4
## %bb.3:
	movl	$3, -36(%rbp)
	jmp	LBB0_7
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	movl	$1, -36(%rbp)
	jmp	LBB0_7
LBB0_6:
	movl	$0, -36(%rbp)
LBB0_7:
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$8, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_dal_ddc_service_query_ddc_data
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_SCDC_ADDRESS,4,2          ## @HDMI_SCDC_ADDRESS
	.comm	_HDMI_SCDC_SINK_VERSION,4,2     ## @HDMI_SCDC_SINK_VERSION
	.comm	_HDMI_SCDC_SOURCE_VERSION,4,2   ## @HDMI_SCDC_SOURCE_VERSION
	.comm	_HDMI_SCDC_TMDS_CONFIG,4,2      ## @HDMI_SCDC_TMDS_CONFIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dal_ddc_service_write_scdc_data ; -- Begin function dal_ddc_service_write_scdc_data
	.p2align	2
_dal_ddc_service_write_scdc_data:       ; @dal_ddc_service_write_scdc_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _HDMI_SCDC_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_SCDC_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _HDMI_SCDC_SINK_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_SCDC_SINK_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
	str	xzr, [sp]
	add	x2, sp, #12
	add	x4, sp, #8
	mov	x1, x20
	mov	w3, #4
	mov	w5, #4
	bl	_dal_ddc_service_query_ddc_data
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _HDMI_SCDC_SOURCE_VERSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDMI_SCDC_SOURCE_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w8, w9, [sp]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	mov	w3, #8
	mov	x4, #0
	mov	w5, #0
	bl	_dal_ddc_service_query_ddc_data
LBB0_2:
Lloh9:
	adrp	x8, _HDMI_SCDC_TMDS_CONFIG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDMI_SCDC_TMDS_CONFIG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	w8, #12321
	movk	w8, #5, lsl #16
	cmp	w22, w8
	b.lt	LBB0_4
; %bb.3:
	mov	w8, #3
	str	w8, [sp, #4]
	b	LBB0_7
LBB0_4:
	cbz	w21, LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [sp, #4]
	b	LBB0_7
LBB0_6:
	str	wzr, [sp, #4]
LBB0_7:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	mov	w3, #8
	mov	x4, #0
	mov	w5, #0
	bl	_dal_ddc_service_query_ddc_data
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_SCDC_ADDRESS,4,2          ; @HDMI_SCDC_ADDRESS
	.comm	_HDMI_SCDC_SINK_VERSION,4,2     ; @HDMI_SCDC_SINK_VERSION
	.comm	_HDMI_SCDC_SOURCE_VERSION,4,2   ; @HDMI_SCDC_SOURCE_VERSION
	.comm	_HDMI_SCDC_TMDS_CONFIG,4,2      ; @HDMI_SCDC_TMDS_CONFIG
.subsections_via_symbols
