	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18250_pll_calc
_tda18250_pll_calc:                     ## @tda18250_pll_calc
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	movl	8(%rax), %edi
	movq	_R34_MD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	%r14, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %r10d
	movl	%r10d, %ecx
	shrb	$4, %cl
	andb	$7, %cl
	decb	%cl
	movl	$1, %edx
	shll	%cl, %edx
	andl	$15, %r10d
	movl	%r10d, %r8d
	shll	%cl, %r8d
	movl	4(%rbx), %ecx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_6
## %bb.2:
	movslq	(%r15), %rsi
	imulq	$274877907, %rsi, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rdi
	shrq	$63, %rdi
	sarq	$38, %rsi
	addl	%edi, %esi
	addl	(%rbx), %esi
	imull	%esi, %r8d
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	$3, (%r13)
	movl	$1, (%r12)
	jmp	LBB0_5
LBB0_4:
	movl	$1, (%r13)
	movl	$0, (%r12)
LBB0_5:
	xorl	%ecx, %ecx
	cmpl	$6622000, %r8d                  ## imm = 0x650B30
	jmp	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_7:
	movl	$2, (%r13)
	movl	$0, (%r12)
	xorl	%ecx, %ecx
	cmpl	$6811000, %r8d                  ## imm = 0x67ED78
LBB0_8:
	setb	%cl
	leal	(%rcx,%rcx,2), %ebx
	addl	$2, %ebx
LBB0_9:
	movq	%rax, %rdi
LBB0_10:
	movl	%ebx, (%r14)
	movl	(%r13), %r9d
	movl	(%r12), %eax
	leaq	L_.str(%rip), %rsi
	movl	%r10d, %ecx
	pushq	%rbx
	pushq	%rax
	callq	_dev_dbg
	addq	$16, %rsp
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	cmpl	$6642999, %r8d                  ## imm = 0x655D37
	ja	LBB0_14
## %bb.13:
	movl	$2, (%r13)
	movl	$0, (%r12)
	movl	$5, %ebx
	jmp	LBB0_9
LBB0_14:
	cmpl	$6810999, %r8d                  ## imm = 0x67ED77
	movq	%rax, %rdi
	ja	LBB0_16
## %bb.15:
	movl	$2, (%r13)
	movl	$0, (%r12)
	movl	$6, %ebx
	jmp	LBB0_10
LBB0_16:
	movl	$3, (%r13)
	movl	$1, (%r12)
	movl	$2, %ebx
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_12
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_R34_MD1,4,2                    ## @R34_MD1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lopd=%d scale=%u fvco=%lu, rdiv=%d ndiv=%d icp=%d"

	.no_dead_strip	_tda18250_pll_calc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18250_pll_calc
_tda18250_pll_calc:                     ; @tda18250_pll_calc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x24, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_i2c_get_clientdata
	mov	x23, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _R34_MD1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R34_MD1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_14
; %bb.1:
	ldr	w8, [x23, #4]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_6
; %bb.2:
	ldr	w9, [sp, #12]
	ubfx	w10, w9, #4, #3
	sub	w10, w10, #1
	mov	w11, #1
	lsl	w2, w11, w10
	and	w3, w9, #0xf
	lsl	w9, w3, w10
	ldrsw	x10, [x24]
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #63
	asr	x10, x10, #38
	ldr	w12, [x23]
	add	w10, w10, w11
	add	w10, w10, w12
	mul	w4, w9, w10
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	w8, #3
	str	w8, [x22]
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_5
LBB0_4:
	mov	w8, #1
	str	w8, [x22]
	str	wzr, [x20]
LBB0_5:
	mov	w8, #2864
	movk	w8, #101, lsl #16
	mov	w9, #2
	mov	w10, #5
	cmp	w4, w8
	csel	w7, w10, w9, lo
	b	LBB0_13
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_7:
	mov	w8, #2
	str	w8, [x22]
	str	wzr, [x20]
	mov	w9, #60792
	movk	w9, #103, lsl #16
	mov	w10, #5
	cmp	w4, w9
	csel	w7, w10, w8, lo
	b	LBB0_13
LBB0_8:
	mov	w8, #23863
	movk	w8, #101, lsl #16
	cmp	w4, w8
	b.hi	LBB0_10
; %bb.9:
	mov	w8, #2
	str	w8, [x22]
	str	wzr, [x20]
	mov	w7, #5
	b	LBB0_13
LBB0_10:
	mov	w8, #60792
	movk	w8, #103, lsl #16
	cmp	w4, w8
	b.hs	LBB0_12
; %bb.11:
	mov	w8, #2
	str	w8, [x22]
	str	wzr, [x20]
	mov	w7, #6
	b	LBB0_13
LBB0_12:
	mov	w8, #3
	str	w8, [x22]
	mov	w8, #1
	str	w8, [x20]
	mov	w7, #2
LBB0_13:
	str	w7, [x21]
	ldr	w5, [x22]
	ldr	w6, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
                                        ; -- End function
	.comm	_R34_MD1,4,2                    ; @R34_MD1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lopd=%d scale=%u fvco=%lu, rdiv=%d ndiv=%d icp=%d"

	.no_dead_strip	_tda18250_pll_calc
.subsections_via_symbols
