	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7604_read_hdmi_pixelclock
_adv7604_read_hdmi_pixelclock:          ## @adv7604_read_hdmi_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$6, %esi
	callq	_hdmi_read
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	$59, %esi
	callq	_hdmi_read
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	js	LBB0_4
## %bb.1:
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	imull	$1000000, %r15d, %ecx           ## imm = 0xF4240
	shrl	$4, %eax
	andl	$3, %eax
	imull	$250000, %eax, %ebx             ## imm = 0x3D090
	addl	%ecx, %ebx
	movq	%r14, %rdi
	callq	_is_hdmi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	$11, %esi
	callq	_hdmi_read
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$6, %ecx
	orl	$8, %ecx
	shll	$3, %ebx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_adv7604_read_hdmi_pixelclock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7604_read_hdmi_pixelclock
_adv7604_read_hdmi_pixelclock:          ; @adv7604_read_hdmi_pixelclock
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	mov	w1, #6
	bl	_hdmi_read
	mov	x21, x0
	mov	x0, x19
	mov	w1, #59
	bl	_hdmi_read
	mov	w20, #0
	tbnz	w21, #31, LBB0_4
; %bb.1:
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w8, #16960
	movk	w8, #15, lsl #16
	mul	w8, w21, w8
	ubfx	w9, w0, #4, #2
	mov	w10, #53392
	movk	w10, #3, lsl #16
	madd	w20, w9, w10, w8
	mov	x0, x19
	bl	_is_hdmi
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #11
	bl	_hdmi_read
	lsr	w8, w0, #4
	and	w8, w8, #0x6
	orr	w8, w8, #0x8
	lsl	w9, w20, #3
	udiv	w20, w9, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_adv7604_read_hdmi_pixelclock
.subsections_via_symbols
