	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_mipi_tx_probe
_mtk_mipi_tx_probe:                     ## @mtk_mipi_tx_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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$1, -72(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	$0, -56(%rbp)
	movq	_CLK_SET_RATE_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_mtk_mipi_tx_pll_ops@GOTPCREL(%rip), %rax
	movq	%rax, -48(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movl	%eax, 32(%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, 24(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	24(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	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.1(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_7:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	-56(%rbp), %r12
	movq	%rbx, %rdi
	callq	___clk_get_name
	movq	%rax, -40(%rbp)
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	callq	_of_property_read_string
	testl	%eax, %eax
	js	LBB0_11
## %bb.9:
	movq	%r15, %rsi
	addq	$16, %rsi
	leaq	-72(%rbp), %rax
	movq	%rax, 16(%r15)
	movq	%r14, %rdi
	callq	_devm_clk_register
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_6
LBB0_11:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_6
LBB0_12:
	movq	_mtk_mipi_tx_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_phy_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_6
LBB0_14:
	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_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	jmp	LBB0_17
LBB0_16:
	movq	%r14, 8(%r15)
	movl	(%r14), %edi
	movq	_of_clk_src_simple_get@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rdx
	callq	_of_clk_add_provider
LBB0_17:
	movl	%eax, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_CLK_SET_RATE_GATE,4,2          ## @CLK_SET_RATE_GATE
	.comm	_mtk_mipi_tx_pll_ops,4,2        ## @mtk_mipi_tx_pll_ops
	.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	"Failed to get reference clock: %d\n"

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

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

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

	.comm	_mtk_mipi_tx_ops,4,2            ## @mtk_mipi_tx_ops
L_.str.5:                               ## @.str.5
	.asciz	"Failed to create MIPI D-PHY: %d\n"

	.comm	_of_phy_simple_xlate,4,2        ## @of_phy_simple_xlate
	.comm	_of_clk_src_simple_get,4,2      ## @of_clk_src_simple_get
	.no_dead_strip	_mtk_mipi_tx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_mipi_tx_probe
_mtk_mipi_tx_probe:                     ; @mtk_mipi_tx_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, #8]
	add	x8, sp, #40
	str	x8, [sp, #16]
Lloh0:
	adrp	x8, _CLK_SET_RATE_GATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLK_SET_RATE_GATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #24]
Lloh3:
	adrp	x8, _mtk_mipi_tx_pll_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mtk_mipi_tx_pll_ops@GOTPAGEOFF]
	str	x8, [sp, #32]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_of_device_get_match_data
	str	w0, [x20, #32]
Lloh8:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh10:
	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, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x20, #24]
	bl	_PTR_ERR
	mov	x21, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_7:
	mov	x0, x21
	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_8:
	add	x8, sp, #8
	add	x22, x8, #16
	mov	x0, x21
	bl	___clk_get_name
	str	x0, [sp, #40]
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_of_property_read_string
	tbnz	w0, #31, LBB0_11
; %bb.9:
	add	x8, sp, #8
	mov	x1, x20
	str	x8, [x1, #16]!
	mov	x0, x19
	bl	_devm_clk_register
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x0, [x20]
	bl	_PTR_ERR
	mov	x21, x0
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_11:
	mov	x21, x0
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_12:
Lloh24:
	adrp	x2, _mtk_mipi_tx_ops@GOTPAGE
Lloh25:
	ldr	x2, [x2, _mtk_mipi_tx_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	bl	_devm_phy_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_14:
	mov	x0, x21
	mov	x1, x20
	bl	_phy_set_drvdata
Lloh28:
	adrp	x8, _of_phy_simple_xlate@GOTPAGE
Lloh29:
	ldr	x8, [x8, _of_phy_simple_xlate@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_of_phy_provider_register
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_PTR_ERR
	b	LBB0_17
LBB0_16:
	str	x19, [x20, #8]
	ldr	w0, [x19]
Lloh31:
	adrp	x8, _of_clk_src_simple_get@GOTPAGE
Lloh32:
	ldr	x8, [x8, _of_clk_src_simple_get@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldr	x2, [x20]
	bl	_of_clk_add_provider
LBB0_17:
	mov	x21, x0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_CLK_SET_RATE_GATE,4,2          ; @CLK_SET_RATE_GATE
	.comm	_mtk_mipi_tx_pll_ops,4,2        ; @mtk_mipi_tx_pll_ops
	.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	"Failed to get reference clock: %d\n"

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

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

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

	.comm	_mtk_mipi_tx_ops,4,2            ; @mtk_mipi_tx_ops
l_.str.5:                               ; @.str.5
	.asciz	"Failed to create MIPI D-PHY: %d\n"

	.comm	_of_phy_simple_xlate,4,2        ; @of_phy_simple_xlate
	.comm	_of_clk_src_simple_get,4,2      ; @of_clk_src_simple_get
	.no_dead_strip	_mtk_mipi_tx_probe
.subsections_via_symbols
