	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dal_ddc_service_read_scdc_data ## -- Begin function dal_ddc_service_read_scdc_data
	.p2align	4, 0x90
_dal_ddc_service_read_scdc_data:        ## @dal_ddc_service_read_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_HDMI_SCDC_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_HDMI_SCDC_TMDS_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	$0, -32(%rbp)
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %r8
	movl	%ebx, %esi
	movl	$4, %ecx
	movl	$4, %r9d
	callq	_dal_ddc_service_query_ddc_data
	testb	$1, -32(%rbp)
	je	LBB0_2
## %bb.1:
	movl	$0, -36(%rbp)
	movq	_HDMI_SCDC_SCRAMBLER_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	leaq	-28(%rbp), %r15
	leaq	-36(%rbp), %r8
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	$4, %ecx
	movl	$4, %r9d
	callq	_dal_ddc_service_query_ddc_data
	movq	_HDMI_SCDC_STATUS_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	$4, %ecx
	xorl	%r8d, %r8d
	movl	$8, %r9d
	callq	_dal_ddc_service_query_ddc_data
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_SCDC_ADDRESS,4,2          ## @HDMI_SCDC_ADDRESS
	.comm	_HDMI_SCDC_TMDS_CONFIG,4,2      ## @HDMI_SCDC_TMDS_CONFIG
	.comm	_HDMI_SCDC_SCRAMBLER_STATUS,4,2 ## @HDMI_SCDC_SCRAMBLER_STATUS
	.comm	_HDMI_SCDC_STATUS_FLAGS,4,2     ## @HDMI_SCDC_STATUS_FLAGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dal_ddc_service_read_scdc_data ; -- Begin function dal_ddc_service_read_scdc_data
	.p2align	2
_dal_ddc_service_read_scdc_data:        ; @dal_ddc_service_read_scdc_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	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_TMDS_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_SCDC_TMDS_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
	add	x2, sp, #12
	add	x4, sp, #8
	mov	x1, x20
	mov	w3, #4
	mov	w5, #4
	bl	_dal_ddc_service_query_ddc_data
	ldrb	w8, [sp, #8]
	tbz	w8, #0, LBB0_2
; %bb.1:
	str	wzr, [sp, #4]
Lloh6:
	adrp	x8, _HDMI_SCDC_SCRAMBLER_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDMI_SCDC_SCRAMBLER_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	add	x2, sp, #12
	add	x4, sp, #4
	mov	x0, x19
	mov	x1, x20
	mov	w3, #4
	mov	w5, #4
	bl	_dal_ddc_service_query_ddc_data
Lloh9:
	adrp	x8, _HDMI_SCDC_STATUS_FLAGS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDMI_SCDC_STATUS_FLAGS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w3, #4
	mov	x4, #0
	mov	w5, #8
	bl	_dal_ddc_service_query_ddc_data
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_SCDC_ADDRESS,4,2          ; @HDMI_SCDC_ADDRESS
	.comm	_HDMI_SCDC_TMDS_CONFIG,4,2      ; @HDMI_SCDC_TMDS_CONFIG
	.comm	_HDMI_SCDC_SCRAMBLER_STATUS,4,2 ; @HDMI_SCDC_SCRAMBLER_STATUS
	.comm	_HDMI_SCDC_STATUS_FLAGS,4,2     ; @HDMI_SCDC_STATUS_FLAGS
.subsections_via_symbols
