	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_set_vclk
_dw_hdmi_set_vclk:                      ## @dw_hdmi_set_vclk
	.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
	movq	%rsi, %r15
	movq	(%rdi), %r14
	movq	%rsi, %rdi
	callq	_drm_match_cea_mode
	movl	(%r15), %r12d
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_DRM_MODE_FLAG_DBLCLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%r15), %ecx
	setne	%cl
	shll	%cl, %r12d
	movl	%eax, %edi
	callq	_meson_venc_hdmi_venc_repeat
	testq	%rax, %rax
	setne	%cl
	movl	%r12d, %ebx
	shll	%cl, %ebx
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_max
	movl	%eax, %r13d
	movq	_DRM_MODE_FLAG_DBLCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r15), %eax
	setne	%cl
	shrl	%cl, %ebx
	movl	(%r14), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_DRM_DEBUG_DRIVER
	movq	_MESON_VCLK_TARGET_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %r9d
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	jmp	LBB0_2
LBB0_1:
	movq	_MESON_VCLK_TARGET_DMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%r12d, %ecx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_meson_vclk_setup               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MESON_VCLK_TARGET_DMT,4,2      ## @MESON_VCLK_TARGET_DMT
	.comm	_DRM_MODE_FLAG_DBLCLK,4,2       ## @DRM_MODE_FLAG_DBLCLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vclk:%d venc=%d hdmi=%d enci=%d\n"

	.comm	_MESON_VCLK_TARGET_HDMI,4,2     ## @MESON_VCLK_TARGET_HDMI
	.no_dead_strip	_dw_hdmi_set_vclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_hdmi_set_vclk
_dw_hdmi_set_vclk:                      ; @dw_hdmi_set_vclk
	.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	x20, x1
	ldr	x19, [x0]
	mov	x0, x1
	bl	_drm_match_cea_mode
	ldr	w2, [x20]
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x20, #4]
Lloh0:
	adrp	x24, _DRM_MODE_FLAG_DBLCLK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DRM_MODE_FLAG_DBLCLK@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	cset	w8, ne
	lsl	w21, w2, w8
	bl	_meson_venc_hdmi_venc_repeat
	cmp	x0, #0
	cset	w8, ne
	lsl	w22, w21, w8
	mov	x0, x22
	mov	x1, x21
	bl	_max
	mov	x23, x0
	ldr	w8, [x20, #4]
	ldr	w9, [x24]
	tst	w9, w8
	cset	w8, ne
	lsr	w20, w22, w8
	ldr	w4, [x19]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x20
	mov	x3, x21
	bl	_DRM_DEBUG_DRIVER
Lloh4:
	adrp	x8, _MESON_VCLK_TARGET_HDMI@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MESON_VCLK_TARGET_HDMI@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w5, [x19]
	mov	x0, x19
	mov	x2, x23
	mov	x3, x20
	mov	x4, x21
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _MESON_VCLK_TARGET_DMT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MESON_VCLK_TARGET_DMT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x3, x2
	mov	x4, x2
	mov	w5, #0
LBB0_3:
	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
	b	_meson_vclk_setup
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MESON_VCLK_TARGET_DMT,4,2      ; @MESON_VCLK_TARGET_DMT
	.comm	_DRM_MODE_FLAG_DBLCLK,4,2       ; @DRM_MODE_FLAG_DBLCLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vclk:%d venc=%d hdmi=%d enci=%d\n"

	.comm	_MESON_VCLK_TARGET_HDMI,4,2     ; @MESON_VCLK_TARGET_HDMI
	.no_dead_strip	_dw_hdmi_set_vclk
.subsections_via_symbols
