	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_hdmi_phy_setup_mode
_meson_hdmi_phy_setup_mode:             ## @meson_hdmi_phy_setup_mode
	.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, %rbx
	movq	(%rdi), %r14
	movl	(%rsi), %r15d
	leaq	L_.str(%rip), %rsi
	callq	_dw_hdmi_is_compatible
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dw_hdmi_is_compatible
	testq	%rax, %rax
	je	LBB0_9
LBB0_2:
	cmpl	$371250, %r15d                  ## imm = 0x5AA32
	jb	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	movq	_HHI_HDMI_PHY_CNTL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$859648642, %edx                ## imm = 0x333D3282
	callq	_regmap_write
	movl	$557199707, %edx                ## imm = 0x2136315B
	movq	_HHI_HDMI_PHY_CNTL3@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_4:
	cmpl	$297000, %r15d                  ## imm = 0x48828
	jb	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	movq	_HHI_HDMI_PHY_CNTL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$858796930, %edx                ## imm = 0x33303382
	callq	_regmap_write
	movl	$540422491, %edx                ## imm = 0x2036315B
	movq	_HHI_HDMI_PHY_CNTL3@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_6:
	movl	(%r14), %edi
	movq	_HHI_HDMI_PHY_CNTL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$148500, %r15d                  ## imm = 0x24414
	jb	LBB0_8
## %bb.7:
	movl	$858796898, %edx                ## imm = 0x33303362
	callq	_regmap_write
	movl	$538325339, %edx                ## imm = 0x2016315B
	movq	_HHI_HDMI_PHY_CNTL3@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dw_hdmi_is_compatible
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	cmpl	$371250, %r15d                  ## imm = 0x5AA32
	jb	LBB0_12
## %bb.11:
	movl	(%r14), %edi
	movq	_HHI_HDMI_PHY_CNTL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$859124293, %edx                ## imm = 0x33353245
	callq	_regmap_write
	movl	$553652571, %edx                ## imm = 0x2100115B
	movq	_HHI_HDMI_PHY_CNTL3@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_8:
	movl	$861946178, %edx                ## imm = 0x33604142
	callq	_regmap_write
	movl	$1454427, %edx                  ## imm = 0x16315B
	movq	_HHI_HDMI_PHY_CNTL3@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_15:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dw_hdmi_is_compatible
	testq	%rax, %rax
	je	LBB0_24
## %bb.16:
	cmpl	$371250, %r15d                  ## imm = 0x5AA32
	jb	LBB0_18
## %bb.17:
	movl	(%r14), %edi
	movq	_HHI_HDMI_PHY_CNTL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$938173892, %edx                ## imm = 0x37EB65C4
	callq	_regmap_write
	movl	(%r14), %edi
	movq	_HHI_HDMI_PHY_CNTL3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$716242747, %edx                ## imm = 0x2AB0FF3B
	callq	_regmap_write
	movl	$2059, %edx                     ## imm = 0x80B
	jmp	LBB0_22
LBB0_12:
	movl	(%r14), %edi
	movq	_HHI_HDMI_PHY_CNTL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$297000, %r15d                  ## imm = 0x48828
	jb	LBB0_14
## %bb.13:
	movl	$862143107, %edx                ## imm = 0x33634283
	callq	_regmap_write
	movl	$-1342172837, %edx              ## imm = 0xB000115B
	movq	_HHI_HDMI_PHY_CNTL3@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_14:
	movl	$862134562, %edx                ## imm = 0x33632122
	callq	_regmap_write
	movl	$536875355, %edx                ## imm = 0x2000115B
	movq	_HHI_HDMI_PHY_CNTL3@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	(%r14), %edi
	movq	_HHI_HDMI_PHY_CNTL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$297000, %r15d                  ## imm = 0x48828
	jb	LBB0_20
## %bb.19:
	movl	$871064162, %edx                ## imm = 0x33EB6262
	jmp	LBB0_21
