	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgs8gxx_set_if_freq
_lgs8gxx_set_if_freq:                   ## @lgs8gxx_set_if_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movq	(%r14), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	callq	_do_div
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movq	_LGS8GXX_PROD_LGS8G75@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	sete	%bl
	movl	%ebx, %esi
	xorl	$9, %esi
	movl	$10, %r15d
	subl	%ebx, %r15d
	movl	$12, %r12d
	subl	%ebx, %r12d
	xorl	$11, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_lgs8gxx_write_reg
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_lgs8gxx_write_reg
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_lgs8gxx_write_reg
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_lgs8gxx_write_reg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set IF Freq to %dkHz\n"

L_.str.1:                               ## @.str.1
	.asciz	"Set IF Freq to baseband\n"

L_.str.2:                               ## @.str.2
	.asciz	"AFC_INIT_FREQ = 0x%08X\n"

	.comm	_LGS8GXX_PROD_LGS8G75,8,3       ## @LGS8GXX_PROD_LGS8G75
	.no_dead_strip	_lgs8gxx_set_if_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgs8gxx_set_if_freq
_lgs8gxx_set_if_freq:                   ; @lgs8gxx_set_if_freq
	.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, x0
	cbz	x1, LBB0_4
; %bb.1:
	mov	x20, x1
	ldr	x8, [x19]
	ldr	x1, [x8]
	cbz	x1, LBB0_3
; %bb.2:
	bl	_do_div
LBB0_3:
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_dprintk
	str	xzr, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x9, _LGS8GXX_PROD_LGS8G75@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LGS8GXX_PROD_LGS8G75@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #8
	cinc	w1, w8, ne
	mov	w8, #9
	cinc	w20, w8, ne
	mov	w8, #10
	cinc	w21, w8, ne
	mov	w8, #11
	cinc	w22, w8, ne
	mov	x0, x19
	mov	w2, #0
	bl	_lgs8gxx_write_reg
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_lgs8gxx_write_reg
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_lgs8gxx_write_reg
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_lgs8gxx_write_reg
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set IF Freq to %dkHz\n"

l_.str.1:                               ; @.str.1
	.asciz	"Set IF Freq to baseband\n"

l_.str.2:                               ; @.str.2
	.asciz	"AFC_INIT_FREQ = 0x%08X\n"

	.comm	_LGS8GXX_PROD_LGS8G75,8,3       ; @LGS8GXX_PROD_LGS8G75
	.no_dead_strip	_lgs8gxx_set_if_freq
.subsections_via_symbols
