	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mtk_hdmi_phy_probe
LCPI0_0:
	.long	48                              ## 0x30
	.long	48                              ## 0x30
	.long	48                              ## 0x30
	.long	48                              ## 0x30
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mtk_hdmi_phy_probe:                    ## @mtk_hdmi_phy_probe
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$1, -64(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	$0, -48(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 56(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	56(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	movl	%eax, %edx
LBB0_7:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_24:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	-48(%rbp), %r12
	movq	%rbx, %rdi
	callq	___clk_get_name
	movq	%rax, -40(%rbp)
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	callq	_of_property_read_string
	testl	%eax, %eax
	js	LBB0_9
## %bb.11:
	movq	%r14, 48(%r15)
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 40(%r15)
	leaq	-64(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mtk_hdmi_phy_clk_get_data
	leaq	32(%r15), %rsi
	movq	%rbx, 32(%r15)
	movq	%r14, %rdi
	callq	_devm_clk_register
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	16(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_6
LBB0_9:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
LBB0_10:
	movq	%r14, %rdi
	movl	%ebx, %edx
	jmp	LBB0_7
LBB0_13:
	movl	(%r14), %edi
	leaq	28(%r15), %rdx
	leaq	L_.str.6(%rip), %rsi
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	movl	(%r14), %edi
	movq	%r15, %rdx
	addq	$24, %rdx
	leaq	L_.str.8(%rip), %rsi
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [48,48,48,48]
	movups	%xmm0, (%r15)
	movq	%r15, %rdi
	callq	_mtk_hdmi_phy_dev_get_ops
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_devm_phy_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_19
LBB0_14:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_10
LBB0_16:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_10
LBB0_20:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_phy_set_drvdata
	movq	_of_phy_simple_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_devm_of_phy_provider_register
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.12(%rip), %rsi
LBB0_19:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_PTR_ERR
LBB0_23:
	movl	%eax, %ebx
	jmp	LBB0_24
LBB0_22:
	movl	(%r14), %edi
	movq	_of_clk_src_simple_get@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r15), %rdx
	callq	_of_clk_add_provider
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get memory resource: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"pll_ref"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to get PLL reference clock: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"clock-output-names"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to read clock-output-names: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to register PLL: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"mediatek,ibias"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to get ibias: %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"mediatek,ibias_up"

L_.str.9:                               ## @.str.9
	.asciz	"Failed to get ibias up: %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"Using default TX DRV impedance: 4.2k/36\n"

L_.str.11:                              ## @.str.11
	.asciz	"Failed to create HDMI PHY\n"

	.comm	_of_phy_simple_xlate,4,2        ## @of_phy_simple_xlate
L_.str.12:                              ## @.str.12
	.asciz	"Failed to register HDMI PHY\n"

	.comm	_of_clk_src_simple_get,4,2      ## @of_clk_src_simple_get
	.no_dead_strip	_mtk_hdmi_phy_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_hdmi_phy_probe
_mtk_hdmi_phy_probe:                    ; @mtk_hdmi_phy_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w8, #1
	str	w8, [sp, #16]
	add	x8, sp, #40
	str	x8, [sp, #24]
	str	wzr, [sp, #32]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x20, #56]
	bl	_PTR_ERR
	mov	x20, x0
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_4:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x20, x0
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_12
LBB0_7:
	add	x8, sp, #16
	add	x22, x8, #16
	mov	x0, x21
	bl	___clk_get_name
	str	x0, [sp, #40]
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x22
	bl	_of_property_read_string
	tbnz	w0, #31, LBB0_10
; %bb.8:
	str	x19, [x20, #48]
	mov	x0, x19
	bl	_of_device_get_match_data
	str	x0, [x20, #40]
	add	x22, sp, #16
	add	x1, sp, #16
	mov	x0, x20
	bl	_mtk_hdmi_phy_clk_get_data
	mov	x21, x20
	str	x22, [x21, #32]!
	mov	x0, x19
	mov	x1, x21
	bl	_devm_clk_register
	stur	x0, [x21, #-16]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.9:
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
	mov	x20, x0
	str	x20, [sp]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_10:
	mov	x21, x0
	str	x21, [sp]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
	mov	x20, x21
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	ldr	w0, [x19]
	add	x2, x20, #28
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_17
; %bb.14:
	ldr	w0, [x19]
	add	x2, x20, #24
Lloh23:
	adrp	x1, l_.str.8@PAGE
Lloh24:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_18
; %bb.15:
Lloh25:
	adrp	x1, l_.str.10@PAGE
Lloh26:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	movi.4s	v0, #48
	str	q0, [x20]
	mov	x0, x20
	bl	_mtk_hdmi_phy_dev_get_ops
	mov	x2, x0
	mov	x0, x19
	mov	x1, #0
	bl	_devm_phy_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.16:
Lloh27:
	adrp	x1, l_.str.11@PAGE
Lloh28:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_21
LBB0_17:
	mov	x21, x0
	str	x21, [sp]
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_11
LBB0_18:
	mov	x21, x0
	str	x21, [sp]
Lloh31:
	adrp	x1, l_.str.9@PAGE
Lloh32:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_11
LBB0_19:
	mov	x0, x21
	mov	x1, x20
	bl	_phy_set_drvdata
Lloh33:
	adrp	x8, _of_phy_simple_xlate@GOTPAGE
Lloh34:
	ldr	x8, [x8, _of_phy_simple_xlate@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_of_phy_provider_register
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.20:
Lloh36:
	adrp	x1, l_.str.12@PAGE
Lloh37:
	add	x1, x1, l_.str.12@PAGEOFF
LBB0_21:
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	bl	_PTR_ERR
LBB0_22:
	mov	x20, x0
	b	LBB0_12
LBB0_23:
	ldr	w0, [x19]
Lloh38:
	adrp	x8, _of_clk_src_simple_get@GOTPAGE
Lloh39:
	ldr	x8, [x8, _of_clk_src_simple_get@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	ldr	x2, [x20, #16]
	bl	_of_clk_add_provider
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get memory resource: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"pll_ref"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to get PLL reference clock: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"clock-output-names"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to read clock-output-names: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to register PLL: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"mediatek,ibias"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to get ibias: %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"mediatek,ibias_up"

l_.str.9:                               ; @.str.9
	.asciz	"Failed to get ibias up: %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"Using default TX DRV impedance: 4.2k/36\n"

l_.str.11:                              ; @.str.11
	.asciz	"Failed to create HDMI PHY\n"

	.comm	_of_phy_simple_xlate,4,2        ; @of_phy_simple_xlate
l_.str.12:                              ; @.str.12
	.asciz	"Failed to register HDMI PHY\n"

	.comm	_of_clk_src_simple_get,4,2      ; @of_clk_src_simple_get
	.no_dead_strip	_mtk_hdmi_phy_probe
.subsections_via_symbols
