	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_smi_larb_probe
_mtk_smi_larb_probe:                    ## @mtk_smi_larb_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 40(%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, 48(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	48(%r15), %rdi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_21:
	xorl	%ebx, %ebx
LBB0_22:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 32(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	32(%r15), %rdi
	jmp	LBB0_4
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 24(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	24(%r15), %rdi
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_9:
	movq	40(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_PTR_ERR
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_14
## %bb.11:
	movq	$0, 16(%r15)
	jmp	LBB0_12
LBB0_14:
	movq	16(%r15), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.15:
	movq	16(%r15), %rdi
	jmp	LBB0_4
LBB0_12:
	movq	%r14, 8(%r15)
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_13
## %bb.16:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_of_find_device_by_node
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_of_node_put
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.17:
	movq	%rbx, %rdi
	callq	_platform_get_drvdata
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movq	%rbx, (%r15)
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	_mtk_smi_larb_component_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_component_add                  ## TAILCALL
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_20:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_18:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_21
	.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	"apb"

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

L_.str.2:                               ## @.str.2
	.asciz	"gals"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.3:                               ## @.str.3
	.asciz	"mediatek,smi"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.4:                               ## @.str.4
	.asciz	"Failed to get the smi_common device\n"

	.comm	_mtk_smi_larb_component_ops,4,2 ## @mtk_smi_larb_component_ops
	.no_dead_strip	_mtk_smi_larb_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_smi_larb_probe
_mtk_smi_larb_probe:                    ; @mtk_smi_larb_probe
	.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, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_of_device_get_match_data
	str	x0, [x20, #40]
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, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x20, #48]
	b	LBB0_9
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	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_5:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x20, #32]
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x0, [x20, #24]
LBB0_9:
	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	_PTR_ERR
LBB0_10:
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.11:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #16]
	bl	_PTR_ERR
Lloh14:
	adrp	x8, _ENOENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_13
; %bb.12:
	str	xzr, [x20, #16]
	b	LBB0_15
LBB0_13:
	ldr	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.14:
	ldr	x0, [x20, #16]
	b	LBB0_9
LBB0_15:
	str	x19, [x20, #8]
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_20
; %bb.16:
	mov	x22, x0
	bl	_of_find_device_by_node
	mov	x21, x0
	mov	x0, x22
	bl	_of_node_put
	cbz	x21, LBB0_19
; %bb.17:
	mov	x0, x21
	bl	_platform_get_drvdata
	cbz	w0, LBB0_21
; %bb.18:
	str	x21, [x20]
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh19:
	adrp	x1, _mtk_smi_larb_component_ops@GOTPAGE
Lloh20:
	ldr	x1, [x1, _mtk_smi_larb_component_ops@GOTPAGEOFF]
	mov	x0, 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	_component_add
LBB0_19:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_20:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_21:
Lloh25:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.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	"apb"

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

l_.str.2:                               ; @.str.2
	.asciz	"gals"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.3:                               ; @.str.3
	.asciz	"mediatek,smi"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.4:                               ; @.str.4
	.asciz	"Failed to get the smi_common device\n"

	.comm	_mtk_smi_larb_component_ops,4,2 ; @mtk_smi_larb_component_ops
	.no_dead_strip	_mtk_smi_larb_probe
.subsections_via_symbols
