	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lp55xx_is_extclk_used          ## -- Begin function lp55xx_is_extclk_used
	.p2align	4, 0x90
_lp55xx_is_extclk_used:                 ## @lp55xx_is_extclk_used
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_clk_get_rate
	movq	_LP55XX_CLK_32K@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.6:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_dev_info
	movq	%rbx, 8(%r14)
	movl	$1, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_clk_disable_unprepare
LBB0_4:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_info
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"32k_clk"

	.comm	_LP55XX_CLK_32K,8,3             ## @LP55XX_CLK_32K
L_.str.1:                               ## @.str.1
	.asciz	"%dHz external clock used\n"

L_.str.2:                               ## @.str.2
	.asciz	"internal clock used\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lp55xx_is_extclk_used          ; -- Begin function lp55xx_is_extclk_used
	.p2align	2
_lp55xx_is_extclk_used:                 ; @lp55xx_is_extclk_used
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_clk_get
	mov	x20, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_clk_get_rate
Lloh2:
	adrp	x8, _LP55XX_CLK_32K@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LP55XX_CLK_32K@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19]
	str	x0, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_dev_info
	str	x20, [x19, #8]
	mov	w0, #1
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_clk_disable_unprepare
LBB0_5:
	ldr	x0, [x19]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"32k_clk"

	.comm	_LP55XX_CLK_32K,8,3             ; @LP55XX_CLK_32K
l_.str.1:                               ; @.str.1
	.asciz	"%dHz external clock used\n"

l_.str.2:                               ; @.str.2
	.asciz	"internal clock used\n"

.subsections_via_symbols