LBB0_20:
	movl	$871055938, %edx                ## imm = 0x33EB4242
LBB0_21:
	callq	_regmap_write
	movl	(%r14), %edi
	movq	_HHI_HDMI_PHY_CNTL3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$716242747, %edx                ## imm = 0x2AB0FF3B
	callq	_regmap_write
	movl	$3, %edx
LBB0_22:
	movq	_HHI_HDMI_PHY_CNTL5@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%r14), %edi
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"amlogic,meson-gxl-dw-hdmi"

L_.str.1:                               ## @.str.1
	.asciz	"amlogic,meson-gxm-dw-hdmi"

	.comm	_HHI_HDMI_PHY_CNTL0,4,2         ## @HHI_HDMI_PHY_CNTL0
	.comm	_HHI_HDMI_PHY_CNTL3,4,2         ## @HHI_HDMI_PHY_CNTL3
L_.str.2:                               ## @.str.2
	.asciz	"amlogic,meson-gxbb-dw-hdmi"

L_.str.3:                               ## @.str.3
	.asciz	"amlogic,meson-g12a-dw-hdmi"

	.comm	_HHI_HDMI_PHY_CNTL5,4,2         ## @HHI_HDMI_PHY_CNTL5
	.no_dead_strip	_meson_hdmi_phy_setup_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_hdmi_phy_setup_mode
_meson_hdmi_phy_setup_mode:             ; @meson_hdmi_phy_setup_mode
	.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
	ldr	x20, [x0]
	ldr	w21, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dw_hdmi_is_compatible
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dw_hdmi_is_compatible
	cbz	x0, LBB0_12
LBB0_2:
	mov	w8, #43569
	movk	w8, #5, lsl #16
	cmp	w21, w8
	b.ls	LBB0_4
; %bb.3:
	ldr	w0, [x20]
Lloh4:
	adrp	x8, _HHI_HDMI_PHY_CNTL0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HHI_HDMI_PHY_CNTL0@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w2, #12930
	movk	w2, #13117, lsl #16
	bl	_regmap_write
	mov	w8, #8192
	movk	w8, #54, lsl #16
	mov	w9, #4443
	movk	w9, #8448, lsl #16
	b	LBB0_9
LBB0_4:
	mov	w8, #34855
	movk	w8, #4, lsl #16
	cmp	w21, w8
	b.ls	LBB0_6
; %bb.5:
	ldr	w0, [x20]
Lloh7:
	adrp	x8, _HHI_HDMI_PHY_CNTL0@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HHI_HDMI_PHY_CNTL0@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w8, #13154
	movk	w8, #13104, lsl #16
	add	w2, w8, #32
	bl	_regmap_write
	mov	w8, #8192
	movk	w8, #54, lsl #16
	b	LBB0_8
LBB0_6:
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _HHI_HDMI_PHY_CNTL0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HHI_HDMI_PHY_CNTL0@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w8, #17428
	movk	w8, #2, lsl #16
	cmp	w21, w8
	b.lo	LBB0_15
; %bb.7:
	mov	w2, #13154
	movk	w2, #13104, lsl #16
	bl	_regmap_write
	mov	w8, #8192
	movk	w8, #22, lsl #16
LBB0_8:
	mov	w9, #4443
	movk	w9, #8192, lsl #16
LBB0_9:
	orr	w19, w9, w8
LBB0_10:
Lloh13:
	adrp	x8, _HHI_HDMI_PHY_CNTL3@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HHI_HDMI_PHY_CNTL3@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x20]
	ldr	w1, [x8]
	mov	x2, x19
	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	_regmap_write
LBB0_12:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dw_hdmi_is_compatible
	cbz	x0, LBB0_16
; %bb.13:
	mov	w8, #43569
	movk	w8, #5, lsl #16
	cmp	w21, w8
	b.ls	LBB0_19
; %bb.14:
	mov	w19, #4443
	movk	w19, #8448, lsl #16
	ldr	w0, [x20]
