	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv748x_hdmi_read_pixelclock
_adv748x_hdmi_read_pixelclock:          ## @adv748x_hdmi_read_pixelclock
	.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	%rdi, %rbx
	movq	_ADV748X_HDMI_TMDS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hdmi_read
	movl	%eax, %r14d
	movq	_ADV748X_HDMI_TMDS_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hdmi_read
	testl	%r14d, %r14d
	js	LBB0_2
## %bb.1:
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	addl	%r14d, %r14d
	movl	%eax, %ecx
	shrl	$7, %ecx
	orl	%r14d, %ecx
	imull	$1000000, %ecx, %ecx            ## imm = 0xF4240
	andl	$127, %eax
	imull	$1000000, %eax, %eax            ## imm = 0xF4240
	shrl	$7, %eax
	addl	%ecx, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV748X_HDMI_TMDS_1,4,2        ## @ADV748X_HDMI_TMDS_1
	.comm	_ADV748X_HDMI_TMDS_2,4,2        ## @ADV748X_HDMI_TMDS_2
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_adv748x_hdmi_read_pixelclock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv748x_hdmi_read_pixelclock
_adv748x_hdmi_read_pixelclock:          ; @adv748x_hdmi_read_pixelclock
	.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, x0
Lloh0:
	adrp	x8, _ADV748X_HDMI_TMDS_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADV748X_HDMI_TMDS_1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_hdmi_read
	mov	x19, x0
Lloh3:
	adrp	x8, _ADV748X_HDMI_TMDS_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADV748X_HDMI_TMDS_2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hdmi_read
	tbnz	w19, #31, LBB0_3
; %bb.1:
	tbnz	w0, #31, LBB0_3
; %bb.2:
	lsr	w8, w0, #7
	orr	w8, w8, w19, lsl #1
	mov	w9, #16960
	movk	w9, #15, lsl #16
	mul	w8, w8, w9
	and	w10, w0, #0x7f
	mul	w9, w10, w9
	add	w0, w8, w9, lsr #7
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _ENODATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV748X_HDMI_TMDS_1,4,2        ; @ADV748X_HDMI_TMDS_1
	.comm	_ADV748X_HDMI_TMDS_2,4,2        ; @ADV748X_HDMI_TMDS_2
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_adv748x_hdmi_read_pixelclock
.subsections_via_symbols
