	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max2175_set_lo_freq
_max2175_set_lo_freq:                   ## @max2175_set_lo_freq
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	movl	$5, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_max2175_read_bits
	cmpl	$128, %eax
	je	LBB0_6
## %bb.1:
	movl	$16, %r13d
	cmpl	$130, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.4:
	movl	$0, %edx
	cmpl	$74700001, %r14d                ## imm = 0x473D4E1
	jl	LBB0_8
## %bb.5:
	xorl	%ecx, %ecx
	cmpl	$110000001, %r14d               ## imm = 0x68E7781
	setae	%cl
	leal	(%rcx,%rcx,2), %ebx
	movl	$8, %r13d
	movl	$1, %edx
	jmp	LBB0_8
LBB0_6:
	xorl	%ebx, %ebx
	cmpl	$210000001, %r14d               ## imm = 0xC845881
	setl	%bl
	incl	%ebx
	movl	$4, %r13d
	movl	$2, %edx
	jmp	LBB0_8
LBB0_2:
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_7:
	movl	$3, %edx
	movl	$2, %ebx
	movl	$2, %r13d
LBB0_8:
	movq	_MAX2175_BAND_L@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_10
## %bb.9:
	movl	%r14d, %eax
	cltd
	idivl	%r13d
	movl	%eax, %r14d
	jmp	LBB0_11
LBB0_10:
	imull	%r13d, %r14d
LBB0_11:
	movl	(%r12), %esi
	movl	%r14d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r14d
	movl	%edx, %edi
	shll	$20, %edi
	callq	_div_u64
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_max2175_poll_csm_ready
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	_mxm_dbg
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%r14d, %edx
	callq	_max2175_write
	movl	%r15d, %r8d
	shrl	$16, %r8d
	andl	$15, %r8d
	movq	%r12, %rdi
	movl	$2, %esi
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_max2175_write_bits
	movl	%r15d, %edx
	sarl	$8, %edx
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_max2175_write
	movq	%r12, %rdi
	movl	$4, %esi
	movl	%r15d, %edx
	callq	_max2175_write
	movq	%r12, %rdi
	movl	$5, %esi
	movl	$3, %edx
	movl	$2, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_max2175_write_bits
	movq	%r12, %rdi
	movl	$6, %esi
	movl	$7, %edx
	movl	$6, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_max2175_write_bits
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX2175_BAND_L,4,2             ## @MAX2175_BAND_L
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lo_mult %u int %u  frac %u\n"

	.no_dead_strip	_max2175_set_lo_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max2175_set_lo_freq
_max2175_set_lo_freq:                   ; @max2175_set_lo_freq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x19, x0
	mov	w20, #1
	mov	w1, #5
	mov	w2, #1
	mov	w3, #0
	bl	_max2175_read_bits
	cmp	w0, #128
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #16
	mov	w9, #3
	mov	w10, #2
	mov	w11, #16
	mov	w12, #54497
	movk	w12, #1139, lsl #16
	mov	w13, #30593
	movk	w13, #1678, lsl #16
	cmp	w22, w13
	csel	w13, wzr, w9, lo
	mov	w14, #8
	mov	w15, #1
	cmp	w22, w12
	csel	w12, wzr, w13, lt
	csel	w13, wzr, w15, lt
	csel	w11, w11, w14, lt
	cmp	w0, #129
	csel	w12, w10, w12, ne
	csel	w9, w9, w13, ne
	csel	w10, w10, w11, ne
	cmp	w0, #130
	csel	w20, wzr, w12, eq
	csel	w21, wzr, w9, eq
	csel	w24, w8, w10, eq
	b	LBB0_3
LBB0_2:
	mov	w8, #22657
	movk	w8, #3204, lsl #16
	cmp	w22, w8
	cinc	w20, w20, lt
	mov	w24, #4
	mov	w21, #2
LBB0_3:
Lloh0:
	adrp	x8, _MAX2175_BAND_L@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX2175_BAND_L@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w9, w24, w22
	sdiv	w10, w22, w24
	cmp	w0, w8
	csel	w8, w9, w10, ne
	ldr	w1, [x19]
	sdiv	w25, w8, w1
	msub	w8, w25, w1, w8
	lsl	w0, w8, #20
	bl	_div_u64
	mov	x23, x0
	mov	x0, x19
	bl	_max2175_poll_csm_ready
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	mov	x3, x25
	mov	x4, x23
	bl	_mxm_dbg
	mov	x0, x19
	mov	w1, #1
	mov	x2, x25
	bl	_max2175_write
	ubfx	w4, w23, #16, #4
	mov	x0, x19
	mov	w1, #2
	mov	w2, #3
	mov	w3, #0
	bl	_max2175_write_bits
	asr	w2, w23, #8
	mov	x0, x19
	mov	w1, #3
	bl	_max2175_write
	mov	x0, x19
	mov	w1, #4
	mov	x2, x23
	bl	_max2175_write
	mov	x0, x19
	mov	w1, #5
	mov	w2, #3
	mov	w3, #2
	mov	x4, x21
	bl	_max2175_write_bits
	mov	x0, x19
	mov	w1, #6
	mov	w2, #7
	mov	w3, #6
	mov	x4, x20
	bl	_max2175_write_bits
LBB0_5:
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX2175_BAND_L,4,2             ; @MAX2175_BAND_L
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lo_mult %u int %u  frac %u\n"

	.no_dead_strip	_max2175_set_lo_freq
.subsections_via_symbols
