	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk3066_hdmi_config_phy
_rk3066_hdmi_config_phy:                ## @rk3066_hdmi_config_phy
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_HDMI_DEEP_COLOR_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$34, %r14d
	movl	$34, %edx
	callq	_hdmi_writeb
	movl	(%rbx), %eax
	cmpl	$100000000, %eax                ## imm = 0x5F5E100
	jle	LBB0_2
## %bb.1:
	movl	$161, %r15d
	movl	$218, %r12d
	movl	$14, %edx
	jmp	LBB0_3
LBB0_2:
	xorl	%r15d, %r15d
	cmpl	$50000001, %eax                 ## imm = 0x2FAF081
	setge	%r15b
	leal	2(,%r15,4), %edx
	leal	194(,%r15,8), %r12d
	orl	$162, %r15d
	movl	$32, %r14d
LBB0_3:
	movq	%rbx, %rdi
	movl	$344, %esi                      ## imm = 0x158
	callq	_rk3066_hdmi_phy_write
	movq	%rbx, %rdi
	movl	$348, %esi                      ## imm = 0x15C
	xorl	%edx, %edx
	callq	_rk3066_hdmi_phy_write
	movq	%rbx, %rdi
	movl	$352, %esi                      ## imm = 0x160
	movl	$96, %edx
	callq	_rk3066_hdmi_phy_write
	movq	%rbx, %rdi
	movl	$356, %esi                      ## imm = 0x164
	xorl	%edx, %edx
	callq	_rk3066_hdmi_phy_write
	movq	%rbx, %rdi
	movl	$360, %esi                      ## imm = 0x168
	movl	%r12d, %edx
	callq	_rk3066_hdmi_phy_write
	movq	%rbx, %rdi
	movl	$364, %esi                      ## imm = 0x16C
	movl	%r15d, %edx
	callq	_rk3066_hdmi_phy_write
	movq	%rbx, %rdi
	movl	$368, %esi                      ## imm = 0x170
	movl	$14, %edx
	callq	_rk3066_hdmi_phy_write
	movq	%rbx, %rdi
	movl	$372, %esi                      ## imm = 0x174
	movl	%r14d, %edx
	callq	_rk3066_hdmi_phy_write
	movq	%rbx, %rdi
	movl	$376, %esi                      ## imm = 0x178
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rk3066_hdmi_phy_write          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_DEEP_COLOR_MODE,4,2       ## @HDMI_DEEP_COLOR_MODE
	.no_dead_strip	_rk3066_hdmi_config_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk3066_hdmi_config_phy
_rk3066_hdmi_config_phy:                ; @rk3066_hdmi_config_phy
	.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
Lloh0:
	adrp	x8, _HDMI_DEEP_COLOR_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_DEEP_COLOR_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w22, #34
	mov	w2, #34
	bl	_hdmi_writeb
	mov	w8, #161
	mov	w9, #218
	ldr	w10, [x19]
	mov	w11, #14
	mov	w12, #57600
	movk	w12, #1525, lsl #16
	mov	w13, #61568
	movk	w13, #762, lsl #16
	mov	w14, #2
	mov	w15, #6
	cmp	w10, w13
	csel	w13, w15, w14, gt
	mov	w14, #194
	mov	w15, #202
	csel	w14, w15, w14, gt
	mov	w15, #162
	cinc	w15, w15, gt
	mov	w16, #32
	cmp	w10, w12
	csel	w2, w11, w13, gt
	csel	w20, w9, w14, gt
	csel	w21, w8, w15, gt
	csel	w22, w22, w16, gt
	mov	x0, x19
	mov	w1, #344
	bl	_rk3066_hdmi_phy_write
	mov	x0, x19
	mov	w1, #348
	mov	w2, #0
	bl	_rk3066_hdmi_phy_write
	mov	x0, x19
	mov	w1, #352
	mov	w2, #96
	bl	_rk3066_hdmi_phy_write
	mov	x0, x19
	mov	w1, #356
	mov	w2, #0
	bl	_rk3066_hdmi_phy_write
	mov	x0, x19
	mov	w1, #360
	mov	x2, x20
	bl	_rk3066_hdmi_phy_write
	mov	x0, x19
	mov	w1, #364
	mov	x2, x21
	bl	_rk3066_hdmi_phy_write
	mov	x0, x19
	mov	w1, #368
	mov	w2, #14
	bl	_rk3066_hdmi_phy_write
	mov	x0, x19
	mov	w1, #372
	mov	x2, x22
	bl	_rk3066_hdmi_phy_write
	mov	x0, x19
	mov	w1, #376
	mov	w2, #0
	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
	b	_rk3066_hdmi_phy_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_DEEP_COLOR_MODE,4,2       ; @HDMI_DEEP_COLOR_MODE
	.no_dead_strip	_rk3066_hdmi_config_phy
.subsections_via_symbols