Lloh17:
	adrp	x8, _HHI_HDMI_PHY_CNTL0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HHI_HDMI_PHY_CNTL0@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w2, #12869
	movk	w2, #13109, lsl #16
	b	LBB0_22
LBB0_15:
	mov	w2, #16706
	movk	w2, #13152, lsl #16
	bl	_regmap_write
	mov	w19, #12635
	movk	w19, #22, lsl #16
	b	LBB0_10
LBB0_16:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dw_hdmi_is_compatible
	cbz	x0, LBB0_23
; %bb.17:
	mov	w8, #43569
	movk	w8, #5, lsl #16
	cmp	w21, w8
	b.ls	LBB0_24
; %bb.18:
	ldr	w0, [x20]
Lloh22:
	adrp	x8, _HHI_HDMI_PHY_CNTL0@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HHI_HDMI_PHY_CNTL0@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	w2, #26052
	movk	w2, #14315, lsl #16
	bl	_regmap_write
	ldr	w0, [x20]
Lloh25:
	adrp	x8, _HHI_HDMI_PHY_CNTL3@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HHI_HDMI_PHY_CNTL3@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	w2, #65339
	movk	w2, #10928, lsl #16
	bl	_regmap_write
	mov	w19, #2059
	b	LBB0_28
LBB0_19:
	ldr	w0, [x20]
Lloh28:
	adrp	x8, _HHI_HDMI_PHY_CNTL0@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HHI_HDMI_PHY_CNTL0@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	w8, #34855
	movk	w8, #4, lsl #16
	cmp	w21, w8
	b.ls	LBB0_21
; %bb.20:
	mov	w2, #17027
	movk	w2, #13155, lsl #16
	bl	_regmap_write
	mov	w19, #4443
	movk	w19, #45056, lsl #16
	b	LBB0_10
LBB0_21:
	mov	w19, #4443
	movk	w19, #8192, lsl #16
	mov	w2, #8482
	movk	w2, #13155, lsl #16
LBB0_22:
	bl	_regmap_write
	b	LBB0_10
LBB0_23:
	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
LBB0_24:
	ldr	w0, [x20]
Lloh31:
	adrp	x8, _HHI_HDMI_PHY_CNTL0@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HHI_HDMI_PHY_CNTL0@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	w8, #34855
	movk	w8, #4, lsl #16
	cmp	w21, w8
	b.ls	LBB0_26
; %bb.25:
	mov	w2, #25186
	b	LBB0_27
LBB0_26:
	mov	w2, #16962
LBB0_27:
	movk	w2, #13291, lsl #16
	bl	_regmap_write
	ldr	w0, [x20]
Lloh34:
	adrp	x8, _HHI_HDMI_PHY_CNTL3@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HHI_HDMI_PHY_CNTL3@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	w2, #65339
	movk	w2, #10928, lsl #16
	bl	_regmap_write
	mov	w19, #3
LBB0_28:
Lloh37:
	adrp	x8, _HHI_HDMI_PHY_CNTL5@GOTPAGE
Lloh38:
	ldr	x8, [x8, _HHI_HDMI_PHY_CNTL5@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"amlogic,meson-gxl-dw-hdmi"

l_.str.1:                               ; @.str.1
	.asciz	"amlogic,meson-gxm-dw-hdmi"

	.comm	_HHI_HDMI_PHY_CNTL0,4,2         ; @HHI_HDMI_PHY_CNTL0
	.comm	_HHI_HDMI_PHY_CNTL3,4,2         ; @HHI_HDMI_PHY_CNTL3
l_.str.2:                               ; @.str.2
	.asciz	"amlogic,meson-gxbb-dw-hdmi"

l_.str.3:                               ; @.str.3
	.asciz	"amlogic,meson-g12a-dw-hdmi"

	.comm	_HHI_HDMI_PHY_CNTL5,4,2         ; @HHI_HDMI_PHY_CNTL5
	.no_dead_strip	_meson_hdmi_phy_setup_mode
.subsections_via_symbols
