	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lima_clk_init
_lima_clk_init:                         ## @lima_clk_init
	.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
	movl	16(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r14d, %ecx
	addl	(%rax), %ecx
	je	LBB0_17
## %bb.2:
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	movl	16(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	8(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r14d, %ecx
	addl	(%rax), %ecx
	je	LBB0_17
## %bb.6:
	movl	16(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_3:
	movl	%r14d, %edx
	callq	_dev_err
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%rbx), %rdi
	callq	_clk_prepare_enable
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.8:
	movq	8(%rbx), %rdi
	callq	_clk_prepare_enable
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.9:
	movl	16(%rbx), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_devm_reset_control_get_optional
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	24(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r14d, %ecx
	addl	(%rax), %ecx
	je	LBB0_15
## %bb.11:
	movl	16(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	jmp	LBB0_15
LBB0_12:
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.13:
	callq	_reset_control_deassert
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:
	movl	%eax, %r15d
	movl	16(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r15d, %r14d
LBB0_15:
	movq	8(%rbx), %rdi
	callq	_clk_disable_unprepare
LBB0_16:
	movq	(%rbx), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bus"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"get bus clk failed %d\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"get core clk failed %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"get reset controller failed %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"reset controller deassert failed %d\n"

	.no_dead_strip	_lima_clk_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lima_clk_init
_lima_clk_init:                         ; @lima_clk_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_clk_get
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19]
	bl	_PTR_ERR
	mov	x20, x0
Lloh2:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_7
; %bb.2:
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
	ldr	w0, [x19, #16]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_devm_clk_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x20, x0
Lloh9:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	w0, [x19, #16]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_6:
	mov	x2, x20
	bl	_dev_err
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x0, [x19]
	bl	_clk_prepare_enable
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.9:
	ldr	x0, [x19, #8]
	bl	_clk_prepare_enable
	mov	x20, x0
	cbnz	w0, LBB0_18
; %bb.10:
	ldr	w0, [x19, #16]
	mov	x1, #0
	bl	_devm_reset_control_get_optional
	str	x0, [x19, #24]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #24]
	cbz	x8, LBB0_13
; %bb.11:
	bl	_PTR_ERR
	mov	x20, x0
Lloh14:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_17
; %bb.12:
	ldr	w0, [x19, #16]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_13:
	cbz	x0, LBB0_19
; %bb.14:
	bl	_reset_control_deassert
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.15:
	ldr	w0, [x19, #16]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_16:
	mov	x2, x20
	bl	_dev_err
LBB0_17:
	ldr	x0, [x19, #8]
	bl	_clk_disable_unprepare
LBB0_18:
	ldr	x0, [x19]
	bl	_clk_disable_unprepare
	b	LBB0_7
LBB0_19:
	mov	w20, #0
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bus"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"get bus clk failed %d\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"get core clk failed %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"get reset controller failed %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"reset controller deassert failed %d\n"

	.no_dead_strip	_lima_clk_init
.subsections_via_symbols
