	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlp9xx_i2c_get_frequency
_xlp9xx_i2c_get_frequency:              ## @xlp9xx_i2c_get_frequency
	.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	%rsi, %r14
	movq	%rdi, %r15
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_XLP9XX_I2C_IP_CLK_FREQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, (%r14)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_clk_get_rate
	movq	%rax, (%r14)
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	_device_property_read_u32
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_XLP9XX_I2C_DEFAULT_FREQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, -32(%rbp)
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movq	-32(%rbp), %rdx
	jmp	LBB0_8
LBB0_5:
	movq	-32(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movq	_XLP9XX_I2C_HIGH_FREQ@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jle	LBB0_8
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
	movq	_XLP9XX_I2C_DEFAULT_FREQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_8:
	movq	%rdx, 8(%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XLP9XX_I2C_IP_CLK_FREQ,8,3     ## @XLP9XX_I2C_IP_CLK_FREQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using default input frequency %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"clock-frequency"

	.comm	_XLP9XX_I2C_DEFAULT_FREQ,8,3    ## @XLP9XX_I2C_DEFAULT_FREQ
L_.str.2:                               ## @.str.2
	.asciz	"using default frequency %u\n"

	.comm	_XLP9XX_I2C_HIGH_FREQ,8,3       ## @XLP9XX_I2C_HIGH_FREQ
L_.str.3:                               ## @.str.3
	.asciz	"invalid frequency %u, using default\n"

	.no_dead_strip	_xlp9xx_i2c_get_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlp9xx_i2c_get_frequency
_xlp9xx_i2c_get_frequency:              ; @xlp9xx_i2c_get_frequency
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	mov	x1, #0
	bl	_devm_clk_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _XLP9XX_I2C_IP_CLK_FREQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XLP9XX_I2C_IP_CLK_FREQ@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	str	x2, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_clk_get_rate
	str	x0, [x19]
LBB0_3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_device_property_read_u32
	cbz	w0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _XLP9XX_I2C_DEFAULT_FREQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XLP9XX_I2C_DEFAULT_FREQ@GOTPAGEOFF]
Lloh9:
	ldr	x2, [x8]
	str	x2, [sp, #8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	x2, [sp, #8]
	b	LBB0_8
LBB0_5:
	ldr	x2, [sp, #8]
	cbz	x2, LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _XLP9XX_I2C_HIGH_FREQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XLP9XX_I2C_HIGH_FREQ@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x2, x8
	b.le	LBB0_8
LBB0_7:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
Lloh17:
	adrp	x8, _XLP9XX_I2C_DEFAULT_FREQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _XLP9XX_I2C_DEFAULT_FREQ@GOTPAGEOFF]
Lloh19:
	ldr	x2, [x8]
LBB0_8:
	str	x2, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_XLP9XX_I2C_IP_CLK_FREQ,8,3     ; @XLP9XX_I2C_IP_CLK_FREQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using default input frequency %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"clock-frequency"

	.comm	_XLP9XX_I2C_DEFAULT_FREQ,8,3    ; @XLP9XX_I2C_DEFAULT_FREQ
l_.str.2:                               ; @.str.2
	.asciz	"using default frequency %u\n"

	.comm	_XLP9XX_I2C_HIGH_FREQ,8,3       ; @XLP9XX_I2C_HIGH_FREQ
l_.str.3:                               ; @.str.3
	.asciz	"invalid frequency %u, using default\n"

	.no_dead_strip	_xlp9xx_i2c_get_frequency
.subsections_via_symbols
