	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max2165_set_rf
_max2165_set_rf:                        ## @max2165_set_rf
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	movslq	%esi, %rax
	imulq	$274877907, %rax, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$38, %rbx
	addl	%eax, %ebx
	movq	16(%rdi), %rax
	imull	$1000, (%rax), %esi             ## imm = 0x3E8
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	movl	%ebx, %edi
	callq	_fixpt_div32
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	sarl	$12, -36(%rbp)
	movq	_REG_NDIV_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %edx
	movq	%r15, %rdi
	callq	_max2165_write_reg
	movq	_REG_NDIV_FRAC2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movswl	-34(%rbp), %ecx
	movq	%r15, %rdi
	movl	$15, %edx
	callq	_max2165_mask_write_reg
	movq	_REG_NDIV_FRAC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	sarl	$8, %edx
	movq	%r15, %rdi
	callq	_max2165_write_reg
	movq	_REG_NDIV_FRAC0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_max2165_write_reg
	xorl	%eax, %eax
	cmpl	$725000000, %r12d               ## imm = 0x2B369F40
	setge	%al
	movl	(%r15,%rax,4), %r12d
	movl	8(%r15), %eax
	movl	12(%r15), %ecx
	subl	%eax, %ecx
	addl	$-470000, %ebx                  ## imm = 0xFFF8D410
	imull	%ecx, %ebx
	movslq	%ebx, %rcx
	imulq	$226995949, %rcx, %rbx          ## imm = 0xD87AEED
	movq	%rbx, %rcx
	shrq	$63, %rcx
	sarq	$46, %rbx
	addl	%ecx, %ebx
	addl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_dprintk
	shll	$4, %r12d
	orl	%ebx, %r12d
	movq	_REG_TRACK_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_max2165_write_reg
LBB0_2:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_NDIV_INT,4,2               ## @REG_NDIV_INT
	.comm	_REG_NDIV_FRAC2,4,2             ## @REG_NDIV_FRAC2
	.comm	_REG_NDIV_FRAC1,4,2             ## @REG_NDIV_FRAC1
	.comm	_REG_NDIV_FRAC0,4,2             ## @REG_NDIV_FRAC0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tf = %X\n"

	.comm	_REG_TRACK_FILTER,4,2           ## @REG_TRACK_FILTER
	.no_dead_strip	_max2165_set_rf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max2165_set_rf
_max2165_set_rf:                        ; @max2165_set_rf
	.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, x1
	mov	x19, x0
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w1, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w22, w8, w9
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	mov	w9, #1000
	mul	w1, w8, w9
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x22
	bl	_fixpt_div32
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldp	w8, w2, [sp, #8]
	asr	w8, w8, #12
	str	w8, [sp, #8]
Lloh0:
	adrp	x8, _REG_NDIV_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_NDIV_INT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_max2165_write_reg
Lloh3:
	adrp	x8, _REG_NDIV_FRAC2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_NDIV_FRAC2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldrsh	w3, [sp, #10]
	mov	x0, x19
	mov	w2, #15
	bl	_max2165_mask_write_reg
Lloh6:
	adrp	x8, _REG_NDIV_FRAC1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_NDIV_FRAC1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w8, [sp, #8]
	asr	w2, w8, #8
	mov	x0, x19
	bl	_max2165_write_reg
Lloh9:
	adrp	x8, _REG_NDIV_FRAC0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_NDIV_FRAC0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_max2165_write_reg
	mov	w8, #40767
	movk	w8, #11062, lsl #16
	cmp	w21, w8
	cset	w8, gt
	ldr	w23, [x19, w8, uxtw #2]
	ldp	w8, w9, [x19, #8]
	sub	w9, w9, w8
	sub	w10, w22, #114, lsl #12         ; =466944
	sub	w10, w10, #3056
	mul	w9, w9, w10
	mov	w10, #44781
	movk	w10, #3463, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #46
	add	w9, w9, w10
	add	w21, w9, w8
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_dprintk
	orr	w2, w21, w23, lsl #4
Lloh14:
	adrp	x8, _REG_TRACK_FILTER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_TRACK_FILTER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_max2165_write_reg
LBB0_2:
	mov	x0, x20
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_NDIV_INT,4,2               ; @REG_NDIV_INT
	.comm	_REG_NDIV_FRAC2,4,2             ; @REG_NDIV_FRAC2
	.comm	_REG_NDIV_FRAC1,4,2             ; @REG_NDIV_FRAC1
	.comm	_REG_NDIV_FRAC0,4,2             ; @REG_NDIV_FRAC0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tf = %X\n"

	.comm	_REG_TRACK_FILTER,4,2           ; @REG_TRACK_FILTER
	.no_dead_strip	_max2165_set_rf
.subsections_via_symbols
